@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #00a854;
    --primary-light: #e6f7ef;
    --secondary-color: #fb8c00;
    --bg-color: #f4f7f6;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #888888;
    --border-color: #f0f0f0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 85px;
    padding: 24px 15px;
    z-index: 1500;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    white-space: nowrap;
}

.close-sidebar-mobile {
    display: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

.sidebar.collapsed .logo-section {
    justify-content: center;
    margin-bottom: 25px;
}

.sidebar.collapsed .logo-section > div {
    justify-content: center;
    gap: 0;
}

.sidebar.collapsed .logo-section h2 {
    display: none;
}

.logo-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-menu {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    border: none;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    background: rgba(0, 168, 84, 0.08);
    color: var(--primary-color);
}

.nav-item:hover i {
    transform: scale(1.08);
}

.nav-item.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 168, 84, 0.35);
    border: none;
}

.nav-item.active i {
    color: #ffffff;
    transform: none;
}

/* Collapsed Sidebar Nav Items */
.sidebar.collapsed .nav-item {
    width: 50px;
    height: 50px;
    padding: 0 !important;
    margin: 0 auto 8px !important;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

.sidebar.collapsed .nav-item i {
    min-width: unset;
    width: auto;
    font-size: 19px;
    margin: 0 !important;
    text-align: center;
}

.sidebar.collapsed .nav-item.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 168, 84, 0.4) !important;
    border: none !important;
}

/* Tooltip Popup on Collapsed Nav Item */
.sidebar.collapsed .nav-item span {
    position: absolute;
    left: 100%;
    margin-left: 14px;
    background: #1e293b;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-6px);
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 1000;
}

.sidebar.collapsed .nav-item:hover span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Submenu handling in Collapsed (Mini Size) state */
.sidebar.collapsed .nav-item.has-submenu {
    position: relative !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    margin: 0 auto 8px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1505 !important;
}

/* Trigger button icon inside Akuntansi nav-item */
.sidebar.collapsed .nav-item.has-submenu > .submenu-trigger {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.sidebar.collapsed .has-submenu .fa-chevron-down,
.sidebar.collapsed .has-submenu > .submenu-trigger span {
    display: none !important;
}

.sidebar.collapsed .has-submenu > .submenu-trigger i {
    font-size: 19px !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Flyout Submenu Container in Collapsed Mode */
.sidebar.collapsed .has-submenu .submenu,
.sidebar.collapsed .has-submenu.open .submenu {
    display: none !important;
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    margin-left: 12px !important;
    margin-top: 0 !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: calc(100vh - 40px) !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 8px 6px !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #edf2f7 !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    animation: submenuFlyout 0.15s ease-out;
}

/* Invisible bridge so mouse hover doesn't drop between button and popup */
.sidebar.collapsed .has-submenu .submenu::after {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    width: 18px;
    height: 100%;
}

/* Header label inside flyout */
.sidebar.collapsed .has-submenu .submenu::before {
    content: 'AKUNTANSI';
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 12px 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
    text-align: left;
}

@keyframes submenuFlyout {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Submenu appears on hover in collapsed mode */
.sidebar.collapsed .has-submenu:hover .submenu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.sidebar.collapsed .has-submenu.open {
    background: transparent !important;
    box-shadow: none !important;
}

.sidebar.collapsed .has-submenu:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 168, 84, 0.35) !important;
}

.sidebar.collapsed .has-submenu:hover > .submenu-trigger i {
    color: #ffffff !important;
}

/* Submenu Items in Collapsed State */
.sidebar.collapsed .has-submenu .submenu-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 9px 12px !important;
    color: #334155 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    gap: 10px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    background: transparent !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
}

