/* ============================================================================
   APPCAFE POS - CENTRALIZED STYLE & UI TWEAKS (DIURUTKAN & DIKELOMPOKKAN)
   ============================================================================ */

/* ============================================================================
   1. GLOBAL & ELEMEN UTAMA (Gaya Bawaan, Sistem Branding & Animasi Umum)
   ============================================================================ */

/* Menonaktifkan seleksi teks di seluruh aplikasi untuk keamanan */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mengizinkan seleksi teks pada input, textarea, dan elemen edit */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

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

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* --- Variabel Warna Dinamis (AdminLTE & Custom) --- */
.bg-dynamic {
    background-color: var(--dynamic-brand) !important;
    color: var(--dynamic-text) !important;
}

.btn-dynamic {
    background-color: var(--dynamic-brand) !important;
    border-color: var(--dynamic-brand) !important;
    color: var(--dynamic-text) !important;
}

.btn-dynamic:hover {
    background-color: var(--dynamic-brand) !important;
    border-color: var(--dynamic-brand) !important;
    filter: brightness(0.9);
    color: var(--dynamic-text) !important;
}

.card-dynamic.card-outline {
    border-top: 3px solid var(--dynamic-brand);
}

.card-stretch {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Table Wrapper & Kustomisasi Scrollbar */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--dynamic-brand);
}

/* Badge Pesanan Baru di Navbar (Animasi Pulse) */
@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.4);
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

#orderCountBadge.badge-pulse {
    animation: badgePulse 1.1s ease-in-out infinite;
}

/* Icon Chevron Khusus untuk Toggler Sidebar Collapse */
.toggle-icon::before {
    content: "\f053" !important; /* fa-chevron-left */
}

body.sidebar-collapse .toggle-icon::before {
    content: "\f054" !important; /* fa-chevron-right */
}

@media (max-width: 767.98px) {
    .toggle-icon::before {
        content: "\f054" !important;
    }
    body.sidebar-open .toggle-icon::before {
        content: "\f053" !important;
    }
}

/* --- Navigasi Sidebar Premium --- */
.main-sidebar {
    background: #fdfdfd !important; /* Putih Premium */
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.04) !important;
    font-family: 'Outfit', sans-serif !important;
}

.sidebar-brand-dynamic {
    background: rgba(0, 0, 0, 0.01) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    min-height: 57px !important;
    height: auto !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease;
}

.sidebar-brand-dynamic:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

.sidebar-brand-dynamic .brand-image {
    float: none !important;
    margin: 0 !important;
    max-height: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.sidebar-brand-dynamic .brand-text {
    font-size: 15px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px;
    font-weight: 800 !important;
    color: #0f172a !important; /* Warna Gelap Premium */
    white-space: normal !important;
    word-break: break-word !important;
    display: inline-block !important;
    flex-grow: 1 !important;
}

.sidebar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.nav-sidebar .nav-item {
    margin: 1.5px 10px !important;
}

.nav-sidebar .nav-link {
    border-radius: 8px !important;
    padding: 7px 12px !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid transparent !important;
}

.nav-sidebar .nav-link p {
    margin: 0 !important;
    line-height: 1.3 !important;
}

.nav-sidebar .nav-link i.nav-icon {
    margin-right: 10px !important;
    font-size: 15px !important;
    color: #64748b !important;
    transition: all 0.25s ease !important;
}

.nav-sidebar .nav-link:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
    transform: translateX(4px);
}

.nav-sidebar .nav-link:hover i.nav-icon {
    color: var(--dynamic-brand) !important;
    transform: scale(1.1);
}

.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active,
.nav-sidebar .nav-link.active {
    background: linear-gradient(90deg, color-mix(in srgb, var(--dynamic-brand) 12%, transparent) 0%, color-mix(in srgb, var(--dynamic-brand) 1%, transparent) 100%) !important;
    color: var(--dynamic-brand) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    border-left: 4px solid var(--dynamic-brand) !important;
    border-radius: 8px !important;
    transform: translateX(4px);
}

