@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --sb-w: 272px;
    --bg: #f0f2f5;
    --surface: #ffffff;
    --text: #1a1d21;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --primary: #0f766e;
    --primary-dark: #0d9488;
    --primary-light: #ccfbf1;
    --primary-glow: rgba(15, 118, 110, 0.12);
    --violet: #7c3aed;
    --violet-light: #ede9fe;
    --amber: #d97706;
    --amber-light: #fef3c7;
    --rose: #e11d48;
    --rose-light: #ffe4e6;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

.admin-body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Fixed white sidebar (no scroll) ── */
.admin-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.admin-aside {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    width: var(--sb-w);
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.03);
}

.admin-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 16px 10px;
}

.admin-brand-link,
.admin-brand--login {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.admin-brand--login {
    margin-bottom: 20px;
    padding: 0;
}

.admin-brand-logo {
    display: block;
    height: 90px;
    width: auto;
    max-width: 340px;
    margin: -14px -20px;
    padding: 0;
    object-fit: contain;
}

.admin-brand-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.admin-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--primary) 0%, #14b8a6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.admin-brand-text {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.15;
}

.admin-brand-text span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
    margin-top: 3px;
}

.admin-nav-label {
    flex-shrink: 0;
    padding: 4px 22px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.admin-nav {
    flex: 1;
    min-height: 0;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--ease);
}

.admin-nav a i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--ease);
}

.admin-nav a:hover {
    color: var(--text);
    background: var(--border-light);
}

.admin-nav a:hover i {
    background: #e5e7eb;
}

.admin-nav a.active {
    color: var(--primary);
    background: var(--primary-glow);
}

.admin-nav a.active i {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
}

.admin-aside-foot {
    flex-shrink: 0;
    padding: 16px 14px 22px;
    border-top: 1px solid var(--border-light);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.admin-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #2dd4bf);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-user-info {
    min-width: 0;
}

.admin-user-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-info span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.admin-aside-actions {
    display: grid;
    gap: 6px;
}

.admin-aside-actions .btn-ghost {
    justify-content: flex-start;
    font-size: 12px;
    padding: 9px 12px;
}

/* ── Main ── */
.admin-main {
    margin-left: var(--sb-w);
    flex: 1;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.admin-top-left h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
}

.admin-top-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.admin-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.admin-breadcrumb i {
    font-size: 10px;
    opacity: 0.5;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.admin-flash {
    flex-shrink: 0;
    margin: 0 32px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.35s ease;
}

.admin-flash i {
    font-size: 18px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 32px 40px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.admin-content::-webkit-scrollbar {
    width: 7px;
}

.admin-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 99px;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

/* ── Stats (KPI cards) ── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
    align-items: stretch;
}

.admin-stats--dash {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stats--orders {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0;
}

.admin-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 132px;
    min-width: 0;
    box-shadow: var(--shadow);
    transition: box-shadow var(--ease), border-color var(--ease);
}

.admin-stat:hover {
    box-shadow: var(--shadow-md);
    border-color: #c5e8d4;
}

.admin-stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-stat-icon.teal {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-stat-icon.violet {
    background: var(--violet-light);
    color: var(--violet);
}

.admin-stat-icon.amber {
    background: var(--amber-light);
    color: var(--amber);
}

.admin-stat-icon.rose {
    background: var(--rose-light);
    color: var(--rose);
}

.admin-stat .label {
    display: block;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.admin-stat-value {
    display: block;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin: 0;
    word-break: break-word;
}

.admin-stat .sub {
    display: block;
    margin: 0;
    margin-top: auto;
    padding-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 1200px) {
    .admin-stats--dash {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stats--orders {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-stats--dash,
    .admin-stats--orders,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-stat {
        min-height: 0;
    }
}

/* ── Dashboard layout ── */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.admin-dashboard-main,
.admin-dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.admin-dashboard-side .admin-card {
    margin-bottom: 20px;
}

.admin-dashboard-side .admin-card:last-child {
    margin-bottom: 0;
}

.dash-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-quick-actions a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-light);
    transition: background var(--ease), border-color var(--ease);
}

