:root {
    /* Color Palette - Orange Squeeze POS Theme */
    --bg-base: #14100D; /* Warm Dark Citrus Slate */
    --bg-panel: rgba(32, 24, 18, 0.85); /* Dark citrus panel with glass opacity */
    --bg-glass: rgba(20, 16, 13, 0.68);
    
    --primary: #FF6B00; /* Vibrant Orange Squeeze */
    --primary-hover: #E65100; /* Rich Deep Orange */
    --primary-light: #FF8A3D;
    --primary-glow: rgba(255, 107, 0, 0.42);
    
    --secondary: #FFB703; /* Golden Citrus Pulp Yellow */
    --secondary-hover: #F59E0B;
    
    --accent: #16A34A; /* Fresh Lime Green */
    --accent-hover: #15803D;
    --accent-lime: #84CC16; /* Bright Lime Leaf */

    --warm-wood: #B45309; /* Light Warm Wood / Honey Amber */
    --warm-wood-light: #D97706;
    
    --danger: #ef4444; /* Red 500 */
    --warning: #f59e0b; /* Amber 500 */
    
    --text-primary: #FFF8F0; /* Warm Light Cream */
    --text-secondary: #D4BBAA; /* Soft Warm Muted */
    --text-muted: #8E7A6E; /* Warm Slate */
    
    --border-color: rgba(255, 152, 0, 0.12);
    --border-hover: rgba(255, 152, 0, 0.28);
    
    /* Layout */
    --sidebar-width: 205px;
    --sidebar-collapsed-width: 64px;
    --cart-width: clamp(400px, 35vw, 550px);
    --topbar-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.38);
    --shadow-glow: 0 0 22px var(--primary-glow);
}

/* Light Mode Overrides — Fresh White & Warm Cream Citrus */
body.light-mode {
    --bg-base: #FFFDF9; /* Clean Crisp Cream White */
    --bg-panel: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 253, 249, 0.88);

    --primary: #FF6B00; /* Vibrant Orange Squeeze */
    --primary-hover: #E65100;
    --primary-light: #FF8A3D;
    --primary-glow: rgba(255, 107, 0, 0.24);

    --secondary: #F59E0B; /* Golden Citrus Pulp */
    --secondary-hover: #D97706;
    
    --accent: #16A34A; /* Fresh Lime Green */
    --accent-hover: #15803D;
    --accent-lime: #65A30D;
    
    --warm-wood: #B45309;
    --warm-wood-light: #D97706;
    
    --text-primary: #1C1917; /* Stone 900 */
    --text-secondary: #57534E; /* Stone 600 */
    --text-muted: #887569;
    
    --border-color: rgba(249, 115, 22, 0.14); /* Soft warm orange border */
    --border-hover: rgba(249, 115, 22, 0.32);
    
    --shadow-glass: 0 12px 34px rgba(234, 88, 12, 0.08);
}

/* ==========================================================================
   TEMA 1: ORANGE MUDA / FRESH CLEAN CITRUS (LIGHT MODE)
   ========================================================================== */
body.light-mode {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 50%, #FFF2E2 100%) !important;
}

/* Sidebar — Clean Cream/White with Orange Accents */
body.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-right: 1.5px solid rgba(249, 115, 22, 0.16) !important;
    box-shadow: 4px 0 24px rgba(234, 88, 12, 0.05) !important;
}

body.light-mode .sidebar-logo {
    color: #FF6B00 !important;
    border-bottom: 1.5px solid rgba(249, 115, 22, 0.14) !important;
}

body.light-mode .sidebar-brand span {
    color: #FF6B00 !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px;
}

body.light-mode .sidebar-collapse-btn {
    background: rgba(255, 107, 0, 0.08) !important;
    border: 1px solid rgba(255, 107, 0, 0.2) !important;
    color: #EA580C !important;
}

body.light-mode .sidebar-collapse-btn:hover {
    background: rgba(255, 107, 0, 0.16) !important;
    color: #C2410C !important;
}

body.light-mode .nav-group-title {
    color: #8C7B70 !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

body.light-mode .nav-group + .nav-group {
    border-top: 1px solid rgba(249, 115, 22, 0.12) !important;
}

body.light-mode .sidebar-nav .nav-item {
    color: #44403C !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

body.light-mode .sidebar-nav .nav-item i {
    color: #FF6B00 !important;
}

body.light-mode .sidebar-nav .nav-item:hover {
    background: rgba(255, 107, 0, 0.09) !important;
    color: #EA580C !important;
    transform: translateX(4px);
}

body.light-mode .sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, #FF6B00 0%, #FFA000 100%) !important;
    color: #FFFFFF !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35) !important;
    font-weight: 700 !important;
}

body.light-mode .sidebar-nav .nav-item.active i {
    color: #FFFFFF !important;
}

body.light-mode .sidebar-footer {
    border-top: 1.5px solid rgba(249, 115, 22, 0.14) !important;
}

body.light-mode #user-name {
    color: #1C1917 !important;
    font-weight: 700 !important;
}

body.light-mode #user-role {
    color: #EA580C !important;
    font-weight: 600 !important;
}

body.light-mode .user-info .avatar {
    background: linear-gradient(135deg, #FF6B00, #FFB703) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.25) !important;
}

body.light-mode #refresh-app-btn {
    background: rgba(255, 107, 0, 0.08) !important;
    color: #EA580C !important;
    border: 1px solid rgba(255, 107, 0, 0.18) !important;
    border-radius: 10px !important;
}

body.light-mode #refresh-app-btn:hover {
    background: rgba(255, 107, 0, 0.16) !important;
}

body.light-mode .nav-item.logout {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #DC2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 10px !important;
}

body.light-mode .nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.16) !important;
}

body.light-mode .nav-sync-status {
    background: rgba(255, 107, 0, 0.08) !important;
    color: #EA580C !important;
    border: 1px solid rgba(255, 107, 0, 0.18) !important;
    border-radius: 10px !important;
}

/* Cart — Clean White Panel with Orange Trim */
body.light-mode .cart-section {
    background: #FFFFFF !important;
    border-left: 1.5px solid rgba(249, 115, 22, 0.16) !important;
    box-shadow: -4px 0 24px rgba(234, 88, 12, 0.05) !important;
}

body.light-mode .cart-header {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(255, 183, 3, 0.08) 100%) !important;
    border-bottom: 1.5px solid rgba(249, 115, 22, 0.14) !important;
}

body.light-mode .cart-header h3 {
    color: #FF6B00 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
}

body.light-mode .order-type-selector {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(249, 115, 22, 0.12) !important;
}

body.light-mode .type-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(249, 115, 22, 0.16) !important;
    color: #57534E !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

body.light-mode .type-btn.active {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%) !important;
    color: #FFFFFF !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3) !important;
    font-weight: 700 !important;
}

body.light-mode .customer-name-field {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(249, 115, 22, 0.2) !important;
    color: #1C1917 !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
}

body.light-mode .customer-name-field:focus {
    border-color: #FF6B00 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18) !important;
}

body.light-mode .cart-item {
    background: #FFFFFF !important;
    border: 1px solid rgba(249, 115, 22, 0.14) !important;
    border-left: 4px solid #FF6B00 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .cart-item-name {
    color: #1C1917 !important;
    font-weight: 700 !important;
}

body.light-mode .cart-item-price {
    color: #16A34A !important;
    font-weight: 800 !important;
}

body.light-mode .qty-btn {
    background: rgba(255, 107, 0, 0.08) !important;
    color: #EA580C !important;
    border-radius: 8px !important;
}

body.light-mode .qty-btn:hover {
    background: #FF6B00 !important;
    color: #FFFFFF !important;
}

body.light-mode .qty-value {
    color: #1C1917 !important;
    font-weight: 800 !important;
}

body.light-mode .cart-summary {
    background: rgba(255, 255, 255, 0.85) !important;
    border-top: 2px dashed rgba(249, 115, 22, 0.2) !important;
}

body.light-mode .summary-line {
    color: #57534E !important;
    font-weight: 600 !important;
}

body.light-mode .summary-line.total {
    color: #1C1917 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    border-top: 1.5px dashed rgba(249, 115, 22, 0.2) !important;
}

body.light-mode .summary-line.total span:last-child {
    color: #EA580C !important;
    font-weight: 900 !important;
}

body.light-mode .payment-method-selector h4 {
    color: #FF6B00 !important;
    font-weight: 700 !important;
}

body.light-mode .pay-btn {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(249, 115, 22, 0.18) !important;
    color: #44403C !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

body.light-mode .payment-option input:checked + .pay-btn {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(255, 183, 3, 0.12)) !important;
    border-color: #FF6B00 !important;
    color: #EA580C !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.16) !important;
}

body.light-mode .menu-card {
    background: #FFFFFF;
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.05);
}

body.light-mode .menu-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.16);
}

body.light-mode .menu-img-container {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.04) 0%, rgba(255, 183, 3, 0.08) 100%);
}

body.light-mode .menu-img-actual,
body.light-mode .menu-img {
    background: transparent;
}

body.light-mode .menu-add-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

body.light-mode .menu-add-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

body.light-mode .category-item {
    background: #FFFFFF;
    border: 1.5px solid rgba(249, 115, 22, 0.18);
    color: #57534E;
    font-weight: 600;
}

body.light-mode .category-item:hover {
    background: rgba(255, 107, 0, 0.08);
    border-color: #FF6B00;
    color: #FF6B00;
}

body.light-mode .category-item.active {
    background: linear-gradient(135deg, #FF6B00 0%, #FFA000 100%) !important;
    color: #FFFFFF !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35) !important;
    font-weight: 700 !important;
}

body.light-mode .topbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 2px solid rgba(249, 115, 22, 0.16) !important;
}

body.light-mode .search-bar {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(249, 115, 22, 0.18) !important;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.05) !important;
}

body.light-mode .search-bar i {
    color: #FF6B00 !important;
}

body.light-mode .search-bar input {
    color: #1C1917 !important;
}

body.light-mode #theme-toggle {
    background: linear-gradient(135deg, #FF6B00, #FFA000) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35) !important;
    border-radius: 12px !important;
}

body.light-mode .input-group input,
body.light-mode .input-group select,
body.light-mode .glass-input,
body.light-mode textarea {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid rgba(249, 115, 22, 0.16);
}

body.light-mode .input-group input:focus,
body.light-mode .glass-input:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

body.light-mode .input-group i {
    color: var(--text-secondary);
}

/* ==========================================================================
   TEMA 2: ORANGE TUA / PEKAT — SUPER ORANGE (VIBRANT CITRUS EXPERIENCE)
   ========================================================================== */
body:not(.light-mode) {
    background: linear-gradient(135deg, #FFF6EE 0%, #FFEDE2 50%, #FFE4D4 100%) !important;
}

/* Super Orange Sidebar with High Contrast White Text & Icons */
body:not(.light-mode) .sidebar {
    background: linear-gradient(180deg, #FF5500 0%, #FF6B00 45%, #E65100 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 6px 0 28px rgba(255, 85, 0, 0.22) !important;
}

body:not(.light-mode) .sidebar-logo {
    color: #FFFFFF !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

body:not(.light-mode) .sidebar-brand span {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px;
}

body:not(.light-mode) .sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.24) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
}

body:not(.light-mode) .sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
}