.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active i.nav-icon,
.nav-sidebar .nav-link.active i.nav-icon {
    color: var(--dynamic-brand) !important;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* --- Penyesuaian Desain SweetAlert2 --- */
.swal2-popup {
    background: #ffffff !important;
    color: #1e293b !important;
}

.swal2-title {
    color: #1e293b !important;
}

.swal2-html-container {
    color: #475569 !important;
}

@media (prefers-color-scheme: dark) {
    .swal2-popup {
        background: #1a1a22 !important;
        color: #f1f5f9 !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
    }
    .swal2-title {
        color: #f1f5f9 !important;
    }
    .swal2-html-container {
        color: #94a3b8 !important;
    }
    .swal2-cancel {
        background-color: rgba(255, 255, 255, 0.06) !important;
        color: #f1f5f9 !important;
    }
}

/* --- Animasi Global --- */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.anim-slide-up {
    animation: slideUp 0.3s ease forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}


/* ============================================================================
   2. HALAMAN INDEX / LOGIN (Gaya Bubble & Glassmorphism Halaman Depan)
   ============================================================================ */

body.login-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #1a1a2e; /* Fallback */
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.login-page input,
body.login-page button,
body.login-page select,
body.login-page textarea,
body.login-page label {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.login-page .bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--dynamic-brand-rgba), 0.3) 0%, rgba(var(--dynamic-brand-rgba), 0) 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

body.login-page .bubble-1 {
    width: 350px;
    height: 350px;
    top: -10%;
    left: -5%;
    animation: floatBubble 12s infinite alternate ease-in-out;
}

