﻿
:root {
    --pos-primary: #57663F;
    --pos-primary-rgb: 87, 102, 63;
    --pos-primary-light: #E9EDE3;
    --pos-success: #57663F;
    --pos-success-rgb: 16, 185, 129;
    --pos-success-light: #E9EDE3;
    --pos-success-text: #3F4A2E;
    --pos-warning: #E0A24A;
    --pos-warning-rgb: 224, 162, 74;
    --pos-warning-light: #F5E6CE;
    --pos-warning-text: #8A5A16;
    --pos-danger: #ef4444;
    --pos-danger-rgb: 239, 68, 68;
    --pos-danger-light: #FEE2E2;
    --pos-danger-text: #991B1B;
    --pos-info: #57663F;
    --pos-info-rgb: 87, 102, 63;
    --pos-info-light: #E9EDE3;
    --pos-dark: #211A15;
    --pos-dark-rgb: 33, 26, 21;
    --pos-gray: #94A3B8;
    --pos-gray-dark: #64748B;
    --pos-light: #FFFDF9;
    --pos-sidebar-bg: #FFFFFF;
    --pos-sidebar-hover: #EFE5D7;
    --pos-sidebar-active: #E9EDE3;
    --pos-sidebar-width: 264px;
    --pos-header-height: 56px;
    --pos-radius: 14px;
    --pos-radius-sm: 10px;
    --pos-radius-pill: 20px;
    --pos-shadow: 0 2px 10px rgba(0,0,0,.05);
    --pos-shadow-lg: 0 4px 20px rgba(0,0,0,.06);
    --pos-shadow-hover: 0 8px 24px rgba(87,102,63,.15);
    --pos-border: #E8DFD0;
    --pos-border-light: #F3EDE3;
    --pos-transition: .22s cubic-bezier(.4,0,.2,1);
    --pos-transition-slow: .35s cubic-bezier(.4,0,.2,1);
    --pos-bg-light: #F7F1E8;
}

.cursor-pointer {
    cursor: pointer !important;
}

*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
}

/* ===== CUSTOM SCROLLBAR (Notion/Linear inspired) ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.2);
    border-radius: 999px;
    transition: background .25s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148,163,184,.5);
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,.2) transparent;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb,
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.3);
}

[data-bs-theme="dark"] *,
[data-theme="dark"] * {
    scrollbar-color: rgba(255,255,255,.15) transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background-color: #F7F1E8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
    color: var(--pos-dark);
}

#app {
    height: 100vh;
    display: flex;
}

.pos-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

/* ===== DESIGN SYSTEM UTILITIES ===== */
:root {
    /* Typography scale */
    --fs-2xs: .65rem;
    --fs-xs: .72rem;
    --fs-sm: .78rem;
    --fs-base: .85rem;
    --fs-md: .9rem;
    --fs-lg: 1rem;
    --fs-xl: 1.15rem;
    --fs-2xl: 1.4rem;
    --fs-3xl: 1.8rem;

    /* Spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
}

.fw-850 { font-weight: 850; }
.lh-1 { line-height: 1; }
.gap-1px { gap: 1px; }
.min-touch { min-height: 44px; min-width: 44px; }

/* Page shell for admin screens */
.page-shell {
    padding: var(--sp-4);
    overflow-y: auto;
    height: 100%;
}

/* Toolbar standard */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
}

.page-toolbar-title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--pos-dark);
    margin: 0;
}

.page-toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

/* Filter card */
.filter-card {
    background: #fff;
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    border: 1px solid var(--pos-border-light);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-4);
}

.filter-card .filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
}

.filter-card .filter-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 220px;
    max-width: 400px;
}

.filter-card .filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pos-gray);
    pointer-events: none;
    font-size: .85rem;
}

.filter-card .filter-search .form-control {
    padding-left: 36px;
    min-height: 40px;
    font-size: var(--fs-sm);
}

.filter-card .filter-select {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 200px;
}

.filter-card .filter-select .form-select {
    min-height: 40px;
    font-size: var(--fs-sm);
}

.filter-card .filter-check {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 0 4px;
}

.filter-card .filter-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-left: auto;
}

.filter-card .filter-select .input-group-sm .form-control {
    min-height: 40px;
    font-size: var(--fs-sm);
}

.filter-card .filter-select .input-group-sm .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

/* DataTable toolbar */
.dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: #f8fafc;
    border-bottom: 1px solid var(--pos-border-light);
    border-radius: var(--pos-radius) var(--pos-radius) 0 0;
    flex-wrap: wrap;
}

.dt-toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--pos-gray);
    font-weight: 600;
}

.dt-toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

/* Breadcrumbs */
.app-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-5);
    background: #fff;
    border-bottom: 1px solid var(--pos-border-light);
    font-size: var(--fs-xs);
    color: var(--pos-gray);
    font-weight: 600;
}

.app-breadcrumb a {
    color: var(--pos-gray-dark);
    text-decoration: none;
    transition: color var(--pos-transition);
}

.app-breadcrumb a:hover {
    color: var(--pos-primary);
}

.app-breadcrumb .bi-chevron-right {
    font-size: var(--fs-2xs);
    opacity: .6;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--pos-sidebar-width);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 58%, #f8fafc 100%);
    border-right: 1px solid rgba(148,163,184,.22);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transform: translateX(0);
    transition: transform var(--pos-transition);
    overflow: hidden;
    box-shadow: 1px 0 0 rgba(15,23,42,.02), 10px 0 30px rgba(15,23,42,.035);
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
    min-height: 64px;
    border-bottom: 1px solid rgba(226,232,240,.86);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px);
}

.sidebar-header .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3F4A2E, #6E8050);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(var(--pos-primary-rgb), .22);
}

.sidebar-header .brand-text {
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity var(--pos-transition);
    color: #0f172a;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

.sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.sidebar-section-label {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #334155;
    padding: 16px 12px 7px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--pos-transition);
    border-top: 1px solid rgba(226,232,240,.72);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pos-primary);
    box-shadow: 0 0 0 4px rgba(var(--pos-primary-rgb), .1);
    flex-shrink: 0;
}

.sidebar-section-label:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 4px;
}

.sidebar-section-toggle {
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.sidebar-section-toggle:hover {
    opacity: 0.8;
}

.sidebar-collapse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.sidebar-group-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    padding: 8px 12px 4px 28px;
    white-space: nowrap;
}

.sidebar-group-enter {
    animation: sidebarExpand .2s ease-out;
}

.sidebar-group-leave {
    animation: sidebarCollapse .15s ease-in;
}

/* Nested groups (e.g., Bibliothèque, Composition within Catalogue) */
.sidebar-nested-group {
    margin: 2px 0;
}

.sidebar-nested-group-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px 7px 20px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: .78rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}

.sidebar-nested-group-toggle:hover {
    background: rgba(0,0,0,.04);
    color: #1e293b;
}

.sidebar-nested-group-toggle .sidebar-collapse-icon {
    width: 12px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: color .15s ease;
}

.sidebar-nested-group-toggle:hover .sidebar-collapse-icon {
    color: #64748b;
}

.sidebar-nested-items {
    padding-left: 12px;
}

.sidebar-nested-item {
    padding-left: 20px !important;
}

[data-theme="dark"] .sidebar-nested-group-toggle {
    color: #94a3b8;
}

[data-theme="dark"] .sidebar-nested-group-toggle:hover {
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
}

[data-theme="dark"] .sidebar-nested-group-toggle .sidebar-collapse-icon {
    color: #64748b;
}

@keyframes sidebarExpand {
    from { max-height: 0; opacity: 0; }
    to { max-height: 600px; opacity: 1; }
}

@keyframes sidebarCollapse {
    from { max-height: 600px; opacity: 1; }
    to { max-height: 0; opacity: 0; }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--pos-gray-dark);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.nav-item:hover {
    background: var(--pos-sidebar-hover);
    color: var(--pos-dark);
}

.nav-item.active {
    background: rgba(var(--pos-primary-rgb), .08);
    color: var(--pos-primary);
    font-weight: 700;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--pos-primary);
}

.nav-item.active > i {
    color: var(--pos-primary);
    background: transparent;
    box-shadow: none;
}

.nav-item > i {
    font-size: .9rem;
    width: 28px;
    height: 28px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    transition: color var(--pos-transition);
}

.nav-item:hover > i {
    color: var(--pos-primary);
}

.nav-item.active > i {
    background: rgba(var(--pos-primary-rgb), .08);
    box-shadow: none;
}

.nav-label {
    flex: 1;
    min-width: 0;
    font-size: .86rem;
    font-weight: 650;
    transition: opacity var(--pos-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--pos-danger);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1;
}

.nav-star,
.nav-pin {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pos-gray);
    opacity: 0;
    transition: opacity var(--pos-transition), color var(--pos-transition);
    border-radius: 8px;
    font-size: .75rem;
}

.nav-star.starred,
.nav-pin.pinned {
    opacity: 1;
    color: #f59e0b;
}

.nav-item:hover .nav-star:not(.starred),
.nav-item:hover .nav-pin:not(.pinned) {
    opacity: .55;
    background: rgba(245,158,11,.08);
}

.nav-star:hover,
.nav-pin:hover {
    opacity: 1 !important;
    color: #f59e0b !important;
    background: rgba(245,158,11,.12);
}

/* Favorites section */
.nav-fav .nav-star,
.nav-fav .nav-pin {
    opacity: 1;
    color: #f59e0b;
}

.nav-fav {
    background: rgba(245,158,11,.07);
}

/* Sidebar search */
.sidebar-search-wrap {
    padding: 0 12px 10px;
    border-bottom: 1px solid rgba(226,232,240,.6);
}

.sidebar-search {
    position: relative;
}

.sidebar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pos-gray);
    font-size: .8rem;
    pointer-events: none;
}

.sidebar-search input {
    padding-left: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.2);
    background: #f8fafc;
    font-size: .8rem;
    height: 38px;
    transition: all var(--pos-transition);
}

.sidebar-search input:focus {
    background: #fff;
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(var(--pos-primary-rgb), .08);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148,163,184,.38), transparent);
    margin: 8px 10px 6px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    margin-left: var(--pos-sidebar-width);
    transition: margin-left var(--pos-transition);
}

.main-content.sidebar-hidden {
    margin-left: 0;
}

/* ===== TOPBAR ===== */
.pos-header {
    height: var(--pos-header-height);
    min-height: var(--pos-header-height);
    background: #FFFDF9;
    border-bottom: 1px solid #EFE5D7;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    position: relative;
    z-index: 1030;
}

.pos-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.header-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pos-gray-dark);
    transition: all var(--pos-transition);
    position: relative;
}

.header-btn:hover {
    background: var(--pos-sidebar-hover);
    color: var(--pos-dark);
}

.header-btn .notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pos-danger);
    position: absolute;
    top: 6px;
    right: 6px;
    border: 2px solid #fff;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pos-primary), #6E8050);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--pos-transition);
    box-shadow: 0 2px 8px rgba(var(--pos-primary-rgb), .2);
}

.user-avatar:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* Online/Offline indicator */
.offline-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    transition: all var(--pos-transition);
}

.offline-indicator.online {
    background: var(--pos-success-light);
    color: var(--pos-success);
}

.offline-indicator.offline {
    background: var(--pos-danger-light);
    color: var(--pos-danger);
}

.offline-indicator.syncing {
    background: var(--pos-info-light);
    color: var(--pos-info);
}

.pos-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.pos-body > div,
.pos-body > iframe {
    position: absolute;
    inset: 0;
}

.pos-body iframe {
    border: none;
}

/* ===== POS COCKPIT ===== */
.pos-cockpit {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f8fafc;
}

/* ===== ORDER BAR ===== */
.pos-order-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
    flex-shrink: 0;
    min-height: 52px;
    flex-wrap: wrap;
    row-gap: 6px;
}

.pos-order-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 6px;
}

.pos-order-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ===== ORDER BAR — COMPACT PILLS (FW-UX) ===== */
.pos-order-bar .btn {
    height: 32px;
    padding: 0 12px;
    font-size: .78rem;
    line-height: 30px;
    border-radius: 999px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.pos-order-bar .btn i {
    font-size: .85rem;
    line-height: 1;
}

.pos-order-bar .btn-group .btn.active {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
}

.pos-order-current-number {
    font-size: .95rem;
    font-weight: 800;
    color: var(--pos-dark);
    white-space: nowrap;
}

.pos-order-table-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    background: var(--pos-primary-light);
    color: var(--pos-primary);
    white-space: nowrap;
}

.pos-order-customer-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    background: var(--pos-success-light);
    color: var(--pos-success);
    white-space: nowrap;
}

