:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #edf2f7;
    --text: #132238;
    --muted: #607086;
    --primary: #174a7e;
    --accent: #ef7d32;
    --success: #147d64;
    --warning: #c98a06;
    --danger: #c84b4b;
    --shadow: 0 18px 50px rgba(19, 34, 56, 0.08);
    --radius: 24px;
    --role-start: #102a43;
    --role-end: #174a7e;
    --role-accent: #ef7d32;
    --role-glow-accent: rgba(239, 125, 50, 0.12);
    --role-glow-end: rgba(23, 74, 126, 0.12);
}

html[data-theme="dark"] {
    --bg: #0f1722;
    --surface: #162131;
    --surface-muted: #1f2d40;
    --text: #f8fafc;
    --muted: #9fb1c6;
    --primary: #7cc0ff;
    --accent: #ffb259;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

body.role-admin,
body.role-super-admin {
    --role-start: #102a43;
    --role-end: #174a7e;
    --role-accent: #ef7d32;
    --role-glow-accent: rgba(239, 125, 50, 0.12);
    --role-glow-end: rgba(23, 74, 126, 0.12);
}

body.role-kitchen {
    --role-start: #35160c;
    --role-end: #9b491b;
    --role-accent: #ffb259;
    --role-glow-accent: rgba(255, 178, 89, 0.16);
    --role-glow-end: rgba(155, 73, 27, 0.16);
}

body.role-cashier {
    --role-start: #113937;
    --role-end: #136f63;
    --role-accent: #8ce1d5;
    --role-glow-accent: rgba(140, 225, 213, 0.16);
    --role-glow-end: rgba(19, 111, 99, 0.16);
}

body.role-waiter {
    --role-start: #2c1a43;
    --role-end: #6d35a0;
    --role-accent: #d8b4ff;
    --role-glow-accent: rgba(216, 180, 255, 0.16);
    --role-glow-end: rgba(109, 53, 160, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, var(--role-glow-accent), transparent 26%),
                radial-gradient(circle at top right, var(--role-glow-end), transparent 24%),
                var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
}

.surface-card,
.metric-card,
.auth-card,
.tracking-card,
.table-card,
.kds-card,
.receipt-card,
.food-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.auth-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #0f2741 0%, #174a7e 42%, #ef7d32 100%);
    opacity: 0.95;
}

.auth-wrapper {
    position: relative;
    width: min(540px, calc(100vw - 2rem));
    z-index: 2;
}

.auth-card {
    padding: 2rem;
}

.login-credentials {
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--muted);
}

.minimal-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.minimal-card {
    width: min(620px, 100%);
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, var(--role-start), var(--role-end));
    color: #f6fbff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark,
.receipt-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(145deg, var(--role-accent), #ffdfaa);
    color: #14263b;
}

.brand-mark.has-image,
.receipt-logo.has-image {
    background: #fff;
    padding: 0.2rem;
    overflow: hidden;
}

.brand-mark.has-image img,
.receipt-logo.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 0.5rem;
}

.sidebar-link {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    color: rgba(246, 251, 255, 0.82);
    transition: 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.dashboard-main {
    padding: 1.5rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-toggle {
    position: relative;
    border: 0;
    background: var(--surface);
    color: var(--text);
    padding: 0.8rem 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    font-weight: 700;
    /* min-width: 132px; */
}

.notification-toggle.active {
    outline: 2px solid var(--role-accent);
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
}

.notification-panel {
    position: fixed;
    top: 100px;
    right: 28px;
    width: min(380px, calc(100vw - 2rem));
    max-height: min(70vh, 620px);
    overflow: hidden;
    background: var(--surface);
    border-radius: 26px;
    box-shadow: var(--shadow);
    z-index: 1050;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.notification-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.notification-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(96, 112, 134, 0.14);
}

.queue-pill {
    background: var(--surface-muted);
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.notification-list {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.2rem 1.2rem;
    max-height: 500px;
    overflow: auto;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    background: var(--surface-muted);
    border-radius: 18px;
}

.notification-item p,
.notification-item small {
    margin: 0;
    color: var(--muted);
}

.notification-amount {
    margin-top: 0.55rem;
    font-weight: 700;
}

.notification-empty {
    padding: 1rem;
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--muted);
}

.page-body {
    display: grid;
    gap: 1.5rem;
}

.workspace-banner {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--role-start), var(--role-end) 72%, var(--role-accent));
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.workspace-banner.compact {
    padding: 1.2rem 1.35rem;
}

.workspace-banner .text-muted {
    color: rgba(255, 255, 255, 0.74) !important;
}

.workspace-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.workspace-banner-meta div {
    min-width: 130px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
}

.workspace-banner-meta span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}

