html, body {
    height: 100%;
    margin: 0;
}

body {
    background: #1f1f1f;
    color: #fff;
    font-size: 14px;
}

/* layout */
.layout {
    display: flex;
    min-height: 100vh;
    min-width: 0;
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* header */
.header {
    padding: 10px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* content */
.content {
    padding: 20px;
    min-width: 0;
    max-width: 100%;
}

/* sidebar */
.sidebar {
    width: 240px;
    background: #1f1f1f;
    border-right: 1px solid #333;
}

.menu-section {
    margin-bottom: 16px;
}

.menu-title {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.menu a {
    display: block;
    color: #fff;
    padding: 6px 0;
}

.menu a:hover {
    color: #0d6efd;
}

/* mobile */
@media (max-width: 991px) {
    .sidebar {
        width: 240px;
    }
}






.page-header {
    margin-bottom: 24px;
}

.page-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.page-subtitle {
    margin: 0;
    color: #aaa;
}

.panel {
    background: #1f1f1f;
    border: 1px solid #333;
    padding: 20px;
}

.panel-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.panel-text {
    margin: 0;
    color: #ccc;
}

.products-table-wrapper {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.products-table th {
    background: #f5f5f5;
}

.image-preview-cell {
    position: relative;
}

.image-preview-trigger {
    cursor: pointer;
    color: #0d6efd;
    text-decoration: underline;
}

.image-preview-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    width: 220px;
}

.image-preview-cell:hover .image-preview-popup {
    display: block;
}

.image-preview-popup img {
    max-width: 200px;
    max-height: 200px;
    display: block;
}

.btn-show {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    text-decoration: none;
    border-radius: 4px;
}

.btn-show:hover {
    background: #0d6efd;
    color: #fff;
}

canvas {
    max-width: 100%;
}

.product-gallery-image {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.image-sort-item[draggable="true"] {
    cursor: grab;
}

.image-sort-item[draggable="true"]:active {
    cursor: grabbing;
}