.dash-quick-actions a:hover {
    background: var(--primary-light);
    border-color: #a7f3d0;
    color: var(--primary);
}

.dash-quick-actions a i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.dash-pill {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--amber);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.dash-status-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.dash-status-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--border-light);
    overflow: hidden;
}

.dash-status-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #2dd4bf);
    min-width: 4px;
}

.dash-muted-line {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.dash-health-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-health-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.dash-health-list li > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.dash-health-list li > div {
    flex: 1;
    min-width: 0;
}

.dash-health-list strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

.dash-health-list span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.dash-health-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.dash-health-link:hover {
    text-decoration: underline;
}

.dash-top-products {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-top-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}

.dash-top-product:last-child {
    border-bottom: none;
}

.dash-top-rank {
    width: 26px;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-align: center;
    flex-shrink: 0;
}

.dash-top-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dash-top-thumb i {
    color: var(--muted);
    font-size: 18px;
}

.dash-top-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-top-info a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-top-info a:hover {
    color: var(--primary);
}

.dash-top-info .muted {
    font-size: 12px;
}

.admin-empty .btn {
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-side {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .admin-dashboard-side .admin-card {
        margin-bottom: 0;
    }
}

/* Legacy stat markup (if used elsewhere) */
.admin-stat-body span.label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-stat-body strong {
    display: block;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 4px;
    color: var(--text);
    line-height: 1.15;
}

.admin-stat-body .sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.45;
}

/* ── Cards ── */
.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.admin-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.admin-card-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.admin-card-body {
    padding: 0;
}

.admin-card-body.padded {
    padding: 24px;
}

.admin-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}

.admin-empty i {
    font-size: 40px;
    opacity: 0.35;
    display: block;
    margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ease);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.btn-ghost:hover {
    background: var(--border-light);
    border-color: #d1d5db;
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

.btn-danger {
    background: var(--rose);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.btn-danger:hover {
    background: #be123c;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
}

/* ── Tables ── */
.admin-table-wrap {
    overflow-x: auto;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table th {
    background: #fafafa;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.admin-table tbody tr {
    transition: background var(--ease);
}

.admin-table tbody tr:hover td {
    background: #fafbfc;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table .cell-primary {
    font-weight: 700;
    color: var(--text);
}

.admin-table .cell-id {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-row-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-row-actions form {
    display: inline-flex;
    margin: 0;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.product-cell-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-cell-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-cell-thumb--empty {
    color: var(--muted);
    font-size: 16px;
}

.product-view-body {
    padding: 24px !important;
}

.product-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.product-view-main {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-view-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-view-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-view-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--surface);
    padding: 4px;
}

.product-view-empty {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

.product-view-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px 24px;
    margin: 0 0 24px;
}

.product-view-meta > div {
    margin: 0;
}

.product-view-meta dt {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 4px;
}

.product-view-meta dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.product-view-desc h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
}

.product-view-desc p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 900px) {
    .product-view-grid {
        grid-template-columns: 1fr;
    }
}

/* ── List filters ── */
.admin-filters {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #f8fafc;
}

.admin-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px 16px;
    margin-bottom: 12px;
}

.admin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.admin-filter-field span {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-filter-input,
.admin-filters .admin-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
}

.admin-filter-input:focus,
.admin-filters .admin-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.admin-filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-list-meta {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
}

.admin-list-meta-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.admin-list-meta-count strong {
    color: var(--text);
}

.admin-table--orders td {
    vertical-align: top;
}

.admin-row-actions--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.order-inline-status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.admin-select--sm {
    min-width: 120px;
    padding: 6px 10px;
    font-size: 12px;
}

/* ── Pagination ── */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: #fafafa;
}

.admin-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--ease), border-color var(--ease);
}

.admin-pagination-btn:hover:not(.is-disabled) {
    background: var(--primary-light);
    border-color: #a7f3d0;
    color: var(--primary);
}