.workspace-banner-meta strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.25rem;
}

.order-modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
}

.order-modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.order-meta-grid div {
    padding: 0.8rem 0.9rem;
    background: var(--surface-muted);
    border-radius: 16px;
}

.order-meta-grid span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.order-meta-grid strong {
    display: block;
    margin-top: 0.35rem;
}

.order-line-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(96, 112, 134, 0.14);
}

.order-line-item:last-child {
    border-bottom: 0;
}

.order-note-block {
    border-top: 0;
}

.order-summary-block {
    padding: 0.95rem 1rem;
    background: var(--surface-muted);
    border-radius: 18px;
}

.item-summary {
    color: var(--text);
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1.25rem;
    display: grid;
    gap: 0.35rem;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.metric-card strong {
    font-size: 1.5rem;
}

.surface-card {
    padding: 1.5rem;
    border-top: 4px solid var(--role-accent);
}

.list-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(96, 112, 134, 0.14);
}

.list-row:last-child {
    border-bottom: 0;
}

.module-stack,
.form-stack,
.cart-items {
    display: grid;
    gap: 1rem;
}

.module-chip,
.summary-chip {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--surface-muted);
}

.search-input {
    max-width: 340px;
}

.customer-app {
    width: min(450px, calc(100vw - 1.25rem));
    margin: 1rem auto 7rem;
    padding: 0.9rem;
    display: grid;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(23, 74, 126, 0.08);
    border-radius: 36px;
    box-shadow: 0 24px 80px rgba(19, 34, 56, 0.16);
    position: relative;
}

.customer-hero {
    border-radius: 28px;
    padding: 1.2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    background: linear-gradient(145deg, #102a43, #174a7e 52%, #ef7d32 100%);
    overflow: hidden;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-pill {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: 0.75rem;
}

.customer-toolbar {
    display: grid;
    gap: 0.85rem;
    position: sticky;
    top: 0.7rem;
    z-index: 30;
    padding: 0.95rem;
    border-radius: 26px;
    background: rgba(245, 247, 251, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 32px rgba(19, 34, 56, 0.1);
}

.category-pills {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    border: 0;
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 0.68rem 0.95rem;
    box-shadow: 0 10px 24px rgba(19, 34, 56, 0.08);
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.82rem;
}

.category-pill.active {
    background: linear-gradient(135deg, #102a43, #174a7e);
    color: #fff;
}

.menu-grid {
    display: grid;
    gap: 1.1rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.food-card {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(19, 34, 56, 0.09);
    border: 1px solid rgba(19, 34, 56, 0.04);
}

.food-image {
    height: 124px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.food-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 42, 67, 0.04), rgba(16, 42, 67, 0.36));
}

.food-image-chip {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #102a43;
    font-size: 0.72rem;
    font-weight: 700;
}

.food-body {
    padding: 0.85rem;
}

.food-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
    gap: 0.5rem;
}

.food-body h3 {
    font-size: 0.98rem;
    line-height: 1.32;
    margin-bottom: 0.35rem;
}

.food-body p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-type,
.favorite-btn,
.badge {
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.food-type.veg {
    background: rgba(20, 125, 100, 0.16);
    color: #0f6b56;
}

.food-type.non_veg,
.food-type.egg {
    background: rgba(200, 75, 75, 0.16);
    color: #9f3232;
}

.favorite-btn {
    border: 0;
    background: var(--surface-muted);
}

.food-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    gap: 0.5rem;
}

.food-price-row strong {
    font-size: 0.98rem;
}

.food-price-row small {
    font-size: 0.72rem;
}

.favorite-btn.active {
    background: rgba(239, 125, 50, 0.2);
    color: #b35a15;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.card-tags span {
    padding: 0.28rem 0.52rem;
    background: var(--surface-muted);
    border-radius: 999px;
    font-size: 0.68rem;
}

.cart-line-extended {
    align-items: flex-start;
}

.cart-line-extended .cart-actions {
    margin-top: 0.15rem;
}

.cart-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-muted);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(96, 112, 134, 0.16);
}

.cart-note-input {
    border-radius: 14px;
}

.customer-checkout-trigger {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(430px, calc(100vw - 1.25rem));
    z-index: 1040;
}

