/* =========================
   HIDDEN
   A class with display:flex would otherwise
   beat the browser's own [hidden] rule.
========================= */

[hidden] {

    display: none !important;

}


/* =========================
   ADMIN LAYOUT
========================= */

.admin-body {

    display: flex;

    min-height: 100vh;

    background: var(--bg);

}


/* =========================
   SIDEBAR
========================= */

.admin-sidebar {

    position: fixed;

    top: 0;

    left: 0;

    bottom: 0;

    width: 250px;

    display: flex;

    flex-direction: column;

    padding: 22px 16px;

    background: var(--surface);

    border-right: 1px solid var(--border);

    z-index: 100;

    transition: transform 0.3s ease;

}


/* Brand */

.admin-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 8px 20px;

    border-bottom: 1px solid var(--border);

}


.admin-brand strong {

    display: block;

    font-size: 16px;

}


.admin-brand small {

    font-size: 12px;

    color: var(--text-secondary);

}


.admin-brand.big {

    justify-content: center;

    border: none;

    padding-bottom: 10px;

}


/* Nav */

.admin-nav {

    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-top: 18px;

}


.admin-nav-item {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    padding: 12px 14px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    text-align: left;

    cursor: pointer;

    transition: all 0.2s ease;

}


.admin-nav-item .dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #cbd5e1;

    transition: all 0.2s ease;

}


.admin-nav-item:hover {

    background: var(--surface-soft);

    color: var(--text-primary);

}


.admin-nav-item.active {

    background: #eef2ff;

    color: var(--primary);

    font-weight: bold;

}


.admin-nav-item.active .dot {

    background: var(--primary);

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);

}


/* Badge */

.nav-badge {

    margin-left: auto;

    min-width: 22px;

    padding: 2px 7px;

    border-radius: 999px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    font-size: 11px;

    font-weight: bold;

    text-align: center;

}


.nav-badge.alert.unread {

    background: #fee2e2;

    color: #dc2626;

}


/* Footer */

.admin-side-foot {

    margin-top: auto;

    display: flex;

    flex-direction: column;

    gap: 4px;

    padding-top: 16px;

    border-top: 1px solid var(--border);

}


.side-link {

    display: block;

    width: 100%;

    padding: 11px 14px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    text-align: left;

    cursor: pointer;

    transition: all 0.2s ease;

}


.side-link:hover {

    background: var(--surface-soft);

    color: var(--primary);

}


.side-link.danger:hover {

    background: #fee2e2;

    color: #dc2626;

}


/* =========================
   MAIN AREA
========================= */

.admin-main {

    flex: 1;

    margin-left: 250px;

    min-width: 0;

}


/* Topbar */

.admin-topbar {

    position: sticky;

    top: 0;

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 18px 28px;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);

    z-index: 50;

}


.admin-topbar h1 {

    font-size: 22px;

}


.admin-topbar p {

    font-size: 13px;

    color: var(--text-secondary);

}


#side-toggle {

    display: none;

    width: 40px;

    height: 40px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    font-size: 18px;

    cursor: pointer;

}


.admin-user {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-left: auto;

    font-size: 13px;

    color: var(--text-secondary);

}


.admin-chip {

    padding: 5px 12px;

    border-radius: 999px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 12px;

    font-weight: bold;

}


/* Content */

.admin-content {

    padding: 26px 28px 60px;

}


.admin-view {

    display: flex;

    flex-direction: column;

    gap: 22px;

}


/* =========================
   KPI CARDS
========================= */

.kpi-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

}


.kpi {

    padding: 18px;

    border-radius: 12px;

    background: var(--surface);

    border: 1px solid var(--border);

}


.kpi-label {

    font-size: 13px;

    color: var(--text-secondary);

}


.kpi strong {

    display: block;

    margin: 6px 0 4px;

    font-size: 24px;

    color: var(--text-primary);

}


.kpi small {

    font-size: 12px;

    color: var(--text-secondary);

}


/* =========================
   PANELS
========================= */

.panel-grid {

    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 22px;

}


.panel {

    padding: 20px;

    border-radius: 12px;

    background: var(--surface);

    border: 1px solid var(--border);

}