body:not(.light-mode) .nav-group-title {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body:not(.light-mode) .nav-group + .nav-group {
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body:not(.light-mode) .sidebar-nav .nav-item {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

body:not(.light-mode) .sidebar-nav .nav-item i {
    color: #FFF3E6 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body:not(.light-mode) .sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #FFFFFF !important;
    transform: translateX(4px);
}

body:not(.light-mode) .sidebar-nav .nav-item.active {
    background: #FFFFFF !important;
    color: #E65100 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
    font-weight: 800 !important;
}

body:not(.light-mode) .sidebar-nav .nav-item.active i {
    color: #FF6B00 !important;
}

body:not(.light-mode) .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body:not(.light-mode) #user-name {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body:not(.light-mode) #user-role {
    color: #FFE6D5 !important;
    font-weight: 600 !important;
}

body:not(.light-mode) .user-info .avatar {
    background: #FFFFFF !important;
    color: #FF6B00 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22) !important;
}

body:not(.light-mode) #refresh-app-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
}

body:not(.light-mode) #refresh-app-btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

body:not(.light-mode) .nav-item.logout {
    background: rgba(0, 0, 0, 0.28) !important;
    color: #FFEAEA !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
}

body:not(.light-mode) .nav-item.logout:hover {
    background: rgba(220, 38, 38, 0.9) !important;
    color: #FFFFFF !important;
}

body:not(.light-mode) .nav-sync-status {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
}

/* Menu Cards — Vibrant Orange like the Sidebar with Pure White High Contrast Typography & Icons */
body:not(.light-mode) .menu-card {
    background: linear-gradient(135deg, #FF6200 0%, #FF7800 50%, #E65100 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 24px rgba(255, 98, 0, 0.22) !important;
    border-radius: 18px !important;
    min-height: 215px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

body:not(.light-mode) .menu-card:hover {
    border-color: #FFFFFF !important;
    box-shadow: 0 14px 32px rgba(255, 98, 0, 0.38) !important;
    transform: translateY(-5px) scale(1.02);
}

body:not(.light-mode) .menu-img-container {
    height: 95px !important;
    min-height: 95px !important;
    max-height: 95px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border-radius: 14px !important;
    margin: 8px 8px 0 8px !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body:not(.light-mode) .menu-img-placeholder {
    color: #FFFFFF !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) !important;
    font-size: 44px !important;
}

body:not(.light-mode) .menu-img-actual,
body:not(.light-mode) .menu-img {
    background: transparent !important;
}

body:not(.light-mode) .menu-details {
    padding: 10px 12px 12px 12px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 85px !important;
}

body:not(.light-mode) .menu-title {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    letter-spacing: -0.1px;
    margin: 0 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

body:not(.light-mode) .menu-price {
    color: #FFFFFF !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    background: rgba(0, 0, 0, 0.32) !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    margin-top: auto !important;
    letter-spacing: 0.2px !important;
}

body:not(.light-mode) .menu-add-btn {
    background: #FFFFFF !important;
    color: #E65100 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

body:not(.light-mode) .menu-add-btn:hover {
    background: #FFF3E6 !important;
    color: #FF5500 !important;
    transform: scale(1.1) !important;
}

/* Cart & Order Sidebar — Orange Muda Panel with Crisp Cards */
body:not(.light-mode) .cart-section {
    background: linear-gradient(180deg, #FFF9F4 0%, #FFF2E8 50%, #FFECE0 100%) !important;
    border-left: 2px solid rgba(255, 107, 0, 0.24) !important;
    box-shadow: -6px 0 28px rgba(255, 107, 0, 0.08) !important;
}

body:not(.light-mode) .cart-header {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.14) 0%, rgba(255, 183, 3, 0.16) 100%) !important;
    border-bottom: 1.5px solid rgba(255, 107, 0, 0.22) !important;
}

body:not(.light-mode) .cart-header h3 {
    color: #C2410C !important;
    font-weight: 800 !important;
    font-size: 19px !important;
    letter-spacing: -0.3px;
}

body:not(.light-mode) .cart-header .clear-cart-btn {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 107, 0, 0.25) !important;
    color: #EA580C !important;
}

body:not(.light-mode) .cart-header .clear-cart-btn:hover {
    background: #EF4444 !important;
    color: #FFFFFF !important;
    border-color: #EF4444 !important;
}

body:not(.light-mode) .order-type-selector {
    background: rgba(255, 255, 255, 0.6) !important;
    border-bottom: 1px solid rgba(255, 107, 0, 0.14) !important;
}

body:not(.light-mode) .type-btn {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(255, 107, 0, 0.22) !important;
    color: #57534E !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

body:not(.light-mode) .type-btn.active {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%) !important;
    color: #FFFFFF !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35) !important;
    font-weight: 700 !important;
}

body:not(.light-mode) .customer-name-field {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(255, 107, 0, 0.25) !important;
    color: #1C1917 !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
}

body:not(.light-mode) .customer-name-field:focus {
    border-color: #FF6B00 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2) !important;
}

body:not(.light-mode) .cart-item {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(255, 107, 0, 0.18) !important;
    border-left: 5px solid #FF6B00 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.06) !important;
}

body:not(.light-mode) .cart-item-name {
    color: #1C1917 !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
}

body:not(.light-mode) .cart-item-price {
    color: #EA580C !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
}

body:not(.light-mode) .qty-btn {
    background: rgba(255, 107, 0, 0.12) !important;
    color: #EA580C !important;
    border-radius: 8px !important;
}

body:not(.light-mode) .qty-btn:hover {
    background: #FF6B00 !important;
    color: #FFFFFF !important;
}

body:not(.light-mode) .qty-value {
    color: #1C1917 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

body:not(.light-mode) .remove-item-btn {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #DC2626 !important;
    border-radius: 8px !important;
}

body:not(.light-mode) .remove-item-btn:hover {
    background: #DC2626 !important;
    color: #FFFFFF !important;
}

body:not(.light-mode) .cart-summary {
    background: rgba(255, 255, 255, 0.85) !important;
    border-top: 2px dashed rgba(255, 107, 0, 0.25) !important;
}

body:not(.light-mode) .summary-line {
    color: #57534E !important;
    font-weight: 600 !important;
}

body:not(.light-mode) .summary-line.total {
    color: #1C1917 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    border-top: 1.5px dashed rgba(255, 107, 0, 0.25) !important;
}

body:not(.light-mode) .summary-line.total span:last-child {
    color: #EA580C !important;
    font-weight: 900 !important;
}

body:not(.light-mode) .payment-method-selector h4 {
    color: #C2410C !important;
    font-weight: 700 !important;
}

body:not(.light-mode) .pay-btn {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(255, 107, 0, 0.2) !important;
    color: #44403C !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

body:not(.light-mode) .payment-option input:checked + .pay-btn {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 183, 3, 0.15)) !important;
    border-color: #FF6B00 !important;
    color: #EA580C !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.18) !important;
}

body:not(.light-mode) .topbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 2px solid rgba(255, 107, 0, 0.2) !important;
}

body:not(.light-mode) .search-bar {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(255, 107, 0, 0.22) !important;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.05) !important;
    color: #1C1917 !important;
}

body:not(.light-mode) .search-bar i {
    color: #FF6B00 !important;
}

body:not(.light-mode) .search-bar input {
    color: #1C1917 !important;
}

body:not(.light-mode) #theme-toggle {
    background: linear-gradient(135deg, #FF6B00, #FFA000) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35) !important;
    border-radius: 12px !important;
}

body:not(.light-mode) .category-item {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(255, 107, 0, 0.2) !important;
    color: #57534E !important;
    font-weight: 600 !important;
}

body:not(.light-mode) .category-item:hover {
    background: rgba(255, 107, 0, 0.1) !important;
    color: #FF6B00 !important;
    border-color: #FF6B00 !important;
}

body:not(.light-mode) .category-item.active {
    background: linear-gradient(135deg, #FF6B00 0%, #FFA000 100%) !important;
    color: #FFFFFF !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35) !important;
    font-weight: 700 !important;
}

body:not(.light-mode) .input-group input,
body:not(.light-mode) .input-group select,
body:not(.light-mode) .glass-input,
body:not(.light-mode) textarea {
    background: #FFFFFF !important;
    color: #1C1917 !important;
    border: 1px solid rgba(255, 107, 0, 0.2) !important;
}

body:not(.light-mode) .input-group input:focus,
body:not(.light-mode) .glass-input:focus {
    background: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
}

body:not(.light-mode) .input-group i {
    color: var(--text-secondary) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden; /* Prevent body scroll, handle internally */
    position: relative;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Base Glassmorphism utility */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ==========================================================================
   SCREENS & VIEWS
   ========================================================================== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* hidden by default */
    opacity: 0;
    transition: opacity var(--trans-normal);
}
.screen.view-active {
    display: flex;
    opacity: 1;
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
#login-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgb(14, 21, 38) 0%, rgb(6, 10, 19) 90%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 360px;
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    z-index: 10;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px; /* Increased margin for better spacing */
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.login-header h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* PIN Kasir — layar "Siapa yang bertugas?" & entri PIN */
.pin-view-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.pin-roster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pin-roster-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--trans-fast);
    font-family: var(--font-main);
}

.pin-roster-tile:hover, .pin-roster-tile:active {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.pin-roster-tile .pin-roster-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.pin-roster-tile .pin-roster-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.pin-roster-tile .pin-roster-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pin-roster-loading {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px 0;
}

.pin-back-btn {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pin-back-btn:hover {
    color: var(--primary);
}

.pin-entry-name {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pin-entry-input {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: color var(--trans-fast);
}

.input-group input, .input-group select, .glass-input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: all var(--trans-fast);
}

.input-group input:focus, .input-group select:focus, .glass-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-group input:focus + i, .input-group input:focus ~ i {
    color: var(--primary);
}

/* Prevent mobile browser auto-zoom on login form fields */
#login-screen .input-group input {
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all var(--trans-normal);
    position: relative;
    overflow: hidden;
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.error-text {
    color: var(--danger);
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
    font-size: 11px;
}

/* Switch Toggle UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}


/* Background Bloops */
.bloop {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}
.bloop-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: drift 10s infinite alternate ease-in-out;
}
.bloop-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    right: -100px;
    animation: drift 12s infinite alternate-reverse ease-in-out;
}
.bloop-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 40%;
    left: 60%;
    animation: drift 15s infinite alternate ease-in-out;
}

@keyframes drift {
    100% { transform: translate(50px, 50px); }
}

/* ==========================================================================
   APP MAIN SCREEN LAYOUT
   ========================================================================== */
#app-screen {
    display: none;
    flex-direction: row;
}
#app-screen.view-active {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    border-left: none;
    overflow: hidden;
    transition: width var(--trans-normal);
}

.sidebar-logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 14px;
    font-size: 16px;
    font-weight: 700;
    gap: 8px;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sidebar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.brand-logo-img {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 6px;
}

.sidebar-collapse-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: background var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast);
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 10px 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group + .nav-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.nav-group-title {
    padding: 0 8px 2px;
    color: var(--text-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    min-height: 38px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--trans-fast);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.nav-item i {
    width: 16px;
    flex: 0 0 16px;
    font-size: 13.5px;
    text-align: center;
}

.nav-item span:not(.badge) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: white;
    background: var(--primary);
    border-color: var(--border-hover);
    box-shadow: inset 0 0 20px var(--primary-glow);
    font-weight: 600;
}

.sidebar-footer {
    padding: 10px 8px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-footer .nav-item {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
    gap: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.user-info .avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

#user-name {
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#user-role {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: capitalize;
    line-height: 1.2;
}

.nav-item.logout {
    width: 100%;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}
.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

@media (min-width: 1025px) {
    body.sidebar-collapsed .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .sidebar-logo {
        justify-content: center;
        padding: 0 8px;
    }

    body.sidebar-collapsed .sidebar-brand,
    body.sidebar-collapsed .nav-group-title,
    body.sidebar-collapsed .nav-item span:not(.badge),
    body.sidebar-collapsed .nav-sync-status span:not(.sync-badge),
    body.sidebar-collapsed .user-details {
        display: none;
    }

    body.sidebar-collapsed .sidebar-nav {
        padding: 10px 6px;
        gap: 4px;
        overflow-x: hidden;
    }

    body.sidebar-collapsed .nav-group {
        gap: 4px;
    }

    body.sidebar-collapsed .nav-group + .nav-group {
        margin-top: 6px;
        padding-top: 6px;
    }

    body.sidebar-collapsed .nav-item {
        justify-content: center;
        gap: 0;
        min-height: 38px;
        padding: 8px 0;
        border-radius: var(--radius-sm);
    }

    body.sidebar-collapsed .nav-item i {
        width: auto;
        flex: 0 0 auto;
        font-size: 16px;
    }

    body.sidebar-collapsed .sidebar-footer {
        padding: 10px 6px;
    }

    body.sidebar-collapsed .user-info {
        justify-content: center;
        margin-bottom: 8px;
        padding: 0;
    }

    body.sidebar-collapsed .user-info .avatar {
        width: 32px;
        height: 32px;
    }

    body.sidebar-collapsed .nav-sync-status {
        justify-content: center;
        min-height: 38px;
        margin-top: 0;
        padding: 8px 0;
        border-radius: var(--radius-sm);
    }

    body.sidebar-collapsed .nav-sync-status i {
        font-size: 16px;
    }

    body.sidebar-collapsed .nav-item .badge,
    body.sidebar-collapsed .nav-sync-status .sync-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        margin-left: 0 !important;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border: 2px solid var(--bg-base);
        font-size: 9px;
        line-height: 12px;
    }
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    z-index: 5;
}

.search-bar {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: var(--radius-full);
    width: 300px;
    height: 40px;
}

.search-bar i {
    color: var(--text-secondary);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    padding: 8px 12px;
    width: 100%;
    outline: none;
}

.pos-mobile-search {
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.dashboard-chart-container {
    width: 100%;
}

.dashboard-panel.glass-panel {
    padding: 24px;
}

.datetime {
    text-align: right;
}
#current-time {
    font-weight: 600;
    font-size: 16px;
}
#current-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.notifications {
    position: relative;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}
.notifications .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* View Content */
.view-content {
    flex: 1;
    display: none;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.view-content.active-view {
    display: block;
}

/* Specific view overrides */
#pos-view.active-view {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
}
#dashboard-view.active-view,
#orders-view.active-view,
#attendance-view.active-view,
#reservasi-view.active-view,
#menu-management-view.active-view,
#settings-view.active-view {
    display: block;
}

/* ==========================================================================
   POS INTERFACE
   ========================================================================== */
.pos-layout {
    display: flex;
    height: 100%;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.products-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
}

.categories-wrapper {
    padding: 10px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}
.categories-wrapper::-webkit-scrollbar {
    height: 4px;
}
.categories-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.categories-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-glow);
    border-radius: 10px;
}
.categories-wrapper:hover::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.categories-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.category-item {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--trans-fast);
    font-weight: 500;
    border: 1px solid transparent;
}
.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.category-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-hover);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.menu-grid {
    flex: 1;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px;
    overflow-y: auto;
    padding: 10px 10px 60px 10px;
    align-content: start;
    scroll-behavior: smooth;
}

@keyframes menuCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom indicator for more items (fade effect) */
.products-section {
    position: relative;
}

.products-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-base), transparent);
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

.menu-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--trans-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 215px;
    animation: menuCardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.menu-img-container {
    height: 95px;
    min-height: 95px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-img-placeholder {
    font-size: 42px;
    color: var(--text-muted);
}

.menu-img-actual, .menu-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0,0,0,0.05);
    transition: transform var(--trans-normal);
}

.menu-details {
    padding: 10px 12px 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85px;
    gap: 4px;
}

.menu-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.35;
    color: var(--text-primary);
    /* Allow multi-line names */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.menu-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 15px;
    margin-top: auto;
}

.menu-add-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--trans-fast);
}

.menu-card:hover .menu-add-btn {
    opacity: 1;
    transform: scale(1);
}
.menu-add-btn:active {
    transform: scale(0.9) !important;
}

/* Cart Section */
.cart-section {
    width: var(--cart-width);
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border-color);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-weight: 600;
    font-size: 18px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: color var(--trans-fast);
}
.icon-btn:hover {
    color: var(--danger);
}

.order-type-selector {
    display: flex;
    padding: 16px 24px;
    gap: 10px;
}

.customer-name-input {
    padding: 12px 24px;
}

.customer-name-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.2);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all var(--trans-fast);
}

.customer-name-field:focus {
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

body.light-mode .customer-name-field {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

body.light-mode .customer-name-field:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ==========================================================================
   POS TOOLS ACCORDION (Bazaar, Courier, Promo Code Unified Dropdown)
   ========================================================================== */
.pos-tools-accordion {
    margin: 4px 24px 12px 24px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--border-color, rgba(255, 152, 0, 0.14));
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--trans-normal, 0.3s ease);
    overflow: hidden;
}

body.light-mode .pos-tools-accordion {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(249, 115, 22, 0.18);
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.04);
}

.pos-tools-accordion:hover {
    border-color: var(--border-hover, rgba(255, 152, 0, 0.35));
}

.pos-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    transition: background var(--trans-fast, 0.15s ease);
}

.pos-tools-header:hover {
    background: rgba(255, 107, 0, 0.06);
}

body.light-mode .pos-tools-header:hover {
    background: rgba(255, 107, 0, 0.08);
}

.pos-tools-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.pos-tools-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 107, 0, 0.12);
    color: var(--primary, #FF6B00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform var(--trans-fast, 0.15s ease);
}

.pos-tools-header:hover .pos-tools-icon-wrap {
    transform: scale(1.05);
}

.pos-tools-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.pos-tools-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #FFF8F0);
    letter-spacing: -0.2px;
}

body.light-mode .pos-tools-title {
    color: #1C1917;
}

.pos-tools-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pos-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pos-tool-badge.badge-bazaar {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

body.light-mode .pos-tool-badge.badge-bazaar {
    background: #4338ca;
    color: #ffffff;
    border: none;
}

.pos-tool-badge.badge-courier {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

body.light-mode .pos-tool-badge.badge-courier {
    background: #059669;
    color: #ffffff;
    border: none;
}

.pos-tool-badge.badge-promo {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

body.light-mode .pos-tool-badge.badge-promo {
    background: #dc2626;
    color: #ffffff;
    border: none;
}

.pos-tools-header-right {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.pos-tools-chevron {
    font-size: 12px;
    color: var(--text-secondary, #D4BBAA);
    transition: transform var(--trans-normal, 0.3s cubic-bezier(0.16, 1, 0.3, 1));
}

.pos-tools-accordion.open .pos-tools-chevron {
    transform: rotate(180deg);
}

.pos-tools-content {
    border-top: 1px solid var(--border-color, rgba(255, 152, 0, 0.1));
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .pos-tools-content {
    background: rgba(255, 248, 240, 0.6);
}

.pos-tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-sm, 8px);
    transition: all var(--trans-fast, 0.15s ease);
}

body.light-mode .pos-tool-item {
    background: #FFFFFF;
    border-color: rgba(249, 115, 22, 0.12);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.pos-tool-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-tool-item-info i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.pos-tool-item-title {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary, #FFF8F0);
}

body.light-mode .pos-tool-item-title {
    color: #1C1917;
}

.pos-tool-item-desc {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted, #8E7A6E);
    margin-top: 1px;
}

body.light-mode .pos-tool-item-desc {
    color: #78716C;
}

.pos-tool-subitem {
    padding: 8px 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm, 8px);
    margin-top: -3px;
}

body.light-mode .pos-tool-subitem {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.pos-tool-subitem-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #D4BBAA);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.light-mode .pos-tool-subitem-label {
    color: #065F46;
}

.pos-tool-promo-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
}

.pos-promo-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-promo-input-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pos-promo-input-row #promo-code-input,
.pos-promo-input-row .glass-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm, 8px) !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
}

.pos-promo-input-row #apply-promo-btn,
.pos-promo-input-row .btn-primary {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 76px !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm, 8px) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.type-btn {
    flex: 1;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all var(--trans-fast);
}
.type-btn.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
    border-color: var(--primary);
}

.cart-items {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/*
 * The order list owns the remaining height. The totals, payment methods and
 * checkout action stay together at the bottom instead of falling below the
 * viewport on landscape tablets with a browser toolbar.
 */
.cart-footer {
    flex: 0 0 auto;
    min-height: 0;
    position: relative;
    z-index: 3;
    background: inherit;
}

.empty-cart-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    opacity: 0.7;
}
.empty-cart-msg i {
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}
.cart-item-price {
    color: var(--text-secondary);
    font-size: 12px;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.2); }
.qty-value {
    font-weight: 600;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.remove-item-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-fast);
    margin-left: 8px;
}

.remove-item-btn:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

body.light-mode .remove-item-btn {
    background: rgba(239, 68, 68, 0.08);
}

.cart-summary {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}
.summary-line.total {
    margin-top: 15px;
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    color: white;
    font-size: 18px;
    font-weight: 700;
}
.summary-line.total span:last-child {
    color: var(--accent);
}