.checkout-trigger {
    width: 100%;
    border: 0;
    border-radius: 26px;
    padding: 0.95rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #102a43, #174a7e 58%, #ef7d32);
    color: #fff;
    box-shadow: 0 18px 38px rgba(16, 42, 67, 0.26);
}

.checkout-trigger-meta {
    display: grid;
    gap: 0.15rem;
    text-align: left;
}

.checkout-trigger-meta strong {
    font-size: 0.95rem;
}

.checkout-pill {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
}

.checkout-trigger-total {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.checkout-modal-dialog {
    max-width: 430px;
}

.checkout-sheet .modal-body {
    padding-top: 0;
}

.checkout-sheet .cart-items {
    /* max-height: 30vh; */
    /* overflow: auto; */
    padding-right: 0.2rem;
    display: block;
}

.checkout-sheet .form-control,
.checkout-sheet .form-select,
.customer-toolbar .form-control {
    border-radius: 18px;
    border: 1px solid rgba(19, 34, 56, 0.08);
    padding: 0.9rem 1rem;
    box-shadow: none;
}

.cart-header,
.order-summary > div,
.cart-row,
.tracking-head,
.tracking-summary,
.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.cart-row strong{
    font-size:0.8rem;
    line-height:1.2;
}
.cart-row .small{
       font-size: 0.6rem;
    line-height: 1;
}
.cart-row textarea{
    height: 20px;
        padding: 1px 2px !important;
}
.order-summary {
    margin: 1.2rem 0;
    display: grid;
    gap: 0.7rem;
}

.order-summary .grand {
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(96, 112, 134, 0.25);
}

.cart-note {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

.payment-options {
    display: grid;
    gap: 0.5rem;
}

.payment-options label {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--surface-muted);
    border-radius: 16px;
}

.tracking-page {
    padding: 1.25rem;
}

.tracking-card {
       max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

.tracking-summary {
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}

.progress-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.progress-step {
    padding: 1rem;
    border-radius: 18px;
    background: var(--surface-muted);
    text-align: center;
}

.progress-step.done {
    background: rgba(20, 125, 100, 0.14);
}

.progress-step span {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto 0.6rem;
    border-radius: 999px;
    background: var(--muted);
}

.progress-step.done span {
    background: var(--success);
}

.timeline-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(96, 112, 134, 0.14);
}

.timeline-item:last-child {
    border-bottom: 0;
}

.kitchen-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.kds-card {
    padding: 1.3rem;
}

.kds-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-card,
.table-service-card {
    padding: 1rem;
    display: grid;
    gap: 1rem;
    background: var(--surface-muted);
    border-radius: 20px;
}

.qr-box {
    display: grid;
    place-items: center;
    min-height: 120px;
    background: #fff;
    border-radius: 18px;
}

.table-service-grid {
    display: grid;
    gap: 0.9rem;
}

.rating-btn {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 0;
    background: var(--surface-muted);
    font-weight: 700;
}

.rating-btn.active {
    background: var(--accent);
    color: #fff;
}

.receipt-shell {
    background: #f4f4f4;
    padding: 1rem;
}

.receipt-card {
    width: min(380px, 100%);
    margin: 0 auto;
    padding: 1rem;
}

.receipt-logo {
    margin: 0 auto 0.75rem;
}

.receipt-center {
    text-align: center;
}

.receipt-meta,
.receipt-totals {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.receipt-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ccc;
    text-align: left;
    font-size: 0.92rem;
}

.toast-host {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.75rem;
    z-index: 1080;
}

.app-toast {
    background: var(--surface);
    color: var(--text);
    padding: 0.9rem 1rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.soft-primary { background: rgba(23, 74, 126, 0.14); color: #174a7e; }
.soft-info { background: rgba(30, 136, 229, 0.14); color: #1666ad; }
.soft-warning { background: rgba(201, 138, 6, 0.14); color: #976703; }
.soft-success { background: rgba(20, 125, 100, 0.14); color: #0f6b56; }
.soft-secondary { background: rgba(96, 112, 134, 0.16); color: #4d5c6d; }
.soft-danger { background: rgba(200, 75, 75, 0.14); color: #9f3232; }

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

    .sidebar {
        padding-bottom: 1rem;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-panel {
        right: 16px;
        top: 88px;
    }

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

@media (max-width: 768px) {
    .dashboard-main,
    .tracking-page,
    .customer-app {
        padding: 0.5rem;
    }
    .customer-hero,
    .tracking-head,
    .tracking-summary,
    .workspace-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .notification-toggle {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .customer-app {
        width: 100%;
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .customer-checkout-trigger {
        width: calc(100vw - 1rem);
        bottom: 0.5rem;
    }

    .checkout-modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    .item-grid {
        gap: 0.7rem;
    }

    .food-image {
        height: 112px;
    }

    .workspace-banner-meta div {
        min-width: 110px;
    }
}

body.customer-shell {
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.customer-app-shell {
    position: relative;
    min-height: 100vh;
}

.customer-menu-panel {
    display: grid;
    gap: 1rem;
}

.customer-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(450px, 100vw);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0.55rem 0.7rem calc(0.7rem + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(23, 74, 126, 0.1);
    box-shadow: 0 -12px 40px rgba(19, 34, 56, 0.12);
    z-index: 1050;
}

html[data-theme="dark"] .customer-bottom-nav {
    background: rgba(22, 33, 49, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
}

.customer-bottom-nav .nav-tab {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: grid;
    justify-items: center;
    gap: 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.35rem 0.2rem;
    border-radius: 16px;
}

.customer-bottom-nav .nav-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #102a43, #174a7e);
}

.nav-tab-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(23, 74, 126, 0.1);
    line-height: 1;
}

.customer-bottom-nav .nav-tab.active .nav-tab-icon {
    background: rgba(255, 255, 255, 0.2);
}

.nav-tab-badge {
    position: absolute;
    margin-top: -0.15rem;
    margin-left: 1.35rem;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    display: inline-grid;
    place-items: center;
}

.customer-bottom-nav .nav-tab {
    position: relative;
}

.customer-checkout-trigger.with-bottom-nav {
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0));
}

.customer-app-shell {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0));
}

.customer-app-shell .customer-app {
    margin-bottom: 0;
}

.favorites-empty {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 24px;
    background: var(--surface-muted);
}

@media (max-width: 520px) {
    .customer-bottom-nav {
        width: 100%;
        left: 0;
        transform: none;
    }
}

/* QR Menu — reference mobile layout */
.qr-menu-screen {
    --qr-bg: #f5f2f0;
    --qr-accent: #a36a63;
    --qr-accent-dark: #8b564f;
    --qr-text: #1f1f1f;
    --qr-muted: #6f6a67;
    --qr-card: #ffffff;
    --qr-radius: 16px;
}

body.customer-shell.qr-menu-screen,
body.customer-shell:has(.qr-menu-screen) {
    background: var(--qr-bg);
}

.qr-menu-screen.customer-app-shell {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
    min-height: 100vh;
}

.qr-menu-app {
    /* padding: 0.85rem 1rem 1rem; */
    padding: 0;
}

.qr-menu-header {
    padding: 0rem 1rem 1rem;
}

.qr-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.qr-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 31, 31, 0.08);
    flex-shrink: 0;
}

.qr-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-brand-copy {
    min-width: 0;
}

.qr-brand-name {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--qr-text);
}

.qr-menu-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-round-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--qr-card);
    color: var(--qr-text);
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(31, 31, 31, 0.06);
}
.disabled{
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
.qr-lang-btn {
    width: auto;
    min-width: 42px;
    padding: 0 0.55rem;
    gap: 0.2rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.qr-fav-btn {
    background: var(--qr-accent);
    color: #fff;
    position: relative;
}

.qr-fav-btn.active {
    background: var(--qr-accent-dark);
    box-shadow: 0 0 0 3px rgba(163, 106, 99, 0.25);
}

.qr-fav-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 0.25rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #ffffff;
    color: var(--qr-accent-dark);
    font-size: 0.64rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(31, 31, 31, 0.18);
}

.qr-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--qr-card);
    border-radius: 999px;
    padding: 0 0.95rem;
    min-height: 42px;
    box-shadow: 0 4px 14px rgba(31, 31, 31, 0.06);
}

.qr-search-field input {
    border: 0;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: var(--qr-text);
    outline: none;
}

.qr-search-field input::placeholder {
    color: #a39e9b;
}

.qr-search-icon {
    color: var(--qr-muted);
    flex-shrink: 0;
}

.qr-menu-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--qr-muted);
}