/* ===== BODY SPLIT ===== */
.pos-body-split {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Zone A (variable : Catalogue OU Commandes ouvertes) + Zone B (Panier permanent) */
.pos-zone-a {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-orders-tab {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pos-products-column {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 22px;
    background: #f8fafc;
}

.pos-cart-column {
    flex: 0 0 var(--pos-cart-w, 28%);
    min-width: 320px;
    max-width: var(--pos-cart-max, 480px);
    background: #fff;
    border-left: 1px solid rgba(76,175,80,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== TODAY ORDERS DRAWER ===== */
.pos-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--pos-radius-sm);
    cursor: pointer;
    transition: all var(--pos-transition);
    gap: 10px;
}

.pos-order-row:hover {
    border-color: var(--pos-primary);
    box-shadow: 0 2px 8px rgba(var(--pos-primary-rgb), .1);
    transform: translateX(2px);
}

.pos-order-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pos-order-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pos-order-number {
    font-size: .8rem;
    font-weight: 700;
    color: var(--pos-dark);
    white-space: nowrap;
}

.pos-order-status {
    font-size: .6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.pos-order-table {
    font-size: .65rem;
    color: var(--pos-gray-dark);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.pos-order-time {
    font-size: .65rem;
    color: var(--pos-gray);
    white-space: nowrap;
}

.order-status-draft { background: #f1f5f9; color: #475569; }
.order-status-active { background: #dbeafe; color: #1d4ed8; }
.order-status-served { background: #e0f2fe; color: #0369a1; }
.order-status-payment_pending { background: #fef2f2; color: #dc2626; }
.order-status-paid { background: #E9EDE3; color: #3F4A2E; }
.order-status-voided { background: #f1f5f9; color: #94a3b8; }

/* ===== TABLE MODAL ===== */
.table-btn {
    aspect-ratio: 1;
    border: 1px solid rgba(76,175,80,.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s ease;
    background: #fff;
    padding: 4px;
    min-height: 64px;
    position: relative;
    box-shadow: 0 1px 4px rgba(15,23,42,.04);
}

.table-btn:hover {
    border-color: rgba(76,175,80,.2);
    box-shadow: 0 6px 20px rgba(var(--pos-primary-rgb), .1), 0 1px 4px rgba(15,23,42,.04);
    transform: translateY(-2px);
}

.table-btn:active {
    transform: translateY(0) scale(.97);
}

.table-btn.active {
    border-color: var(--pos-primary);
    background: var(--pos-primary-light);
    box-shadow: 0 0 0 3px rgba(var(--pos-primary-rgb), .12), 0 2px 8px rgba(var(--pos-primary-rgb), .08);
}

.table-btn.occupied {
    border-color: rgba(124,58,237,.25);
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.table-btn.free {
    border-color: rgba(76,175,80,.08);
    background: #fff;
}

.table-btn.dirty {
    border-color: rgba(255,152,0,.25);
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
}

.table-btn.dirty i { color: #ff9800; opacity: 1; }

.table-btn i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    opacity: .8;
}

.table-btn.active i { color: var(--pos-primary); opacity: 1; }
.table-btn.occupied i { color: #7c3aed; opacity: 1; }
.table-btn.free i { color: var(--pos-gray); }

.table-btn .table-label {
    font-size: .62rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 600;
    color: var(--pos-gray-dark);
}

.table-btn.active .table-label {
    color: var(--pos-dark);
    font-weight: 700;
}

/* ===== QUICK PRODUCTS ===== */
/* ===== TOOLBAR ===== */
.pos-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pos-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ===== QUICK FAVORITES ===== */
.quick-favs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.quick-favs::-webkit-scrollbar {
    display: none;
}

.quick-fav-chip {
    white-space: nowrap;
    padding: 0 16px 0 10px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: #1A304D;
    color: #A8B3C7;
    border: none;
    transition: all .18s ease;
    flex-shrink: 0;
    letter-spacing: .01em;
}

.quick-fav-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    background: rgba(255,255,255,.08);
}

.quick-fav-chip:hover {
    background: #243B5E;
    color: #E2E8F0;
}

.quick-fav-chip:active {
    transform: scale(.95);
}

/* ===== CATEGORY PILLS ===== */
.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

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

.category-pill {
    white-space: nowrap;
    padding: 0 20px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    height: 44px;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pos-gray-dark);
    background: #fff;
    border: 1px solid var(--pos-border);
    letter-spacing: .01em;
}

.category-pill:hover {
    border-color: rgba(var(--pos-primary-rgb), .38);
    background: var(--pos-primary-light);
    color: var(--pos-primary);
    transform: translateY(-1px);
}

.category-pill:active {
    transform: scale(.95);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--pos-primary), #6E8050);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(var(--pos-primary-rgb), .28);
}

.category-pill .cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cat-color, var(--pos-gray));
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(148,163,184,.14);
}

.category-pill.active .cat-dot {
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

/* ===== PRODUCT GRID ===== */
/* 6 colonnes desktop par défaut (parité avec FastWaitv2) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    padding-bottom: 20px;
}

/* Desktop étroit (1200-1350) : retombe à 5 colonnes pour éviter des cartes < 130px
   (même comportement que FastWaitv2 sous ~1400px) */
@media (min-width: 1200px) and (max-width: 1349.98px) {
    .product-grid { grid-template-columns: repeat(5, 1fr); }
}

/* FW-POS-CATALOG-CARD-004 — Carte produit inspirée du rendu V2 (FastWaitv2) :
   photo 4:3 en haut + nom/prix dessous dans le flux normal. La carte ne bouge
   jamais (fluidité) : le seul signal au survol est le contour vert. */
.product-card {
    background: var(--pos-card-bg, #FFFFFF);
    border: 1px solid var(--pos-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.03);
    -webkit-tap-highlight-color: transparent;
}

.product-card:hover:not(:focus-within) {
    border-color: var(--pos-primary, #57663f);
    box-shadow: 0 2px 6px rgba(15,23,42,.05), 0 10px 24px rgba(76,175,80,.10);
}

.product-card:active:not(:focus-within) {
    border-color: var(--pos-primary, #57663f);
}

.product-card:focus-within {
    outline: 2px solid rgba(var(--pos-primary-rgb), .35);
    outline-offset: 2px;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

/* Photo 4:3 — l'image domine la carte (~65-75 %) */
.product-card-media {
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pos-primary-light, #e8f5e9), #f0f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.product-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--pos-primary);
    opacity: .55;
}

/* Bloc texte sous la photo (V2) */
.product-card .product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px 9px;
    background: #fff;
    flex: 1;
    min-width: 0;
}

.product-card .product-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pos-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.product-card .product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--pos-primary, #57663f);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-price .from-label {
    font-size: 10px;
    font-weight: 600;
    opacity: .6;
    color: var(--pos-gray-dark);
}


/* ===== CART ===== */
.cart-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(76,175,80,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 8px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 10px 16px;
    border-radius: 14px;
    border-bottom: 1px solid rgba(76,175,80,.04);
    transition: all .22s ease;
}

.cart-item:hover {
    background: rgba(76,175,80,.03);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--pos-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--pos-primary);
    overflow: hidden;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item .item-qty {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(76,175,80,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
    flex-shrink: 0;
    background: #fff;
    color: var(--pos-primary);
    box-shadow: 0 1px 3px rgba(76,175,80,.06);
}

.cart-item .item-name {
    flex: 1;
    font-size: .82rem;
    font-weight: 500;
    min-width: 0;
    padding-top: 2px;
}

.cart-item .item-name > div:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--pos-dark);
    font-size: .88rem;
}

.cart-item .item-price {
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
    color: var(--pos-dark);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cart-summary {
    margin: 0 20px;
    padding: 10px 16px 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pos-light), #fff);
    border: 1px solid rgba(76,175,80,.06);
}

.cart-summary .total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pos-primary);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.cart-summary .total-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pos-dark);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px 14px;
    border-top: 1px solid rgba(76,175,80,.06);
}

.cart-actions-row {
    display: flex;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

.cart-actions-row .btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 12px;
    font-size: .82rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
}

.cart-actions-row .btn-main-action {
    flex: 1.8;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(var(--pos-primary-rgb), .18);
    border: none;
    padding: 8px 16px;
}

.cart-actions-row .btn-main-action:hover {
    box-shadow: 0 4px 12px rgba(var(--pos-primary-rgb), .25);
}

.cart-secondary-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

.cart-secondary-actions .btn {
    flex: 1;
    font-size: .75rem;
    padding: 6px 10px;
    min-height: 34px;
    min-width: 50px;
    border-radius: 10px;
}

/* ===== QTY CONTROLS ===== */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(76,175,80,.1);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--pos-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: all .15s ease;
    color: var(--pos-gray-dark);
}

.qty-control button:hover {
    background: rgba(76,175,80,.08);
    color: var(--pos-primary);
}

.qty-control button:active {
    background: rgba(76,175,80,.15);
    transform: scale(.9);
}

.qty-control button:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

.qty-control .qty-value {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: .8rem;
    background: #fff;
    color: var(--pos-dark);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.4;
}

.status-badge::before {
    font-family: "bootstrap-icons";
    font-size: .65rem;
    line-height: 1;
}

.status-pending {
    background: var(--pos-warning-light);
    color: var(--pos-warning-text);
}

.status-pending::before {
    content: "\F64D";
}

.status-fired,
.status-preparing {
    background: var(--pos-info-light);
    color: #3F4A2E;
}

.status-fired::before,
.status-preparing::before {
    content: "\F52F";
}

.status-ready {
    background: var(--pos-success-light);
    color: var(--pos-success-text);
}

.status-ready::before {
    content: "\F26A";
}

.status-served {
    background: #f1f5f9;
    color: #475569;
}

.status-served::before {
    content: "\F26A";
}

.status-paid {
    background: var(--pos-success-light);
    color: var(--pos-success-text);
}

.status-paid::before {
    content: "\F26A";
}

.status-voided {
    background: #fef2f2;
    color: #dc2626;
}

.status-voided::before {
    content: "\F623";
}

.status-unavailable {
    background: #fff7ed;
    color: #c2410c;
}

.status-unavailable::before {
    content: "\F623";
}

.status-recalled {
    background: #fefce8;
    color: #a16207;
}

.status-recalled::before {
    content: "\F132";
}

/* ===== SEARCH BOX ===== */
.search-box {
    position: relative;
    flex: 1 1 320px;
    max-width: 460px;
    min-width: 220px;
}

.search-box .form-control {
    width: 100%;
    padding-left: 46px;
    padding-right: 20px;
    border-radius: 999px;
    border: 1px solid var(--pos-border);
    font-size: .92rem;
    height: 52px;
    line-height: 50px;
    transition: all .22s ease;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.05);
    color: var(--pos-dark);
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-box .form-control:hover {
    border-color: rgba(var(--pos-primary-rgb), .28);
}

.search-box .form-control:not(.has-value) {
    color: var(--pos-gray);
}

.search-box .form-control:focus,
.search-box .form-control:focus-visible {
    outline: none;
    border-color: rgba(var(--pos-primary-rgb), .45);
    box-shadow: 0 0 0 4px rgba(var(--pos-primary-rgb), .12);
}

.search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pos-gray);
    pointer-events: none;
    font-size: 1.05rem;
}

.search-box .search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--pos-gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
    line-height: 1;
}

.search-box .search-clear:hover {
    background: #cbd5e1;
    color: var(--pos-dark);
}

.search-box .form-control.has-clear {
    padding-right: 40px;
}

/* Compact search trigger (FW-UX) */
.pos-search-trigger {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--pos-border);
    color: var(--pos-dark);
    cursor: pointer;
    position: relative;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(15,23,42,.05);
}

.pos-search-trigger:hover {
    border-color: rgba(var(--pos-primary-rgb), .35);
    color: var(--pos-primary);
    box-shadow: 0 2px 8px rgba(15,23,42,.1);
}

.pos-search-trigger:active {
    transform: scale(.94);
}

.pos-search-trigger .pos-search-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
}

.pos-toolbar .search-box input.form-control {
    height: 40px;
    line-height: 40px;
    font-size: .88rem;
}

.pos-toolbar.searching .search-box {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pos-gray);
    margin-bottom: 12px;
}

/* ===== KITCHEN ===== */
.kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.kitchen-card {
    background: #fff;
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    padding: 18px;
    border-left: 4px solid var(--pos-warning);
    transition: all var(--pos-transition);
}

.kitchen-card:hover {
    box-shadow: var(--pos-shadow-lg);
}

.kitchen-card.preparing {
    border-left-color: var(--pos-primary);
}

.kitchen-card.ready {
    border-left-color: var(--pos-success);
}

.kitchen-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.kitchen-card .order-number {
    font-size: 1.05rem;
    font-weight: 800;
}

.kitchen-card .order-time {
    font-size: .72rem;
    color: var(--pos-gray);
}

.kitchen-card .order-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kitchen-card .order-items li {
    padding: 5px 0;
    font-size: .85rem;
    border-bottom: 1px solid #f1f5f9;
}

.kitchen-card .order-items li:last-child {
    border-bottom: none;
}

.kitchen-card .order-notes {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--pos-warning-light);
    border-radius: var(--pos-radius-sm);
    font-size: .78rem;
    color: var(--pos-warning-text);
}

/* ===== DASHBOARD ===== */
.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

/* â”€â”€ Dashboard Header â”€â”€ */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pos-primary), #6E8050);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--pos-primary-rgb), .3);
}