body.login-page .bubble-2 {
    width: 400px;
    height: 400px;
    bottom: -15%;
    right: -5%;
    animation: floatBubble 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatBubble {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

body.login-page .login-container {
    width: 100%;
    max-width: 420px;
    padding: 15px;
    z-index: 10;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.login-page .login-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

body.login-page .login-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(var(--dynamic-brand-rgba), 0.3);
}

body.login-page .login-brand {
    text-align: center;
    padding: 35px 30px 15px 30px;
}

body.login-page .login-brand img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(var(--dynamic-brand-rgba), 0.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.login-page .login-brand img:hover {
    transform: scale(1.08) rotate(3deg);
    border-color: var(--dynamic-brand);
}

body.login-page .login-title {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

body.login-page .login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
}

body.login-page .login-form-body {
    padding: 10px 30px 35px 30px;
}

body.login-page .custom-input-group {
    position: relative;
    margin-bottom: 20px;
}

body.login-page .custom-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

body.login-page .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

body.login-page .input-wrapper i.prefix-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.3s ease;
}

body.login-page .input-wrapper .form-control {
    width: 100%;
    height: 50px;
    padding: 10px 16px 10px 48px;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

body.login-page .input-wrapper .form-control:focus {
    background: #ffffff;
    border-color: var(--dynamic-brand);
    box-shadow: 0 0 0 4px rgba(var(--dynamic-brand-rgba), 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.01);
    outline: none;
}

body.login-page .input-wrapper .form-control:focus+i.prefix-icon {
    color: var(--dynamic-brand);
}

body.login-page .btn-password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 10;
}

body.login-page .btn-password-toggle:hover {
    color: var(--dynamic-brand);
}

body.login-page .input-wrapper-pass .form-control {
    padding-right: 48px;
}

body.login-page .btn-login {
    width: 100%;
    height: 50px;
    background: var(--dynamic-brand);
    color: var(--dynamic-text);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(var(--dynamic-brand-rgba), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.login-page .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(var(--dynamic-brand-rgba), 0.45);
    filter: brightness(1.1);
    color: var(--dynamic-text);
}

body.login-page .btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(var(--dynamic-brand-rgba), 0.2);
    filter: brightness(0.95);
}

body.login-page .alert-custom {
    background: rgba(254, 226, 226, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: shakeAlert 0.4s ease;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}


/* ============================================================================
   3. HALAMAN KASIR - POS (Gaya Drag & Drop, Layout Full-Height POS, & Varian)
   ============================================================================ */

/* Item saat di-drag dalam penyusunan menu */
.product-item.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    border: 2px dashed var(--dynamic-brand, #ea580c) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
    z-index: 100;
}

.product-item.drag-over {
    border: 2px solid var(--dynamic-brand, #ea580c) !important;
    background-color: rgba(234, 88, 12, 0.05);
    transform: scale(1.02);
}

.sort-mode-active .product-item {
    cursor: move !important;
}

.sort-mode-active .product-item .item-card {
    pointer-events: none;
    cursor: move !important;
}

/* Layout Kasir POS Full Height */
.pos-layout-card {
    height: calc(100vh - 130px) !important;
    display: flex;
    flex-direction: column;
}

.pos-layout-card .card-footer {
    overflow-y: auto;
    max-height: 85%;
}

@media (max-width: 767.98px) {
    .pos-layout-card {
        height: auto !important;
        min-height: 480px;
    }
}

/* Card Varian POS */
.variant-select-card {
    border-radius: 16px !important;
    border: 1.5px solid #f1f5f9 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.variant-select-card:hover {
    border-color: var(--dynamic-brand) !important;
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05) !important;
}

.variant-select-card:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Mikro-animasi POS */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bouncePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.animate-bounce {
    animation: bouncePulse 1.2s infinite ease-in-out;
}


/* ============================================================================
   4. HALAMAN ORDER PELANGGAN (Desain Khusus Mobile Frame & Self-Service)
   ============================================================================ */

body.order-page {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

html.order-page-html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* App Shell untuk membungkus antarmuka mobile */
#app-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: var(--bg-body);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

@media (min-width: 768px) {
    #app-shell { max-width: 90%; }
}
@media (min-width: 1200px) {
    #app-shell { max-width: 1200px; }
}

.order-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    z-index: 10;
}

.order-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.badge-meja {
    background: var(--brand-light);
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.pages-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.page {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.page.active {
    opacity: 1;
    pointer-events: all;
}

/* Navigasi Tab Bar Pelanggan (Bawah) */
.bottom-tab-bar {
    flex-shrink: 0;
    display: flex;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
    height: var(--tab-height);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.footer-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 4px;
    transition: color 0.2s ease;
    position: relative;
    outline: none;
}

.tab-btn i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.tab-btn.active {
    color: var(--brand-color);
}

.tab-btn.active i {
    transform: scale(1.1);
}

.tab-indicator {
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2.5px;
    background: var(--brand-color);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tab-btn.active .tab-indicator {
    opacity: 1;
}

.tab-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    background: var(--brand-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px var(--brand-glow);
    animation: tabBadgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabBadgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Page 1: Menu Grid */
.filter-scroller {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-scroller::-webkit-scrollbar {
    display: none;
}

.btn-filter {
    display: inline-block;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 7px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
}

.btn-filter.active {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
    box-shadow: 0 4px 10px var(--brand-glow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 10px 0;
}

@media (min-width: 540px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 12px 12px 0;
    }
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(8, 1fr); } }

.product-item {
    display: none;
}

.product-item.visible {
    display: block;
}

.menu-card {
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-card:active {
    transform: scale(0.97);
}

.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 85%;
    background: var(--bg-body);
    overflow: hidden;
}

.menu-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-body-menu {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-category-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.menu-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: normal;
    word-break: break-word;
}

.menu-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
}

.menu-price {
    font-size: 11px;
    font-weight: 800;
    color: var(--price-color);
}

.btn-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--brand-glow);
}

.btn-add-card:active {
    transform: scale(0.9);
    opacity: 0.85;
}

@media (min-width: 480px) {
    .card-body-menu { padding: 10px; }
    .menu-category-label { font-size: 10px; }
    .menu-name { font-size: 13px; margin-bottom: 6px; }
    .menu-price { font-size: 13px; }
    .btn-add-card { padding: 5px 12px; font-size: 12px; border-radius: 10px; }
}

/* Page 2: Rincian Keranjang & Order */
.order-list-page {
    padding: 14px 14px 20px;
}

.meja-header-card {
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-70));
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 20px var(--brand-glow);
}

.meja-header-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.meja-header-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.meja-header-icon {
    font-size: 36px;
    opacity: 0.3;
}

.order-batch {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
}

.batch-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.batch-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #b45309;
}

.status-qrispaid {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.order-batch-items {
    padding: 10px 16px;
}

.batch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.batch-item-name {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    flex: 1;
}

.batch-item-qty {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 8px;
}

.batch-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--price-color);
    white-space: nowrap;
}