.qr-table-tag {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(163, 106, 99, 0.12);
    color: var(--qr-accent-dark);
    font-weight: 700;
    font-size: 0.72rem;
}

.qr-category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
        position: sticky;
    top: 0;
    z-index: 9;
    background: #f3f0ee;
    padding: 7px;
}

.qr-category-tabs::-webkit-scrollbar {
    display: none;
}

.qr-category-tab {
    border: 1px solid rgba(31, 31, 31, 0.08);
    background: var(--qr-card);
    color: var(--qr-text);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.qr-category-tab.active {
    background: var(--qr-accent);
    border-color: var(--qr-accent);
    color: #fff;
}

.qr-menu-scroll {
    padding: 0rem 1rem 0.5rem;
}

.qr-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--qr-text);
    margin: 0 0 0.85rem;
    letter-spacing: -0.02em;
}

.qr-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.qr-section-subtitle {
    color: var(--qr-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.qr-item-list {
    display: grid;
    gap: 0.75rem;
}

.qr-menu-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 0.75rem;
    align-items: stretch;
    background: var(--qr-card);
    border-radius: var(--qr-radius);
    padding: 0.85rem;
    box-shadow: 0 8px 24px rgba(31, 31, 31, 0.06);
    border: 1px solid rgba(31, 31, 31, 0.04);
    overflow: hidden;
}

.qr-menu-card.is-sold-out {
    opacity: 0.65;
}

.qr-menu-card.favorite-pulse {
    animation: qrPulse 0.4s ease;
}

@keyframes qrPulse {
    0% { box-shadow: 0 0 0 0 rgba(163, 106, 99, 0.35); }
    100% { box-shadow: 0 0 0 12px rgba(163, 106, 99, 0); }
}

.qr-menu-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-right: 0.5rem;
}