.admin-pagination-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-pagination-info {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.admin-pagination-info .muted {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 2px;
}

@media (max-width: 640px) {
    .admin-pagination {
        flex-direction: column;
    }

    .admin-pagination-info {
        order: -1;
    }
}

/* ── Orders hub ── */
.orders-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.orders-card .admin-card-body {
    padding: 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
}

.order-row-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--ease);
}

.order-row-card:hover {
    background: #fafbfc;
}

.order-row-card:last-child {
    border-bottom: none;
}

.order-row-main {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.2fr) minmax(180px, 1fr) minmax(100px, auto) auto;
    gap: 20px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.order-row-no {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.order-row-date {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.order-row-customer strong {
    display: block;
    font-size: 14px;
}

.order-row-customer span {
    font-size: 12px;
    color: var(--muted);
}

.order-row-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.order-row-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.order-row-total strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.order-row-total span {
    font-size: 11px;
    color: var(--muted);
}

.order-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-row-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.order-row-status-form .admin-select {
    min-width: 130px;
}

/* Order detail view */
.order-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.order-view-head {
    align-items: flex-start !important;
}

.order-view-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 4px;
}

.status-badge--lg {
    font-size: 12px;
    padding: 6px 14px;
}

.order-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    border-radius: var(--radius-sm);
    border: 1px solid #ccfbf1;
    overflow-x: auto;
}

.order-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 72px;
    flex-shrink: 0;
}

.order-timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--muted);
    transition: all var(--ease);
}

.order-timeline-step.is-done .order-timeline-icon,
.order-timeline-step.is-active .order-timeline-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.order-timeline-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}

.order-timeline-step.is-active .order-timeline-label {
    color: var(--primary);
}

.order-timeline-line {
    flex: 1;
    min-width: 24px;
    height: 3px;
    background: var(--border);
    margin: 0 4px 20px;
    border-radius: 999px;
}

.order-timeline-line.is-done {
    background: var(--primary);
}

.order-cancelled-banner {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--rose-light);
    color: var(--rose);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-items-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.order-items-table th,
.order-items-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.order-items-table th {
    background: #fafafa;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.order-item-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item-cell img,
.order-item-thumb-empty {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.order-item-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.order-item-cell .muted {
    display: block;
    font-size: 11px;
}

.order-totals {
    max-width: 280px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-totals > div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.order-totals > div strong {
    color: var(--text);
}

.order-totals-grand {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 2px solid var(--primary-light);
    font-size: 15px !important;
}

.order-totals-grand strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary) !important;
}

.order-address-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.order-address-name {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--text) !important;
}

.order-meta-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-meta-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.order-meta-list span {
    color: var(--muted);
    font-weight: 600;
}

.order-invoice-btn {
    width: 100%;
    justify-content: center;
}

.order-status-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .order-row-main {
        grid-template-columns: 1fr 1fr;
    }

    .order-view-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .order-row-card {
        flex-direction: column;
        align-items: stretch;
    }

    .order-row-main {
        grid-template-columns: 1fr;
    }

    .order-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .order-row-status-form {
        flex-wrap: wrap;
    }
}

/* ── Badges & status ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-ok {
    background: #ecfdf5;
    color: #047857;
}

.badge-off {
    background: var(--rose-light);
    color: var(--rose);
}

.status-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.status-processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-packed {
    background: #fef3c7;
    color: #b45309;
}

.status-shipped {
    background: #ede9fe;
    color: #6d28d9;
}

.status-delivered {
    background: #ecfdf5;
    color: #047857;
}

.status-cancelled {
    background: var(--rose-light);
    color: var(--rose);
}

.status-default {
    background: var(--border-light);
    color: var(--muted);
}

/* ── Forms ── */
.form-section {
    margin-bottom: 28px;
}