.panel-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;

}


.panel-head h3 {

    font-size: 16px;

}


.link-btn {

    border: none;

    background: transparent;

    color: var(--primary);

    font-family: inherit;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

}


.link-btn:hover {

    text-decoration: underline;

}


/* =========================
   TABLES
========================= */

.table-wrap {

    overflow-x: auto;

}


.admin-table {

    width: 100%;

    border-collapse: collapse;

    font-size: 13px;

}


.admin-table th {

    padding: 12px 14px;

    border-bottom: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 12px;

    text-align: left;

    white-space: nowrap;

}


.admin-table td {

    padding: 14px;

    border-bottom: 1px solid var(--border);

    vertical-align: middle;

}


.admin-table tr:last-child td {

    border-bottom: none;

}


.admin-table tbody tr:hover {

    background: var(--surface-soft);

}


.cell-strong {

    font-weight: bold;

}


.cell-sub {

    display: block;

    font-size: 12px;

    color: var(--text-secondary);

}


/* Product Cell */

.cell-product {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 220px;

}


.cell-thumb {

    width: 46px;

    height: 46px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: var(--surface-soft);

}


/* Status Select */

.status-select {

    padding: 7px 10px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-primary);

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

}


.status-select:focus {

    outline: none;

    border-color: var(--primary);

}


/* Pills */

.pill {

    display: inline-block;

    padding: 4px 10px;

    border-radius: 999px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    font-size: 11px;

    font-weight: bold;

}


.pill.hot {

    background: #ffedd5;

    color: #c2410c;

}


.pill.star {

    background: #eef2ff;

    color: var(--primary);

}


.pill.sale {

    background: #fee2e2;

    color: #dc2626;

}


.pill.done {

    background: #ecfdf5;

    color: #047857;

}


/* Row Actions */

.row-actions {

    display: flex;

    gap: 6px;

    justify-content: flex-end;

}


.icon-action {

    padding: 7px 11px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    transition: all 0.2s ease;

    white-space: nowrap;

}


.icon-action:hover {

    border-color: var(--primary);

    color: var(--primary);

}


.icon-action.danger:hover {

    border-color: #fecaca;

    background: #fee2e2;

    color: #dc2626;

}


/* =========================
   TOOLBAR
========================= */

.admin-toolbar {

    display: flex;

    align-items: center;

    gap: 14px;

    flex-wrap: wrap;

}


.admin-toolbar .search-box {

    flex: 1;

    min-width: 240px;

}


.admin-toolbar .btn-primary,

.admin-toolbar .btn-ghost {

    height: 46px;

    padding: 0 20px;

    font-size: 14px;

}


/* =========================
   TOP PRODUCTS
========================= */

.top-list {

    display: flex;

    flex-direction: column;

    gap: 14px;

}


.top-item {

    display: flex;

    align-items: center;

    gap: 12px;

}


.top-item .cell-thumb {

    width: 42px;

    height: 42px;

}


.top-item .info {

    flex: 1;

    min-width: 0;

}


.top-item strong {

    display: block;

    font-size: 13px;

}


.top-item small {

    font-size: 12px;

    color: var(--text-secondary);

}


/* =========================
   CATEGORIES
========================= */

.chip-list {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 18px;

}


.cat-chip {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface-soft);

    font-size: 13px;

}


.cat-chip button {

    border: none;

    background: transparent;

    color: #94a3b8;

    font-size: 16px;

    line-height: 1;

    cursor: pointer;

}


.cat-chip button:hover {

    color: #dc2626;

}


.inline-form {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}


.inline-form input {

    flex: 1;

    min-width: 200px;

    height: 46px;

    padding: 0 16px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface-soft);

    font-family: inherit;

    font-size: 14px;

}


.inline-form input:focus {

    outline: none;

    border-color: var(--primary);

    background: var(--surface);

}


.inline-form .btn-ghost {

    height: 46px;

    padding: 0 20px;

}


/* =========================
   MESSAGES
========================= */

.message-list {

    display: flex;

    flex-direction: column;

    gap: 14px;

}