.qr-menu-card-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: var(--qr-text);
}

.qr-menu-card-price {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--qr-text);
}

.qr-menu-card-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--qr-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qr-menu-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.15rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(163, 106, 99, 0.12);
    color: var(--qr-accent-dark);
    font-size: 0.68rem;
    font-weight: 700;
}

.qr-category-chip {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.2rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: rgba(31, 31, 31, 0.06);
    color: var(--qr-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.qr-menu-card-thumb {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #ece7e4;
}

.favorite-btn {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--qr-accent-dark);
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(31, 31, 31, 0.12);
    z-index: 4;
}

.favorite-btn.active {
    background: var(--qr-accent);
    color: #fff;
}

.favorite-btn span {
    display: inline-block;
    transform: translateY(-0.5px);
}

.qr-menu-card-hit {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.qr-cart-bar {
    position: fixed;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    transform: translateX(-50%);
    width: min(440px, calc(100vw - 1.5rem));
    border: 0;
    border-radius: 999px;
    background: var(--qr-accent);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 12px 32px rgba(163, 106, 99, 0.35);
    z-index: 1040;
    opacity: 0.92;
}

.qr-cart-bar.has-items {
    opacity: 1;
}

.qr-cart-bar-count {
    font-size: 0.72rem;
    opacity: 0.9;
}

.qr-cart-bar-label {
    flex: 1;
    text-align: left;
    font-weight: 700;
    font-size: 0.92rem;
}

.qr-cart-bar-total {
    font-size: 1rem;
    white-space: nowrap;
}

.qr-btn-primary {
    background: var(--qr-accent);
    border-color: var(--qr-accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
}

.qr-btn-primary:hover,
.qr-btn-primary:focus {
    background: var(--qr-accent-dark);
    border-color: var(--qr-accent-dark);
    color: #fff;
}

.qr-modal-content {
    border-radius: 20px;
    border: 0;
}

.qr-modal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--qr-accent);
    margin-bottom: 0.2rem;
}

.qr-composer-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.qr-composer-meta div {
    background: var(--qr-bg);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
}

.qr-composer-meta span {
    display: block;
    font-size: 0.72rem;
    color: var(--qr-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.qr-menu-screen .favorites-empty {
    background: var(--qr-card);
    border-radius: var(--qr-radius);
    color: var(--qr-muted);
    display: grid;
    gap: 0.3rem;
    border: 1px dashed rgba(163, 106, 99, 0.26);
}

@media (max-width: 520px) {
    .qr-menu-screen.customer-app-shell {
        max-width: 100%;
    }

    .qr-cart-bar {
        width: calc(100vw - 1.25rem);
        left: 50%;
    }
}

/* —— Admin workspace refresh —— */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 42, 67, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1040;
}

body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 1060;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 2px;
}

.topbar-title-wrap {
    flex: 1;
    min-width: 0;
}

.admin-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-end;
    padding: 1.35rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--role-start), var(--role-end) 70%, var(--role-accent));
    color: #fff;
    box-shadow: var(--shadow);
}