.dash-greeting {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-greeting .greeting-line {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pos-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-greeting .greeting-name {
    font-weight: 800;
}

.dash-greeting .greeting-sub {
    font-size: .72rem;
    color: var(--pos-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dash-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dash-clock .dash-time {
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    color: var(--pos-dark);
    line-height: 1;
}

.dash-clock .dash-date {
    font-size: .68rem;
    color: var(--pos-gray);
    font-weight: 500;
}

.dash-badges {
    display: flex;
    gap: 6px;
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 600;
    white-space: nowrap;
}

.dash-badge-peak {
    background: #fef3c7;
    color: var(--pos-warning-text);
    animation: pulse-glow 2s ease-in-out infinite;
}

.dash-badge-ok {
    background: #E9EDE3;
    color: var(--pos-success-text);
}

.dash-badge-offline {
    background: #fef2f2;
    color: #dc2626;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.dash-badge-syncing {
    background: #E9EDE3;
    color: #3F4A2E;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* â”€â”€ KPI Grid â”€â”€ */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.kpi-card {
    background: #fff;
    border-radius: var(--pos-radius);
    padding: 18px 20px;
    box-shadow: var(--pos-shadow);
    transition: all var(--pos-transition);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--pos-radius) var(--pos-radius) 0 0;
}

.kpi-card:hover {
    box-shadow: var(--pos-shadow-lg);
    transform: translateY(-2px);
}

.kpi-sales::before { background: linear-gradient(90deg, #57663F, #6E8050); }
.kpi-orders::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.kpi-tables::before { background: linear-gradient(90deg, #57663F, #6E8050); }
.kpi-kitchen::before { background: linear-gradient(90deg, #57663F, #8A9A6B); }
.kpi-revenue::before { background: linear-gradient(90deg, #6E8050, #A8B489); }

.kpi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.kpi-icon-sales {
    background: var(--pos-primary-light);
    color: var(--pos-primary);
}

.kpi-icon-orders {
    background: var(--pos-warning-light);
    color: var(--pos-warning);
}

.kpi-icon-tables {
    background: var(--pos-success-light);
    color: var(--pos-success);
}

.kpi-icon-kitchen {
    background: var(--pos-info-light);
    color: var(--pos-info);
}

.kpi-icon-revenue {
    background: #E9EDE3;
    color: #7c3aed;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.kpi-trend-up {
    background: #E9EDE3;
    color: #3F4A2E;
}

.kpi-trend-down {
    background: #fef2f2;
    color: #dc2626;
}

.kpi-body {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
    color: var(--pos-dark);
}

.kpi-label {
    font-size: .75rem;
    color: var(--pos-gray);
    font-weight: 500;
    margin-bottom: 8px;
}

.kpi-progress {
    height: 4px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.kpi-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .6s ease;
}

.kpi-progress-bar-sales { background: linear-gradient(90deg, #57663F, #6E8050); }
.kpi-progress-bar-orders { background: linear-gradient(90deg, #f59e0b, #f97316); }
.kpi-progress-bar-tables { background: linear-gradient(90deg, #57663F, #6E8050); }
.kpi-progress-bar-kitchen { background: linear-gradient(90deg, #57663F, #8A9A6B); }

.kpi-sub {
    font-size: .62rem;
    color: var(--pos-gray);
    margin-top: 2px;
}

/* â”€â”€ Main Content Grid â”€â”€ */
.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    min-height: 0;
}

.dash-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.dash-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

/* â”€â”€ Widget Panel â”€â”€ */
.dash-widget {
    background: #fff;
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.dash-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.dash-widget-title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pos-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-widget-body {
    padding: 14px 18px;
}

/* â”€â”€ Activity Feed â”€â”€ */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 0 18px;
}

.activity-feed::-webkit-scrollbar {
    width: 5px;
}

.activity-feed::-webkit-scrollbar-track {
    background: transparent;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    animation: slide-in-up .3s ease-out;
    animation-fill-mode: both;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:nth-child(1) { animation-delay: 0s; }
.activity-item:nth-child(2) { animation-delay: .05s; }
.activity-item:nth-child(3) { animation-delay: .1s; }
.activity-item:nth-child(4) { animation-delay: .15s; }
.activity-item:nth-child(5) { animation-delay: .2s; }

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-dot-order { background: var(--pos-primary); }
.activity-dot-payment { background: var(--pos-success); }
.activity-dot-payment_request { background: var(--pos-warning); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pos-dark);
}

.activity-detail {
    font-size: .72rem;
    color: var(--pos-gray);
}

.activity-time {
    font-size: .62rem;
    color: var(--pos-gray);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* â”€â”€ Hourly Chart â”€â”€ */
.hourly-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
    padding: 4px 0;
}

.hour-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.hour-bar {
    width: 100%;
    max-width: 32px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #57663F, #6E8050);
    min-height: 4px;
    transition: height .6s ease;
    position: relative;
}

.hour-bar:hover {
    opacity: .8;
}

.hour-bar-label {
    font-size: .55rem;
    color: var(--pos-gray);
    font-weight: 500;
}

/* â”€â”€ Top Products Widget â”€â”€ */
.top-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-product-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-product-rank {
    width: 22px;
    font-size: .65rem;
    font-weight: 700;
    color: var(--pos-gray);
    text-align: center;
    flex-shrink: 0;
}

.top-product-rank-1 { color: #f59e0b; }
.top-product-rank-2 { color: #94a3b8; }
.top-product-rank-3 { color: #d97706; }

.top-product-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--pos-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    color: var(--pos-gray-dark);
}

.top-product-info {
    flex: 1;
    min-width: 0;
}

.top-product-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--pos-dark);
}

.top-product-qty {
    font-size: .68rem;
    color: var(--pos-gray);
}

.top-product-track {
    height: 5px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.top-product-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pos-primary), #6E8050);
    transition: width .8s ease;
}

/* â”€â”€ Alerts Widget â”€â”€ */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--pos-radius-sm);
    animation: slide-in-up .3s ease-out;
}

.alert-danger {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.alert-warning {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.alert-info {
    background: #E9EDE3;
    border-left: 3px solid #57663F;
}

.alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}

.alert-danger .alert-icon { background: #fef2f2; color: #dc2626; }
.alert-warning .alert-icon { background: #fffbeb; color: #f59e0b; }
.alert-info .alert-icon { background: #E9EDE3; color: #57663F; }

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--pos-dark);
}

.alert-message {
    font-size: .68rem;
    color: var(--pos-gray);
    margin-top: 1px;
}

/* â”€â”€ Quick Actions â”€â”€ */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: var(--pos-radius);
    background: var(--pos-light);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--pos-transition);
    text-decoration: none;
    color: var(--pos-dark);
    text-align: center;
}

.quick-action-btn:hover {
    background: #fff;
    border-color: var(--pos-primary);
    box-shadow: var(--pos-shadow-lg);
    transform: translateY(-2px);
    color: var(--pos-primary);
}

.quick-action-btn:active {
    transform: scale(.96);
}

.quick-action-btn i {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: var(--pos-shadow);
    transition: all var(--pos-transition);
}

.quick-action-btn:hover i {
    background: var(--pos-primary-light);
    color: var(--pos-primary);
    box-shadow: 0 4px 12px rgba(var(--pos-primary-rgb), .2);
}

.quick-action-btn .qa-label {
    font-size: .78rem;
    font-weight: 600;
}

/* â”€â”€ System Status â”€â”€ */
.sys-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sys-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.sys-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sys-status-dot-online { background: #57663F; box-shadow: 0 0 6px rgba(87,102,63,.5); }
.sys-status-dot-warning { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.5); animation: pulse-glow 2s ease-in-out infinite; }
.sys-status-dot-offline { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,.5); animation: pulse-glow 1.5s ease-in-out infinite; }

.sys-status-label {
    font-size: .78rem;
    font-weight: 500;
    color: var(--pos-dark);
    flex: 1;
}

.sys-status-value {
    font-size: .68rem;
    color: var(--pos-gray);
    font-weight: 500;
}

/* â”€â”€ CafÃ© Health â”€â”€ */
.cafe-health {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--pos-radius);
    background: linear-gradient(135deg, var(--pos-primary-light), #f0f0ff);
    border: 1px solid rgba(var(--pos-primary-rgb), .12);
}

.cafe-health-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pos-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.cafe-health-text {
    flex: 1;
}

.cafe-health-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--pos-primary);
}

.cafe-health-sub {
    font-size: .65rem;
    color: var(--pos-gray-dark);
}

.cafe-health-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #57663F;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* â”€â”€ Empty State â”€â”€ */
.dash-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--pos-gray);
}

.dash-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: .5;
}

.dash-empty p {
    font-size: .82rem;
    margin: 0;
}

/* â”€â”€ Animations â”€â”€ */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* â”€â”€ Legacy stat-card kept for back-compat â”€â”€ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #fff;
    border-radius: var(--pos-radius);
    padding: 22px;
    box-shadow: var(--pos-shadow);
    transition: all var(--pos-transition);
    border: 1px solid #f1f5f9;
}

.stat-card:hover {
    box-shadow: var(--pos-shadow-lg);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--pos-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--pos-dark);
}

.stat-card .stat-label {
    font-size: .8rem;
    color: var(--pos-gray);
    font-weight: 500;
}

/* User dropdown enhancements */
.dropdown-item {
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin: 2px 6px;
    width: auto;
}

.dropdown-item:active,
.dropdown-item:focus {
    background: var(--pos-primary-light);
    color: var(--pos-primary);
}

/* ===== ADMIN CARDS ===== */
.admin-card {
    background: #FFFDF9;
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    border: 1px solid #EFE5D7;
    transition: all var(--pos-transition);
}

.admin-card:hover {
    box-shadow: var(--pos-shadow-lg);
}

.admin-card .card-header {
    background: transparent;
    border-bottom: 1px solid #EFE5D7;
    padding: 16px 20px;
}

.admin-card .card-body {
    padding: 20px;
}

/* ===== MODERN TABLES ===== */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pos-gray);
    padding: 12px 16px;
    border-bottom: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.table-modern thead th:first-child {
    border-radius: var(--pos-radius) 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 var(--pos-radius) 0 0;
}

.table-modern tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .85rem;
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: background var(--pos-transition);
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.table-modern tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--pos-radius);
}

.table-modern tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--pos-radius) 0;
}

/* ===== MODERN FORMS ===== */
.form-control, .form-select {
    border-radius: var(--pos-radius-sm);
    border: 1.5px solid #e2e8f0;
    font-size: .85rem;
    padding: 8px 12px;
    transition: all var(--pos-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(var(--pos-primary-rgb), .12);
}

.form-label {
    font-size: .78rem;
    font-weight: 500;
    color: var(--pos-gray-dark);
    margin-bottom: 4px;
}

/* ===== SETTINGS PAGE ===== */
.settings-page {
    background:
        linear-gradient(180deg, rgba(76,175,80,.05), rgba(248,250,252,0) 260px),
        #f8fafc;
}

.settings-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 22px;
}

.settings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(76,175,80,.12);
    border-radius: var(--pos-radius);
    background: linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: var(--pos-shadow);
}

.settings-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--pos-primary);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.settings-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pos-primary);
    box-shadow: 0 0 0 4px rgba(var(--pos-primary-rgb), .1);
}

.settings-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 850;
}

.settings-hero p {
    max-width: 620px;
    margin: 5px 0 0;
    color: var(--pos-gray-dark);
    font-size: .9rem;
}

.settings-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--pos-primary), #6E8050);
    box-shadow: 0 12px 28px rgba(var(--pos-primary-rgb), .22);
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 18px;
    align-items: start;
}

.settings-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.settings-card {
    background: #fff;
    border: 1px solid rgba(226,232,240,.86);
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    overflow: hidden;
}

.settings-card-primary {
    border-color: rgba(var(--pos-primary-rgb), .14);
}

.settings-card-sticky {
    position: sticky;
    top: 16px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(226,232,240,.78);
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.settings-card-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: .98rem;
    font-weight: 800;
}

.settings-card-header span {
    display: block;
    margin-top: 2px;
    color: var(--pos-gray-dark);
    font-size: .74rem;
}

.settings-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pos-primary);
    background: var(--pos-primary-light);
    font-size: 1.05rem;
}

.settings-card-icon-warning {
    color: #b45309;
    background: var(--pos-warning-light);
}

.settings-card-icon-success,
.settings-card-icon-money {
    color: var(--pos-success);
    background: var(--pos-success-light);
}

.settings-card-icon-info {
    color: var(--pos-info);
    background: var(--pos-info-light);
}

.settings-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.settings-field {
    min-width: 0;
}

.settings-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.settings-field-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-page .form-control,
.settings-page .form-select {
    min-height: 42px;
    background-color: #fff;
    border-color: #dbe4f0;
    font-weight: 600;
}

.settings-page textarea.form-control {
    min-height: 78px;
    resize: vertical;
}

.settings-page .form-label {
    margin-bottom: 6px;
    color: #475569;
    font-weight: 750;
}

.settings-options {
    display: grid;
    gap: 10px;
}

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

.settings-option,
.settings-switch {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all var(--pos-transition);
}

.settings-switch {
    align-items: center;
    justify-content: space-between;
    cursor: default;
}

.settings-option:hover,
.settings-switch:hover {
    border-color: rgba(var(--pos-primary-rgb), .25);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.settings-option .form-check-input {
    margin-top: 2px;
    flex-shrink: 0;
}

.settings-option span,
.settings-switch span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-option strong,
.settings-switch strong {
    color: #0f172a;
    font-size: .86rem;
    font-weight: 800;
}

.settings-option small,
.settings-switch small {
    color: var(--pos-gray-dark);
    font-size: .74rem;
    line-height: 1.35;
}

.settings-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    margin: 0;
    flex-shrink: 0;
}

.settings-preview {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(87,102,63,.14);
    background: linear-gradient(135deg, #E9EDE3, #F7F1E8);
    text-align: center;
}

.settings-preview span,
.settings-preview small {
    display: block;
    color: #047857;
    font-size: .75rem;
    font-weight: 700;
}

.settings-preview strong {
    display: block;
    margin: 4px 0;
    color: #064e3b;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.settings-code {
    display: inline-flex;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .68rem;
}

.settings-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: var(--pos-radius);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 28px rgba(15,23,42,.06);
}

.settings-savebar strong {
    display: block;
    color: #0f172a;
    font-size: .9rem;
    font-weight: 850;
}

.settings-savebar span {
    color: var(--pos-gray-dark);
    font-size: .76rem;
}

/* ===== MODERN MODALS ===== */
.modal-content {
    border: none;
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 20px;
}

/* ===== PAYMENT OPTIONS ===== */
.payment-option {
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--pos-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--pos-transition);
}

.payment-option:hover {
    border-color: var(--pos-primary);
    background: var(--pos-primary-light);
}

.payment-option.active {
    border-color: var(--pos-primary);
    background: var(--pos-primary-light);
    box-shadow: 0 0 0 3px rgba(var(--pos-primary-rgb), .12);
}

.payment-option i {
    font-size: 2.2rem;
    margin-bottom: 6px;
    color: var(--pos-gray-dark);
}

.payment-option.active i {
    color: var(--pos-primary);
}

.payment-option .option-label {
    font-weight: 600;
    font-size: .82rem;
    color: var(--pos-dark);
}

/* ===== BUTTON VARIANTS ===== */
.btn {
    border-radius: var(--pos-radius-sm);
    font-weight: 600;
    font-size: .85rem;
    padding: 8px 18px;
    transition: all var(--pos-transition);
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
}

.btn-primary:hover {
    background: #6E8050;
    border-color: #6E8050;
    box-shadow: 0 4px 12px rgba(var(--pos-primary-rgb), .3);
}