.payment-method-selector {
    padding: 0 24px 20px;
}
.payment-method-selector h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}
.payment-options {
    display: flex;
    gap: 10px;
}
.payment-option {
    flex: 1;
    cursor: pointer;
}
.payment-option input {
    display: none;
}
.pay-btn {
    padding: 10px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--trans-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.pay-btn i { font-size: 18px; }
.payment-option input:checked + .pay-btn {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-checkout {
    margin: 0 24px 24px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 50%, #FFA000 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.38);
    transition: all var(--trans-normal);
    position: relative;
    overflow: hidden;
}
.btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}
.btn-checkout:hover:not(:disabled)::before {
    left: 100%;
}
.btn-checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, #E65100 0%, #FF6B00 50%, #FF8A00 100%);
    box-shadow: 0 14px 30px rgba(255, 107, 0, 0.5);
    transform: translateY(-2px) scale(1.01);
}
.btn-checkout:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}
.btn-checkout:disabled {
    background: #4A3E36;
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}
body.light-mode .btn-checkout:disabled {
    background: #E5D5C8;
    color: #9C8B7F;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.toast {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
    transform: translateX(0);
}
.toast-success i { color: var(--accent); }
.toast-error i { color: var(--danger); }
.toast-warning i { color: #f59e0b; }
.toast-info i { color: var(--primary); }

/* ==========================================================================
   DASHBOARD VIEW
   ========================================================================== */
.p-24 { padding: 24px; }
.view-title { font-size: 24px; margin-bottom: 24px; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card { padding: 20px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 20px; transition: transform var(--trans-fast); }
.stat-card:hover { transform: translateY(-5px); }
.stat-icon { font-size: 30px; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); }
.stat-icon.primary { color: var(--primary); background: rgba(139, 92, 246, 0.1); }
.stat-icon.accent { color: var(--accent); background: rgba(16, 185, 129, 0.1); }
.stat-icon.secondary { color: var(--secondary); background: rgba(236, 72, 153, 0.1); }
.stat-icon.warning { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 5px; }

.dashboard-bottom { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.dashboard-panel { padding: 20px; border-radius: var(--radius-lg); overflow: hidden; }
.dashboard-panel h3 { font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.best-seller-item { display:flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.02); }
.recent-order-item { display:flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.02); }

/* ==========================================================================
   ORDERS VIEW
   ========================================================================== */
.orders-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.order-filters { display: flex; gap: 10px; }
.filter-btn { padding: 8px 16px; border-radius: var(--radius-full); background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); color: var(--text-secondary); cursor: pointer; transition: all var(--trans-fast); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.table-container { 
    border-radius: var(--radius-lg); 
    overflow: auto; 
    padding: 10px; 
    width: 100%;
    max-width: 100%;
}

.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); }
.data-table th { background: rgba(0,0,0,0.2); color: var(--text-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.data-table tr:hover { background: rgba(255,255,255,0.02); }
.status-badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.status-processed { background: rgba(139, 92, 246, 0.2); color: var(--primary); }
.status-completed { background: rgba(16, 185, 129, 0.2); color: var(--accent); }
.status-cancelled { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.status-offline { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.offline-order-row { background: rgba(20, 184, 166, 0.06); }
.status-diterima { background: rgba(139, 92, 246, 0.2); color: var(--primary); }
.status-selesai { background: rgba(16, 185, 129, 0.2); color: var(--accent); }
.status-dibatalkan { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.action-btn { padding: 6px 12px; margin-right: 4px; border-radius: var(--radius-md); background: rgba(255,255,255,0.1); border: none; color: white; cursor: pointer; font-size: 12px; transition: all var(--trans-fast); display: inline-flex; align-items: center; gap: 5px; }
.action-btn:hover:not(:disabled) { background: var(--primary); }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.data-table td[data-label="Action"],
.data-table td[data-label="Aksi"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.data-table td[data-label="Action"] .action-btn,
.data-table td[data-label="Aksi"] .action-btn {
    margin-right: 0;
}

.action-btn.process { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.action-btn.process:hover:not(:disabled) { background: var(--warning); color: white; }

.action-btn.complete { background: rgba(139, 92, 246, 0.2); color: var(--primary); }
.action-btn.complete:hover:not(:disabled) { background: var(--primary); color: white; }

.action-btn.view { background: rgba(16, 185, 129, 0.2); color: var(--accent); }
.action-btn.view:hover:not(:disabled) { background: var(--accent); color: white; }

.action-btn.cancel { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.action-btn.cancel:hover:not(:disabled) { background: var(--danger); color: white; }

.action-btn.payment { background: rgba(14, 165, 233, 0.18); color: #38bdf8; }
.action-btn.payment:hover:not(:disabled) { background: #0ea5e9; color: white; }

.action-btn.undo { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); padding: 6px 10px; }
.action-btn.undo:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); color: white; }
.action-btn.whatsapp { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.action-btn.whatsapp:hover:not(:disabled) { background: #22c55e; color: white; }
.action-btn.maps { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.action-btn.maps:hover:not(:disabled) { background: #3b82f6; color: white; }
.action-btn.detail { background: rgba(255, 255, 255, 0.12); color: var(--text-primary); }
.action-btn.detail:hover:not(:disabled) { background: rgba(255,255,255,0.24); color: white; }
.text-center { text-align: center; }
.online-order-search input { width: 100%; background: transparent; border: none; color: var(--text-primary); }
.online-order-search input:focus { outline: none; }
.ordered-menu-line { line-height: 1.45; margin-bottom: 3px; color: var(--text-primary); }
.ordered-menu-line:last-child { margin-bottom: 0; }
.ordered-menu-line-cancelled { color: var(--text-muted); }
.ordered-menu-line-cancelled > span:first-child { text-decoration: line-through; }
.ordered-menu-line-cancelled small { display: block; color: var(--danger); font-size: 10px; line-height: 1.35; margin-top: 2px; }
.ordered-menu-cancelled-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(239, 68, 68, 0.2); color: var(--danger); font-size: 9px; font-weight: 700; text-decoration: none; vertical-align: middle; }

/* ==========================================================================
   ORDERS — TAB SUMBER PESANAN (Kasir/offline vs Online)
   ========================================================================== */
.orders-layout,
#orders-view .orders-layout {
    padding: 8px 14px 10px !important;
}

.orders-header,
#orders-view .orders-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.orders-header .view-title,
#orders-view .view-title {
    font-size: 17px !important;
    margin: 0 !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.orders-header .date-filter-group,
#orders-view .date-filter-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.orders-header .date-range-inputs,
#orders-view .date-range-inputs {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.orders-header .date-input,
#orders-view .date-input,
#orders-view .date-range-inputs .date-input {
    height: 28px !important;
    min-height: 28px !important;
    padding: 1px 6px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
}

.orders-header .date-separator,
#orders-view .date-separator {
    font-size: 10.5px !important;
    padding: 0 2px !important;
    color: var(--text-muted) !important;
}

.orders-header .print-btn,
#orders-view #print-report-btn,
body.light-mode #orders-view #print-report-btn {
    min-width: 0 !important;
    width: auto !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 2px 10px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    gap: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.orders-header .print-btn i,
#orders-view #print-report-btn i {
    font-size: 11px !important;
}

.orders-header .print-btn span,
#orders-view #print-report-btn span {
    font-size: 11px !important;
    font-weight: 600 !important;
}

.orders-tabs,
#orders-view .orders-tabs {
    display: flex !important;
    gap: 2px !important;
    padding: 2px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    border-radius: var(--radius-full) !important;
    border: 1px solid var(--border-color) !important;
    background: rgba(0, 0, 0, 0.18) !important;
    width: fit-content !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

body.light-mode #orders-view .orders-tabs {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.orders-tabs::-webkit-scrollbar { display: none; }

.orders-tab,
#orders-view .orders-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 10px !important;
    min-height: 26px !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-family: inherit !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all var(--trans-fast) !important;
}

.orders-tab:hover:not(.active),
#orders-view .orders-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
}

body.light-mode #orders-view .orders-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary) !important;
}

.orders-tab.active,
#orders-view .orders-tab.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.28) !important;
}

.orders-tab-count,
#orders-view .orders-tab-count {
    min-width: 16px !important;
    padding: 0 4px !important;
    border-radius: var(--radius-full) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 14px !important;
}

.orders-tab.active .orders-tab-count,
#orders-view .orders-tab.active .orders-tab-count {
    background: rgba(255, 255, 255, 0.28) !important;
}

.orders-tab-panel,
#orders-view .orders-tab-panel {
    display: none;
    margin: 0 !important;
    padding: 0 !important;
}

.orders-tab-panel.active,
#orders-view .orders-tab-panel.active {
    display: block !important;
}

.orders-tab-hint { margin: 0 0 4px !important; font-size: 11px !important; }

.orders-toolbar,
#orders-view .orders-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.orders-toolbar .filter-group,
#orders-view .filter-group {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 3px !important;
}

.orders-toolbar .filter-btn,
#orders-view .filter-btn,
body.light-mode #orders-view .filter-btn {
    min-width: 0 !important;
    width: auto !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    gap: 4px !important;
}

.orders-toolbar .search-bar,
#orders-view .search-bar,
#orders-view #customer-debt-search,
#orders-view .online-order-search {
    flex: 0 1 200px !important;
    width: auto !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 1px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    margin: 0 !important;
}

.orders-toolbar .search-bar input,
#orders-view .search-bar input {
    font-size: 11px !important;
    height: 100% !important;
    padding: 0 !important;
}

.orders-toolbar .search-bar i,
#orders-view .search-bar i {
    font-size: 11px !important;
}

/* ==========================================================================
   ORDERS — GRID KARTU PESANAN
   ========================================================================== */