.new-order-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
}

.new-order-divider::before,
.new-order-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.new-order-divider span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.draft-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 2px dashed var(--border-color);
    margin-bottom: 12px;
    overflow: hidden;
}

.draft-card.has-items {
    border-style: solid;
    border-color: var(--brand-color);
    border-width: 1.5px;
}

.draft-header {
    padding: 10px 16px;
    background: var(--brand-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.draft-header i {
    color: var(--brand-color);
}

.draft-header span {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-color);
}

.draft-items {
    padding: 4px 16px 8px;
}

.draft-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.draft-item-name {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    flex: 1;
}

.draft-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 6px;
}

.qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s;
}

.qty-btn.minus {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.qty-btn.plus {
    background: var(--brand-color);
    color: #fff;
}

.qty-btn:active {
    transform: scale(0.88);
}

.qty-val {
    font-size: 13px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    color: var(--text-main);
}

.draft-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--price-color);
    white-space: nowrap;
    margin-left: 8px;
}

.empty-draft {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.empty-draft i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.4;
}

.btn-add-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1.5px dashed var(--brand-color);
    background: var(--brand-light);
    color: var(--brand-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin: 8px 0 10px;
}

.btn-add-menu:active {
    opacity: 0.75;
}

.btn-add-menu i {
    font-size: 14px;
}

.btn-confirm-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--brand-glow);
    transition: all 0.2s;
    margin-top: 4px;
}

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

.btn-confirm-order:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.total-summary-bar {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.total-row:last-child {
    margin-bottom: 0;
}

.total-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.total-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.grand-total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.grand-total-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-color);
}

.btn-bayar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-80));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--brand-glow);
    transition: all 0.2s;
    margin-top: 14px;
    letter-spacing: 0.5px;
}

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

.btn-bayar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.empty-orders {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-orders i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.25;
}

.empty-orders p {
    font-size: 14px;
    margin: 0;
}

.empty-orders small {
    font-size: 12px;
    opacity: 0.7;
}

/* Bottom Sheet Pembayaran Pelanggan */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.payment-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 768px;
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    z-index: 201;
    padding: 0 0 env(safe-area-inset-bottom);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 90dvh;
    overflow-y: auto;
}

.payment-sheet.open {
    transform: translateX(-50%) translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 12px auto 0;
}

.sheet-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    padding: 16px 20px 8px;
}

.sheet-order-summary {
    padding: 0 20px 12px;
}

.sheet-order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border-color);
}

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

.sheet-order-name {
    flex: 1;
}

.sheet-order-subtotal {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    margin-left: 10px;
}

.sheet-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 20px;
}

.sheet-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.sheet-total-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.sheet-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-color);
}

.payment-methods {
    display: flex;
    gap: 10px;
    padding: 4px 20px 16px;
}

.pay-pill {
    flex: 1;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-body);
    color: var(--text-muted);
}

.pay-pill.active {
    border-color: var(--brand-color);
    background: var(--brand-light);
    color: var(--brand-color);
    box-shadow: 0 4px 12px var(--brand-glow);
}