.admin-page-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.admin-page-subtitle {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    max-width: 42rem;
}

.admin-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-meta-pill {
    min-width: 100px;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.admin-meta-pill span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.admin-meta-pill strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.15rem;
}

.admin-panel {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(19, 34, 56, 0.06);
    height: 100%;
}

.admin-panel-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.admin-panel-head .admin-panel-title {
    margin-bottom: 0;
}

.admin-form-stack {
    display: grid;
    gap: 0.85rem;
}

.admin-form-stack .form-control,
.admin-form-stack .form-select,
.admin-search {
    border-radius: 12px;
    border-color: rgba(19, 34, 56, 0.1);
    padding: 0.65rem 0.85rem;
}

.admin-search {
    max-width: 220px;
}

.admin-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-bottom-width: 1px;
    white-space: nowrap;
}

.admin-table tbody td {
    vertical-align: middle;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.btn-admin-primary {
    background: linear-gradient(135deg, var(--role-start), var(--role-end));
    border: 0;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.6rem 1rem;
}

.btn-admin-primary:hover,
.btn-admin-primary:focus {
    color: #fff;
    filter: brightness(1.06);
}

.admin-modal {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

.coupon-code-tag {
    font-family: ui-monospace, Consolas, monospace;
    letter-spacing: 0.04em;
}

.coupon-hint {
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.coupon-hint.valid {
    color: var(--success);
}

.coupon-hint.invalid {
    color: var(--danger);
}

.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-muted);
    font-size: 0.85rem;
}

.super-plan-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.super-plan-feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 45, 74, 0.08);
    color: #0f2d4a;
    font-size: 0.78rem;
    font-weight: 600;
}

.super-hierarchy-list {
    display: grid;
    gap: 1rem;
}

.super-hierarchy-card {
    border: 1px solid rgba(19, 34, 56, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.super-hierarchy-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    padding: 1rem 1rem 0;
}

.super-hierarchy-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.super-hierarchy-toggle::after {
    content: "\F282";
    font-family: bootstrap-icons;
    font-size: 1rem;
    color: #5b6b82;
    transition: transform 0.2s ease;
}

.super-hierarchy-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.super-hierarchy-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.super-hierarchy-icon,
.super-branch-connector {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(15, 45, 74, 0.12), rgba(15, 45, 74, 0.04));
    color: #0f2d4a;
    flex-shrink: 0;
}

.super-hierarchy-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    padding-right: 0.25rem;
}

.super-hierarchy-summary,
.super-branch-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(19, 34, 56, 0.06);
    color: #42526b;
    font-size: 0.78rem;
    font-weight: 600;
}

.super-hierarchy-actions,
.super-branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: flex-start;
    justify-content: flex-end;
}

.super-hierarchy-body {
    padding: 0.95rem 1rem 1rem;
}

.super-hierarchy-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.super-hierarchy-overview > div {
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    background: rgba(19, 34, 56, 0.05);
}

.super-hierarchy-overview span {
    display: block;
    margin-bottom: 0.28rem;
    color: #6b7280;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.super-hierarchy-overview strong {
    font-size: 0.96rem;
    color: #132238;
}

.super-branch-list {
    display: grid;
    gap: 0.75rem;
}

.super-branch-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(243, 247, 251, 0.92));
    border: 1px solid rgba(19, 34, 56, 0.08);
}

.super-branch-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.super-branch-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.super-hierarchy-empty {
    padding: 1rem;
    border-radius: 0.95rem;
    background: rgba(19, 34, 56, 0.04);
    color: #667085;
    text-align: center;
}

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

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 88vw);
        z-index: 1065;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .notification-panel {
        right: 12px;
        left: 12px;
        width: auto;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search {
        max-width: 100%;
        width: 100%;
    }

    .admin-row-actions {
        justify-content: flex-start;
    }

    .super-hierarchy-head,
    .super-branch-item {
        grid-template-columns: 1fr;
    }

    .super-hierarchy-meta,
    .super-hierarchy-actions,
    .super-branch-metrics,
    .super-branch-actions {
        justify-content: flex-start;
    }

    .super-hierarchy-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dashboard-main {
        padding: 0.85rem;
    }

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

    .admin-table {
        font-size: 0.88rem;
    }

    .super-hierarchy-overview {
        grid-template-columns: 1fr;
    }
}