.btn-outline-primary {
    color: var(--pos-primary);
    border-color: var(--pos-primary);
}

.btn-outline-primary:hover {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
}

.btn-light {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--pos-gray-dark);
}

.btn-light:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-sm {
    padding: 6px 14px;
    font-size: .78rem;
    border-radius: var(--pos-radius-sm);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: var(--pos-radius);
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    padding: 3px 10px;
}

.badge.bg-primary {
    background: var(--pos-primary-light) !important;
    color: var(--pos-primary);
}

/* ===== TOASTS ===== */
.toast {
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow-lg);
}

/* ===== CATEGORY CARDS (admin) ===== */
.category-card {
    background: #fff;
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    border: 1px solid #f1f5f9;
    padding: 20px;
    transition: all var(--pos-transition);
    height: 100%;
}

.category-card:hover {
    box-shadow: var(--pos-shadow-lg);
    transform: translateY(-2px);
}

.category-card .cat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--pos-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes card-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes slide-in-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.card-added {
    animation: card-pulse .35s ease;
}

.cart-item-enter {
    animation: slide-in-up .25s ease-out;
}

.fade-in {
    animation: fade-in .2s ease;
}

.badge-pop {
    animation: badge-pop .3s ease;
}

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

/* Floating cart button (mobile/tablet) */
.pos-cart-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pos-primary, #57663F);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(87,102,63,.4);
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all .25s ease;
    padding: 0;
    line-height: 1;
}

.pos-cart-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(76,175,80,.5);
}

.pos-cart-fab:active {
    transform: scale(.92);
}

.pos-cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
}

/* Cart backdrop (mobile/tablet) */
.pos-cart-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1040;
    backdrop-filter: blur(4px);
}

/* ===== CART BOTTOM SHEET (FW-UX) ===== */
.pos-cart-handle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 0 4px;
    cursor: grab;
    touch-action: none;
    flex-shrink: 0;
}

.pos-cart-handle::before {
    content: "";
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .2s ease;
}

.pos-cart-handle:active {
    cursor: grabbing;
}

.pos-cart-handle:active::before {
    background: #94a3b8;
}

.cart-header-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--pos-gray);
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
}

.cart-header-close:hover {
    background: #e2e8f0;
    color: var(--pos-dark);
}

@media (max-width: 991.98px) {
    .cart-header-close {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .pos-cart-handle {
        display: flex;
    }
}

/* ===== ZONE A / B RESIZER (FW-UX) ===== */
.pos-zone-resizer {
    display: none;
    width: 10px;
    margin: 0 -3px;
    cursor: col-resize;
    position: relative;
    z-index: 6;
    flex-shrink: 0;
    touch-action: none;
}

.pos-zone-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background .18s ease;
}

.pos-zone-resizer:hover::after,
.pos-zone-resizer.resizing::after {
    background: rgba(var(--pos-primary-rgb), .45);
}

@media (min-width: 992px) {
    .pos-zone-resizer {
        display: block;
    }
}

body.pos-resizing {
    cursor: col-resize;
    user-select: none;
}

/* ===== TABLET (< 1200px) ===== */
@media (max-width: 1199.98px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .pos-toolbar-actions .btn span {
        display: none;
    }
    .pos-toolbar-actions .btn i {
        margin-right: 0;
    }
    .quick-favs {
        display: none;
    }
}