.pay-pill i {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.pay-pill span {
    font-size: 12px;
    font-weight: 700;
}

.pay-pill input[type="radio"] {
    display: none;
}

.sheet-input-section {
    padding: 0 20px 14px;
}

.sheet-input-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sheet-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.sheet-input:focus {
    border-color: var(--brand-color);
}

.btn-sheet-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 40px);
    margin: 4px 20px 20px;
    padding: 15px;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px var(--brand-glow);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

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

.qris-section {
    padding: 0 20px 4px;
    display: none;
}

.qris-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.qris-box img {
    max-height: 180px;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.qris-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.qris-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-color);
    margin-top: 10px;
}

.qris-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Modals / Overlays Sukses & Tunggu QRIS */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.popup-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px 24px 28px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.open .popup-card {
    transform: scale(1);
}

.popup-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.popup-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.popup-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-popup-close {
    width: 100%;
    padding: 14px;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--brand-glow);
    transition: all 0.2s;
}

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

.popup-kasir-detail {
    background: var(--bg-body);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: left;
}

.kasir-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.kasir-item-name {
    color: var(--text-muted);
}

.kasir-item-qty {
    font-weight: 700;
    color: var(--text-main);
}

.kasir-total-row {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
}

.kasir-total-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
}

.kasir-total-amount {
    font-weight: 800;
    color: var(--brand-color);
    font-size: 14px;
}

#page-menu {
    padding-bottom: 90px;
}

.floating-cart-bar {
    position: absolute;
    bottom: calc(var(--tab-height) + 12px);
    left: 16px;
    right: 16px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand-color), #f97316);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #fff;
    box-shadow: 0 8px 24px var(--brand-glow), 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 150;
    cursor: pointer;
    animation: slideUpFloat 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease, opacity 0.2s ease;
}

.floating-cart-bar.cart-bar-low {
    bottom: 16px;
}

.floating-cart-bar:active {
    transform: scale(0.97);
}

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

.floating-cart-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-cart-icon {
    position: relative;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.floating-cart-info {
    display: flex;
    flex-direction: column;
}

.floating-cart-title {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-cart-price {
    font-size: 14px;
    font-weight: 800;
}

.btn-float-view {
    background: #fff;
    color: var(--brand-color);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
}


/* ============================================================================
   5. HALAMAN INVENTARIS (Standard Bootstrap Modals, tidak memerlukan CSS khusus)
   ============================================================================ */


/* ============================================================================
   6. HALAMAN PESANAN MEJA (Antrian / Status Glowing)
   ============================================================================ */

@keyframes lunasGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
}


/* ============================================================================
   7. HALAMAN PRINTER SETTING (Pilihan Kertas & Koneksi Jaringan)
   ============================================================================ */

.printer-icon-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #f1f3f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.option-card {
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--dynamic-brand) !important;
    background-color: rgba(0, 0, 0, 0.02);
}

.option-card input:checked+.option-icon {
    transform: scale(1.1);
}

.option-card.active {
    border-color: var(--dynamic-brand) !important;
    background-color: rgba(var(--dynamic-brand-rgb), 0.08) !important;
    box-shadow: 0 0 0 2px var(--dynamic-brand);
}

.shadow-inner {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.cursor-pointer {
    cursor: pointer;
}


/* ============================================================================
   8. HALAMAN OUTLET SETTING (Preview Logo & Kustomisasi Branding)
   ============================================================================ */

.logo-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--dynamic-brand);
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-preview:hover {
    transform: scale(1.05);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

#logo_upload {
    display: none;
}


/* ============================================================================
   9. HALAMAN STOCK OPNAME (Media Cetak Laporan Opname & Gaya Tabel)
   ============================================================================ */