.sidebar.collapsed .has-submenu .submenu-item:hover {
    background: #f0fdf4 !important;
    color: var(--primary-color, #00a854) !important;
    transform: translateX(3px) !important;
}

.sidebar.collapsed .has-submenu .submenu-item i {
    font-size: 13px !important;
    width: 16px !important;
    text-align: center !important;
    color: var(--primary-color, #00a854) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* User Profile & Footer Area */
.user-profiles {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.sidebar.collapsed .user-profiles {
    padding-top: 14px;
}

.sidebar.collapsed .user-profiles p, 
.sidebar.collapsed .user-profiles span {
    display: none;
}

.sidebar-user-footer {
    padding: 14px 8px 4px 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.sidebar-user-footer .user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid rgba(0, 168, 84, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sidebar-user-footer .user-info-text {
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-user-footer .user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-footer .user-role {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}

/* Collapsed footer state */
.sidebar.collapsed .sidebar-user-footer {
    padding: 12px 0 0 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-user-footer .user-info-wrapper {
    justify-content: center;
    gap: 0;
    width: 100%;
}

.sidebar.collapsed .sidebar-user-footer .user-info-text {
    display: none !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f8faf9;
}

.top-bar {
    position: sticky; /* Kunci agar melayang saat scroll */
    top: 0;           /* Menempel tepat di bagian atas layar */
    z-index: 900;     /* Pastikan di atas elemen lain (kategori/produk biasanya z-index rendah) */
    
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    
    /* Penting: Tambahkan background & padding agar terlihat rapi saat melayang */
    background: #f8faf9; /* Sama dengan background main-content */
    transition: all 0.3s ease;
}

.hamburger-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
    background: white;
    box-shadow: var(--shadow-soft);
}

.hamburger-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 48px 14px 50px;
    border: none;
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow-soft);
    font-size: 15px;
    transition: all 0.2s ease;
}

.search-box > i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.voice-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    z-index: 5;
    padding: 0;
}

.voice-search-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color, #00a854);
}

.voice-search-btn i {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    color: inherit !important;
    font-size: 15px !important;
}

.voice-search-btn.is-listening {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    animation: voicePulse 1.2s infinite ease-in-out;
}

@keyframes voicePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
        transform: translateY(-50%) scale(1);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(239, 68, 68, 0);
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        transform: translateY(-50%) scale(1);
    }
}

.filter-container {
    position: relative;
}

.advance-filter-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 250px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.advance-filter-menu.active {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    outline: none;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 600 !important;
    cursor: pointer;
    font-size: 13px !important;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

/* Product Card Promo Badge */
.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

/* Categories */
.categories-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-card {
    min-width: 100px;
    background: white;
    padding: 5px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
}

.category-card.active {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
}

.category-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.category-name {
    font-weight: 600;
    font-size: 13px;
}

.category-count {
    font-size: 10px;
    color: var(--text-muted);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card.promo-active {
    background: #f0fff4; /* Hijau tipis untuk barang promo */
    border: 1px solid #c6f6d5;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffdb3b;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.product-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
}

.veg-indicator {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.veg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.add-dish-btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.add-dish-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Multi-Session Tabs */
.session-tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    overflow-x: auto;
    border-bottom: 1px solid #f0f0f0;
}

.session-tab {
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-tab.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.add-session-btn {
    padding: 8px 12px;
    background: white;
    border: 1px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    color: #888;
}

.add-session-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.order-panel {
    width: 380px;
    min-width: 300px;
    max-width: 50vw;
    background: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    position: relative;
    flex-shrink: 0;
}

.order-panel.is-resizing {
    user-select: none !important;
}

/* Order Panel Draggable Resizer */
.order-panel-resizer {
    position: absolute;
    left: -7px;
    top: 0;
    bottom: 0;
    width: 14px;
    cursor: col-resize;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.15s ease;
}

.order-panel-resizer:hover,
.order-panel-resizer.is-resizing {
    background: rgba(0, 168, 84, 0.08);
}

.resizer-handle-pill {
    width: 4px;
    height: 52px;
    border-radius: 4px;
    background: #cbd5e1;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.order-panel-resizer:hover .resizer-handle-pill,
.order-panel-resizer.is-resizing .resizer-handle-pill {
    background: var(--primary-color, #00a854);
    height: 76px;
    width: 6px;
    box-shadow: 0 0 10px rgba(0, 168, 84, 0.45);
}

body.resizing-order-panel {
    cursor: col-resize !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

body.resizing-order-panel * {
    user-select: none !important;
    -webkit-user-select: none !important;
    pointer-events: none !important;
}

body.resizing-order-panel .order-panel-resizer,
body.resizing-order-panel .order-panel {
    pointer-events: auto !important;
}

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

.order-tabs {
    display: flex;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: #e6f7ef; /* Hijau tipis premium */
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 168, 84, 0.1);
    border: 1px solid rgba(0, 168, 84, 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price-qty {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.order-summary {
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0;
}

.pay-method {
    border: 1.5px solid var(--border-color);
    padding: 12px 5px; /* Lebih ramping */
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pay-method i {
    font-size: 16px; /* Lebih kecil */
    color: var(--text-muted);
    transition: 0.3s;
}

.pay-method p {
    font-size: 10px; /* Lebih kecil */
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.3s;
}

.pay-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.pay-method.active {
    border-color: var(--primary-color);
    background: var(--primary-color); /* Perubahan ke hijau penuh saat dipilih */
    box-shadow: 0 10px 25px rgba(0, 168, 84, 0.3);
}

.pay-method.active i, .pay-method.active p {
    color: white; /* Teks dan ikon jadi putih agar kontras */
    transform: scale(1.1);
}

.pay-method:active {
    transform: scale(0.95);
}

.place-order-btn {
    width: 100%;
    padding: 14px; /* Reduced from 16px */
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px; /* Reduced from 16px */
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 168, 84, 0.3);
}

/* Bottom Nav / Tables */
.bottom-tables {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.table-status-card {
    background: white;
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.table-circle {
    width: 32px;
    height: 32px;
    background: #fff8e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* Mobile & Tablet Portrait Responsive Styling (Optimized for Samsung Galaxy Tab A9, iPad, and Smartphones) */
@media (max-width: 991px), (max-width: 1024px) and (orientation: portrait) {
    body {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .app-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: visible !important;
    }

    .sidebar {
        display: flex !important;
        position: fixed !important;
        left: -280px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        z-index: 2000 !important;
        transition: left 0.3s ease !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1) !important;
        padding: 24px 20px !important;
    }

    .sidebar.active {
        left: 0 !important;
    }

    .sidebar .close-sidebar-mobile {
        display: block !important;
    }

    .sidebar .nav-item {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 12px 18px !important;
        margin: 0 0 6px 0 !important;
    }

    .sidebar .nav-item span {
        display: inline !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: none !important;
        padding: 0 !important;
        color: inherit !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .sidebar .nav-item i {
        width: 24px !important;
        margin-right: 12px !important;
    }

    .sidebar .logo-section h2 {
        display: block !important;
    }

    .sidebar .sidebar-user-footer {
        display: block !important;
        padding: 14px 10px !important;
    }

    .sidebar .user-info-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .sidebar .user-info-text {
        display: block !important;
    }

    /* Overlay for sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        height: auto !important;
        padding: 16px 18px !important;
        width: 100% !important;
        flex: none !important;
        overflow: visible !important;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .search-box {
        width: 100% !important;
    }

    .categories-container {
        padding: 8px 0;
    }

    .category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .category-card {
        min-width: 95px;
        padding: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
        gap: 12px !important;
    }

    .product-card {
        padding: 10px;
    }

    .product-img {
        height: 120px;
    }

    /* Order Panel Full Width at Bottom for Samsung Galaxy Tab A9 & Mobile */
    .order-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        border-left: none !important;
        border-top: 2px solid var(--border-color, #e5e7eb) !important;
        padding: 24px 20px 36px 20px !important;
        position: static !important;
        margin-top: 20px !important;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.06) !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .order-panel-resizer {
        display: none !important;
    }

    .cart-items {
        max-height: 380px !important;
        min-height: 100px !important;
        overflow-y: auto !important;
    }

    .payment-methods {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .order-panel-mobile-toggle {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(0, 168, 84, 0.3);
        z-index: 999;
        font-size: 20px;
        cursor: pointer;
    }

    /* Adjust Modals for Mobile & Tablet */
    .modal-content {
        width: 95% !important;
        max-width: 520px !important;
        margin: 10px auto;
        max-height: 88vh !important;
        overflow-y: auto !important;
    }

    .checkout-body {
        max-height: 400px;
    }

    .close-sidebar-mobile {
        display: block;
    }

    .hamburger-btn {
        display: flex !important;
        background: white;
        border: 1px solid #eee;
        padding: 10px;
        border-radius: 12px;
        margin-right: 15px;
    }
}

@media (min-width: 992px) and (orientation: landscape), (min-width: 1025px) {
    .order-panel-mobile-toggle {
        display: none !important;
    }
}

/* Profile Section Styling */
.profile-container-view {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
}

.profile-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.profile-logo-circle {
    width: 80px;
    height: 80px;
    background: #d4a017;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.profile-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
/* Success Bottom Sheet */
.success-bottom-sheet {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: #00a854;
    color: white;
    padding: 15px 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.success-bottom-sheet.active {
    bottom: 0;
}
/* Modal for Add/Edit */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;           /* backdrop scrolls if modal-content is taller than viewport */
    padding: 20px 0;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    /* Hide scrollbar — Chrome/Safari/Edge */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE 10+ */
}
.modal-content::-webkit-scrollbar,
.modal::-webkit-scrollbar,
#receipt-container::-webkit-scrollbar,
#receipt-iframe::-webkit-scrollbar {
    display: none !important;                  /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}
.modal,
#receipt-container,
#receipt-iframe {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Apple Style Slide-Over Drawer Modal (Samping Kanan Full Layar)
   ========================================================================== */
.apple-modal {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    display: none;
    align-items: stretch !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    animation: appleBackdropFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.apple-modal-content {
    background: #ffffff !important;
    width: 620px !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 24px 0 0 24px !important;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.16), -3px 0 14px rgba(0, 0, 0, 0.04) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    animation: appleDrawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes appleBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes appleDrawerSlideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.apple-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid #f2f2f7;
    margin-bottom: 0;
    background: #ffffff;
    flex-shrink: 0;
    z-index: 10;
}

.apple-modal-content .apple-form {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 22px 28px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.apple-modal-content .apple-form::-webkit-scrollbar {
    width: 6px;
}

.apple-modal-content .apple-form::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.apple-modal-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.4px !important;
    margin: 0 !important;
    line-height: 1.2;
}

.apple-modal-subtitle {
    font-size: 13px !important;
    color: #86868b !important;
    margin-top: 4px !important;
    font-weight: 400 !important;
    letter-spacing: -0.1px;
}

.apple-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f2f7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e73;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.apple-modal-close:hover {
    background: #e5e5ea;
    color: #1d1d1f;
    transform: scale(1.06);
}

.apple-form-section {
    background: #fafafc;
    border: 1px solid #f0f0f4;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.apple-section-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #86868b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apple-section-header i {
    font-size: 12px;
    color: var(--primary-color, #00a854);
}

.apple-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 580px) {
    .apple-grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.apple-field {
    margin-bottom: 12px;
}

.apple-field:last-child {
    margin-bottom: 0;
}

.apple-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #48484a;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

.apple-label .required {
    color: #ff3b30;
    font-weight: 700;
}

.apple-input {
    width: 100%;
    background: #ffffff !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 12px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1d1d1f !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.apple-input:focus {
    border-color: var(--primary-color, #00a854) !important;
    box-shadow: 0 0 0 3.5px rgba(0, 168, 84, 0.15) !important;
}

.apple-input::placeholder {
    color: #aeaeb2;
    font-weight: 400;
}

/* Select Dropdown */
.apple-select-wrapper {
    position: relative;
    width: 100%;
}

.apple-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 12px !important;
    padding: 11px 36px 11px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1d1d1f !important;
    outline: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.apple-select:focus {
    border-color: var(--primary-color, #00a854) !important;
    box-shadow: 0 0 0 3.5px rgba(0, 168, 84, 0.15) !important;
}

.apple-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 11px;
    color: #8e8e93;
}

/* Currency & Prefix Inputs */
.apple-currency-input, 
.apple-input-with-icon, 
.apple-percent-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.apple-currency-input .currency-symbol {
    position: absolute;
    left: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #8e8e93;
    pointer-events: none;
}

.apple-currency-input .apple-input {
    padding-left: 38px !important;
}

.apple-percent-input .percent-symbol {
    position: absolute;
    right: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #8e8e93;
    pointer-events: none;
}

.apple-percent-input .apple-input {
    padding-right: 32px !important;
}

.apple-input-with-icon .field-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #8e8e93;
    pointer-events: none;
}

.apple-input-with-icon .apple-input {
    padding-left: 38px !important;
}

/* Variant Input Rows in Apple Modal */
.variant-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.variant-input-row.dragging {
    opacity: 0.45;
    background: #e0f2fe;
    border: 1.5px dashed var(--primary-color, #00a854);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.variant-input-row.drag-over-top {
    border-top: 2.5px solid var(--primary-color, #00a854);
}

.variant-input-row.drag-over-bottom {
    border-bottom: 2.5px solid var(--primary-color, #00a854);
}

.variant-drag-handle {
    cursor: grab;
    color: #94a3b8;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    touch-action: none;
    user-select: none;
    transition: color 0.15s;
}

.variant-drag-handle:hover {
    color: var(--primary-color, #00a854);
}

.variant-drag-handle:active {
    cursor: grabbing;
}

.btn-move-variant-up:hover:not(:disabled),
.btn-move-variant-down:hover:not(:disabled) {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: var(--primary-color, #00a854) !important;
}

.variant-input-row .apple-currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.variant-input-row .apple-currency-input .currency-symbol {
    position: absolute;
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #8e8e93;
    pointer-events: none;
    z-index: 2;
}

.variant-input-row .apple-currency-input .apple-input {
    padding-left: 38px !important;
}

@media (max-width: 520px) {
    .variant-input-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .variant-input-row > div:nth-child(2) {
        flex: 1 1 calc(100% - 40px) !important;
    }
    .variant-input-row .apple-currency-input {
        flex: 1 1 120px !important;
        width: auto !important;
    }
}

/* Apple Switch Tile */
.apple-switch-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 9px 14px;
    gap: 12px;
}

.apple-switch-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.apple-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.apple-row-desc {
    font-size: 11px;
    color: #86868b;
}

/* iOS Toggle Switch */
.apple-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 25px;
    flex-shrink: 0;
}

.apple-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.apple-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e5e5ea;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 25px;
}

.apple-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.apple-switch input:checked + .apple-slider {
    background-color: var(--primary-color, #00a854);
}

.apple-switch input:checked + .apple-slider:before {
    transform: translateX(19px);
}

/* Image Upload Tile */
.apple-upload-card {
    background: #ffffff;
    border: 1.5px dashed #d1d1d6;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.apple-upload-card:hover {
    border-color: var(--primary-color, #00a854);
    background: #fbfdfc;
}

.apple-upload-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.apple-upload-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #f2f2f7;
    color: var(--primary-color, #00a854);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: 0.2s;
}

.apple-upload-card:hover .apple-upload-icon-circle {
    background: var(--primary-light, #e6f7ef);
    transform: scale(1.05);
}

.apple-upload-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apple-upload-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1d1d1f;
}

.apple-upload-hint {
    font-size: 11.5px;
    color: #86868b;
}

/* Apple Modal Footer */
.apple-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 28px;
    margin-top: auto;
    margin-left: -28px;
    margin-right: -28px;
    margin-bottom: -22px;
    border-top: 1px solid #f2f2f7;
    background: #ffffff;
    position: sticky;
    bottom: -22px;
    z-index: 20;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .apple-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }
    .apple-modal-header {
        padding: 16px 20px !important;
    }
    .apple-modal-content .apple-form {
        padding: 16px 20px !important;
    }
    .apple-modal-footer {
        padding: 14px 20px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        margin-bottom: -16px !important;
        bottom: -16px !important;
    }
}

.apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.apple-btn:active {
    transform: scale(0.97);
}

.apple-btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
}

.apple-btn-secondary:hover {
    background: #e5e5ea;
    color: #000000;
}

.apple-btn-primary {
    background: var(--primary-color, #00a854);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 168, 84, 0.25);
}

.apple-btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 20px rgba(0, 168, 84, 0.35);
    transform: translateY(-1px);
}

/* Tablet Landscape Responsiveness (Slim sidebar on landscape tablet screens) */
@media (min-width: 992px) and (max-width: 1200px) and (orientation: landscape) {
    .sidebar {
        width: 85px;
        padding: 24px 12px;
    }
    .nav-item span, .logo-section h2, .user-profiles p, .user-profiles span, .user-info-text {
        display: none !important;
    }
    .close-sidebar-mobile {
        display: none;
    }

    .hamburger-btn {
        display: flex !important;
        background: white;
        border: 1px solid #eee;
        padding: 10px;
        border-radius: 12px;
        margin-right: 15px;
    }

    .sidebar .nav-item {
        width: 50px;
        height: 50px;
        padding: 0 !important;
        margin: 0 auto 8px !important;
        justify-content: center;
    }
    
    .sidebar-user-footer {
        padding: 12px 0 0 0;
        display: flex;
        justify-content: center;
    }
    
    .sidebar-user-footer .user-info-wrapper {
        justify-content: center;
        gap: 0;
    }
}

/* Checkout Confirmation Modal (GoFood Style) */
.checkout-confirm-modal {
    width: 450px;
    max-width: 95%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.payment-summary-box {
    background: #f8faf9;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.payment-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.checkout-items-list {
    margin-bottom: 24px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
}

.checkout-item-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.qty-control-small {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 0 15px;
}

.qty-btn-s {
    border: none;
    background: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.billing-details {
    background: #fff;
}

/* Order Header & Customer Components */
.item-count-badge {
    background: #ff7043;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.header-actions {
    position: relative;
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
}

.action-btn:hover {
    background: #f0f0f0;
}

.customer-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    width: 180px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 1000;
    border: 1px solid #eee;
    overflow: hidden;
    animation: fadeInDown 0.2s ease-out;
}

.customer-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 14px;
}

/* Bottom Sheet */
.bottom-sheet {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: flex-end;
}

.bottom-sheet-content {
    background: white;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.close-sheet {
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
}

.customer-table th {
    text-align: left;
    padding: 12px;
    background: #f8faf9;
    font-size: 13px;
    color: #888;
}

.customer-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 13px;
}

.select-cust-btn {
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}
    padding: 16px 0;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.bill-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    font-weight: 800;
    font-size: 18px;
    color: #333;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #eee;
}

.confirm-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 168, 84, 0.2);
    transition: 0.2s;
}

.confirm-order-btn:hover {
    background: #008f47;
    transform: translateY(-2px);
}

.confirm-order-btn:disabled {
    background: #ccc !important;
    color: #888 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

@media (max-width: 768px) {
    .checkout-confirm-modal {
        position: fixed;
        bottom: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        animation: slideUp 0.3s ease-out;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Submenu Styling (Expanded Sidebar) */
.sidebar:not(.collapsed) .nav-item.has-submenu { flex-direction: column; align-items: flex-start; height: auto; transition: background 0.3s; }
.sidebar:not(.collapsed) .nav-item.has-submenu:hover { background: var(--primary-color) !important; color: white !important; }
.sidebar:not(.collapsed) .nav-item.has-submenu.open { background: var(--primary-color) !important; color: white !important; box-shadow: 0 8px 25px rgba(0, 168, 84, 0.4); }
.sidebar:not(.collapsed) .submenu { width: 100%; display: none; padding-left: 0px; margin-top: 10px; padding-bottom: 5px; }
.sidebar:not(.collapsed) .nav-item.has-submenu.open .submenu,
.sidebar:not(.collapsed) .nav-item.has-submenu:hover .submenu { display: block; }
.sidebar:not(.collapsed) .nav-item.has-submenu.open .fa-chevron-down,
.sidebar:not(.collapsed) .nav-item.has-submenu:hover .fa-chevron-down { transform: rotate(180deg); transition: 0.3s; }
.sidebar:not(.collapsed) .submenu-item { padding: 8px 0; color: rgba(255,255,255,0.7); font-size: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.3s; text-decoration: none; }
.sidebar:not(.collapsed) .submenu-item:hover { color: white; transform: translateX(5px); }
.sidebar:not(.collapsed) .submenu-item i { font-size: 12px; }
/* Virtual Keypad Styling */
.keypad-btn {
    height: 55px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keypad-btn:hover {
    background: #f8f8f8;
    border-color: #ddd;
}

.keypad-btn:active {
    background: #eee;
    transform: scale(0.95);
}

.payment-input-field:focus {
    border-color: var(--primary-color) !important;
    background: #f0f7f4 !important;
    box-shadow: 0 0 0 3px rgba(0, 168, 84, 0.1);
}

#split-payment-toggle:checked + span {
    color: #0f5132;
}