.order-grid-scroll {
    max-height: calc(100vh - 195px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 6px 4px 2px;
    scrollbar-width: thin;
}

/* ==========================================================================
   ORDER CARDS — NEW DESIGN (Berdasarkan desain_daftar_pesanan_pos.html)
   ========================================================================== */

#orders-view {
    --order-card-columns: 4;
    --order-card-radius: 10px;
    --order-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.order-card-grid {
    display: grid;
    grid-template-columns: repeat(var(--order-card-columns), minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

@media (min-width: 850px) { #orders-view { --order-card-columns: 4; } }
@media (min-width: 540px) and (max-width: 849px) { #orders-view { --order-card-columns: 2; } }
@media (max-width: 539px) { #orders-view { --order-card-columns: 1; } }

.order-card-placeholder {
    grid-column: 1 / -1;
    padding: 30px 16px;
    border-radius: var(--order-card-radius);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.order-card-placeholder.is-error {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

.order-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--order-card-radius);
    box-shadow: var(--order-card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
    animation: orderCardFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Efek kemunculan kartu bertingkat (staggered cascade) */
.order-card:nth-child(1) { animation-delay: 0.03s; }
.order-card:nth-child(2) { animation-delay: 0.06s; }
.order-card:nth-child(3) { animation-delay: 0.09s; }
.order-card:nth-child(4) { animation-delay: 0.12s; }
.order-card:nth-child(5) { animation-delay: 0.15s; }
.order-card:nth-child(6) { animation-delay: 0.18s; }
.order-card:nth-child(7) { animation-delay: 0.21s; }
.order-card:nth-child(8) { animation-delay: 0.24s; }
.order-card:nth-child(9) { animation-delay: 0.27s; }
.order-card:nth-child(10) { animation-delay: 0.30s; }
.order-card:nth-child(11) { animation-delay: 0.33s; }
.order-card:nth-child(12) { animation-delay: 0.36s; }

@keyframes orderCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--border-hover);
}

/* 4px Top accent bar */
.order-card::before {
    content: "";
    display: block;
    height: 4px;
    background: #64748b;
    flex-shrink: 0;
}

.order-card.completed::before,
.order-card.selesai::before,
.order-card[data-accent="completed"]::before,
.order-card[data-accent="selesai"]::before {
    background: #0f9f7f;
}

/* Kilauan cahaya bergerak dari kiri ke kanan khusus pending (kuning/orange glow) */
.order-card.pending::before,
.order-card[data-accent="pending"]::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 30%, #fffbeb 50%, #fbbf24 70%, #f59e0b 100%);
    background-size: 200% 100%;
    animation: pendingShimmer 2.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

@keyframes pendingShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.order-card.pending,
.order-card[data-accent="pending"] {
    border-color: rgba(245, 158, 11, 0.28);
}

.order-card.pending:hover,
.order-card[data-accent="pending"]:hover {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.16);
}

.order-card.processed::before,
.order-card.diterima::before,
.order-card[data-accent="processed"]::before,
.order-card[data-accent="diterima"]::before {
    background: #2f80ed;
}

.order-card.canceled::before,
.order-card.cancelled::before,
.order-card.dibatalkan::before,
.order-card[data-accent="canceled"]::before,
.order-card[data-accent="cancelled"]::before,
.order-card[data-accent="dibatalkan"]::before {
    background: #ef4444;
}

.order-card.offline::before,
.order-card[data-accent="offline"]::before {
    background: #06b6d4;
}

@media (prefers-reduced-motion: reduce) {
    .order-card {
        animation: none;
    }
    .order-card.pending::before,
    .order-card[data-accent="pending"]::before {
        animation: none;
    }
}

/* Card Body */
.order-card .card-body {
    padding: 8px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    flex: 1;
    min-width: 0;
}

/* Order Head */
.order-card .order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.order-card .order-id {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    letter-spacing: -0.01em;
}

.order-card .order-head-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.order-card-status-note {
    font-size: 8.5px;
    color: var(--text-muted);
}

/* Status Badge */
.order-card .status-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    text-transform: uppercase;
    white-space: nowrap;
}

.order-card .status-badge.completed,
.order-card .status-badge.selesai,
.order-card .status-badge.status-completed,
.order-card .status-badge.status-selesai {
    color: #08735d;
    background: #e9f8f4;
    border-color: #b9eadf;
}

.order-card .status-badge.pending,
.order-card .status-badge.status-pending {
    color: #d97706;
    background: #fff5df;
    border-color: #ffd99c;
}

.order-card .status-badge.processed,
.order-card .status-badge.diterima,
.order-card .status-badge.status-processed,
.order-card .status-badge.status-diterima {
    color: #1d68bd;
    background: #edf6ff;
    border-color: #b9dcff;
}

.order-card .status-badge.canceled,
.order-card .status-badge.cancelled,
.order-card .status-badge.dibatalkan,
.order-card .status-badge.status-canceled,
.order-card .status-badge.status-cancelled,
.order-card .status-badge.status-dibatalkan {
    color: #e33442;
    background: #fff0f1;
    border-color: #ffc7cc;
}

/* Dark theme badge adjustments */
body:not(.light-mode) .order-card .status-badge.completed,
body:not(.light-mode) .order-card .status-badge.selesai,
body:not(.light-mode) .order-card .status-badge.status-completed,
body:not(.light-mode) .order-card .status-badge.status-selesai {
    color: #34d399;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
}

body:not(.light-mode) .order-card .status-badge.pending,
body:not(.light-mode) .order-card .status-badge.status-pending {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

body:not(.light-mode) .order-card .status-badge.processed,
body:not(.light-mode) .order-card .status-badge.diterima,
body:not(.light-mode) .order-card .status-badge.status-processed,
body:not(.light-mode) .order-card .status-badge.status-diterima {
    color: #60a5fa;
    background: rgba(47, 128, 237, 0.16);
    border-color: rgba(47, 128, 237, 0.35);
}

body:not(.light-mode) .order-card .status-badge.canceled,
body:not(.light-mode) .order-card .status-badge.cancelled,
body:not(.light-mode) .order-card .status-badge.dibatalkan,
body:not(.light-mode) .order-card .status-badge.status-canceled,
body:not(.light-mode) .order-card .status-badge.status-cancelled,
body:not(.light-mode) .order-card .status-badge.status-dibatalkan {
    color: #f87171;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Meta Section */
.order-card .meta {
    display: grid;
    gap: 2px;
}

.order-card .meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 10.5px;
    min-width: 0;
}

.order-card .meta-row i {
    width: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 10px;
    flex-shrink: 0;
}

.order-card .meta-row .customer {
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-card .meta-row-sub {
    font-size: 10.5px;
}

/* Tags & Type Chip */
.order-card .order-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.order-card .type-chip {
    width: max-content;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.02em;
}

.order-card.completed .type-chip,
.order-card.selesai .type-chip {
    background: rgba(15, 159, 127, 0.12);
    color: #10b981;
}

.order-card .type-chip-bazaar {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.order-card .type-chip-promo {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.order-card .type-chip-uuid {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    font-weight: 500;
}

/* Light mode type chips */
body.light-mode .order-card .type-chip {
    background: #f2f4f7;
    color: #344054;
}

body.light-mode .order-card.completed .type-chip,
body.light-mode .order-card.selesai .type-chip {
    background: #e9f8f4;
    color: #08735d;
}

body.light-mode .order-card .type-chip-bazaar {
    background: #e0e7ff;
    color: #4338ca;
}

body.light-mode .order-card .type-chip-promo {
    background: #d1fae5;
    color: #065f46;
}

/* Address for online orders */
.order-card .order-card-address {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 10px;
    line-height: 1.3;
    color: var(--text-secondary);
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
}

body.light-mode .order-card .order-card-address {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.order-card .order-card-address > i {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 9.5px;
    flex-shrink: 0;
}

.order-card .order-card-address > div {
    min-width: 0;
}

.order-card .order-card-address span,
.order-card .order-card-address small {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.order-card .order-card-address small {
    -webkit-line-clamp: 1;
    line-clamp: 1;
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 9.5px;
}

/* Items Box: maksimal ~3 item tampil lalu bisa di-scroll */
.order-card .items-box {
    min-height: 38px;
    max-height: 72px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
}

.order-card .items-box::-webkit-scrollbar {
    width: 3px;
}
.order-card .items-box::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.16);
}

body.light-mode .order-card .items-box {
    background: #f8f9fb;
    border-color: #e4e7ec;
}

body.light-mode .order-card.completed .items-box,
body.light-mode .order-card.selesai .items-box {
    background: #f0fbf8;
    border-color: #c8ece5;
}

body.light-mode .order-card.pending .items-box {
    background: #fff9ed;
    border-color: #ffe0a8;
}

body.light-mode .order-card.canceled .items-box,
body.light-mode .order-card.cancelled .items-box,
body.light-mode .order-card.dibatalkan .items-box {
    background: #fff5f5;
    border-color: #ffd1d5;
}

/* Item row */
.order-card .item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 1px 0;
}

.order-card .item + .item {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

body.light-mode .order-card .item + .item {
    border-top-color: #e4e7ec;
}

.order-card .item-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 8.5px;
}

.order-card.completed .item-icon,
.order-card.selesai .item-icon {
    background: rgba(15, 159, 127, 0.15);
    color: #10b981;
}

.order-card.pending .item-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.order-card.canceled .item-icon,
.order-card.cancelled .item-icon,
.order-card.dibatalkan .item-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

body.light-mode .order-card .item-icon {
    background: #eef2f6;
    color: #475467;
}

body.light-mode .order-card.completed .item-icon,
body.light-mode .order-card.selesai .item-icon {
    background: #dff5ef;
    color: #0f9f7f;
}

body.light-mode .order-card.pending .item-icon {
    background: #fff0cf;
    color: #b56b02;
}

body.light-mode .order-card.canceled .item-icon,
body.light-mode .order-card.cancelled .item-icon,
body.light-mode .order-card.dibatalkan .item-icon {
    background: #ffe0e2;
    color: #ef4444;
}

.order-card .item-content {
    flex: 1;
    min-width: 0;
}

.order-card .item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-card .item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.25;
}

.order-card .cancel-label {
    flex: 0 0 auto;
    border-radius: 3px;
    padding: 1px 4px;
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    font-size: 8.5px;
    font-weight: 800;
}

body.light-mode .order-card .cancel-label {
    background: #ffe0e2;
    color: #ef4444;
}

.order-card .reason {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
    line-height: 1.2;
    color: #f87171;
}

body.light-mode .order-card .reason {
    color: #dc2626;
}

/* Pay & Total */
.order-card .pay-total {
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    position: relative;
}

/* Efek Detak Jantung (Heartbeat Pulse) kuning di bagian bawah kartu pending */
.order-card.pending .pay-total,
.order-card[data-accent="pending"] .pay-total {
    border-top-color: rgba(245, 158, 11, 0.35);
}

.order-card.pending .pay-total::after,
.order-card[data-accent="pending"] .pay-total::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, #f59e0b, #fbbf24, transparent);
    border-radius: 999px;
    animation: pendingHeartbeatGlow 1.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.order-card.pending .total,
.order-card[data-accent="pending"] .total {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
    animation: pendingHeartbeatText 1.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pendingHeartbeatGlow {
    0% {
        opacity: 0.25;
        transform: scaleX(0.8);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
    14% {
        opacity: 1;
        transform: scaleX(1.05);
        box-shadow: 0 0 14px 4px rgba(251, 191, 36, 0.85);
    }
    28% {
        opacity: 0.4;
        transform: scaleX(0.9);
        box-shadow: 0 0 4px 1px rgba(245, 158, 11, 0.3);
    }
    42% {
        opacity: 1;
        transform: scaleX(1.08);
        box-shadow: 0 0 18px 5px rgba(251, 191, 36, 0.95);
    }
    70% {
        opacity: 0.25;
        transform: scaleX(0.8);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
    100% {
        opacity: 0.25;
        transform: scaleX(0.8);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes pendingHeartbeatText {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.06);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.08);
    }
    70% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.order-card .payment-info {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
}

.order-card .payment-info i {
    font-size: 11px;
    flex-shrink: 0;
}

.order-card .total {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Actions */
.order-card .actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.order-card .actions .btn,
.order-card .actions .action-btn {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    min-height: 28px;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 700;
    transition: transform var(--trans-fast), filter var(--trans-fast), background var(--trans-fast);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
}

.order-card .actions .btn i,
.order-card .actions .action-btn i {
    font-size: 10px;
}

.order-card .actions .btn:hover,
.order-card .actions .action-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.order-card .actions .btn.payment,
.order-card .actions .action-btn.payment {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(47, 128, 237, 0.12);
}

.order-card .actions .btn.process,
.order-card .actions .action-btn.process {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
}

.order-card .actions .btn.complete,
.order-card .actions .action-btn.complete {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
}

.order-card .actions .btn.detail,
.order-card .actions .btn.view,
.order-card .actions .action-btn.detail,
.order-card .actions .action-btn.view {
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.35);
    background: rgba(45, 212, 191, 0.12);
}

.order-card .actions .btn.cancel,
.order-card .actions .action-btn.cancel {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
}

.order-card .actions .btn.undo,
.order-card .actions .action-btn.undo {
    color: #cbd5e1;
    border-color: rgba(203, 213, 225, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.order-card .actions .btn.whatsapp,
.order-card .actions .action-btn.whatsapp {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
}

.order-card .actions .btn.maps,
.order-card .actions .action-btn.maps {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
}

.order-card .actions .btn.print,
.order-card .actions .action-btn.print,
.order-card .actions .print-span {
    grid-column: 1 / -1;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
}

/* Light mode overrides */
body.light-mode .order-card {
    background: #ffffff;
    border-color: #e4e7ec;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

body.light-mode .order-card:hover {
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.12);
    border-color: #d0d5dd;
}

body.light-mode .order-card .actions .btn,
body.light-mode .order-card .actions .action-btn {
    border-color: #d7dce3;
    background: #ffffff;
    color: #344054;
}

body.light-mode .order-card .actions .btn.payment,
body.light-mode .order-card .actions .action-btn.payment {
    color: #1677e8;
    border-color: #acd1ff;
    background: #f4f9ff;
}

body.light-mode .order-card .actions .btn.process,
body.light-mode .order-card .actions .action-btn.process {
    color: #d97706;
    border-color: #ffc66b;
    background: #fff7e8;
}

body.light-mode .order-card .actions .btn.complete,
body.light-mode .order-card .actions .action-btn.complete {
    color: #08735d;
    border-color: #9eddd0;
    background: #f1fbf8;
}

body.light-mode .order-card .actions .btn.detail,
body.light-mode .order-card .actions .btn.view,
body.light-mode .order-card .actions .action-btn.detail,
body.light-mode .order-card .actions .action-btn.view {
    color: #08735d;
    border-color: #9eddd0;
    background: #f1fbf8;
}

body.light-mode .order-card .actions .btn.cancel,
body.light-mode .order-card .actions .action-btn.cancel {
    color: #dc2626;
    border-color: #ffb5b5;
    background: #fff5f5;
}

body.light-mode .order-card .actions .btn.print,
body.light-mode .order-card .actions .action-btn.print,
body.light-mode .order-card .actions .print-span {
    color: #344054;
    background: #ffffff;
    border-color: #d7dce3;
}

/* ==========================================================================
   NOTIFICATIONS DROPDOWN
   ========================================================================== */
.notif-dropdown { position: absolute; top: 35px; right: 0; width: 300px; border-radius: var(--radius-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; z-index: 100; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.notif-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--border-color); }
.notif-header h4 { font-size: 14px; margin: 0; color: var(--text-primary) !important; }
#mark-read-btn { background: none; border: none; font-size: 11px; color: var(--text-secondary); cursor: pointer; }
#mark-read-btn:hover { color: var(--text-primary); text-decoration: underline; }
.notif-list { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; padding: 5px; }
.notif-item { padding: 12px; border-radius: var(--radius-sm); border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 5px; cursor: pointer; text-align:left; }
.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.unread { background: rgba(139, 92, 246, 0.1); }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.notif-msg { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-muted); align-self: flex-end; }
.empty-notif { padding: 18px 12px; color: var(--text-secondary); text-align: center; font-size: 13px; }

body.light-mode .toast {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .notif-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

body.light-mode .notif-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .notif-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .notif-item.unread {
    background: rgba(0, 0, 0, 0.07);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

/* Mobile Header & Overlay (Hidden by default) */
.mobile-top-header {
    display: none;
    height: 60px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .sidebar-collapse-btn {
        display: none;
    }
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.mobile-logo .brand-logo-img {
    width: 26px;
    height: 26px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
}

/* Floating Cart FAB */
.mobile-cart-fab {
    display: none !important; /* Force hide on desktop/tablet */
    position: fixed;
    bottom: 110px; /* Shifted up to avoid bottom navbar */
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 25px var(--primary-glow);
    z-index: 90;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-cart-fab:active {
    transform: scale(0.9);
}

.mobile-cart-fab .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    width: 20px;
    height: 20px;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet & Small Desktop (769px - 1366px) */
@media (min-width: 769px) and (max-width: 1366px) {
    .products-section {
        padding: 16px;
    }

    .categories-wrapper {
        margin-bottom: 14px;
    }

    .menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        padding: 6px 6px 48px;
    }

    .menu-img-container {
        height: 96px;
    }

    .menu-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    
    .menu-price {
        font-size: 14px;
    }

    .menu-details {
        padding: 10px !important;
        padding-bottom: 14px !important;
        min-height: 76px !important;
    }

    .menu-card {
        min-height: 174px !important;
        height: auto !important;
        border-radius: 14px;
    }
}

/* ==========================================================================
   LANDSCAPE TABLET OPTIMIZATIONS (e.g. Infinix Xpad 20 1920x1200 landscape)
   Compact the cart bottom area to maximize item list space
   ========================================================================== */
@media (min-width: 769px) and (max-height: 1250px) {
    /* Cart summary - extremely tight */
    .cart-summary {
        padding: 4px 16px 2px !important;
    }
    .summary-line {
        margin-bottom: 2px !important;
        font-size: 12px !important;
    }
    .summary-line.total {
        margin-top: 4px !important;
        padding-top: 4px !important;
        font-size: 15px !important;
    }

    /* Promo code section - super compact */
    .promo-code-container {
        padding: 4px 0 !important;
        margin-bottom: 2px !important;
        margin-top: 2px !important;
    }
    .promo-code-container.mb-12, 
    .promo-code-container.mt-12 {
        margin-bottom: 2px !important;
        margin-top: 2px !important;
    }
    .promo-code-container .glass-input {
        padding: 4px 8px !important;
        font-size: 11px !important;
        height: 30px !important;
    }
    .promo-code-container .btn-primary {
        padding: 4px 8px !important;
        font-size: 11px !important;
        height: 30px !important;
    }

    /* Payment buttons - flat & tight */
    .payment-method-selector {
        padding: 0 16px 10px !important;
        margin-top: -6px !important;
    }
    .payment-method-selector h4 {
        font-size: 11px !important;
        margin-bottom: 3px !important;
    }
    .pay-btn {
        padding: 3px 8px 5px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        gap: 2px !important;
        height: 40px !important;
        overflow: hidden !important;
    }
    .payment-method-selector .pay-btn i {
        font-size: 15px !important;
    }

    /* Charge button - compact */
    .btn-checkout {
        margin: 0 16px 8px !important;
        padding: 10px !important;
        font-size: 14px !important;
        height: 44px !important;
        position: relative;
        z-index: 2;
    }

    /* Cart header */
    .cart-header {
        padding: 10px 16px !important;
    }
    .cart-header h3 {
        font-size: 15px !important;
    }

    /* Inputs */
    .order-type-selector {
        padding: 8px 16px !important;
        gap: 6px !important;
    }
    .type-btn {
        padding: 4px !important;
        font-size: 12px !important;
    }
    .customer-name-input {
        padding: 4px 16px !important;
    }
    .customer-name-field {
        padding: 6px 10px !important;
        font-size: 12px !important;
        height: 32px !important;
    }

    /* POS Tools Dropdown */
    .pos-tools-accordion {
        margin: 2px 16px 8px !important;
    }
    .pos-tools-header {
        padding: 8px 12px !important;
    }

    /* Cart items list - give it all the space */
    .cart-items {
        padding: 0 16px !important;
        gap: 6px !important;
    }
    .cart-item {
        padding: 6px 8px !important;
    }
}

/* MOBILE BREAKPOINT (PHONES ONLY) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 230px;
        --cart-width: 100%;
    }

    body {
        overflow-y: auto; /* Allow layout to flow on phone */
        overflow-x: hidden;
    }

    #app-screen {
        flex-direction: column;
    }

    .mobile-top-header {
        display: flex;
    }

    /* Sidebar Drawer Mode */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen */
        width: var(--sidebar-width);
        max-width: 92vw;
        height: 100vh;
        height: 100dvh;
        z-index: 2000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--bg-base);
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }

    .sidebar.sidebar-open {
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-top: 60px; /* Space for mobile header */
        height: calc(100vh - 60px);
        overflow-y: auto !important;
    }

    .view-content {
        height: auto !important;
        overflow: visible !important;
    }

    .view-content.active-view {
        display: block !important;
    }

    .dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .topbar {
        display: none; /* Hide desktop topbar */
    }

    /* POS Responsive */
    .pos-layout {
        flex-direction: column;
        height: auto;
    }

    .products-section {
        padding: 16px;
    }

    .menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .menu-card img, .menu-card .menu-img-container {
        height: 120px;
    }

    /* Cart Overlay Mode */
    .cart-section {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        height: 80vh;
        z-index: 2000;
        transition: bottom 0.3s ease;
        background: var(--bg-base);
        border-radius: 30px 30px 0 0 !important;
        border-top: 2px solid var(--primary);
    }

    .cart-section.cart-open {
        bottom: 0;
    }

    .mobile-cart-fab {
        display: none !important; /* Hide by default even on mobile if empty */
    }

    .mobile-cart-fab.has-items {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #login-screen {
        align-items: flex-start;
        overflow-y: auto;
        padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    }

    #login-screen .login-container {
        margin: clamp(12px, 4vh, 28px) auto 16px;
        width: 100%;
        max-width: 420px;
    }

    /* TABLE TO CARDS */
    .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
        display: block;
    }

    .data-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .data-table tr {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        padding: 12px;
    }

    .data-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
        margin-bottom: 8px;
        min-height: 24px;
    }

    .data-table td:before {
        position: absolute;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--text-secondary);
        content: attr(data-label);
    }

    .data-table td:last-child {
        margin-bottom: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        justify-content: flex-end;
        display: flex;
        padding-left: 0 !important;
        text-align: center;
    }

    /* Reservation Specific Mobile Tweaks */
    #reservasi-table-body td[data-label="WhatsApp"] a {
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    #reservasi-table-body .status-badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    /* Attendance Grid */
    .grid-2-1 {
        grid-template-columns: 1fr !important;
    }

    /* Forms */
    .glass-panel {
        max-width: 100% !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Touch Friendly Buttons */
    .btn-primary, .btn-text, .category-item {
        min-height: 50px;
    }
    
    .sidebar .nav-item {
        min-height: 38px;
    }
    
    .action-btn {
        padding: 10px 16px !important;
        font-size: 14px;
    }
}

/* Small Mobile Specifics */
@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .view-title {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px !important;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stat-value {
        font-size: 14px !important;
    }

    #login-screen .login-container {
        padding: 24px 18px;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 13px;
    }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        height: 70px;
        background: var(--bg-panel);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid var(--border-color);
        border-radius: 40px;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 
                    0 4px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-secondary);
        flex: 1;
        height: 100%;
        transition: all var(--trans-fast);
        gap: 4px;
        position: relative;
    }

    .mobile-nav-item i {
        font-size: 20px;
    }

    .mobile-nav-item span {
        font-size: 10px;
        font-weight: 500;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item.active i {
        filter: drop-shadow(0 0 5px var(--primary-glow));
    }

    /* Floating Center Button */
    .mobile-nav-center {
        position: relative;
        width: 80px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1001;
    }

    .mobile-fab {
        position: absolute;
        top: -30px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border: 4px solid var(--bg-base);
        border-radius: 50%;
        color: white;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        outline: none;
        border: 4px solid var(--bg-base);
    }

    .mobile-fab:active {
        transform: scale(0.9) translateY(5px);
    }

    .fab-label {
        margin-top: auto;
        margin-bottom: 8px;
        font-size: 10px;
        font-weight: 600;
        color: var(--text-secondary);
    }

    /* Active Indicator */
    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        width: 4px;
        height: 4px;
        background: var(--primary);
        border-radius: 50%;
        box-shadow: 0 0 8px var(--primary);
    }

    /* Content Padding Adjustment */
    .main-content {
        padding-bottom: 100px !important;
    }
    
    /* Reposition Toast if needed */
    #toast-container {
        bottom: 100px;
    }
}

/* Hide on Desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ---------------------------------------------------------
   REPORTING & FILTERS
--------------------------------------------------------- */
.order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.orders-header .view-title {
    margin-bottom: 0;
}

.filter-group, .date-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-filter-group {
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    padding: 9px 12px;
    font-size: 13px;
    width: 148px !important;
    color-scheme: dark;
    color: var(--text-primary);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.2);
    outline: none;
    transition: all var(--trans-fast);
}