.form-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.form-grid {
    display: grid;
    gap: 18px;
    max-width: 680px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.form-grid label span.hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-grid textarea {
    min-height: 88px;
    resize: vertical;
}

.form-grid input[type="file"] {
    padding: 10px 12px;
    cursor: pointer;
}

.product-image-preview {
    margin-top: 4px;
}

.product-image-preview img {
    display: block;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-check {
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.admin-select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    min-width: 150px;
}

.admin-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.order-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-form {
    display: inline;
}

/* ── Categories ── */
.category-add-form {
    max-width: 560px;
}

.category-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-picker > label:first-child {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.category-select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
}

.category-picker-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.category-picker-hint a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.category-picker-hint a:hover {
    text-decoration: underline;
}

.field-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.admin-select-full {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 14px;
}

/* Searchable category dropdown */
.search-select {
    position: relative;
}

.search-select-control {
    position: relative;
}

.search-select-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.search-select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 14px;
}

.search-select.is-open .search-select-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.search-select-dropdown {
    display: none;
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.search-select.is-open .search-select-dropdown {
    display: block;
}

.search-select-dropdown li {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.search-select-dropdown li:hover,
.search-select-dropdown li.is-active {
    background: var(--primary-light);
    color: var(--primary);
}

.search-select-dropdown li.is-selected {
    font-weight: 700;
}

.search-select-dropdown li[hidden] {
    display: none;
}

/* Product image manager */
.product-images-manager {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-images-hint {
    margin: 0;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.product-image-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg);
}

.product-image-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border-light);
}

.product-image-main-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.product-image-main-label input {
    accent-color: var(--primary);
}

.product-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background var(--ease);
}

.product-image-remove:hover {
    background: var(--rose);
}

.product-images-upload {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    cursor: pointer;
    width: fit-content;
}

.product-images-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.product-images-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--primary);
    background: #f0fdfa;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: background var(--ease);
}

.product-images-upload:hover .product-images-upload-btn {
    background: var(--primary-light);
}

.category-new-box {
    margin-top: 8px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px dashed #a7f3d0;
    background: #f0fdfa;
}

.category-new-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-new-note {
    margin: 12px 0 0;
    font-size: 12px;
}

.cat-thumb-preview {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cat-thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-thumb-empty {
    color: var(--muted);
    font-size: 12px;
}

.cat-inline-file {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.cat-inline-file input[type="file"] {
    max-width: 160px;
    font-size: 11px;
    padding: 4px;
}

.cat-edit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cat-inline-input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    min-width: 120px;
}

.cat-inline-sort {
    width: 72px;
    min-width: 72px;
}

.cat-edit-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

/* ── Login ── */
.login-page {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-visual {
    background: linear-gradient(160deg, #0f766e 0%, #134e4a 50%, #042f2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-visual::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -100px;
    right: -100px;
}

.login-visual::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -80px;
    left: -60px;
}

.login-visual-inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.login-visual h2 {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.login-visual p {
    margin: 0;
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.6;
}

.login-visual-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-visual-features > div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.login-visual-features i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card .admin-brand-text span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-card .muted {
    margin-bottom: 28px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.login-form input {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.login-form .btn {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
}

.login-warn {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--amber-light);
    border: 1px solid #fcd34d;
    font-size: 12px;
    color: #92400e;
    line-height: 1.55;
}

.login-warn code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.login-back:hover {
    text-decoration: underline;
}

.alert-error {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--rose-light);
    border: 1px solid #fda4af;
    color: var(--rose);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.alert-success {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

@media (max-width: 960px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
    }
}

@media (max-width: 900px) {
    :root {
        --sb-w: 0px;
    }

    .admin-aside {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px 16px;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .admin-brand {
        padding: 0;
        flex: 1;
    }

    .admin-brand-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .admin-nav-label,
    .admin-user {
        display: none;
    }

    .admin-nav {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        order: 3;
        padding: 0;
        gap: 4px;
    }

    .admin-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .admin-nav a i {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .admin-aside-foot {
        border: none;
        padding: 0;
        order: 2;
        width: auto;
    }

    .admin-aside-actions {
        display: flex;
        flex-direction: row;
        gap: 4px;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-shell {
        padding-top: 130px;
    }

    .admin-top {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-flash {
        margin: 0 20px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 640px) {
    .admin-shell {
        padding-top: 160px;
    }
}