/* ===== SMALL DESKTOP / LARGE TABLET (< 992px) ===== */
@media (max-width: 991.98px) {
    .pos-cart-column {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        z-index: 1050;
        width: 400px;
        max-width: 85vw;
        min-width: auto;
        border-left: 1px solid var(--pos-border);
        box-shadow: -8px 0 32px rgba(0,0,0,.12);
        transition: right .3s cubic-bezier(.4,0,.2,1);
    }
    .pos-cart-column.cart-open {
        right: 0;
    }
    .pos-cart-backdrop {
        display: block;
    }
    .pos-cart-fab {
        display: flex;
    }
    .pos-products-column {
        padding: 14px 16px 18px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .category-pill {
        height: 40px;
        font-size: .8rem;
        padding: 0 16px;
    }
    .category-pills {
        padding: 2px 0 16px;
        gap: 6px;
    }
    .pos-toolbar-actions .btn {
        padding: 0 12px;
        font-size: .8rem;
        height: 40px;
    }
}

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 767.98px) {
    .pos-body-split {
        flex-direction: column;
    }
    .pos-cart-column {
        width: 100%;
        max-width: 100%;
        right: auto;
        bottom: -100%;
        top: auto;
        left: 0;
        height: 85vh;
        border-left: none;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-top: 1px solid var(--pos-border);
        box-shadow: 0 -8px 32px rgba(0,0,0,.12);
        transition: bottom .3s cubic-bezier(.4,0,.2,1);
    }
    .pos-cart-column.cart-open {
        right: auto;
        bottom: 0;
    }
    .pos-products-column {
        flex: 1 1 auto;
        padding: 12px 14px 90px;
    }
    .pos-tables-column {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid rgba(76,175,80,.06);
        max-height: 35vh;
    }
    .tables-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card {
        border-radius: 14px;
    }
    .product-card .product-name {
        font-size: 12px;
    }
    .product-card .product-info {
        padding: 6px 8px 7px;
        gap: 3px;
        min-height: 42px;
    }
    .product-card .product-price {
        font-size: 12px;
    }
    .pos-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .search-box {
        flex: 1;
        min-width: 0;
    }
    .search-box input {
        width: 100%;
        max-width: none;
        height: 42px;
        font-size: .8rem;
        border-radius: 14px;
    }
    .pos-toolbar-actions .btn {
        padding: 0 10px;
        font-size: .75rem;
        height: 36px;
    }
    .category-pill {
        height: 36px;
        font-size: 11px;
        padding: 0 14px;
    }
    .category-pills {
        padding: 2px 0 12px;
        gap: 5px;
    }
    .pos-order-bar {
        padding: 6px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .pos-order-bar-left .vr {
        display: none;
    }
    .cart-secondary-actions .btn {
        font-size: .7rem;
        padding: 5px 8px;
        min-height: 30px;
    }
    .cart-actions-row .btn {
        font-size: .75rem;
        min-height: 38px;
        padding: 6px 8px;
    }
    .cart-summary {
        margin: 0 14px;
        padding: 10px 12px 8px;
    }
    .cart-actions {
        padding: 6px 14px 10px;
    }
    .cart-header {
        padding: 12px 16px;
    }
}

/* ===== MOBILE (< 480px) ===== */
@media (max-width: 479.98px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pos-products-column {
        padding: 10px 12px 80px;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp .25s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight .25s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --pos-primary: #81C784;
    --pos-primary-rgb: 129, 199, 132;
    --pos-primary-light: #1B5E20;
    --pos-success: #66BB6A;
    --pos-success-light: #022c22;
    --pos-warning: #fbbf24;
    --pos-warning-light: #292524;
    --pos-danger: #f87171;
    --pos-danger-light: #2d1b1b;
    --pos-info: #81C784;
    --pos-info-light: #172554;
    --pos-dark: #f1f5f9;
    --pos-dark-rgb: 241, 245, 249;
    --pos-gray: #64748b;
    --pos-gray-dark: #94a3b8;
    --pos-light: #0f172a;
    --pos-sidebar-bg: #1e293b;
    --pos-sidebar-hover: #334155;
    --pos-sidebar-active: #1B5E20;
    --pos-shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
    --pos-shadow-lg: 0 4px 16px rgba(0,0,0,.4);

    --bs-link-color: #A8B489;
    --bs-link-color-rgb: 168, 180, 137;
    --bs-link-hover-color: #C5D0AA;
    --bs-link-hover-color-rgb: 197, 208, 170;

    background-color: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] body {
    background-color: #0f172a;
}

[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #172033 60%, #111827 100%);
    border-right-color: rgba(71,85,105,.72);
    box-shadow: 1px 0 0 rgba(255,255,255,.03), 12px 0 32px rgba(0,0,0,.22);
}

[data-theme="dark"] .sidebar-header {
    background: rgba(30,41,59,.78);
    border-bottom-color: rgba(71,85,105,.68);
}

[data-theme="dark"] .sidebar-header .brand-text {
    color: #f8fafc;
}

[data-theme="dark"] .nav-item {
    color: #94a3b8;
}

[data-theme="dark"] .nav-item:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .nav-item.active {
    background: linear-gradient(135deg, rgba(76,175,80,.2), rgba(76,175,80,.08));
    color: #81C784;
    box-shadow: inset 0 0 0 1px rgba(76,175,80,.16), 0 10px 22px rgba(0,0,0,.18);
}

[data-theme="dark"] .nav-item > i {
    background: rgba(15,23,42,.72);
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.12);
}

[data-theme="dark"] .nav-item:hover > i,
[data-theme="dark"] .nav-item.active > i {
    background: rgba(15,23,42,.95);
    color: #81C784;
}

[data-theme="dark"] .sidebar-section-label {
    color: #cbd5e1;
    border-top-color: rgba(71,85,105,.56);
}

[data-theme="dark"] .sidebar-section-label::before {
    background: #81C784;
    box-shadow: 0 0 0 4px rgba(76,175,80,.2);
}

[data-theme="dark"] .sidebar-group-label {
    color: #64748b;
}

[data-theme="dark"] .sidebar-divider {
    background: linear-gradient(90deg, transparent, rgba(71,85,105,.82), transparent);
}

[data-theme="dark"] .nav-fav {
    background: rgba(251,191,36,.08);
}

[data-theme="dark"] .pos-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .header-btn {
    color: #94a3b8;
}

[data-theme="dark"] .header-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .pos-body {
    background: #0f172a;
}

[data-theme="dark"] .pos-cockpit {
    background: #0f172a;
}

[data-theme="dark"] .pos-products-section.full-width {
    background: #0f172a;
}

[data-theme="dark"] .pos-tables-section {
    background: #1e293b;
    border-right-color: #334155;
}

[data-theme="dark"] .pos-products-section {
    background: #0f172a;
}

[data-theme="dark"] .pos-cart-section {
    background: #1e293b;
    border-left-color: #334155;
}

[data-theme="dark"] .table-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .table-btn.active {
    background: #1B5E20;
    border-color: #81C784;
}

[data-theme="dark"] .table-btn:not(.active):not(.occupied):not(.payment):not(.reserved):hover {
    border-color: #81C784;
}

[data-theme="dark"] .category-pill {
    background: #1e293b;
    border-color: rgba(148,163,184,.16);
    color: #cbd5e1;
}

[data-theme="dark"] .category-pill:hover {
    background: #243B5E;
    border-color: rgba(119,200,107,.35);
    color: #E2E8F0;
}

[data-theme="dark"] .category-pill.active {
    background: #77C86B;
    color: #FFFFFF;
}

[data-theme="dark"] .product-card {
    background: #1e293b;
    border-color: rgba(148,163,184,.08);
}

[data-theme="dark"] .product-card .product-info {
    background: #1e293b;
}

[data-theme="dark"] .product-card .product-name {
    color: #e2e8f0;
}

[data-theme="dark"] .product-card .product-price {
    color: #81c784;
}

[data-theme="dark"] .search-box .form-control {
    background: #1e293b;
    border-color: rgba(148,163,184,.16);
    color: #e2e8f0;
}

[data-theme="dark"] .search-box .form-control:hover {
    border-color: rgba(119,200,107,.3);
}

[data-theme="dark"] .product-card:hover:not(:focus-within) {
    border-color: rgba(119,200,107,.4);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

[data-theme="dark"] .product-card-icon {
    background: linear-gradient(135deg, #1B5E20, #0f172a);
    color: #81C784;
    opacity: 1;
}

[data-theme="dark"] .quick-fav-chip {
    background: #1A304D;
    color: #A8B3C7;
}

[data-theme="dark"] .quick-fav-chip:hover {
    background: #243B5E;
    color: #E2E8F0;
}

[data-theme="dark"] .table-btn.occupied {
    background: linear-gradient(135deg, #292524, #1c1917);
    border-color: #f59e0b;
}

[data-theme="dark"] .table-btn.dirty {
    background: linear-gradient(135deg, #1c1300, #2a1f00);
    border-color: #ff9800;
}

[data-theme="dark"] .table-btn.payment {
    background: linear-gradient(135deg, #022c22, #064e3b);
    border-color: #4CAF50;
}

[data-theme="dark"] .table-btn.reserved {
    background: linear-gradient(135deg, #172554, #1e3a5f);
    border-color: #81C784;
}

[data-theme="dark"] .cart-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .cart-item {
    border-bottom-color: #334155;
}

[data-theme="dark"] .cart-item:hover {
    background: #0f172a;
}

[data-theme="dark"] .cart-item .item-qty {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .cart-summary {
    background: #0f172a;
    border-color: rgba(148,163,184,.1);
}

[data-theme="dark"] .cart-actions {
    border-top-color: #334155;
}

[data-theme="dark"] .qty-control {
    border-color: #475569;
}

[data-theme="dark"] .qty-control button {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .qty-control button:hover {
    background: #475569;
}

[data-theme="dark"] .qty-control .qty-value {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .form-control, [data-theme="dark"] .form-select,
[data-theme="dark"] .search-box input {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder,
[data-theme="dark"] .search-box input::placeholder {
    color: #94a3b8;
    opacity: .8;
}

[data-theme="dark"] .form-control:focus, [data-theme="dark"] .form-select:focus,
[data-theme="dark"] .search-box input:focus {
    background: #1e293b;
    border-color: #81C784;
}

[data-theme="dark"] .takeaway-btn {
    border-color: #475569;
    color: #94a3b8;
}

[data-theme="dark"] .takeaway-btn:hover {
    border-color: #81C784;
    background: #1B5E20;
    color: #81C784;
}

[data-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .admin-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .admin-card .card-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .settings-page {
    background:
        linear-gradient(180deg, rgba(76,175,80,.08), rgba(15,23,42,0) 260px),
        #0f172a;
}

[data-theme="dark"] .settings-hero,
[data-theme="dark"] .settings-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .settings-hero {
    background: linear-gradient(135deg, #1e293b, #172033);
}

[data-theme="dark"] .settings-hero h1,
[data-theme="dark"] .settings-card-header h2,
[data-theme="dark"] .settings-option strong,
[data-theme="dark"] .settings-switch strong,
[data-theme="dark"] .settings-savebar strong {
    color: #f8fafc;
}

[data-theme="dark"] .settings-hero p,
[data-theme="dark"] .settings-card-header span,
[data-theme="dark"] .settings-option small,
[data-theme="dark"] .settings-switch small,
[data-theme="dark"] .settings-savebar span {
    color: #94a3b8;
}

[data-theme="dark"] .settings-card-header {
    background: linear-gradient(180deg, #1e293b, #172033);
    border-bottom-color: #334155;
}

[data-theme="dark"] .settings-page .form-control,
[data-theme="dark"] .settings-page .form-select {
    background-color: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .settings-page .form-label {
    color: #cbd5e1;
}

[data-theme="dark"] .settings-option,
[data-theme="dark"] .settings-switch {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .settings-option:hover,
[data-theme="dark"] .settings-switch:hover {
    background: #172033;
    border-color: rgba(76,175,80,.34);
}

[data-theme="dark"] .settings-preview {
    background: linear-gradient(135deg, #022c22, #0f172a);
    border-color: rgba(52,211,153,.18);
}

[data-theme="dark"] .settings-preview strong {
    color: #d1fae5;
}

[data-theme="dark"] .settings-preview span,
[data-theme="dark"] .settings-preview small {
    color: #6ee7b7;
}

[data-theme="dark"] .settings-code {
    background: #0f172a;
    color: #cbd5e1;
}

[data-theme="dark"] .settings-savebar {
    background: rgba(30,41,59,.9);
    border-color: #334155;
    box-shadow: 0 -10px 28px rgba(0,0,0,.24);
}

[data-theme="dark"] .category-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .modal-title {
    color: #f1f5f9;
}

[data-theme="dark"] .modal-body {
    color: #cbd5e1;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #334155;
}

[data-theme="dark"] .modal-footer .btn-light {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

[data-theme="dark"] .modal-footer .btn-light:hover {
    background: #475569;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] #orderDetailModal .modal-header h5 {
    color: #f1f5f9;
}

[data-theme="dark"] #orderDetailModal .table-light {
    --bs-table-bg: #0f172a;
    --bs-table-color: #e2e8f0;
    --bs-table-accent-bg: #0f172a;
}

[data-theme="dark"] #orderDetailModal .bg-light {
    background: #1e293b !important;
}

[data-theme="dark"] #orderDetailModal [style*="--pos-bg-light"],
[data-theme="dark"] #orderDetailModal [style*="pos-bg-light"] {
    background: #1e293b !important;
}

[data-theme="dark"] #orderDetailModal .btn-light.border {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569 !important;
}

[data-theme="dark"] #orderDetailModal .btn-light.border:hover {
    background: #475569;
}

[data-theme="dark"] #orderDetailModal .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] #orderDetailModal .table td,
[data-theme="dark"] #orderDetailModal .table th {
    border-color: #334155;
}

[data-theme="dark"] #orderDetailModal .table,
[data-theme="dark"] #orderDetailModal .table tbody tr {
    background: #1e293b;
}

[data-theme="dark"] #orderDetailModal .table {
    --bs-table-color: #cbd5e1;
    --bs-table-bg: transparent;
    color: #cbd5e1;
}

[data-theme="dark"] #orderDetailModal .table tbody tr:hover {
    background: #0f172a;
}

[data-theme="dark"] #orderDetailModal .table tbody td {
    background: transparent;
    color: inherit;
}

[data-theme="dark"] .table-modern thead th {
    background: #0f172a;
    border-bottom-color: #334155;
    color: #64748b;
}

[data-theme="dark"] .table-modern tbody td {
    border-bottom-color: #334155;
}

[data-theme="dark"] .table-modern tbody tr:hover {
    background: #0f172a;
}

[data-theme="dark"] .kitchen-card {
    background: #1e293b;
}

[data-theme="dark"] .status-pending {
    background: #292524;
    color: #fbbf24;
}

[data-theme="dark"] .status-paid {
    background: #022c22;
    color: #66BB6A;
}

[data-theme="dark"] .status-preparing {
    background: #172554;
    color: #81C784;
}

[data-theme="dark"] .status-ready {
    background: #022c22;
    color: #66BB6A;
}

[data-theme="dark"] .status-served {
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .table-btn.takeaway {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .kitchen-card .order-notes {
    background: #292524;
    color: #fbbf24;
}

[data-theme="dark"] .kitchen-card .order-items li {
    border-bottom-color: #334155;
}

[data-theme="dark"] .app-breadcrumb {
    background: #1e293b;
    border-bottom-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .app-breadcrumb a {
    color: #94a3b8;
}

[data-theme="dark"] .app-breadcrumb a:hover {
    color: #81C784;
}

[data-theme="dark"] .page-toolbar-title {
    color: #e2e8f0;
}

[data-theme="dark"] .filter-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dt-toolbar {
    background: #0f172a;
    border-bottom-color: #334155;
}

[data-theme="dark"] .sidebar-search input {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .sidebar-search input:focus {
    background: #1e293b;
}

[data-theme="dark"] .sidebar-search-wrap {
    border-bottom-color: #334155;
}

[data-theme="dark"] .dropdown-item {
    color: #e2e8f0;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .qty-control {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .sidebar-toggle {
    color: #64748b;
}

[data-theme="dark"] .sidebar-toggle:hover {
    background: #334155;
}

[data-theme="dark"] .offline-indicator.online {
    background: #022c22;
    color: #66BB6A;
}

[data-theme="dark"] .offline-indicator.offline {
    background: #2d1b1b;
    color: #f87171;
}

[data-theme="dark"] .offline-indicator.syncing {
    background: #172554;
    color: #81C784;
}

[data-theme="dark"] .badge.bg-primary {
    background: #1B5E20 !important;
    color: #81C784;
}

[data-theme="dark"] .btn-light {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-light:hover {
    background: #475569;
}

[data-theme="dark"] .payment-option {
    border-color: #475569;
}

[data-theme="dark"] .payment-option i {
    color: #94a3b8;
}

[data-theme="dark"] .payment-option:hover,
[data-theme="dark"] .payment-option.active {
    border-color: #81C784;
    background: #1B5E20;
}

[data-theme="dark"] .payment-option.active i {
    color: #81C784;
}

[data-theme="dark"] .section-title {
    color: #64748b;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
}

[data-theme="dark"] .btn-outline-secondary:hover:not(:disabled) {
    background: #334155;
    color: #e2e8f0;
    border-color: #64748b;
}

[data-theme="dark"] .btn-outline-primary {
    color: #81C784;
    border-color: #2E7D32;
}

[data-theme="dark"] .btn-outline-primary:hover:not(:disabled) {
    background: #1B5E20;
    color: #fff;
    border-color: #81C784;
}

[data-theme="dark"] .text-dark {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-body {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .bg-light {
    background-color: #334155 !important;
}

[data-theme="dark"] .badge.bg-light {
    color: #e2e8f0;
}

[data-theme="dark"] .border {
    border-color: #334155 !important;
}

[data-theme="dark"] hr {
    border-color: #334155;
    opacity: .5;
}

[data-theme="dark"] .quick-product-btn {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .quick-product-btn:hover {
    border-color: #81C784;
    background: #1B5E20;
    color: #81C784;
}

[data-theme="dark"] .session-info-bar {
    background: #1B5E20;
    border-bottom-color: #312e81;
}

[data-theme="dark"] .session-table-name {
    color: #81C784;
}

[data-theme="dark"] .session-duration,
[data-theme="dark"] .session-guest-count {
    color: #94a3b8;
}

[data-theme="dark"] .table-timer {
    background: #292524;
    color: #fbbf24;
}

[data-theme="dark"] .table-btn.occupied .table-timer {
    background: #292524;
    color: #fbbf24;
}

[data-theme="dark"] .table-btn.payment .table-timer {
    background: #022c22;
    color: #66BB6A;
}

[data-theme="dark"] .status-badge.status-cancelled,
[data-theme="dark"] .status-badge.status-voided {
    background: #2d1b1b;
    color: #f87171;
}

[data-theme="dark"] .cart-secondary-actions .btn-outline-secondary {
    border-color: #475569;
    color: #94a3b8;
}

[data-theme="dark"] .cart-secondary-actions .btn-outline-secondary:hover {
    border-color: #81C784;
    background: #1B5E20;
    color: #81C784;
}

/* â”€â”€ Dashboard Dark â”€â”€ */
[data-theme="dark"] .kpi-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .kpi-value {
    color: #e2e8f0;
}

[data-theme="dark"] .kpi-progress {
    background: #334155;
}

[data-theme="dark"] .dash-greeting .greeting-line {
    color: #e2e8f0;
}

[data-theme="dark"] .dash-clock .dash-time {
    color: #e2e8f0;
}

[data-theme="dark"] .dash-widget {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dash-widget-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .dash-widget-title {
    color: #64748b;
}

[data-theme="dark"] .activity-item {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .activity-title {
    color: #e2e8f0;
}

[data-theme="dark"] .top-product-name {
    color: #e2e8f0;
}

[data-theme="dark"] .top-product-track {
    background: #334155;
}

[data-theme="dark"] .top-product-icon {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .alert-danger {
    background: #2d1b1b;
}

[data-theme="dark"] .alert-warning {
    background: #292524;
}

[data-theme="dark"] .alert-info {
    background: #172554;
}

[data-theme="dark"] .alert-title {
    color: #e2e8f0;
}

[data-theme="dark"] .quick-action-btn {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .quick-action-btn:hover {
    background: #1e293b;
    border-color: #81C784;
    color: #81C784;
}

[data-theme="dark"] .quick-action-btn i {
    background: #1e293b;
}

[data-theme="dark"] .quick-action-btn:hover i {
    background: #1B5E20;
    color: #81C784;
}

[data-theme="dark"] .cafe-health {
    background: linear-gradient(135deg, #1B5E20, #0f172a);
    border-color: #312e81;
}

[data-theme="dark"] .cafe-health-title {
    color: #81C784;
}

[data-theme="dark"] .hour-bar {
    background: linear-gradient(180deg, #81C784, #4CAF50);
}

[data-theme="dark"] .hour-bar-label {
    color: #64748b;
}

[data-theme="dark"] .dash-badge-peak {
    background: #292524;
    color: #fbbf24;
}

[data-theme="dark"] .dash-badge-ok {
    background: #022c22;
    color: #66BB6A;
}

[data-theme="dark"] .dash-badge-offline {
    background: #2d1b1b;
    color: #f87171;
}

[data-theme="dark"] .dash-badge-syncing {
    background: #172554;
    color: #81C784;
}

[data-theme="dark"] .top-product-fill {
    background: linear-gradient(90deg, #81C784, #A5D6A7);
}

/* ===== PRINT STYLES (80mm thermal) ===== */
@media print {
    @page { margin: 0; size: 80mm auto; }
    body * { visibility: hidden; }
    .print-ticket, .print-ticket * { visibility: visible; }
    .print-ticket { position: absolute; left: 0; top: 0; width: 72mm; }
}

/* ===== PRINT JOBS ADMIN ===== */
.print-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.print-job-card {
    background: #fff;
    border-radius: var(--pos-radius);
    padding: 16px 18px;
    box-shadow: var(--pos-shadow);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--pos-transition);
}

.print-job-card:hover {
    box-shadow: var(--pos-shadow-lg);
}

.print-job-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.print-job-icon.kitchen { background: var(--pos-info-light); color: var(--pos-info); }
.print-job-icon.receipt { background: var(--pos-success-light); color: var(--pos-success); }
.print-job-icon.pre_bill { background: var(--pos-warning-light); color: var(--pos-warning); }

.print-job-info {
    flex: 1;
    min-width: 0;
}

.print-job-type {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pos-dark);
}

.print-job-meta {
    font-size: .72rem;
    color: var(--pos-gray);
}

.print-job-status {
    font-size: .7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.print-job-status.pending { background: var(--pos-warning-light); color: var(--pos-warning-text); }
.print-job-status.printed { background: var(--pos-success-light); color: var(--pos-success-text); }
.print-job-status.failed { background: var(--pos-danger-light); color: #dc2626; }

[data-theme="dark"] .print-job-card {
    background: #1e293b;
    border-color: #334155;
}

/* ===== DASHBOARD PREMIUM DARK MODE ===== */
[data-theme="dark"] .dash-header-premium {
    background: linear-gradient(135deg, #1e293b 0%, #172033 100%);
    border-color: #334155;
}
[data-theme="dark"] .dash-header-premium .dash-greeting .greeting-line { color: #e2e8f0; }
[data-theme="dark"] .dash-header-premium .dash-clock-premium .dash-time { color: #e2e8f0; }
[data-theme="dark"] .dash-header-premium .dash-clock-premium .dash-date { color: #94a3b8; }
[data-theme="dark"] .dash-badge-premium { color: #94a3b8; }
[data-theme="dark"] .status-pill { background: #334155; color: #94a3b8; }
[data-theme="dark"] .status-pill.status-online { background: #022c22; color: #66BB6A; }
[data-theme="dark"] .status-pill.status-offline { background: #2d1b1b; color: #f87171; }
[data-theme="dark"] .status-pill.status-warning { background: #292524; color: #fbbf24; }
[data-theme="dark"] .status-pill.status-ok { background: #022c22; color: #66BB6A; }
[data-theme="dark"] .action-card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .action-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.22); }
[data-theme="dark"] .kpi-premium {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .kpi-premium-value { color: #e2e8f0; }
[data-theme="dark"] .kpi-premium-label { color: #94a3b8; }
[data-theme="dark"] .kpi-premium-footer { color: #94a3b8; }
[data-theme="dark"] .kpi-premium-footer strong { color: #e2e8f0; }
[data-theme="dark"] .kpi-premium-progress { background: #334155; }
[data-theme="dark"] .kpi-premium-sales .kpi-premium-icon { background: #1B5E20; color: #81C784; }
[data-theme="dark"] .kpi-premium-orders .kpi-premium-icon { background: #292524; color: #fbbf24; }
[data-theme="dark"] .kpi-premium-ticket .kpi-premium-icon { background: #022c22; color: #66BB6A; }
[data-theme="dark"] .kpi-premium-tables .kpi-premium-icon { background: #172554; color: #81C784; }
[data-theme="dark"] .kpi-premium-kitchen .kpi-premium-icon { background: #2d1b1b; color: #f87171; }
[data-theme="dark"] .kpi-premium-hourly .kpi-premium-icon { background: #292524; color: #A5D6A7; }
[data-theme="dark"] .kpi-premium-customers .kpi-premium-icon { background: #1B5E20; color: #81C784; }
[data-theme="dark"] .kpi-premium-alerts .kpi-premium-icon { background: #2d1b1b; color: #f87171; }
[data-theme="dark"] .kpi-alert-mini-danger { background: #2d1b1b; color: #f87171; }
[data-theme="dark"] .kpi-alert-mini-warning { background: #292524; color: #fbbf24; }
[data-theme="dark"] .kitchen-status-cell { background: #0f172a; }
[data-theme="dark"] .kitchen-status-num { color: #e2e8f0; }
[data-theme="dark"] .kitchen-status-label { color: #94a3b8; }
[data-theme="dark"] .top-category-name { color: #e2e8f0; }
[data-theme="dark"] .top-category-bar { background: #334155; }
[data-theme="dark"] .top-category-value { color: #e2e8f0; }
[data-theme="dark"] .insight-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .insight-value { color: #e2e8f0; }
[data-theme="dark"] .insight-label { color: #94a3b8; }
[data-theme="dark"] .insight-sub { color: #94a3b8; }
[data-theme="dark"] .payment-legend-value { color: #e2e8f0; }
[data-theme="dark"] .payment-legend-label { color: #94a3b8; }
[data-theme="dark"] .payment-legend-pct { color: #94a3b8; }
[data-theme="dark"] .dash-widget-premium {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .dash-widget-header-premium { border-bottom-color: #334155; }
[data-theme="dark"] .dash-widget-title-premium { color: #94a3b8; }
[data-theme="dark"] .dash-widget-badge { background: #022c22; color: #66BB6A; }
[data-theme="dark"] .dash-widget-badge.badge-danger { background: #2d1b1b; color: #f87171; }
[data-theme="dark"] .dash-widget-badge.badge-live { background: #2d1b1b; color: #f87171; }
[data-theme="dark"] .surveillance-item {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .surveillance-header { border-bottom-color: #334155; }
[data-theme="dark"] .surveillance-title { color: #94a3b8; }
[data-theme="dark"] .surveillance-value { color: #e2e8f0; }
[data-theme="dark"] .surveillance-label { color: #94a3b8; }
[data-theme="dark"] .activity-text { color: #e2e8f0; }
[data-theme="dark"] .activity-time { color: #94a3b8; }
[data-theme="dark"] .system-status { background: #0f172a; }
[data-theme="dark"] .system-item { border-bottom-color: #334155; }
[data-theme="dark"] .system-label { color: #94a3b8; }
[data-theme="dark"] .dash-empty { color: #94a3b8; }
[data-theme="dark"] .dash-chart-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .dash-chart-header { border-bottom-color: #334155; }
[data-theme="dark"] .dash-chart-title { color: #94a3b8; }
[data-theme="dark"] .dash-chart-legend { color: #94a3b8; }
[data-theme="dark"] .dash-chart-legend span { color: #94a3b8; }

/* ===== POS DARK MODE FIXES ===== */
[data-theme="dark"] .pos-order-bar { background: #1e293b; border-bottom-color: #334155; }
[data-theme="dark"] .pos-order-row { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .pos-cart-column { background: #1e293b; border-left-color: #334155; }
[data-theme="dark"] .pos-tables-column { background: #1e293b; border-right-color: #334155; }
[data-theme="dark"] .pos-products-column { background: #0f172a; }
[data-theme="dark"] .pos-cart-backdrop { background: rgba(0,0,0,.6); }
[data-theme="dark"] .pos-cart-fab { box-shadow: 0 4px 16px rgba(76,175,80,.3); }
[data-theme="dark"] .pos-cart-handle::before { background: #334155; }
[data-theme="dark"] .cart-header-close { background: #1e293b; color: #94a3b8; }
[data-theme="dark"] .cart-header-close:hover { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .pos-search-trigger { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .pos-search-trigger:hover { border-color: rgba(var(--pos-primary-rgb), .45); color: var(--pos-primary); }
[data-theme="dark"] .pos-search-trigger .pos-search-dot { border-color: #1e293b; }
[data-theme="dark"] .search-box .search-clear { background: #334155; color: #94a3b8; }
[data-theme="dark"] .search-box .search-clear:hover { background: #475569; color: #e2e8f0; }

[data-theme="dark"] .order-status-draft { background: #334155; color: #94a3b8; }
[data-theme="dark"] .order-status-sent { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .order-status-in_progress { background: #292524; color: #fbbf24; }
[data-theme="dark"] .order-status-ready { background: #022c22; color: #66BB6A; }
[data-theme="dark"] .order-status-served { background: #0c4a6e; color: #7dd3fc; }
[data-theme="dark"] .order-status-payment_pending { background: #2d1b1b; color: #f87171; }
[data-theme="dark"] .order-status-paid { background: #1B5E20; color: #81C784; }
[data-theme="dark"] .order-status-cancelled { background: #1e293b; color: #64748b; }

[data-theme="dark"] .badge.bg-info-subtle { background: #172554 !important; color: #81C784 !important; }
[data-theme="dark"] .badge.bg-warning-subtle { background: #292524 !important; color: #fbbf24 !important; }
[data-theme="dark"] .badge.bg-success-subtle { background: #022c22 !important; color: #66BB6A !important; }

/* ===== PRINT BUTTONS EXTRA ===== */
.btn-outline-primary.print-btn {
    border-style: dashed;
}

.btn-outline-primary.print-btn:hover {
    border-style: solid;
}

/* ===== SIDEBAR OVERLAY (MOBILE) ===== */
.sidebar-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 1039;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--pos-transition);
    }
    .sidebar-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
    .sidebar {
        z-index: 1050;
    }
    .main-content {
        margin-left: 0;
    }

    .settings-shell {
        padding: 16px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-card-sticky {
        position: static;
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 575.98px) {
    .settings-shell {
        padding: 12px;
    }

    .settings-hero {
        align-items: flex-start;
        padding: 18px;
    }

    .settings-hero-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 1.1rem;
    }

    .settings-hero h1 {
        font-size: 1.25rem;
    }

    .settings-field-grid,
    .settings-field-grid-three,
    .settings-options-inline {
        grid-template-columns: 1fr;
    }

    .settings-savebar {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-savebar .btn {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dash-header-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== TABLET MODE POS ===== */
.pos-tables-column {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid rgba(76,175,80,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tables-column-header {
    padding: 14px 16px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.tables-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow-y: auto;
}

.table-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all .15s;
    font-size: .75rem;
    font-weight: 500;
    color: var(--pos-gray-dark);
}

.table-cell:hover {
    border-color: var(--pos-primary);
    background: #E9EDE3;
    color: var(--pos-primary);
}

.table-cell.active {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
}

.table-cell.occupied {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.table-cell.free {
    background: #F0F3E8;
    border-color: #C9D2B4;
    color: #57663F;
}

.table-cell.dirty {
    background: #fff8e1;
    border-color: #ffe082;
    color: #ff9800;
}

.pos-tablet-mode .pos-cart-column {
    flex: 0 0 300px;
    min-width: 300px;
}

@media (max-width: 1199px) {
    .pos-tables-column {
        width: 180px;
        min-width: 180px;
    }
    .pos-tablet-mode .pos-cart-column {
        flex: 0 0 260px;
        min-width: 260px;
    }
}

/* ===== Customers side panel (FW-CUSTOMER-002) ===== */
.pos-customers-column {
    width: 240px;
    min-width: 240px;
    background: #fff;
    border-right: 1px solid rgba(76,175,80,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.customers-search-wrap {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.customers-panel-footer {
    padding: 10px 12px;
    border-top: 1px solid #f1f5f9;
}

.customer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 6px;
    min-height: 88px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    font-size: .75rem;
}

.customer-card:hover {
    border-color: var(--pos-primary);
    background: #E9EDE3;
    color: var(--pos-primary);
}

.customer-card.active {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
}

.customer-card .cc-name {
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.customer-card .cc-phone {
    font-size: .7rem;
    opacity: .85;
}

.customer-card .cc-badge {
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 2px 8px;
    margin-top: 2px;
}

.customer-card.cc-add {
    border-style: dashed;
    background: transparent;
}

[data-theme="dark"] .pos-customers-column {
    background: #1e293b;
    border-right-color: #334155;
}

@media (max-width: 1199px) {
    .pos-customers-column {
        width: 200px;
        min-width: 200px;
    }
}

/* ===== FLATPICKR THEME ===== */
.flatpickr-calendar {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(30,41,59,.12);
    font-family: inherit;
    padding: 6px;
    overflow: hidden;
}

.flatpickr-calendar.open {
    z-index: 1060;
}

.flatpickr-months {
    padding: 4px 4px 8px;
}

.flatpickr-month {
    color: #1e293b;
}

.flatpickr-current-month {
    font-size: .95rem;
    font-weight: 600;
    padding-top: 4px;
}

.flatpickr-current-month .numInputWrapper {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    width: 60px;
}

.flatpickr-current-month .numInputWrapper input {
    font-weight: 600;
    color: #1e293b;
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    border-color: #e2e8f0;
}

.flatpickr-prev-month, .flatpickr-next-month {
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 8px;
}

.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    background: #E9EDE3;
    color: var(--pos-primary);
}

.flatpickr-weekdays {
    padding: 0 4px;
}

span.flatpickr-weekday {
    font-size: .7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.flatpickr-days {
    padding: 0 4px;
}

.flatpickr-day {
    border-radius: 8px;
    font-size: .82rem;
    color: #475569;
    margin: 1px;
    height: 34px;
    line-height: 34px;
    max-width: 34px;
}

.flatpickr-day:hover {
    background: #E9EDE3;
    border-color: #E9EDE3;
    color: var(--pos-primary);
}

.flatpickr-day.today {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
    font-weight: 600;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
}

.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
    background: #3F4A2E;
    border-color: #3F4A2E;
}

.flatpickr-day.inRange {
    background: #E9EDE3;
    border-color: #E9EDE3;
    color: var(--pos-primary);
    box-shadow: -5px 0 0 #E9EDE3, 5px 0 0 #E9EDE3;
}

.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
    color: #cbd5e1;
}

.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay.flatpickr-disabled, .flatpickr-day.nextMonthDay.flatpickr-disabled {
    color: #e2e8f0;
}

.flatpickr-time {
    border-top: 1px solid #f1f5f9;
}

.flatpickr-time input {
    font-weight: 600;
    color: #1e293b;
}

.flatpickr-time .flatpickr-am-pm {
    font-weight: 600;
    color: #1e293b;
}

/* Flatpickr altInput (display) styling */
input.flatpickr-input {
    background: #fff;
}

/* Dark mode Flatpickr */
[data-theme="dark"] .flatpickr-calendar {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

[data-theme="dark"] .flatpickr-month {
    color: #f1f5f9;
}

[data-theme="dark"] .flatpickr-current-month .numInputWrapper {
    border-color: #334155;
}

[data-theme="dark"] .flatpickr-current-month .numInputWrapper input {
    color: #f1f5f9;
}

[data-theme="dark"] .flatpickr-current-month .numInputWrapper span.arrowUp,
[data-theme="dark"] .flatpickr-current-month .numInputWrapper span.arrowDown {
    border-color: #334155;
}

[data-theme="dark"] span.flatpickr-weekday {
    color: #64748b;
}

[data-theme="dark"] .flatpickr-day {
    color: #cbd5e1;
}

[data-theme="dark"] .flatpickr-day:hover {
    background: #334155;
    border-color: #334155;
    color: #fff;
}

[data-theme="dark"] .flatpickr-day.today {
    border-color: #81C784;
    color: #81C784;
}

[data-theme="dark"] .flatpickr-day.selected, [data-theme="dark"] .flatpickr-day.startRange, [data-theme="dark"] .flatpickr-day.endRange {
    background: #81C784;
    border-color: #81C784;
    color: #fff;
}

[data-theme="dark"] .flatpickr-day.inRange {
    background: #334155;
    border-color: #334155;
    color: #fff;
    box-shadow: -5px 0 0 #334155, 5px 0 0 #334155;
}

[data-theme="dark"] .flatpickr-day.prevMonthDay, [data-theme="dark"] .flatpickr-day.nextMonthDay {
    color: #475569;
}

[data-theme="dark"] .flatpickr-time {
    border-top-color: #334155;
}

[data-theme="dark"] .flatpickr-time input,
[data-theme="dark"] .flatpickr-time .flatpickr-am-pm {
    color: #f1f5f9;
}

/* ===== POS FULLSCREEN MODE ===== */
body.pos-fullscreen .sidebar,
body.pos-fullscreen .pos-header,
body.pos-fullscreen .app-breadcrumb,
body.pos-fullscreen .sidebar-overlay {
    display: none !important;
}

body.pos-fullscreen .pos-layout {
    height: 100vh;
    width: 100vw;
}

body.pos-fullscreen .main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
    height: 100vh;
    overflow: hidden;
}

body.pos-fullscreen .pos-cockpit {
    height: 100vh;
    border-radius: 0;
}

/* ===== POS MODAL SCROLL FIX ===== */
.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 2rem);
}

/* Ensure POS modals never exceed viewport */
#modifierModal .modal-dialog,
#variantModal .modal-dialog,
#composedModal .modal-dialog,
#comboModal .modal-dialog {
    max-height: 90vh;
}

#modifierModal .modal-body,
#variantModal .modal-body,
#composedModal .modal-body,
#comboModal .modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== SMARTKEYBOARD ===== */
.sk-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0,0,0,.3);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sk {
    width: 100%;
    max-width: 900px;
    background: var(--pos-light, #F8FAFC);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.12);
    padding: 12px 12px 20px;
    animation: sk-slide-up .25s cubic-bezier(.4,0,.2,1);
}

@keyframes sk-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sk-display {
    background: #fff;
    border: 2px solid var(--pos-border, #E2E8F0);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.sk-display-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pos-dark, #1E293B);
    word-break: break-all;
    width: 100%;
}

.sk-cursor {
    animation: sk-blink .8s step-end infinite;
    color: var(--pos-primary, #57663F);
    font-weight: 400;
}

@keyframes sk-blink {
    50% { opacity: 0; }
}

.sk-notes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0 10px;
    justify-content: center;
}

.sk-note-btn {
    padding: 8px 16px;
    border: 1px solid var(--pos-border, #E2E8F0);
    border-radius: 20px;
    background: #fff;
    font-size: .82rem;
    color: var(--pos-dark, #1E293B);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.sk-note-btn:active {
    transform: scale(.95);
    background: var(--pos-primary-light, #E9EDE3);
    border-color: var(--pos-primary, #57663F);
    color: var(--pos-primary, #57663F);
}

.sk-note-other {
    border-style: dashed;
    color: var(--pos-primary, #57663F);
    border-color: var(--pos-primary, #57663F);
}

.sk-suggestions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 10px;
    max-height: 200px;
    overflow-y: auto;
}

.sk-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--pos-border, #E2E8F0);
    border-radius: 10px;
    font-size: .85rem;
    color: var(--pos-dark, #1E293B);
    cursor: pointer;
    transition: all .1s;
}

.sk-suggestion:active {
    background: var(--pos-primary-light, #E9EDE3);
    border-color: var(--pos-primary, #57663F);
}

.sk-keys {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sk-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.sk-key {
    flex: 1;
    max-width: 72px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: var(--pos-dark, #1E293B);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    transition: all .1s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.sk-key:active {
    transform: scale(.92);
    box-shadow: none;
    background: #e8ecf0;
}

.sk-key-special {
    background: #e8ecf0;
    font-size: .9rem;
    color: #475569;
}

.sk-key-special:active {
    background: #cbd5e1;
}

.sk-key-primary {
    background: var(--pos-primary, #57663F);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.sk-key-primary:active {
    background: #3F4A2E;
}

.sk-key-danger {
    background: #fee2e2;
    color: #dc2626;
    font-size: .82rem;
    font-weight: 600;
}

.sk-key-danger:active {
    background: #fecaca;
}

.sk-key-space {
    flex: 3 !important;
    max-width: none;
}

.sk-key-active {
    background: var(--pos-primary-light, #E9EDE3) !important;
    color: var(--pos-primary, #57663F) !important;
}

/* ===== SMARTKEYBOARD DARK MODE ===== */
[data-theme="dark"] .sk-overlay {
    background: rgba(0,0,0,.5);
}

[data-theme="dark"] .sk {
    background: #1e293b;
    box-shadow: 0 -8px 40px rgba(0,0,0,.3);
}

[data-theme="dark"] .sk-display {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .sk-display-text {
    color: #f1f5f9;
}

[data-theme="dark"] .sk-note-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .sk-note-btn:active {
    background: #1e3a5f;
    border-color: var(--pos-primary, #4CAF50);
}

[data-theme="dark"] .sk-note-other {
    border-color: var(--pos-primary, #4CAF50);
}

[data-theme="dark"] .sk-suggestion {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .sk-suggestion:active {
    background: #1e3a5f;
}

[data-theme="dark"] .sk-key {
    background: #334155;
    color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

[data-theme="dark"] .sk-key:active {
    background: #475569;
}

[data-theme="dark"] .sk-key-special {
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .sk-key-special:active {
    background: #334155;
}

[data-theme="dark"] .sk-key-danger {
    background: #451a1a;
    color: #fca5a5;
}

[data-theme="dark"] .sk-key-danger:active {
    background: #5c1a1a;
}

[data-theme="dark"] .sk-key-space {
    background: #1e293b;
}

/* ===== MODAL ANIMATIONS ===== */
.modal.fade .modal-dialog {
    transition: transform .25s ease-out, opacity .2s ease-out;
    transform: scale(.96) translateY(8px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow-lg);
    border: 1px solid var(--pos-border-light);
}

/* ===== PAGE TRANSITIONS ===== */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pageSlideIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.page-shell {
    animation: pageFadeIn .35s ease-out;
}

/* Stagger children for lists/tables */
.table-modern tbody tr {
    animation: pageFadeIn .25s ease-out both;
}

.table-modern tbody tr:nth-child(1) { animation-delay: .02s; }
.table-modern tbody tr:nth-child(2) { animation-delay: .04s; }
.table-modern tbody tr:nth-child(3) { animation-delay: .06s; }
.table-modern tbody tr:nth-child(4) { animation-delay: .08s; }
.table-modern tbody tr:nth-child(5) { animation-delay: .10s; }
.table-modern tbody tr:nth-child(6) { animation-delay: .12s; }
.table-modern tbody tr:nth-child(7) { animation-delay: .14s; }
.table-modern tbody tr:nth-child(8) { animation-delay: .16s; }
.table-modern tbody tr:nth-child(9) { animation-delay: .18s; }
.table-modern tbody tr:nth-child(10) { animation-delay: .20s; }

/* Card entrance animation */
.admin-card,
.filter-card,
.settings-card {
    animation: pageFadeIn .35s ease-out;
}

/* ===== DROPDOWN ANIMATIONS ===== */
.dropdown-menu {
    animation: pageFadeIn .15s ease-out;
    transform-origin: top right;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    animation: pageSlideIn .3s ease-out;
}

/* ===== KPI CARD ENTRANCE ===== */
.kpi-card {
    animation: pageFadeIn .4s ease-out both;
}

.kpi-card:nth-child(1) { animation-delay: .05s; }
.kpi-card:nth-child(2) { animation-delay: .10s; }
.kpi-card:nth-child(3) { animation-delay: .15s; }
.kpi-card:nth-child(4) { animation-delay: .20s; }
.kpi-card:nth-child(5) { animation-delay: .25s; }

/* ===== SMOOTH HOVER TRANSITIONS ===== */
.btn, .badge, .form-control, .form-select, .table-modern td, .table-modern th {
    transition: all .15s ease;
}

.product-card, .category-pill, .quick-action-btn, .quick-product-btn {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* ===== TABLET / TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .product-card {
        min-height: 120px;
    }
    .product-card .product-name {
        font-size: .9rem;
    }
    .category-pill {
        min-height: 40px;
        font-size: .85rem;
        padding: 8px 16px;
    }
    .qty-control button {
        min-width: 36px;
        min-height: 36px;
    }
    .cart-actions-row .btn {
        font-size: .78rem;
        min-height: 40px;
        padding: 6px 10px;
    }
    .table-cell {
        min-height: 56px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .page-shell, .table-modern tbody tr, .admin-card, .filter-card, .settings-card,
    .kpi-card, .dropdown-menu, .toast, .modal.fade .modal-dialog {
        animation: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════
   DASHBOARD PREMIUM — Styles Premium 2026
   ═══════════════════════════════════════════════ */

/* ── Header Premium ── */
.dash-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    border: 1px solid var(--pos-border-light);
    margin-bottom: 20px;
}

.dash-header-premium .dash-avatar-premium {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pos-primary), #6E8050);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(var(--pos-primary-rgb), .35);
}

.dash-header-premium .dash-greeting .greeting-line {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pos-dark);
}

.dash-header-premium .dash-greeting .greeting-name {
    font-weight: 800;
    background: linear-gradient(135deg, var(--pos-primary), #6E8050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-header-premium .dash-greeting .greeting-sub {
    font-size: .78rem;
    color: var(--pos-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dash-header-premium .dash-clock-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dash-header-premium .dash-clock-premium .dash-time {
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--pos-dark);
    line-height: 1;
    letter-spacing: -.02em;
}

.dash-header-premium .dash-clock-premium .dash-date {
    font-size: .75rem;
    color: var(--pos-gray);
    font-weight: 500;
}

.dash-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.dash-status-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--pos-gray-dark);
    transition: all .2s ease;
}

.status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.status-online { background: #E9EDE3; color: #3F4A2E; }
.status-pill.status-offline { background: #fef2f2; color: #dc2626; }
.status-pill.status-warning { background: #fffbeb; color: #d97706; }
.status-pill.status-ok { background: #E9EDE3; color: #3F4A2E; }

/* ── Actions Bar ── */
.dash-actions-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border-radius: var(--pos-radius);
    background: #fff;
    border: 1px solid var(--pos-border-light);
    box-shadow: var(--pos-shadow);
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    color: var(--pos-dark);
    text-align: center;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pos-shadow-lg);
}

.action-card .action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: all .2s ease;
}

.action-card .action-label {
    font-size: .78rem;
    font-weight: 700;
}

.action-primary .action-icon { background: linear-gradient(135deg, var(--pos-primary), #6E8050); }
.action-warning .action-icon { background: linear-gradient(135deg, #E0A24A, #C97F2E); }
.action-info .action-icon { background: linear-gradient(135deg, #57663F, #8A9A6B); }
.action-success .action-icon { background: linear-gradient(135deg, #57663F, #6E8050); }
.action-purple .action-icon { background: linear-gradient(135deg, #6E8050, #A8B489); }
.action-dark .action-icon { background: linear-gradient(135deg, #1e293b, #334155); }

.action-card:hover .action-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ── KPI Grid Premium ── */
.dash-kpi-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.kpi-premium {
    background: #fff;
    border-radius: var(--pos-radius);
    padding: 20px;
    box-shadow: var(--pos-shadow);
    border: 1px solid var(--pos-border-light);
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.kpi-premium:hover {
    box-shadow: var(--pos-shadow-lg);
    transform: translateY(-2px);
}

.kpi-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--pos-radius) var(--pos-radius) 0 0;
}

.kpi-premium-sales::before { background: linear-gradient(90deg, #57663F, #6E8050); }
.kpi-premium-orders::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.kpi-premium-ticket::before { background: linear-gradient(90deg, #57663F, #6E8050); }
.kpi-premium-tables::before { background: linear-gradient(90deg, #57663F, #8A9A6B); }
.kpi-premium-kitchen::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.kpi-premium-hourly::before { background: linear-gradient(90deg, #6E8050, #A8B489); }
.kpi-premium-customers::before { background: linear-gradient(90deg, #57663F, #8A9A6B); }
.kpi-premium-alerts::before { background: linear-gradient(90deg, #dc2626, #ef4444); }

.kpi-premium-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.kpi-premium-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kpi-premium-sales .kpi-premium-icon { background: var(--pos-primary-light); color: var(--pos-primary); }
.kpi-premium-orders .kpi-premium-icon { background: var(--pos-warning-light); color: var(--pos-warning); }
.kpi-premium-ticket .kpi-premium-icon { background: var(--pos-success-light); color: var(--pos-success); }
.kpi-premium-tables .kpi-premium-icon { background: var(--pos-info-light); color: var(--pos-info); }
.kpi-premium-kitchen .kpi-premium-icon { background: #fef2f2; color: #ef4444; }
.kpi-premium-hourly .kpi-premium-icon { background: #E9EDE3; color: #6E8050; }
.kpi-premium-customers .kpi-premium-icon { background: #E9EDE3; color: #57663F; }
.kpi-premium-alerts .kpi-premium-icon { background: #fef2f2; color: #dc2626; }

.kpi-premium-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.kpi-premium-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--pos-dark);
    margin-bottom: 4px;
}

.kpi-premium-unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--pos-gray);
}

.kpi-premium-label {
    font-size: .78rem;
    color: var(--pos-gray);
    font-weight: 500;
    margin-bottom: 10px;
}

.kpi-premium-sparkline {
    height: 40px;
    margin-bottom: 8px;
}

.kpi-premium-sparkline canvas {
    width: 100%;
    height: 100%;
}

.kpi-premium-progress {
    height: 5px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.kpi-premium-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .6s ease;
    background: linear-gradient(90deg, var(--pos-primary), #6E8050);
}

.kpi-premium-footer {
    display: flex;
    justify-content: space-between;
    font-size: .65rem;
    color: var(--pos-gray);
    gap: 8px;
}

.kpi-premium-footer strong {
    color: var(--pos-dark);
    font-weight: 700;
}

.kpi-premium-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-alert-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 600;
}

.kpi-alert-mini-danger { background: #fef2f2; color: #dc2626; }
.kpi-alert-mini-warning { background: #fffbeb; color: #d97706; }

/* ── Main Grid Premium ── */
.dash-main-grid-premium {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
}

.dash-left-premium {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-right-premium {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Widget Premium ── */
.dash-widget-premium {
    background: #fff;
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    border: 1px solid var(--pos-border-light);
    overflow: hidden;
}

.dash-widget-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--pos-border-light);
}

.dash-widget-title-premium {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pos-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-widget-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 700;
    background: #E9EDE3;
    color: var(--pos-success-text);
}

.dash-widget-badge.badge-danger { background: #fef2f2; color: #dc2626; }
.dash-widget-badge.badge-live { background: #fef2f2; color: #dc2626; animation: pulse-glow 2s infinite; }

.dash-widget-body-premium {
    padding: 16px 20px;
}

/* ── Payment Grid ── */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.payment-chart-cell {
    position: relative;
    height: 160px;
}

.payment-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
}

.payment-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.payment-legend-label {
    color: var(--pos-gray);
    flex: 1;
}

.payment-legend-value {
    font-weight: 700;
    color: var(--pos-dark);
}

.payment-legend-pct {
    font-size: .65rem;
    color: var(--pos-gray);
    font-weight: 600;
}

/* ── Insights Grid ── */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.insight-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: var(--pos-radius-sm);
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 1px solid var(--pos-border-light);
    transition: all .2s ease;
}

.insight-card:hover {
    box-shadow: var(--pos-shadow);
    transform: translateY(-2px);
}

.insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pos-primary-light);
    color: var(--pos-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.insight-label {
    font-size: .68rem;
    color: var(--pos-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.insight-value {
    font-size: .9rem;
    font-weight: 700;
    color: var(--pos-dark);
    line-height: 1.3;
}

.insight-sub {
    font-size: .65rem;
    color: var(--pos-gray);
}

/* ── Kitchen Status Grid ── */
.kitchen-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.kitchen-status-cell {
    padding: 12px;
    border-radius: var(--pos-radius-sm);
    background: #f8fafc;
}

.kitchen-status-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pos-dark);
    line-height: 1;
}

.kitchen-status-label {
    font-size: .65rem;
    color: var(--pos-gray);
    margin-top: 4px;
    font-weight: 600;
}

/* ── Top Categories ── */
.top-categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-category-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-category-rank {
    width: 22px;
    font-size: .65rem;
    font-weight: 700;
    color: var(--pos-gray);
    text-align: center;
    flex-shrink: 0;
}

.top-category-info {
    flex: 1;
    min-width: 0;
}

.top-category-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--pos-dark);
    margin-bottom: 4px;
}

.top-category-bar {
    height: 5px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.top-category-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pos-primary), #6E8050);
    transition: width .8s ease;
}

.top-category-value {
    font-size: .78rem;
    font-weight: 700;
    color: var(--pos-dark);
    flex-shrink: 0;
}

/* ── Empty State ── */
.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px;
    color: var(--pos-gray);
}

.dash-empty i {
    font-size: 2rem;
    opacity: .3;
}

.dash-empty p {
    font-size: .78rem;
    margin: 0;
}

/* ── Responsive Dashboard ── */
@media (max-width: 1200px) {
    .dash-kpi-grid-premium {
        grid-template-columns: repeat(3, 1fr);
    }
    .dash-main-grid-premium {
        grid-template-columns: 1fr;
    }
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-actions-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    .dash-kpi-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
    .insights-grid {
        grid-template-columns: 1fr;
    }
    .payment-grid {
        grid-template-columns: 1fr;
    }
    .dash-header-premium {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .dash-actions-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-kpi-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* ===== BOOTSTRAP INFO OVERRIDE (olive instead of blue) — light theme ===== */
html:not([data-theme="dark"]) {
    --bs-info: #57663F;
    --bs-info-rgb: 87, 102, 63;
    --bs-info-bg-subtle: #E9EDE3;
    --bs-info-border-subtle: #C9D2B4;
    --bs-info-text: #3F4A2E;
    --bs-info-text-rgb: 63, 74, 46;
    --bs-link-color: #5C4130;
    --bs-link-color-rgb: 92, 65, 48;
    --bs-link-hover-color: #3F2C1F;
    --bs-link-hover-color-rgb: 63, 44, 31;
}
.bg-info-subtle { background-color: var(--bs-info-bg-subtle) !important; }
.text-info { color: var(--bs-info) !important; }
.bg-info { background-color: var(--bs-info) !important; }
.btn-info { background-color: var(--bs-info); border-color: var(--bs-info); color: #fff; }
.btn-info:hover { background-color: #6E8050; border-color: #6E8050; color: #fff; }
.btn-outline-info { color: var(--bs-info); border-color: var(--bs-info); }
.btn-outline-info:hover { background-color: var(--bs-info); border-color: var(--bs-info); color: #fff; }
.badge.bg-info { background-color: var(--bs-info-bg-subtle) !important; color: var(--bs-info-text) !important; }

/* ===== AMBIANCES VISUELLES (Phase 18) — Nature | Café =====
   Nature = valeurs par défaut ci-dessus (crème dominant, actions olive,
   liens/accents brun café). Café = même palette REF, swap d'identité :
   actions principales brun café, actions secondaires et repères olive,
   surfaces crème chaudes. Scopé hors POS (body:not(.pos-warm)). */
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) {
    --pos-bg-light: #EFE5D7;
    --pos-sidebar-bg: #F7F1E8;
    --pos-sidebar-hover: #E8DFD0;
    --pos-sidebar-active: #E8DFD0;
    --pos-border: #E8DFD0;
    --pos-shadow-hover: 0 8px 24px rgba(92, 65, 48, .15);
    background-color: #EFE5D7;

    /* Identité : actions principales brun café, soft surfaces crème. */
    --pos-primary: #5C4130;
    --pos-primary-rgb: 92, 65, 48;
    --pos-primary-light: #EFE5D7;
    --bs-primary: #5C4130;
    --bs-primary-rgb: 92, 65, 48;
    --bs-primary-bg-subtle: #EFE5D7;
    --bs-primary-border-subtle: #E8DFD0;

    /* Actions secondaires et repères olive. */
    --bs-secondary: #57663F;
    --bs-secondary-rgb: 87, 102, 63;
    --bs-secondary-bg-subtle: #E9EDE3;
    --bs-secondary-border-subtle: #C9D2B4;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .pos-header {
    background: #F7F1E8;
    border-bottom-color: #E8DFD0;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .sidebar {
    background: linear-gradient(180deg, #F7F1E8 0%, #F4ECDF 58%, #EFE5D7 100%);
    border-right-color: #E8DFD0;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .sidebar-header {
    background: rgba(247, 241, 232, .92);
    border-bottom-color: #E8DFD0;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .nav-item.active {
    background: rgba(92, 65, 48, .10);
    color: #5C4130;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .nav-item.active::before,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .nav-item.active > i {
    background: #5C4130;
    color: #5C4130;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .nav-item:hover > i {
    color: #5C4130;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .admin-card {
    background: #FFFDF9;
    border-color: #E8DFD0;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .form-control:focus,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .form-select:focus {
    border-color: #5C4130;
    box-shadow: 0 0 0 3px rgba(92, 65, 48, .12);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-primary:focus,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-outline-primary:focus {
    box-shadow: 0 0 0 3px rgba(92, 65, 48, .18);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-primary:hover {
    background: #3F2C1F;
    border-color: #3F2C1F;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-outline-primary:hover {
    background: #5C4130;
    border-color: #5C4130;
    color: #fff;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-secondary {
    background: #E9EDE3;
    border-color: #C9D2B4;
    color: #3F4A2E;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-secondary:hover {
    background: #57663F;
    border-color: #57663F;
    color: #fff;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-outline-secondary {
    color: #57663F;
    border-color: rgba(87, 102, 63, .45);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-outline-secondary:hover:not(:disabled) {
    background: #57663F;
    border-color: #57663F;
    color: #fff;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-info {
    background-color: #57663F;
    border-color: #57663F;
    color: #fff;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .btn-info:hover {
    background-color: #3F4A2E;
    border-color: #3F4A2E;
    color: #fff;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .badge.bg-primary {
    background: #EFE5D7 !important;
    color: #5C4130;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .user-avatar,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .dash-avatar {
    background: linear-gradient(135deg, #5C4130, #3F2C1F);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .category-pill.active {
    background: linear-gradient(135deg, #5C4130, #3F2C1F);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .top-product-fill {
    background: linear-gradient(90deg, #5C4130, #3F2C1F);
}

/* Indicateurs KPI décoratifs : olive → brun café (surfaces chaudes). */
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .kpi-sales::before,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .kpi-tables::before,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .kpi-kitchen::before,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .kpi-progress-bar-sales,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .kpi-progress-bar-tables,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .kpi-progress-bar-kitchen {
    background: linear-gradient(90deg, #5C4130, #3F2C1F);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .kpi-revenue::before {
    background: linear-gradient(90deg, #3F2C1F, #8A5A16);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) {
    --bs-link-color: #5C4130;
    --bs-link-color-rgb: 92, 65, 48;
    --bs-link-hover-color: #3F2C1F;
    --bs-link-hover-color-rgb: 63, 44, 31;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .rp-page .rp-chart-title {
    background: #E8DFD0;
    color: #5C4130;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .fw31-rlink,
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .fw31-nav a.fw31-rlink {
    border-color: #E8DFD0;
    background: #FFFDF9;
    color: #5C4130;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .fw31-rlink:hover {
    background: #F7F1E8;
    border-color: #E8DFD0;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) .fw-radial-orb {
    border-color: #E8DFD0;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:not(.pos-warm) {
    --fw-radial-green: #5C4130;
    --fw-radial-green-soft: rgba(92, 65, 48, .20);
    --fw-radial-green-light: #EFE5D7;
}

/* Café + sombre : accents chauds préservés, surfaces sombres inchangées.
   Actions principales ambre (seule couleur chaude de palette lisible en sombre),
   secondaires vert olive éclairci déjà en usage dans le dark theme. */
html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) {
    --pos-sidebar-active: #211A15;
    --pos-primary: #E0A24A;
    --pos-primary-rgb: 224, 162, 74;
    --pos-primary-light: #211A15;
    --bs-primary: #E0A24A;
    --bs-primary-rgb: 224, 162, 74;
    --bs-primary-bg-subtle: #211A15;
    --bs-primary-border-subtle: #3F2C1F;
    --bs-secondary: #81C784;
    --bs-secondary-rgb: 129, 199, 132;
    --bs-secondary-bg-subtle: #1B5E20;
    --bs-secondary-border-subtle: #2E7D32;
    --bs-link-color: #E0A24A;
    --bs-link-color-rgb: 224, 162, 74;
    --bs-link-hover-color: #EFE5D7;
    --bs-link-hover-color-rgb: 239, 229, 215;
    --fw-radial-green: #E0A24A;
    --fw-radial-green-soft: rgba(224, 162, 74, .20);
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-primary,
html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-primary:hover {
    color: #211A15;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-outline-primary {
    color: #E0A24A;
    border-color: #E0A24A;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-outline-primary:hover {
    background: #E0A24A;
    border-color: #E0A24A;
    color: #211A15;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-secondary {
    background: #1B5E20;
    border-color: #2E7D32;
    color: #C5D0AA;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-secondary:hover {
    background: #2E7D32;
    border-color: #2E7D32;
    color: #E8F5E9;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-outline-secondary {
    color: #81C784;
    border-color: rgba(129, 199, 132, .45);
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .btn-outline-secondary:hover:not(:disabled) {
    background: #1B5E20;
    border-color: #81C784;
    color: #C5D0AA;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .badge.bg-primary {
    background: #2A2115 !important;
    color: #E0A24A;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .user-avatar,
html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .dash-avatar {
    background: linear-gradient(135deg, #E0A24A, #8A5A16);
    color: #211A15;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .category-pill.active {
    background: linear-gradient(135deg, #E0A24A, #8A5A16);
    color: #211A15;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .top-product-fill {
    background: linear-gradient(90deg, #E0A24A, #8A5A16);
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .nav-item.active {
    background: rgba(224, 162, 74, .12);
    color: #E0A24A;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .nav-item.active::before {
    background: #E0A24A;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .rp-page .rp-chart-title {
    background: #211A15;
    color: #E0A24A;
}

html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .form-control:focus,
html[data-ambiance="cafe"][data-theme="dark"] body:not(.pos-warm) .form-select:focus {
    border-color: #E0A24A;
    box-shadow: 0 0 0 3px rgba(224, 162, 74, .15);
}

/* L'accueil porte ses propres jetons --fw-* : on les réaligne sur l'ambiance.
   Café = swap d'identité : actions (--fw-olive) en brun café, accents (--fw-brown) en olive. */
html[data-ambiance="cafe"]:not([data-theme="dark"]) body:has(.fw-home):not(.pos-warm) {
    --fw-paper: #EFE5D7;
    --fw-paper-2: #E8DFD0;
    --fw-panel: #F7F1E8;
    --fw-panel-2: #FBF6EE;
    --fw-inset: #F4ECDF;
    --fw-line: rgba(92, 65, 48, .16);
    --fw-line-soft: rgba(92, 65, 48, .10);
    --fw-line-strong: rgba(92, 65, 48, .28);
    --fw-brown-soft: rgba(92, 65, 48, .14);
    --fw-olive: #5C4130;
    --fw-olive-soft: rgba(92, 65, 48, .14);
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:has(.fw-home):not(.pos-warm) .pos-header .btn-primary {
    background: #5C4130;
    border-color: #5C4130;
}

html[data-ambiance="cafe"]:not([data-theme="dark"]) body:has(.fw-home):not(.pos-warm) .pos-header .btn-primary:hover {
    background: #3F2C1F;
    border-color: #3F2C1F;
}

html[data-ambiance="cafe"][data-theme="dark"] body:has(.fw-home):not(.pos-warm) {
    --fw-brown: #E0A24A;
    --fw-brown-soft: rgba(224, 162, 74, .14);
    --fw-line: rgba(224, 162, 74, .14);
    --fw-line-soft: rgba(224, 162, 74, .08);
    --fw-olive: #E0A24A;
    --fw-olive-soft: rgba(224, 162, 74, .14);
}

html[data-ambiance="cafe"][data-theme="dark"] body:has(.fw-home):not(.pos-warm) .pos-header .btn-primary {
    background: #E0A24A;
    border-color: #E0A24A;
    color: #211A15;
}

html[data-ambiance="cafe"][data-theme="dark"] body:has(.fw-home):not(.pos-warm) .pos-header .btn-primary:hover {
    background: #EFE5D7;
    border-color: #EFE5D7;
    color: #211A15;
}