.date-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

body.light-mode .date-input {
    color-scheme: light;
    background: rgba(255, 255, 255, 0.85);
}

.date-separator {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px var(--primary-glow);
}

.print-btn span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.print-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .order-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding: 6px;
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .filter-group::-webkit-scrollbar {
        height: 4px;
    }

    .filter-btn {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
    }

    .filter-btn.active {
        box-shadow: 0 6px 16px var(--primary-glow);
    }

    .date-filter-group {
        width: 100%;
        border-radius: var(--radius-md);
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .date-range-inputs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        align-items: center;
    }

    .date-input {
        width: 100% !important;
        min-height: 42px;
    }

    .date-separator {
        text-align: center;
    }

    .print-btn {
        width: 100%;
    }
}

.order-summary {
    display: flex;
    gap: 32px;
    padding: 20px 32px;
    align-items: center;
    border-left: 4px solid var(--primary);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item .label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-item .value {
    font-size: 20px;
    font-weight: 700;
}

.summary-divider {
    width: 1px;
    height: 35px;
    background: var(--border-color);
    opacity: 0.5;
}

/* Print Utilities */
.print-only { display: none; }

.net-profit {
    font-weight: bold;
    font-size: 18px;
    color: #16a34a;
}

/* table-print removed from here to prevent UI regression */

@media print {
    /* Reset layout for printing */
    html, body {
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        color: black !important;
        width: 100% !important;
    }

    .main-content {
        position: relative !important;
        overflow: visible !important;
        height: auto !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Hide UI elements */
    .sidebar, .topbar, .mobile-top-header, .mobile-bottom-nav, 
    .mobile-cart-fab, .sidebar-overlay, .attendance-filters, 
    .attendance-actions, .order-filters, #toast-container,
    .btn-primary, .icon-btn, .search-bar {
        display: none !important;
    }

    /* Show only target view */
    .view-content {
        display: none !important;
        opacity: 1 !important;
        position: relative !important;
    }

    .active-view {
        display: block !important;
    }

    /* Print Titles and Headers */
    .print-only {
        display: block !important;
        visibility: visible !important;
    }

    /* Table styling for print */
    .glass-panel {
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .table-container {
        overflow: visible !important;
        height: auto !important;
    }

    .data-table {
        width: 100% !important;
        border-collapse: collapse !important;
        color: black !important;
        margin-top: 20px;
    }

    .data-table th, .data-table td {
        border: 1px solid #333 !important;
        padding: 10px !important;
        text-align: left !important;
        background: transparent !important;
        color: black !important;
    }

    .data-table th {
        background: #f0f0f0 !important;
        font-weight: bold !important;
    }

    .data-table img {
        max-width: 60px !important;
        height: auto !important;
    }

    .status-badge {
        background: transparent !important;
        border: 1px solid #333 !important;
        color: black !important;
        padding: 2px 8px !important;
    }

    /* Ensure table text is black even in dark theme */
    .data-table strong, .text-muted {
        color: black !important;
    }

    /* Page breaks */
    tr {
        page-break-inside: avoid;
    }

    /* Attendance Table Print Overrides */
    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        page-break-inside: auto;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 12px !important;
        color: #000 !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .print-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .col-no { width: 40px; }
    .col-nama { width: 20%; }
    .col-tanggal { width: 12%; }
    .col-checkin { width: 10%; }
    .col-checkout { width: 10%; }
    .col-foto { width: 80px; }
    .col-keterangan { width: auto; }

    @page {
        size: A4;
        margin: 1cm;
    }
}

/* Margin Utilities */
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-48 { margin-bottom: 48px !important; }

.stats-grid {
    margin-bottom: 32px;
}

/* ==========================================================================
   OFFLINE / SYNC UI
   ========================================================================== */

/* Network Status Bar - Fixed at top */
.network-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.network-status-bar.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.network-status-bar.offline {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.4);
    animation: offlinePulse 2s infinite;
}

.network-status-bar.online {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.4);
}

.network-status-bar i {
    font-size: 14px;
}

@keyframes offlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Sync Status in Sidebar */
.nav-sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    min-height: 36px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12.5px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-sync-status i {
    color: var(--primary);
    font-size: 13.5px;
}

.nav-sync-status:hover,
.sync-status-pill:hover,
.sync-status-button:hover {
    transform: translateY(-1px);
}

.nav-sync-status.syncing,
.sync-status-pill.syncing,
.sync-status-button.syncing {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
    color: #93c5fd;
}

.nav-sync-status.has-pending,
.sync-status-pill.has-pending,
.sync-status-button.has-pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.32);
    color: #fbbf24;
}

.nav-sync-status.sync-error,
.sync-status-pill.sync-error,
.sync-status-button.sync-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.32);
    color: #fca5a5;
}

.nav-sync-status.synced,
.sync-status-pill.synced,
.sync-status-button.synced {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.24);
    color: #86efac;
}

.sync-status-pill {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sync-status-pill i,
.sync-status-button i {
    color: currentColor;
}

.sync-status-button {
    position: relative;
}

.sync-mini-badge {
    position: absolute;
    align-items: center;
    justify-content: center;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    border: 2px solid var(--bg-panel);
    font-size: 10px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}

/* Sync Badge (pending count) */
.sync-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Offline Order Indicator */
.offline-order-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    font-size: 11px;
    font-weight: 600;
}

.offline-order-tag i {
    font-size: 10px;
}

/* Syncing animation for sidebar icon */
.nav-sync-status.syncing i,
.sync-status-pill.syncing i,
.sync-status-button.syncing i {
    animation: syncSpin 1s linear infinite;
}

@keyframes syncSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Light mode overrides for offline UI */
body.light-mode .network-status-bar.offline {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

body.light-mode .network-status-bar.online {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

body.light-mode .nav-sync-status {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .nav-sync-status i {
    color: var(--primary);
}

body.light-mode .sync-status-pill,
body.light-mode .sync-status-button {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(41, 71, 166, 0.20);
    color: var(--primary);
}

body.light-mode .nav-sync-status.synced,
body.light-mode .sync-status-pill.synced,
body.light-mode .sync-status-button.synced {
    color: #15803d;
}

body.light-mode .nav-sync-status.has-pending,
body.light-mode .sync-status-pill.has-pending,
body.light-mode .sync-status-button.has-pending {
    color: #b45309;
}

body.light-mode .nav-sync-status.sync-error,
body.light-mode .sync-status-pill.sync-error,
body.light-mode .sync-status-button.sync-error {
    color: #b91c1c;
}

.sync-status-modal-shell {
    width: min(92vw, 460px) !important;
    max-width: 460px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.sync-panel {
    padding: 24px;
}

.sync-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.sync-panel-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.sync-panel-icon.offline {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.sync-panel h3 {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.15;
    color: var(--text-primary);
}

.sync-panel p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.sync-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.sync-summary-grid div {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
}

.sync-summary-grid span,
.sync-detail-row span {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.sync-summary-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
}

.sync-detail-table {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
}

.sync-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px 64px;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-color);
}

.sync-detail-row:last-child {
    border-bottom: 0;
}

.sync-detail-head {
    background: rgba(255, 255, 255, 0.05);
}

.sync-detail-row strong {
    text-align: right;
    color: var(--text-primary);
}

.sync-last-error {
    padding: 11px 12px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.10);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.sync-last-error strong {
    color: #fca5a5;
}

.sync-panel-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
}

.sync-panel-actions button {
    min-height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.sync-panel-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.light-mode .sync-summary-grid div,
body.light-mode .sync-detail-table {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.10);
}

body.light-mode .sync-detail-head {
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .sync-panel-icon.online {
    color: #15803d;
}

body.light-mode .sync-last-error {
    background: rgba(239, 68, 68, 0.08);
}

body.light-mode .sync-last-error strong {
    color: #b91c1c;
}

/* Toast adjustments for offline messages */
.toast-info {
    border-left: 4px solid #3b82f6 !important;
}

.toast-warning {
    border-left: 4px solid #f59e0b !important;
}

/* Adjust body when network bar is visible */
.network-status-bar.offline ~ #login-screen,
.network-status-bar.offline ~ #app-screen {
    padding-top: 36px;
}

/* Mobile adjustments for network bar */
@media (max-width: 1024px) {
    .network-status-bar {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .network-status-bar.offline ~ #app-screen .mobile-top-header {
        top: 30px;
    }
    
    .nav-sync-status {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ========================================================================== 
   SHIFT MANAGEMENT UI 
   ========================================================================== */ 
.shift-closing-modal, .shift-success-modal { 
    display: flex; 
    flex-direction: column; 
} 

.shift-modal-icon { 
    width: 80px; 
    height: 80px; 
    background: rgba(239, 68, 68, 0.1); 
    color: var(--danger); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 32px; 
    margin: 0 auto 24px; 
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); 
} 

.shift-success-modal .shift-modal-icon { 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--accent); 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); 
} 

.shift-summary-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    margin-bottom: 24px; 
} 

.shift-summary-item { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--border-color); 
    padding: 16px; 
    border-radius: var(--radius-md); 
    text-align: center; 
} 

.shift-summary-item .label { 
    display: block; 
    font-size: 11px; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    margin-bottom: 8px; 
    letter-spacing: 0.5px; 
} 

.shift-summary-item .value { 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--text-primary); 
} 

.shift-warning-box { 
    background: rgba(245, 158, 11, 0.1); 
    border-left: 4px solid var(--warning); 
    padding: 16px; 
    border-radius: 8px; 
    margin-bottom: 24px; 
    display: flex; 
    gap: 12px; 
    align-items: flex-start; 
} 

.shift-warning-box i { 
    color: var(--warning); 
    font-size: 18px; 
    margin-top: 2px; 
} 

.shift-warning-box p { 
    font-size: 13px; 
    color: var(--text-secondary); 
    line-height: 1.5; 
    margin: 0; 
} 

.shift-total-row { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 20px; 
    border-radius: 12px; 
    margin-bottom: 32px; 
} 

.shift-total-row .row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px; 
} 

.shift-total-row .row:last-child { 
    margin-bottom: 0; 
    padding-top: 12px; 
    border-top: 1px dashed var(--border-color); 
} 

.shift-total-row .label { font-size: 14px; color: var(--text-secondary); } 
.shift-total-row .value { font-weight: 700; font-size: 18px; } 
.shift-total-row .grand-total { font-size: 24px; color: var(--primary); } 

/* Shift Lock Screen Specifics */
#shift-lock-screen {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
}

#shift-lock-screen .login-container {
    max-width: 400px;
    width: 90%;
    padding: 48px 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.lock-badge {
    width: 100px;
    height: 100px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 32px;
    position: relative;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.lock-badge::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed var(--warning);
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.shift-lock-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shift-lock-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Bazaar Styles */
.bazaar-mode-badge { display: flex; align-items: center; gap: 8px; padding: 6px 16px; background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border-radius: 99px; font-size: 11px; font-weight: 700; margin: 0 20px; animation: pulse-bazaar 2s infinite; }
@keyframes pulse-bazaar { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.price-breakdown { font-size: 12px; display: flex; flex-direction: column; color: #94a3b8; }
.markup-val { color: #f59e0b; font-weight: 600; }
/* ==========================================================================
   EMERGENCY RECOVERY UI (SAFETY NET)
   ========================================================================== */
.emergency-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
    animation: fadeIn 0.4s ease-out;
}

.emergency-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.emergency-icon {
    width: 80px;
    height: 80px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    animation: pulseGlow 2s infinite;
}

.emergency-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.emergency-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-emergency {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-emergency:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Light mode support for emergency UI */
body.light-mode .emergency-overlay {
    background: rgba(255, 255, 255, 0.85);
}

body.light-mode .emergency-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .emergency-title {
    color: #1a1a1a;
}

/* User Management Specific Styles */
.role-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Skeleton Loading */
.skeleton-card { width: 100%; min-height: 220px; background: var(--bg-panel); border-radius: var(--radius-lg); border: 1px solid var(--border-color); position: relative; overflow: hidden; }
.skeleton-card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent); animation: skeleton-loading 1.5s infinite; }
@keyframes skeleton-loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Management Grid */
.mgmt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1200px) {
    .mgmt-grid {
        grid-template-columns: 400px 1fr;
        align-items: start;
    }
}

.badge-outline {
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.table-thumb {
    border: 1px solid var(--border-color);
    transition: transform var(--trans-fast);
}

.table-thumb:hover {
    transform: scale(2);
    z-index: 10;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-input {
    transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.glass-input:focus {
    transform: translateY(-1px);
}

#modal-container {
    animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
    0% { transform: translate(-50%, -40%) scale(0.9); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header i {
    color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
}

/* ========================================================================== 
   ENHANCED FORM STYLING
   ========================================================================== */

/* Form Structure */
.form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* Form Group Enhancements */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group label .required {
    color: var(--danger);
    font-weight: 700;
}

/* Helper Text */
.helper-text {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.helper-text.info {
    color: var(--text-secondary);
}

.helper-text.error {
    color: var(--danger);
    margin-top: 4px;
}

.helper-text.success {
    color: var(--accent);
}

/* Input Enhancements */
.glass-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: all var(--trans-fast);
}

.glass-input:hover {
    border-color: var(--border-hover);
}

.glass-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px var(--primary-glow);
    transform: translateY(-1px);
}

.glass-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.1);
}

.glass-input::placeholder {
    color: var(--text-muted);
}

/* Input Number Styling */
input[type="number"].glass-input {
    text-align: right;
}

input[type="number"].glass-input::-webkit-outer-spin-button,
input[type="number"].glass-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Select Styling */
select.glass-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 36px;
    appearance: none;
    cursor: pointer;
}

/* Button Enhancements */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Flex utilities for buttons */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.gap-12 {
    gap: 12px;
}

.w-full {
    width: 100%;
}

/* Additional Margin & Padding Utilities */
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.py-16 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-20 { padding-top: 20px !important; padding-bottom: 20px !important; }
.p-24 { padding: 24px !important; }

/* Modal Enhancements */
.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0;
}

.modal-footer.sticky {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Table Item Styling */
.expense-item-row {
    transition: all var(--trans-fast);
}

.expense-item-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.expense-item-row td {
    padding: 12px 12px;
    vertical-align: middle;
}

.expense-item-row .glass-input {
    padding: 8px 10px;
    font-size: 14px;
    margin: 0;
}

.exp-row-subtotal {
    text-align: right;
    color: var(--accent);
    font-weight: 700;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all var(--trans-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.icon-btn.text-danger {
    color: var(--danger);
}

.icon-btn.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Final readable action controls for filters and printing */
.filter-btn,
.icon-btn.print-btn,
button.print-btn {
    min-width: 96px;
    min-height: 44px;
    width: auto;
    height: auto;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.14);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: none;
}

.filter-btn:hover,
.icon-btn.print-btn:hover,
button.print-btn:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.42);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-btn.active,
.icon-btn.print-btn.is-primary,
button.print-btn.is-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.icon-btn.print-btn[id*="print"],
button.print-btn[id*="print"],
#attn-print-btn,
#print-report-btn,
#attn-print-qr-btn {
    min-width: 108px !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.icon-btn.print-btn[id*="print"]:hover,
button.print-btn[id*="print"]:hover,
#attn-print-btn:hover,
#print-report-btn:hover,
#attn-print-qr-btn:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #fff !important;
}