@media print {
    /* Menyembunyikan elemen non-cetak saat printer pratinjau aktif */
    .main-header,
    .main-sidebar,
    .main-footer,
    .print-hide,
    .btn,
    .card-tools,
    form {
        display: none !important;
    }

    .content-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
        background-color: #fff !important;
        border: none !important;
    }

    #print-area {
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
    }

    .print-hide {
        display: none !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .card-header {
        border-bottom: 2px solid #000 !important;
        padding-bottom: 10px !important;
    }

    th, td {
        border: 1px solid #000 !important;
        padding: 8px !important;
    }

    h2, h4 {
        margin: 0;
        padding: 0;
    }

    .input-opname {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
}

.input-opname {
    width: 100%;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 2px;
}

.selisih-text {
    font-weight: bold;
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}


/* ============================================================================
   10. HALAMAN DASHBOARD (Card Penjualan Ringkasan & Nominal Glowing)
   ============================================================================ */

.dashboard-box {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #fff !important;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.dashboard-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.dashboard-box .inner h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff !important;
}

.dashboard-box .inner p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    color: #fff !important;
}

.dashboard-box .icon i {
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.dashboard-box:hover .icon i {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.25);
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.04);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.pulse-nominal {
    display: inline-block;
    animation: pulseGlow 1.8s ease-in-out infinite;
    transform-origin: center left;
}

/* Category Filter Dropdown */
.filter-container {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-icon-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--brand-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.custom-category-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 9px 36px 9px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.custom-category-select:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.select-icon-suffix {
    position: absolute;
    right: 14px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recommendation Section Styles */
.recommendation-section {
    padding: 14px 16px 10px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.recommendation-header {
    margin-bottom: 12px;
}
.recommendation-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.recommendation-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}
.recommendation-scroller::-webkit-scrollbar {
    display: none;
}
.recommendation-card {
    flex: 0 0 145px;
    background: var(--bg-body);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}
.recommendation-card:active {
    transform: scale(0.97);
}
.rec-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%;
    overflow: hidden;
}
.rec-menu-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rec-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--brand-color);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
}
.rec-card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rec-menu-category {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.rec-menu-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: auto;
}
.rec-menu-price {
    font-size: 11px;
    font-weight: 800;
    color: var(--price-color);
}
.btn-rec-add {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px var(--brand-glow);
}
.btn-rec-add:active {
    transform: scale(0.9);
    opacity: 0.85;
}

/* Drag and Drop Sorting Styles */
.sort-mode-active .product-item,
.sort-mode-active .category-item {
    cursor: grab !important;
    user-select: none !important;
}
.category-item.dragging,
.product-item.dragging {
    opacity: 0.5;
    border: 2px dashed #007bff !important;
}
.category-item.drag-over,
.product-item.drag-over {
    border: 2px solid #28a745 !important;
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

/* ============================================================================
   POS KASIR — GRID PRODUK ADAPTIF (Sidebar Buka / Tutup)
   AdminLTE otomatis menambahkan class `sidebar-collapse` ke <body>
   saat sidebar ditutup. Rules di bawah memanfaatkan hal tersebut
   untuk menampilkan lebih banyak kolom produk saat ada ruang ekstra.
   ============================================================================ */

/* Transisi halus saat kolom berubah (buka/tutup sidebar) */
#productGrid > .product-item {
    transition: flex 0.3s ease, max-width 0.3s ease;
}

/* --- Sidebar TUTUP: tambah 1 kolom dari kondisi normal --- */

/* ≥992px (lg): 5 kolom (default 4) */
@media (min-width: 992px) {
    body.sidebar-collapse #productGrid > .product-item {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ≥1200px (xl): 6 kolom */
@media (min-width: 1200px) {
    body.sidebar-collapse #productGrid > .product-item {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
}

/* ≥1400px (xxl): 7 kolom */
@media (min-width: 1400px) {
    body.sidebar-collapse #productGrid > .product-item {
        flex: 0 0 14.2857%;
        max-width: 14.2857%;
    }
}

/* ≥1600px (layar lebar): 8 kolom */
@media (min-width: 1600px) {
    body.sidebar-collapse #productGrid > .product-item {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}