.message-card {

    padding: 20px;

    border-radius: 14px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

}


.message-card.unread {

    border-left: 3px solid var(--primary);

}


.message-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 12px;

}


.message-top strong {

    font-size: 14px;

}


.message-top small {

    display: block;

    font-size: 12px;

    color: var(--text-secondary);

}


.message-card p {

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;

}


.message-actions {

    display: flex;

    gap: 8px;

    margin-top: 14px;

}


/* =========================
   SETTINGS
========================= */

.settings-panel .panel-head {

    margin-top: 10px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);

}


.settings-panel .panel-head:first-child {

    margin-top: 0;

}


.settings-panel .btn-primary {

    margin-top: 20px;

}


.danger-zone {

    border-color: #fecaca;

}


.danger-zone p {

    margin-bottom: 16px;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;

}


.danger-actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}


.danger-actions .btn-reset {

    width: auto;

    padding: 12px 20px;

}


/* =========================
   EMPTY STATE
========================= */

.empty-state {

    padding: 50px 20px;

    text-align: center;

    color: var(--text-secondary);

}


/* =========================
   MODAL
========================= */

.modal-overlay {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.45);

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);

    z-index: 3000;

}


.modal {

    width: 100%;

    max-width: 560px;

    max-height: 90vh;

    display: flex;

    flex-direction: column;

    border-radius: 18px;

    background: var(--surface);

    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);

    animation: modal-in 0.25s ease;

}


@keyframes modal-in {

    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.modal-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid var(--border);

}


.modal-head h3 {

    font-size: 17px;

}


#modal-close {

    padding: 0;

    border: none;

    background: transparent;

    color: var(--text-secondary);

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

}


#modal-close:hover {

    color: var(--primary);

}


.modal-body {

    flex: 1;

    overflow-y: auto;

    padding: 24px;

}


.modal-foot {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding: 18px 24px;

    border-top: 1px solid var(--border);

}


.modal-foot .btn-primary,

.modal-foot .btn-ghost {

    padding: 12px 24px;

    font-size: 14px;

}


/* Detail Rows */

.detail-rows {

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.detail-rows div {

    display: flex;

    gap: 12px;

    padding: 10px 0;

    border-bottom: 1px dashed var(--border);

    font-size: 13px;

}


.detail-rows div:last-child {

    border-bottom: none;

}


.detail-rows span {

    min-width: 110px;

    color: var(--text-secondary);

}


.modal-section-title {

    margin: 20px 0 12px;

    font-size: 14px;

}


/* Checkbox Row */

.check-row {

    display: flex;

    gap: 22px;

    flex-wrap: wrap;

    margin-bottom: 16px;

}


/* =========================
   ADMIN LOGIN PAGE
========================= */

.admin-auth-body {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 100vh;

    padding: 30px 20px;

    background:
        radial-gradient(circle at 20% 20%,
            rgba(99, 102, 241, 0.14),
            transparent 45%),
        radial-gradient(circle at 80% 30%,
            rgba(168, 85, 247, 0.14),
            transparent 45%),
        var(--bg);

}


.admin-auth {

    width: 100%;

    max-width: 430px;

}


.admin-auth-card {

    padding: 34px 30px;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-md);

    text-align: center;

}


.admin-auth-card h2 {

    margin-top: 16px;

    font-size: 22px;

}


.admin-auth-card .field {

    text-align: left;

}


.admin-auth-card .btn-primary {

    margin-top: 8px;

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .kpi-grid {

        grid-template-columns: repeat(2, 1fr);

    }

    .panel-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 900px) {

    .admin-sidebar {

        transform: translateX(-100%);

    }

    .admin-sidebar.open {

        transform: translateX(0);

        box-shadow: 0 0 60px rgba(15, 23, 42, 0.2);

    }

    .admin-main {

        margin-left: 0;

    }

    #side-toggle {

        display: block;

    }

    .admin-user span:first-child {

        display: none;

    }

    .admin-content {

        padding: 20px 16px 60px;

    }

    .admin-topbar {

        padding: 14px 16px;

    }

}