.filter-btn i,
.icon-btn.print-btn i,
button.print-btn i {
    color: currentColor;
    font-size: 15px;
    flex: 0 0 auto;
}

.icon-btn.print-btn span,
button.print-btn span {
    color: currentColor;
    font-size: 13px;
    font-weight: 750;
}

body.light-mode .filter-btn,
body.light-mode .icon-btn.print-btn,
body.light-mode button.print-btn {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.18);
    color: #111827;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.light-mode .filter-btn:hover,
body.light-mode .icon-btn.print-btn:hover,
body.light-mode button.print-btn:hover {
    background: #f3f4f6;
    border-color: rgba(17, 24, 39, 0.3);
    color: #111827;
}

body.light-mode .filter-btn.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

body.light-mode .icon-btn.print-btn[id*="print"],
body.light-mode button.print-btn[id*="print"],
body.light-mode #attn-print-btn,
body.light-mode #print-report-btn,
body.light-mode #attn-print-qr-btn {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}

body.light-mode .icon-btn.print-btn[id*="print"]:hover,
body.light-mode button.print-btn[id*="print"]:hover,
body.light-mode #attn-print-btn:hover,
body.light-mode #print-report-btn:hover,
body.light-mode #attn-print-qr-btn:hover {
    background: #115e59 !important;
    border-color: #115e59 !important;
    color: #ffffff !important;
}

/* Responsive Form Layout */
@media (max-width: 768px) {
    .form-row.two-col {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        max-height: calc(100vh - 200px);
        padding: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .glass-input {
        font-size: 16px; /* Prevent mobile auto-zoom */
        padding: 14px 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .form-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }
}
/* ========================================================================== 
   CONFIRMATION MODAL STYLING
   ========================================================================== */
.confirm-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.confirm-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    position: relative;
}

.confirm-modal-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px dashed currentColor;
    opacity: 0.3;
}

/* Types */
.confirm-modal-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.confirm-modal-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.confirm-modal-icon.info {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.confirm-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.confirm-modal-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 320px;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.confirm-modal-buttons button {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}

/* Animation for icon */
@keyframes confirm-icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.confirm-modal-icon i {
    animation: confirm-icon-bounce 2s infinite ease-in-out;
}

/* Modal Close Button (X) */
.modal-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--trans-fast);
    line-height: 1;
    padding: 0;
    z-index: 10;
}

.modal-close-x:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

body.light-mode .modal-close-x {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
}

body.light-mode .modal-close-x:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

/* ========================================================================== 
   BEAUTIFIED CANCEL BUTTON
   ========================================================================== */
.confirm-modal-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-weight: 500;
    transition: all var(--trans-fast);
}

.confirm-modal-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

body.light-mode .confirm-modal-buttons .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .confirm-modal-buttons .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
}

/* App-grade confirmation dialog overrides */
#modal-container.confirm-modal-shell {
    width: min(92vw, 440px) !important;
    max-width: 440px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48) !important;
}

#modal-container.confirm-modal-shell.payment-calc-shell,
#modal-container.confirm-modal-shell:has(.payment-calculator-modal) {
    width: min(94vw, 640px) !important;
    max-width: 640px !important;
    max-height: 94vh !important;
    overflow-y: auto !important;
}

@media (min-width: 768px) {
    #modal-container.confirm-modal-shell.payment-calc-shell,
    #modal-container.confirm-modal-shell:has(.payment-calculator-modal) {
        width: min(90vw, 660px) !important;
        max-width: 660px !important;
    }
}

#modal-container.confirm-modal-shell #modal-body {
    width: 100%;
}

#modal-container.confirm-modal-shell .confirm-modal-content {
    align-items: stretch;
    text-align: left;
    padding: 30px 28px 24px;
}

#modal-container.confirm-modal-shell .confirm-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 18px;
    border-radius: 16px;
    font-size: 22px;
}

#modal-container.confirm-modal-shell .confirm-modal-icon::after {
    display: none;
}

#modal-container.confirm-modal-shell .confirm-modal-title {
    margin: 0 42px 8px 0;
    font-size: 22px;
    line-height: 1.15;
}

#modal-container.confirm-modal-shell .confirm-modal-message {
    max-width: none;
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.45;
}

#modal-container.confirm-modal-shell .confirm-modal-buttons {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    gap: 12px;
}

#modal-container.confirm-modal-shell .confirm-modal-buttons button,
#modal-container.confirm-modal-shell .modal-close-x {
    appearance: none;
    -webkit-appearance: none;
}

#modal-container.confirm-modal-shell .confirm-modal-buttons button {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
}

#modal-container.confirm-modal-shell .confirm-cancel-btn {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

#modal-container.confirm-modal-shell .confirm-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.24);
}

#modal-container.confirm-modal-shell .confirm-primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: 0;
    box-shadow: 0 12px 28px var(--primary-glow);
}

#modal-container.confirm-danger .confirm-primary-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.26) !important;
}

#modal-container .confirm-modal-buttons .danger-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.26) !important;
}

#modal-container.confirm-modal-shell .modal-close-x {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 16px;
}

#modal-container.confirm-modal-shell .modal-close-x:hover {
    transform: none;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

body.light-mode #modal-container.confirm-modal-shell {
    border-color: rgba(0, 0, 0, 0.12) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 243, 0.98)) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16) !important;
}

body.light-mode #modal-container.confirm-modal-shell .confirm-cancel-btn {
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary);
    border-color: rgba(0, 0, 0, 0.16);
}

body.light-mode #modal-container.confirm-modal-shell .confirm-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.28);
}

body.light-mode #modal-container.confirm-modal-shell .modal-close-x {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.14);
    color: var(--primary);
}

body.light-mode #modal-container.confirm-modal-shell .modal-close-x:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   PAYMENT CALCULATOR MODAL (POS & ORDER MANAGEMENT) — TABLET OPTIMIZED
   ========================================================================== */
.payment-calculator-modal {
    padding: 16px 18px 14px !important;
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
}

.calc-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.calc-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.25));
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.15);
}

.calc-modal-title-group h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.calc-modal-meta {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--text-secondary);
    display: flex;
    gap: 6px;
    align-items: center;
}

.calc-total-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

body.light-mode .calc-total-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border: 1px solid #f59e0b !important;
    color: #78350f !important;
}

.calc-total-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 700;
}

body.light-mode .calc-total-label {
    color: #92400e !important;
}

.calc-total-breakdown {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

body.light-mode .calc-total-breakdown {
    color: #b45309 !important;
}

.calc-total-amount {
    font-size: 21px;
    font-weight: 900;
    color: var(--accent, #f59e0b);
    font-family: var(--font-mono, monospace);
    letter-spacing: -0.5px;
}

body.light-mode .calc-total-amount {
    color: #b45309 !important;
}

.calc-method-switch {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

@media (max-width: 440px) {
    .calc-method-switch {
        grid-template-columns: repeat(2, 1fr);
    }
}

.calc-method-btn {
    appearance: none;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 6px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 38px;
}

body.light-mode .calc-method-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.calc-method-btn.active {
    background: var(--surface-hover, rgba(59, 130, 246, 0.15));
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
}

body.light-mode .calc-method-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* Split Bill Panel */
.calc-split-container {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

body.light-mode .calc-split-container {
    background: #f8fafc !important;
    border: 1px solid #ddd6fe !important;
}

.split-preset-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.split-preset-chip {
    appearance: none;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    padding: 4px 8px;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.light-mode .split-preset-chip {
    background: #ede9fe;
    border-color: #8b5cf6;
    color: #6d28d9;
}

.split-preset-chip:hover {
    background: #8b5cf6;
    color: #ffffff;
}

.split-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .split-grid-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.split-method-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
}

body.light-mode .split-method-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

.split-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.split-badge {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

body.light-mode .split-badge {
    background: #dbeafe;
    color: #1e40af;
}

.split-select {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

body.light-mode .split-select {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}

.split-cash-drawer-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px dashed rgba(245, 158, 11, 0.5);
    border-radius: 10px;
    padding: 8px 10px;
}

body.light-mode .split-cash-drawer-box {
    background: #fffbeb;
    border-color: #f59e0b;
}

.split-drawer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
    align-items: center;
}

@media (max-width: 500px) {
    .split-drawer-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.split-status-bar {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.split-status-bar.valid {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

body.light-mode .split-status-bar.valid {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.split-status-bar.invalid {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

body.light-mode .split-status-bar.invalid {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Cash Panel & Inputs */
.calc-cash-container {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

body.light-mode .calc-cash-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.calc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.calc-input-prefix {
    position: absolute;
    left: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #3b82f6;
    pointer-events: none;
    z-index: 2;
}

.calc-cash-input {
    width: 100%;
    height: 42px;
    background: #0f172a !important;
    border: 2px solid rgba(59, 130, 246, 0.5) !important;
    border-radius: 10px;
    padding: 0 40px 0 36px;
    font-size: 17px;
    font-weight: 900;
    color: #ffffff !important;
    font-family: var(--font-mono, monospace);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body.light-mode .calc-cash-input {
    background: #ffffff !important;
    border: 2px solid #3b82f6 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.calc-cash-input:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

.calc-clear-btn {
    position: absolute;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 2;
}

.calc-clear-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.calc-quick-title {
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

body.light-mode .calc-quick-title {
    color: #475569 !important;
}

.calc-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.calc-quick-chip {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #1e293b;
    border-radius: 8px;
    padding: 7px 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #f8fafc;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

body.light-mode .calc-quick-chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.calc-quick-chip:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
    transform: translateY(-1px);
}

body.light-mode .calc-quick-chip:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.calc-quick-chip.pas-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border-color: #10b981;
    color: #10b981;
    font-weight: 800;
}

body.light-mode .calc-quick-chip.pas-btn {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
    border-color: #059669 !important;
    color: #065f46 !important;
}

.calc-quick-chip.pas-btn:hover {
    background: #10b981 !important;
    color: #fff !important;
}

.calc-add-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.calc-add-chip {
    appearance: none;
    border: 1px dashed rgba(245, 158, 11, 0.4);
    background: rgba(30, 41, 59, 0.5);
    border-radius: 6px;
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 700;
    color: #fde68a;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

body.light-mode .calc-add-chip {
    background: #ffffff !important;
    border: 1px dashed #f59e0b !important;
    color: #b45309 !important;
}

.calc-add-chip:hover {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-style: solid;
}

.calc-change-card {
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    transition: all 0.25s ease;
}

.calc-change-card.state-initial {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

body.light-mode .calc-change-card.state-initial {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.calc-change-card.state-exact {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

body.light-mode .calc-change-card.state-exact {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
}

.calc-change-card.state-surplus {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
    border: 1px solid #10b981;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.15);
}

body.light-mode .calc-change-card.state-surplus {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #10b981;
    color: #065f46;
}

.calc-change-card.state-deficit {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
}

body.light-mode .calc-change-card.state-deficit {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #b91c1c;
}

.calc-change-label {
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-change-val {
    font-size: 17px;
    font-weight: 900;
    font-family: var(--font-mono, monospace);
}

.calc-change-card.state-surplus .calc-change-val {
    color: #10b981;
}

body.light-mode .calc-change-card.state-surplus .calc-change-val {
    color: #047857;
}

.calc-change-card.state-deficit .calc-change-val {
    color: #ef4444;
}

body.light-mode .calc-change-card.state-deficit .calc-change-val {
    color: #dc2626;
}

.calc-qris-card {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    margin-bottom: 12px;
}

body.light-mode .calc-qris-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.calc-qris-card i {
    font-size: 28px;
    color: #3b82f6;
    margin-bottom: 6px;
}

.calc-qris-card p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

body.light-mode .calc-qris-card p {
    color: #1e293b;
}

.calc-buttons-stack {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 8px;
    align-items: stretch;
}

@media (max-width: 480px) {
    .calc-buttons-stack {
        grid-template-columns: 1fr 1fr;
    }
}

.calc-btn-pay {
    appearance: none;
    min-height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 13px;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease;
}

.calc-btn-pay:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.calc-btn-pay:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    background: #64748b;
}

.calc-btn-pending {
    appearance: none;
    min-height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 13px;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
    transition: all 0.2s ease;
}

.calc-btn-pending:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}

.calc-btn-cancel {
    grid-column: auto;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .calc-btn-cancel {
        grid-column: 1 / -1;
        min-height: 38px;
    }
}

body.light-mode .calc-btn-cancel {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.calc-btn-cancel:hover {
    background: rgba(148, 163, 184, 0.15);
}


/* ===== Dompet (Konsep Kartu Digital ATM) ===== */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    align-items: stretch;
}

.wallet-atm-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 20px;
    height: 100%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.wallet-atm-wrapper:hover {
    transform: translateY(-4px);
}

.wallet-atm-card {
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 260px;
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
    color: #ffffff;
    padding: 20px 22px 16px 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 36px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.3);
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #071b37 0%, #0b376b 45%, #0061a8 100%);
    border: 1px solid rgba(255,255,255,.15);
    z-index: 2;
    flex: 1 0 auto;
}

/* Lingkaran Orbit Dekoratif Kartu ATM */
.wallet-atm-card::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    right: -130px;
    bottom: -170px;
    pointer-events: none;
}

.wallet-atm-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    right: -60px;
    bottom: -120px;
    pointer-events: none;
}

/* Varian Tema Kartu ATM Sesuai Warna */
.wallet-atm-theme-blue {
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #071b37 0%, #0b376b 45%, #0061a8 100%);
}

.wallet-atm-theme-green {
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #032717 0%, #064e3b 45%, #059669 100%);
}

.wallet-atm-theme-orange {
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #381305 0%, #7c2d12 45%, #c2410c 100%);
}

.wallet-atm-theme-red {
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #3d0914 0%, #701124 45%, #be123c 100%);
}

.wallet-atm-theme-purple {
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #240c4a 0%, #4c1d95 45%, #7e22ce 100%);
}

.wallet-atm-theme-teal {
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #032726 0%, #0f5653 45%, #0f766e 100%);
}

.wallet-atm-theme-gray {
    background: radial-gradient(circle at 90% 15%, rgba(255,255,255,.22), transparent 40%),
                linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
}

.wallet-atm-card.wallet-card-inactive {
    opacity: 0.65;
    filter: grayscale(0.4);
}

/* Header Kartu */
.wallet-atm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    gap: 12px;
    min-height: 42px;
}

.wallet-atm-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.wallet-atm-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(200,230,255,0.8));
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #0b376b;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 4px 10px rgba(0,0,0,.2);
    text-shadow: none;
    flex-shrink: 0;
}

.wallet-atm-theme-green .wallet-atm-logo-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(187,247,208,0.85));
    color: #064e3b;
}

.wallet-atm-theme-orange .wallet-atm-logo-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(254,215,170,0.85));
    color: #7c2d12;
}

.wallet-atm-theme-red .wallet-atm-logo-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(254,205,211,0.85));
    color: #701124;
}

.wallet-atm-theme-purple .wallet-atm-logo-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(233,213,255,0.85));
    color: #4c1d95;
}

.wallet-atm-theme-teal .wallet-atm-logo-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(153,246,228,0.85));
    color: #0f5653;
}

.wallet-atm-theme-gray .wallet-atm-logo-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(226,232,240,0.85));
    color: #1e293b;
}

.wallet-atm-brand-info {
    display: flex;
    flex-direction: column;
}

.wallet-atm-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.wallet-atm-subtitle {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .8;
    margin-top: 3px;
    display: block;
    font-weight: 600;
}

.wallet-atm-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-atm-contactless {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    opacity: .9;
}

.wallet-atm-contactless svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.wallet-atm-badge-inactive {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.25);
    color: #f1f5f9;
    letter-spacing: 0.6px;
}

/* Mid Row (Chip & Kas Laci Tag) */
.wallet-atm-mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-height: 36px;
    margin-top: 6px;
    gap: 12px;
}

.wallet-atm-chip {
    position: relative;
    width: 48px;
    height: 35px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f5d87e 0%, #c99631 35%, #ffdf80 70%, #b47b20 100%);
    border: 1px solid rgba(70,45,0,.45);
    box-shadow: inset 0 0 5px rgba(255,255,255,.6), 0 2px 6px rgba(0,0,0,.3);
    flex-shrink: 0;
}

.wallet-atm-chip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(70,45,0,.45);
}

.wallet-atm-chip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(70,45,0,.45);
}