@media (max-width: 560px) {

    .kpi-grid {

        grid-template-columns: 1fr;

    }

    .admin-toolbar .btn-primary {

        width: 100%;

    }

}


/* =========================
   RTL  (Arabic)
========================= */

[dir="rtl"] .admin-sidebar {

    left: auto;

    right: 0;

    border-right: none;

    border-left: 1px solid var(--border);

}


[dir="rtl"] .admin-main {

    margin-left: 0;

    margin-right: 250px;

}


[dir="rtl"] .admin-nav-item,

[dir="rtl"] .side-link,

[dir="rtl"] .admin-table th,

[dir="rtl"] .admin-table td {

    text-align: right;

}


[dir="rtl"] .nav-badge {

    margin-left: 0;

    margin-right: auto;

}


[dir="rtl"] .admin-user {

    margin-left: 0;

    margin-right: auto;

}


[dir="rtl"] .row-actions {

    justify-content: flex-start;

}


[dir="rtl"] .modal-foot {

    justify-content: flex-start;

}


[dir="rtl"] .detail-rows span {

    text-align: right;

}


@media (max-width: 900px) {

    [dir="rtl"] .admin-sidebar {

        transform: translateX(100%);

    }

    [dir="rtl"] .admin-sidebar.open {

        transform: translateX(0);

    }

    [dir="rtl"] .admin-main {

        margin-right: 0;

    }

}


/* Settings hint */

.hint {

    margin: -6px 0 18px;

    font-size: 12px;

    color: var(--text-secondary);

}


/* Category chip buttons */

.cat-chip button {

    padding: 0 2px;

}


.cat-chip button[data-edit-cat] {

    font-size: 13px;

}


.cat-chip button[data-edit-cat]:hover {

    color: var(--primary);

}


/* =========================
   SELECTS
   Every dropdown in the dashboard gets the
   same arrow and height as the inputs.
========================= */

.field select,

.sort-box select,

.status-select {

    appearance: none;

    -webkit-appearance: none;

    -moz-appearance: none;

    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    cursor: pointer;

}


/* Modal + settings dropdowns */

.field select {

    width: 100%;

    height: 46px;

    padding: 0 40px 0 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background-color: var(--surface-soft);

    background-position: right 15px center;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 14px;

    transition: all 0.25s ease;

}


.field select:hover {

    border-color: var(--border-strong);

}


.field select:focus {

    outline: none;

    background-color: var(--surface);

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);

}


/* Status dropdown inside the orders table */

.status-select {

    height: 34px;

    padding: 0 32px 0 12px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background-color: #eef2ff;

    background-position: right 11px center;

    background-size: 10px 7px;

    color: var(--primary);

    font-family: inherit;

    font-size: 12px;

    font-weight: bold;

    transition: all 0.2s ease;

}


.status-select:hover {

    border-color: var(--border-strong);

}


.status-select:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);

}


/* Delivered orders read as done */

.status-select.done {

    background-color: #ecfdf5;

    color: #047857;

}


/* RTL arrows flip to the other side */

[dir="rtl"] .field select {

    padding: 0 15px 0 40px;

    background-position: left 15px center;

}


[dir="rtl"] .status-select {

    padding: 0 12px 0 32px;

    background-position: left 11px center;

}


/* =========================
   CUSTOMER PROFILE
========================= */

.profile-head {

    display: flex;

    align-items: center;

    gap: 14px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);

}