.wallet-atm-chip-grid1,
.wallet-atm-chip-grid2 {
    position: absolute;
    border: 1px solid rgba(70,45,0,.4);
    width: 14px;
    height: 14px;
}

.wallet-atm-chip-grid1 {
    left: 5px;
    top: 4px;
    border-left: none;
}

.wallet-atm-chip-grid2 {
    right: 5px;
    bottom: 4px;
    border-right: none;
}

.wallet-atm-drawer-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Balance */
.wallet-atm-balance-block {
    position: relative;
    z-index: 2;
    margin-top: 6px;
    margin-bottom: 6px;
}

.wallet-atm-balance-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .75;
    font-weight: 600;
    margin-bottom: 2px;
}

.wallet-atm-balance-val {
    font-size: 25px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
    line-height: 1.15;
}

.wallet-atm-balance-val.text-danger {
    color: #fca5a5 !important;
}

/* Footer Info */
.wallet-atm-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.14);
    gap: 16px;
    min-height: 38px;
}

.wallet-atm-footer-info {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.wallet-atm-info-col {
    display: flex;
    flex-direction: column;
}

.wallet-atm-info-title {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: .65;
    margin-bottom: 2px;
    font-weight: 600;
}

.wallet-atm-info-val {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: .95;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-atm-network {
    text-align: right;
    flex-shrink: 0;
}

.wallet-atm-network-logo {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,.35);
    line-height: 1;
}

.wallet-atm-network-sub {
    font-size: 7px;
    text-align: right;
    opacity: .8;
    letter-spacing: 1.5px;
    margin-top: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Action Dock di Bawah Kartu */
.wallet-atm-actions-dock {
    background: var(--bg-panel, rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border-color, rgba(255,255,255,.08));
    border-top: none;
    border-radius: 0 0 18px 18px;
    padding: 18px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    margin-top: -8px;
    z-index: 1;
    flex-shrink: 0;
    min-height: 108px;
}

.wallet-atm-cash-actions {
    display: flex;
    gap: 8px;
}

.wallet-atm-btn-in {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(34,197,94,.4);
    background: rgba(34,197,94,.12);
    color: #22c55e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.wallet-atm-btn-in:hover:not(:disabled) {
    background: rgba(34,197,94,.22);
    border-color: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.25);
    transform: translateY(-1px);
}

.wallet-atm-btn-out {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(249,115,22,.4);
    background: rgba(249,115,22,.12);
    color: #f97316;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.wallet-atm-btn-out:hover:not(:disabled) {
    background: rgba(249,115,22,.22);
    border-color: #f97316;
    box-shadow: 0 0 12px rgba(249,115,22,.25);
    transform: translateY(-1px);
}

.wallet-atm-mgmt-actions {
    display: flex;
    gap: 6px;
}

.wallet-atm-btn-action {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255,255,255,.12));
    background: rgba(255,255,255,.05);
    color: var(--text-primary, #f8fafc);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.wallet-atm-btn-action:hover:not(:disabled) {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

.wallet-atm-btn-action:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.wallet-atm-btn-danger {
    flex: 0 0 auto;
    width: 38px;
    padding: 8px 0;
    color: var(--danger, #ef4444);
    border-color: rgba(239,68,68,.3);
    background: rgba(239,68,68,.08);
}

.wallet-atm-btn-danger:hover:not(:disabled) {
    background: rgba(239,68,68,.2);
    border-color: var(--danger, #ef4444);
}

.wallet-empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--text-muted); }
.wallet-empty-hint { font-size: 12px; max-width: 460px; margin: 8px auto 0; line-height: 1.6; }

/* Responsif Mobile */
@media (max-width: 500px) {
    .wallet-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .wallet-atm-card {
        padding: 18px 20px;
        height: auto;
        min-height: 220px;
    }
    .wallet-atm-balance-val {
        font-size: 22px;
    }
    .wallet-atm-footer-info {
        gap: 12px;
    }
}

.wallet-mapping-panel { padding: 20px; border-radius: 12px; }
.wallet-mapping-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wallet-mapping-head h3 { margin: 0 0 4px; font-size: 16px; }
.wallet-mapping-hint { font-size: 12px; color: var(--text-muted); margin: 0; max-width: 520px; line-height: 1.6; }

.wallet-map-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.wallet-map-label { min-width: 130px; font-size: 13px; font-weight: 600; }
.wallet-map-select { flex: 1; min-width: 180px; }

.wallet-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; font-weight: 400; cursor: pointer; }
.wallet-check input { width: auto; margin: 0; }

.wallet-info-box {
    font-size: 12px; line-height: 1.6; padding: 10px 12px; border-radius: 8px;
    background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); color: var(--text-muted);
}

.wallet-mut-head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 12px; font-size: 13px; }
.wallet-mut-head strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.wallet-mut-date { font-size: 12px; white-space: nowrap; }
.wallet-mut-type { font-size: 13px; }
.wallet-mut-note { font-size: 11px; color: var(--text-muted); }
.wallet-mut-amount, .wallet-mut-balance { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.wallet-mut-amount { font-weight: 600; }

.wallet-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 12px; flex-wrap: wrap; }

/* ── Laba Rugi ──────────────────────────────────────────────────────── */