.profile-avatar {

    width: 52px;

    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(135deg,
            #6366f1,
            #a855f7);

    color: white;

    font-size: 21px;

    font-weight: bold;

}


.profile-head strong {

    display: block;

    font-size: 16px;

}


.profile-head small {

    font-size: 13px;

    color: var(--text-secondary);

}


/* Stats */

.profile-stats {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin: 18px 0 10px;

}


.profile-stats div {

    padding: 14px 10px;

    border-radius: 12px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    text-align: center;

}


.profile-stats strong {

    display: block;

    margin-bottom: 3px;

    font-size: 18px;

    color: var(--primary);

}


.profile-stats span {

    font-size: 12px;

    color: var(--text-secondary);

}


.profile-joined {

    font-size: 12px;

    color: var(--text-secondary);

}


/* Orders */

.profile-orders {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.profile-order {

    display: flex;

    flex-direction: column;

    gap: 6px;

    width: 100%;

    padding: 14px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    transition: all 0.2s ease;

}


.profile-order:hover {

    border-color: var(--border-strong);

    background: var(--surface-soft);

}


.profile-order-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    font-size: 14px;

}


.profile-order-sub {

    font-size: 12px;

    color: var(--text-secondary);

}


.profile-empty {

    padding: 26px 0;

    color: var(--text-secondary);

    text-align: center;

}


[dir="rtl"] .profile-order {

    text-align: right;

}


/* =========================
   TABLES - CENTERED
   Every column reads from the middle,
   headers and cells alike.
========================= */

.admin-table th,

.admin-table td,

[dir="rtl"] .admin-table th,

[dir="rtl"] .admin-table td {

    text-align: center;

    vertical-align: middle;

}


/* Product cell: photo and text stack in the middle */

.cell-product {

    justify-content: center;

    text-align: center;

}


/* Row buttons sit in the middle too */

.row-actions,

[dir="rtl"] .row-actions {

    justify-content: center;

}


/* Tags wrap neatly when centered */

.admin-table .pill {

    margin: 2px;

}


/* =========================
   ROW ACTION BUTTONS
========================= */

.icon-action {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 32px;

    padding: 0 14px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;

    cursor: pointer;

    transition: all 0.2s ease;

}


.icon-action:hover {

    border-color: var(--border-strong);

    background: var(--surface-soft);

    color: var(--text-primary);

    transform: translateY(-1px);

}


/* Profile / open */

.icon-action.primary {

    border-color: var(--border-strong);

    background: #eef2ff;

    color: var(--primary);

}


.icon-action.primary:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: #ffffff;

}


/* Delete */

.icon-action.danger {

    border-color: #fecaca;

    background: #fef2f2;

    color: #dc2626;

}


.icon-action.danger:hover {

    background: #dc2626;

    border-color: #dc2626;

    color: #ffffff;

}


/* The actions column keeps its own breathing room */

.admin-table th:last-child,

.admin-table td:last-child {

    white-space: nowrap;

}


.row-actions {

    gap: 8px;

}


/* =========================
   IMAGE UPLOAD
========================= */

#f-file {

    width: 100%;

    padding: 11px;

    border: 1px dashed var(--border-strong);

    border-radius: 10px;

    background: var(--surface-soft);

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

}


#f-file::file-selector-button {

    margin-inline-end: 10px;

    padding: 7px 14px;

    border: none;

    border-radius: 8px;

    background: var(--primary);

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;

}


.upload-hint {

    display: block;

    margin-top: 6px;

    font-size: 12px;

    color: var(--text-secondary);

}


.upload-preview img {

    max-width: 130px;

    margin-top: 12px;

    border-radius: 10px;

    border: 1px solid var(--border);

}


/* =========================
   PRODUCT CELL - STACKED
   Photo on top, text under it.
========================= */

.cell-product {

    flex-direction: column;

    gap: 8px;

    min-width: 140px;

}


.cell-thumb {

    width: 62px;

    height: 62px;

}


/* The page behind a modal stays put */

body.no-scroll {

    overflow: hidden;

}


/* =========================
   OVERVIEW - PLAIN
   Tables instead of decorated charts.
========================= */

#sales-chart .admin-table td,

#status-list .admin-table td {

    padding: 10px 12px;

}


#sales-chart .admin-table tbody tr:hover,

#status-list .admin-table tbody tr:hover {

    background: var(--surface-soft);

}


/* Finance tables read like a ledger */

#finance-breakdown td:last-child,

#finance-months td:last-child,

#finance-products td:last-child {

    font-variant-numeric: tabular-nums;

}


/* =========================
   SALES LOG
========================= */

.panel-note {

    font-size: 12px;

    color: var(--text-secondary);

}


.log-row {

    cursor: pointer;

}


.log-row:hover {

    background: var(--surface-soft);

}