.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.pl-panel { padding: 20px; border-radius: 12px; margin-bottom: 16px; }
.pl-panel-title { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pl-table { width: 100%; }
.pl-table td, .pl-table th { padding: 8px 6px; }
.pl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-total td { font-weight: 700; border-top: 1px solid var(--glass-border, rgba(255,255,255,.15)); }
.pl-muted { display: block; font-size: 11px; color: var(--text-muted); }

.pl-note {
    font-size: 12px; line-height: 1.6; color: var(--text-muted);
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed var(--glass-border, rgba(255,255,255,.15));
}

/* Peringatan HPP belum dihitung. Sengaja mencolok: angka di layar ini
   BELUM dipotong modal bahan, dan owner memakainya untuk menetapkan harga. */
.pl-warning {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 13px; line-height: 1.6; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px;
    background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: #f59e0b;
}
.pl-warning i { font-size: 18px; margin-top: 1px; }

.pl-hero { padding: 24px; border-radius: 12px; margin-bottom: 16px; text-align: center; }
.pl-hero-plus  { background: rgba(34,197,94,.10);  border: 1px solid rgba(34,197,94,.30); }
.pl-hero-minus { background: rgba(239,68,68,.10);  border: 1px solid rgba(239,68,68,.30); }
.pl-hero-label { font-size: 13px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.pl-hero-value { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0; }
.pl-hero-plus  .pl-hero-value { color: #22c55e; }
.pl-hero-minus .pl-hero-value { color: #ef4444; }
.pl-hero-sub { font-size: 12px; color: var(--text-muted); }

.pl-badge-debt {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
    background: rgba(249,115,22,.15); color: #f97316; border: 1px solid rgba(249,115,22,.3);
}

.wallet-drawer-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
    background: rgba(249,115,22,.15); color: #f97316; border: 1px solid rgba(249,115,22,.3);
    align-self: flex-start;
}

/* ── DASHBOARD BENTO-GLASS MODERN ─────────────────────────────────────────── */

.dash-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary, #8b5cf6);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.dash-badge-icon {
    font-size: 10px;
}

.dash-shift-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    transition: all 0.2s ease;
}

.dash-shift-active {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.dash-shift-inactive {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.dash-shift-filter {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.dash-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: dashPulse 2s infinite ease-in-out;
}

@keyframes dashPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* 4 Core Summary Grid */
.dash-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dash-card {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.18);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dash-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.dash-icon-emerald {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.dash-icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.dash-icon-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.dash-icon-violet {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.dash-card-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.dash-card-tag.tag-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dash-card-tag.tag-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.dash-card-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.dash-card-val {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.dash-card-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Middle Row: Chart & Payment Distribution (2 Columns) */
.dash-middle-grid, .dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dash-period-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Payment Methods List */
.dash-payment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-pay-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-pay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.dash-pay-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-pay-icon-mini {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.dash-pay-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.dash-pay-val {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dash-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.bg-emerald {
    background: #22c55e;
    color: #22c55e;
}
.dash-pay-icon-mini.bg-emerald {
    background: rgba(34, 197, 94, 0.15);
}

.bg-blue {
    background: #3b82f6;
    color: #3b82f6;
}
.dash-pay-icon-mini.bg-blue {
    background: rgba(59, 130, 246, 0.15);
}

.bg-violet {
    background: #8b5cf6;
    color: #8b5cf6;
}
.dash-pay-icon-mini.bg-violet {
    background: rgba(139, 92, 246, 0.15);
}

.bg-amber {
    background: #f59e0b;
    color: #f59e0b;
}
.dash-pay-icon-mini.bg-amber {
    background: rgba(245, 158, 11, 0.15);
}

/* Best Sellers List */
.best-sellers-list, .recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-seller-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-seller-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dash-seller-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.dash-seller-rank.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.dash-seller-rank.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.dash-seller-rank.rank-3 {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: #fff;
}

.dash-seller-rank.rank-4, .dash-seller-rank.rank-5 {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.dash-seller-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-seller-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-seller-qty {
    text-align: right;
    font-size: 13px;
    white-space: nowrap;
}

.dash-seller-qty strong {
    font-variant-numeric: tabular-nums;
}

/* Recent Orders Row */
.dash-recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}

.dash-recent-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dash-recent-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.dash-recent-num {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-recent-time {
    font-size: 11px;
    color: var(--text-muted);
}

.dash-recent-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.dash-recent-amount {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.empty-list-state {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.empty-list-state i {
    font-size: 28px;
    opacity: 0.3;
    margin-bottom: 8px;
    display: block;
}

/* Responsif Mobile & Tablet */
@media (max-width: 1024px) {
    .dash-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-middle-grid, .dash-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dash-summary-grid {
        grid-template-columns: 1fr;
    }
    .dash-header-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .dash-card-val {
        font-size: 20px;
    }
}

/* ==========================================================================
   BOOK HEALTH AUDIT — LAYAR CEK KESEHATAN BUKU BESAR
   ========================================================================== */

.bh-hero-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

/* Dark Mode (Default) Hero Variants */
.bh-hero-healthy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.35) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
}

.bh-hero-attention {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(120, 53, 15, 0.35) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12);
}

.bh-hero-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(127, 29, 29, 0.4) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.18);
}

/* Light Mode Hero Variants */
body.light-mode .bh-hero-healthy {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

body.light-mode .bh-hero-attention {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

body.light-mode .bh-hero-critical {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.bh-hero-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.bh-score-ring {
    min-width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 3.5px solid currentColor;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

body.light-mode .bh-score-ring {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.bh-hero-healthy .bh-score-ring { border-color: #10b981; color: #10b981; }
.bh-hero-attention .bh-score-ring { border-color: #f59e0b; color: #f59e0b; }
.bh-hero-critical .bh-score-ring { border-color: #ef4444; color: #ef4444; }

body.light-mode .bh-hero-healthy .bh-score-ring { border-color: #059669; color: #065f46; }
body.light-mode .bh-hero-attention .bh-score-ring { border-color: #d97706; color: #92400e; }
body.light-mode .bh-hero-critical .bh-score-ring { border-color: #dc2626; color: #991b1b; }

.bh-score-number {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
}

.bh-score-number span {
    font-size: 15px;
    font-weight: 700;
}

.bh-score-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 3px;
    opacity: 0.9;
}

body.light-mode .bh-score-label {
    color: #475569;
}

.bh-hero-text {
    flex: 1;
}

.bh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Status Badges */
.bh-status-healthy {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.bh-status-attention {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.bh-status-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

body.light-mode .bh-status-healthy {
    background: #059669;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

body.light-mode .bh-status-attention {
    background: #d97706;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

body.light-mode .bh-status-critical {
    background: #dc2626;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.bh-hero-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}

body.light-mode .bh-hero-title {
    color: #0f172a;
}

.bh-hero-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

body.light-mode .bh-hero-desc {
    color: #334155;
}

.bh-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.bh-stat-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 7px 16px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .bh-stat-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bh-chip-label {
    color: var(--text-muted);
    font-weight: 600;
}

body.light-mode .bh-chip-label {
    color: #475569;
}

.bh-chip-value {
    font-weight: 800;
    font-size: 13.5px;
    color: var(--text-primary);
}

body.light-mode .bh-chip-value {
    color: #0f172a;
}

.bh-audit-timestamp {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

body.light-mode .bh-audit-timestamp {
    color: #64748b;
}

/* Indicators Grid & Cards */
.bh-indicators-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bh-card {
    padding: 22px 26px;
    border-radius: 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

body.light-mode .bh-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bh-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-mode .bh-card:hover {
    border-color: #cbd5e1;
}

.bh-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bh-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bh-card-number {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 6px;
}

body.light-mode .bh-card-number {
    background: #f1f5f9;
    color: #475569;
}

.bh-card-title {
    font-size: 15.5px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

body.light-mode .bh-card-title {
    color: #0f172a;
}

.bh-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.bh-pill-pass {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.bh-pill-warn {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.bh-pill-fail {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

body.light-mode .bh-pill-pass {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

body.light-mode .bh-pill-warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}

body.light-mode .bh-pill-fail {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.bh-card-message {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.45;
    font-weight: 500;
}

body.light-mode .bh-card-message {
    color: #475569;
}

/* Tables & Summary Details */
.bh-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .bh-table-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bh-table {
    width: 100%;
    margin-bottom: 0 !important;
}

.bh-table th {
    font-size: 12px;
    font-weight: 700;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .bh-table th {
    background: #f1f5f9;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
}

.bh-table td {
    font-size: 13px;
    padding: 12px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.light-mode .bh-table td {
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
}

.bh-subtext {
    font-size: 11px;
    color: var(--text-muted);
}

body.light-mode .bh-subtext {
    color: #64748b;
}

.bh-pass-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

body.light-mode .bh-pass-note {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.bh-action-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 13px;
}

body.light-mode .bh-action-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #78350f;
}

.bh-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.bh-mini-badge.pass {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.bh-mini-badge.fail {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

body.light-mode .bh-mini-badge.pass {
    background: #d1fae5;
    color: #047857;
}

body.light-mode .bh-mini-badge.fail {
    background: #fee2e2;
    color: #b91c1c;
}

.bh-shift-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.bh-summary-item {
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.light-mode .bh-summary-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bh-summary-item .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

body.light-mode .bh-summary-item .label {
    color: #64748b;
}

.bh-summary-item .value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

body.light-mode .bh-summary-item .value {
    color: #0f172a;
}

.bh-method-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

body.light-mode .bh-method-tag {
    background: #e2e8f0;
    color: #334155;
}

/* Responsif Mobile & Tablet Book Health */
@media (max-width: 900px) {
    .bh-hero-shell {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .bh-hero-right {
        align-items: stretch;
    }
    .bh-shift-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bh-hero-left {
        flex-direction: column;
        text-align: center;
    }
    .bh-shift-summary-grid {
        grid-template-columns: 1fr;
    }
    .bh-action-banner {
        flex-direction: column;
        align-items: stretch;
    }
}




/* =====================================================================
   QRIS DINAMIS DI KASIR — layar yang dibalik ke pelanggan
   =====================================================================
   Sengaja TIDAK memakai variabel tema aplikasi: layar ini dilihat
   pelanggan, bukan kasir, dan harus tetap terbaca jelas baik saat
   aplikasi dalam mode terang maupun gelap. Kontras dikunci tinggi
   supaya nominal tetap terbaca dari jarak satu lengan.
   ===================================================================== */

body.qris-terkunci {
    overflow: hidden;
}

.qris-layar {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: linear-gradient(150deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    color: #f8fafc;
    animation: qris-masuk 0.25s ease-out;
}

@keyframes qris-masuk {
    from { opacity: 0; transform: scale(0.99); }
    to   { opacity: 1; transform: scale(1); }
}

.qris-pita-uji {
    background: #f59e0b;
    color: #451a03;
    text-align: center;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.qris-isi {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px 40px;
    align-items: center;
    overflow-y: auto;
}

.qris-kiri {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qris-label-atas {
    font-size: 15px;
    color: #a5b4fc;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Nominal adalah hal terpenting di layar ini: pelanggan harus bisa
   memastikan angkanya benar sebelum membayar. */
.qris-nominal {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.qris-pelanggan {
    font-size: 15px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qris-langkah {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
}

.qris-langkah-judul {
    font-weight: 700;
    font-size: 13px;
    color: #e0e7ff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.qris-langkah ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 5px;
}

.qris-langkah li {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.45;
}

.qris-mundur {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fcd34d;
    font-weight: 600;
}

.qris-kanan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Kotak QR dibuat putih karena antarmuka Midtrans di dalamnya bertema
   terang; latar gelap di belakangnya akan membuat tepinya belang. */
.qris-kartu-qr {
    position: relative;   /* jangkar untuk lapisan "menyiapkan" di bawah */
    background: #ffffff;
    border-radius: 18px;
    padding: 10px;
    width: 100%;
    max-width: 420px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.qris-tanam {
    width: 100%;
}

/* Menumpang DI ATAS kotak, bukan berdiri di sampingnya. Sebagai saudara
   dalam flex row, tulisan ini ikut memakan lebar dan mendesak QR jadi
   sempit — persis yang terjadi sebelum ini diperbaiki. */
.qris-memuat {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    gap: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.qris-tautan-cadangan {
    display: inline-block;
    padding: 12px 18px;
    background: #4f46e5;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.qris-status {
    font-size: 16px;
    font-weight: 700;
    color: #e0e7ff;
    text-align: center;
    min-height: 24px;
    transition: color 0.3s ease;
}

.qris-status.lunas { color: #6ee7b7; font-weight: 800; }
.qris-status.gagal { color: #fca5a5; }
.qris-status.perhatian { color: #fcd34d; }

.qris-layar {
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.qris-layar.qris-lunas {
    background: radial-gradient(circle at 75% 50%, rgba(16, 185, 129, 0.25) 0%, transparent 60%),
                linear-gradient(150deg, #022c22 0%, #064e3b 50%, #047857 100%);
}

.qris-layar.qris-lunas .qris-langkah {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.qris-kartu-qr.is-success {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(16, 185, 129, 0.35);
    border: 2px solid rgba(52, 211, 153, 0.5);
    transition: all 0.4s ease;
}

/* =====================================================================
   SELEBRASI SUKSES PEMBAYARAN QRIS (ANIMASI & KONFIRMASI)
   ===================================================================== */
.qris-sukses-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    z-index: 10;
    animation: qris-sukses-masuk 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes qris-sukses-masuk {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qris-sukses-ikon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.qris-sukses-circle {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
    z-index: 2;
    animation: qris-circle-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes qris-circle-pop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.qris-sukses-svg {
    width: 48px;
    height: 48px;
    display: block;
}

.qris-sukses-circle-stroke {
    stroke: #34d399;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: qris-stroke-draw 0.65s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

.qris-sukses-check {
    stroke: #ffffff;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: qris-check-draw 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes qris-stroke-draw {
    100% { stroke-dashoffset: 0; }
}

@keyframes qris-check-draw {
    100% { stroke-dashoffset: 0; }
}

/* Riak / Ripple Pulse di belakang ikon centang */
.qris-sukses-ripple {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.qris-sukses-ripple-1 {
    animation: qris-ripple-anim 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) 0.3s infinite;
}

.qris-sukses-ripple-2 {
    animation: qris-ripple-anim 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) 0.75s infinite;
}

@keyframes qris-ripple-anim {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

/* Sparkles / Partikel Selebrasi Mikro */
.qris-sukses-sparkles {
    position: absolute;
    inset: -16px;
    pointer-events: none;
    z-index: 3;
}

.qris-sparkle {
    position: absolute;
    font-size: 13px;
    opacity: 0;
    line-height: 1;
}

.qris-sparkle.s-1 { top: 0; left: 8px; color: #10b981; font-size: 15px; animation: qris-sparkle-pop 1.2s ease-out 0.35s infinite; }
.qris-sparkle.s-2 { top: 6px; right: 8px; color: #f59e0b; font-size: 16px; animation: qris-sparkle-pop 1.4s ease-out 0.5s infinite; }
.qris-sparkle.s-3 { bottom: 8px; left: 10px; color: #06b6d4; font-size: 13px; animation: qris-sparkle-pop 1.3s ease-out 0.45s infinite; }
.qris-sparkle.s-4 { bottom: 6px; right: 10px; color: #10b981; font-size: 14px; animation: qris-sparkle-pop 1.5s ease-out 0.6s infinite; }

@keyframes qris-sparkle-pop {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
    100% { transform: scale(0.5) rotate(90deg); opacity: 0; }
}

.qris-sukses-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 6px;
    animation: qris-fade-slide 0.4s ease-out 0.25s both;
}

.qris-sukses-judul {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    animation: qris-fade-slide 0.4s ease-out 0.35s both;
}

.qris-sukses-nominal {
    font-size: 28px;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    animation: qris-fade-slide 0.4s ease-out 0.4s both;
}

.qris-sukses-sub {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
    animation: qris-fade-slide 0.4s ease-out 0.45s both;
}

.qris-sukses-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #334155;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    animation: qris-fade-slide 0.4s ease-out 0.5s both;
}

.qris-sukses-info i {
    color: #059669;
}

@keyframes qris-fade-slide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tombol batal sengaja kecil dan di pojok: tablet sedang menghadap
   pelanggan, dan pelanggan tidak boleh tidak sengaja menekannya. */
.qris-batal {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.qris-batal:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

.qris-batal.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

@media (max-width: 900px) {
    .qris-isi {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        align-content: start;
    }

    .qris-langkah { display: none; }
    .qris-kartu-qr { min-height: 320px; }
}

/* =====================================================================
   PANEL PEMBAYARAN GATEWAY YANG PERLU DIPERIKSA
   ===================================================================== */

.bh-attention-card {
    background: var(--bg-card);
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.bh-attention-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bh-attention-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.02rem;
}

.bh-attention-sum {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.bh-attention-note {
    margin: 8px 0 14px;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.bh-attention-list {
    display: grid;
    gap: 10px;
}

.bh-attention-row {
    background: var(--bg-soft);
    border-left: 3px solid;
    border-radius: 9px;
    padding: 12px 14px;
}

.bh-attention-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.bh-attention-badge {
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 5px;
}

.bh-attention-amount {
    font-weight: 800;
    font-size: 1.04rem;
    color: var(--text-primary);
}

.bh-attention-ref {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.bh-attention-problem {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Langkah tindakan dibedakan warnanya: owner membaca panel ini saat panik,
   dan yang paling dibutuhkan adalah "lalu saya harus apa". */
.bh-attention-action {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--accent);
    line-height: 1.5;
}

.bh-attention-meta {
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ==========================================================================
   SETTINGS VIEW — LUXURY REDESIGN (UI/UX)
   ========================================================================== */

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.settings-header-info h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Tab Navigation */
.settings-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

body.light-mode .settings-tabs {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--trans-fast);
}

.settings-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

body.light-mode .settings-tab:hover {
    background: rgba(0, 0, 0, 0.04);
}

.settings-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

body.light-mode .settings-tab.active {
    background: var(--primary);
    color: #ffffff;
}

.settings-tab-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-weight: 700;
}

/* Tab Panels */
.settings-tab-panel {
    display: none;
    animation: fadeInSettings 0.22s ease-out forwards;
}

.settings-tab-panel.active {
    display: block;
}

@keyframes fadeInSettings {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bento Grid */
.settings-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-col-span-full {
    grid-column: 1 / -1;
}

/* Settings Cards */
.settings-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    overflow: hidden;
    transition: border-color var(--trans-fast);
}

.settings-card:hover {
    border-color: var(--border-hover);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bg-violet { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.bg-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.bg-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.bg-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.bg-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.bg-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.bg-violet-soft { background: rgba(139, 92, 246, 0.12); color: var(--primary); }

.settings-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-card-subtitle {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.settings-card-body {
    padding: 24px;
}

.settings-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

/* Upload Dual Grid */
.upload-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.upload-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--trans-fast);
}

body.light-mode .upload-card {
    background: rgba(0, 0, 0, 0.02);
}

.upload-card:hover {
    border-color: var(--primary);
}

.upload-preview-box {
    width: 74px;
    height: 74px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 12px;
    overflow: hidden;
}

.upload-preview-box.favicon-box {
    width: 50px;
    height: 50px;
}

.upload-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.upload-placeholder i {
    font-size: 20px;
}

.btn-upload-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all var(--trans-fast);
    margin-bottom: 8px;
}

body.light-mode .btn-upload-trigger {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.btn-upload-trigger:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.upload-hint {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Feature Setting Boxes (Tax, Bazaar) */
.feature-setting-box {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

body.light-mode .feature-setting-box {
    background: rgba(0, 0, 0, 0.03);
}

.feature-tax {
    border-color: rgba(139, 92, 246, 0.25);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.06), transparent);
}

.feature-bazaar {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), transparent);
}

.feature-setting-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-input-unit {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.btn-save-large {
    width: auto !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Form Input Enhancements */
.textarea-icon {
    position: relative;
}

.textarea-icon i {
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.textarea-icon textarea {
    padding-left: 40px !important;
}

/* User Management Form & Table */
.user-form-card {
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05), var(--bg-panel));
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.user-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.user-edit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-form-content {
    padding: 24px;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.user-options-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.user-checkbox-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 48px;
}

.custom-checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--trans-fast);
    user-select: none;
}

body.light-mode .custom-checkbox-pill {
    background: rgba(0, 0, 0, 0.04);
}

.custom-checkbox-pill input[type="checkbox"] {
    display: none;
}

.custom-checkbox-pill .checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all var(--trans-fast);
}

.custom-checkbox-pill input:checked + .checkbox-box {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.custom-checkbox-pill.checkbox-danger input:checked + .checkbox-box {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

.custom-checkbox-pill:hover {
    border-color: var(--border-hover);
}

/* User Live Search */
.user-search-wrapper {
    position: relative;
    width: 280px;
    max-width: 100%;
}

.user-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.user-search-input {
    padding-left: 38px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    font-size: 13px !important;
    border-radius: var(--radius-full) !important;
}

/* User Table Cells & Badges */
.user-cell-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.user-avatar-badge.role-owner { background: linear-gradient(135deg, #f59e0b, #d97706); }
.user-avatar-badge.role-admin { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.user-avatar-badge.role-kasir { background: linear-gradient(135deg, #10b981, #059669); }
.user-avatar-badge.role-crew { background: linear-gradient(135deg, #06b6d4, #0284c7); }

.user-meta-info {
    display: flex;
    flex-direction: column;
}

.user-display-name {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-sub-id {
    font-size: 11px;
    color: var(--text-muted);
}

.user-username-badge {
    font-family: monospace;
    font-size: 12.5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
}

body.light-mode .user-username-badge {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

/* Role Pills */
.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.role-pill.role-owner {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.role-pill.role-admin {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.role-pill.role-kasir {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.role-pill.role-crew {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.role-pill.role-default {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* Status & PIN Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-pill.status-active {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.status-pill.status-inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.pin-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.pin-pill.pin-set {
    background: rgba(139, 92, 246, 0.14);
    color: #c4b5fd;
}

.pin-pill.pin-unset {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

/* Inline Shift Forms */
.shift-inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr auto;
    gap: 14px;
    align-items: flex-end;
}

.shift-schedule-form {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: flex-end;
}

.form-submit-align {
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
}

/* Mobile & Tablet Responsive Styles for Settings */
@media (max-width: 1024px) {
    .settings-bento-grid {
        grid-template-columns: 1fr;
    }
    .user-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .shift-inline-form {
        grid-template-columns: 1fr 1fr;
    }
    .shift-schedule-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .user-form-grid {
        grid-template-columns: 1fr;
    }
    .upload-dual-grid {
        grid-template-columns: 1fr;
    }
    .shift-inline-form {
        grid-template-columns: 1fr;
    }
    .shift-schedule-form {
        grid-template-columns: 1fr;
    }
    .user-search-wrapper {
        width: 100%;
    }
}


/* ==========================================================================
   SETTINGS VIEW — UTILITAS PENDUKUNG
   Class di bawah dirujuk markup Pengaturan (index.html) tapi belum pernah
   didefinisikan. Tanpa ini ikon dalam field menumpuk teks dan input file
   tersembunyi tetap terlihat.
   ========================================================================== */

/* Field dengan ikon di dalamnya (menggantikan inline style pola lama) */
.input-with-icon {
    position: relative;
    display: block;
    width: 100%;
}

.input-with-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon > .glass-input {
    padding-left: 40px !important;
}

/* Textarea: ikon dijangkarkan ke atas, bukan tengah. */
.input-with-icon.textarea-icon > i {
    top: 14px;
    transform: none;
}

/* Sembunyikan input file asli — pemicunya label .btn-upload-trigger. */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Label kecil di samping judul field (mis. "Login Cepat") */
.badge-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.btn-sm {
    padding: 7px 14px !important;
    font-size: 12.5px !important;
}

/* Utilitas layout & teks yang dipakai markup Pengaturan */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.gap-20 { gap: 20px !important; }

.p-0 { padding: 0 !important; }
.pt-16 { padding-top: 16px !important; }
.py-24 { padding-top: 24px !important; padding-bottom: 24px !important; }
.mt-4 { margin-top: 4px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-20 { margin-bottom: 20px !important; }

.text-xs { font-size: 11.5px !important; }
.text-sm { font-size: 13px !important; }
.text-lg { font-size: 18px !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }
.text-success { color: var(--success) !important; }

@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ORANGE SQUEEZE POS — PAYMENT CALCULATOR & MODAL STYLES
   ========================================================================== */
.payment-calculator-modal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 6px 0;
    width: 100%;
}

.calc-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.calc-modal-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.calc-modal-title-group h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: var(--text-primary);
}

.calc-modal-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.calc-total-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(255, 183, 3, 0.12) 100%);
    border: 1px solid rgba(255, 107, 0, 0.22);
}

.calc-total-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--primary);
}

.calc-total-breakdown {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.calc-total-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.calc-method-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

body.light-mode .calc-method-switch {
    background: rgba(0, 0, 0, 0.04);
}

.calc-method-btn {
    padding: 9px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all var(--trans-fast);
}

.calc-method-btn i {
    font-size: 14px;
}

.calc-method-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.calc-method-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.calc-quick-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.calc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.calc-input-prefix {
    position: absolute;
    left: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    pointer-events: none;
}

.calc-cash-input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    outline: none;
    transition: all var(--trans-fast);
}

body.light-mode .calc-cash-input {
    background: #FFFFFF;
    border-color: rgba(249, 115, 22, 0.2);
}

.calc-cash-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.calc-clear-btn {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--trans-fast);
}

.calc-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.calc-quick-grid,
.calc-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.calc-quick-chip,
.calc-add-chip {
    padding: 9px 6px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all var(--trans-fast);
}

body.light-mode .calc-quick-chip,
body.light-mode .calc-add-chip {
    background: #FFFFFF;
    border-color: rgba(249, 115, 22, 0.16);
}

.calc-quick-chip:hover,
.calc-add-chip:hover {
    background: rgba(255, 107, 0, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.calc-quick-chip.pas-btn {
    background: rgba(22, 163, 74, 0.15);
    border-color: rgba(22, 163, 74, 0.35);
    color: var(--accent);
    font-weight: 700;
}

.calc-quick-chip.pas-btn:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.calc-change-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 10px;
    transition: all var(--trans-fast);
}

.calc-change-card.state-initial {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.calc-change-card.state-exact {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: var(--accent);
}

.calc-change-card.state-surplus {
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--primary);
}

.calc-change-card.state-deficit {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.calc-change-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.calc-change-val {
    font-size: 18px;
    font-weight: 800;
}

.calc-qris-card {
    padding: 24px 18px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(22, 163, 74, 0.06) 100%);
    border: 1px dashed var(--border-color);
}

.calc-qris-card i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 10px;
}

.calc-split-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.split-preset-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.split-preset-chip {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.split-preset-chip:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.split-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.split-method-card {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

.split-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.split-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 107, 0, 0.15);
    color: var(--primary);
}

.split-select {
    flex: 1;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}

.split-status-bar {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.split-status-bar.valid {
    background: rgba(22, 163, 74, 0.15);
    color: var(--accent);
}

.split-status-bar.invalid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.calc-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.calc-btn-pay {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #FF6B00 0%, #FFA000 100%);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.35);
    transition: all var(--trans-normal);
}

.calc-btn-pay:hover:not(:disabled) {
    background: linear-gradient(135deg, #E65100 0%, #FF6B00 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.45);
}

.calc-btn-pay:disabled {
    background: #4A3E36;
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.calc-btn-pending {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--trans-fast);
}

.calc-btn-pending:hover {
    background: rgba(245, 158, 11, 0.22);
}

.calc-btn-cancel {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: color var(--trans-fast);
}

.calc-btn-cancel:hover {
    color: var(--text-primary);
}
