/* ==========================================================================
   DESIGN SYSTEM — RASA NUSANTARA CATERING
   Fluid Desktop SaaS + Native Mobile App Responsive Experience (GoBiz / GoFood Style)
   Font Utama : Plus Jakarta Sans
   Font Aksen : Playfair Display
   ========================================================================== */

:root {
    --bs-font-sans-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: #334155;
    --bs-body-bg: #F8FAFC;

    --catering-primary: #F97316;
    --catering-primary-hover: #EA580C;
    --catering-primary-active: #C2410C;
    --catering-primary-soft: #FFF7ED;
    --catering-secondary: #FED7AA;
    --catering-cream: #FFFBF5;
    --catering-dark: #1E293B;
    --catering-heading: #0F172A;
    --catering-body-text: #475569;
    --catering-muted: #64748B;
    --catering-success: #10B981;
    --catering-warning: #F59E0B;
    --catering-danger: #EF4444;
    --catering-info: #0EA5E9;
    --catering-bg: #F9FAFB;
    --catering-card: #FFFFFF;
    --catering-border: #EEF2F6;

    --sidebar-width: 268px;
    --sidebar-collapsed-width: 84px;
    --topbar-height: 74px;
    --mobile-nav-height: 70px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 9999px;
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 18px 35px -6px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(249, 115, 22, 0.07);
    --shadow-orange: 0 10px 24px -4px rgba(249, 115, 22, 0.35);
}

/* --------------------------------------------------------------------------
   1. Tipografi Halus & Native Touch Feel
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 15px;
    line-height: 1.65;
    color: var(--catering-body-text);
    background-color: var(--catering-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--catering-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.font-serif-accent {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

small, .small {
    font-size: 13px !important;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

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

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

/* Utilitas Horizontal Swipe App Tanpa Scrollbar */
.app-scroll-x {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.6rem;
}

.app-scroll-x::-webkit-scrollbar {
    display: none;
}

.app-scroll-x > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

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

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

/* Pastikan seluruh Bootstrap Modal selalu berada di atas backdrop */
.modal-backdrop {
    z-index: 1050 !important;
}

.modal {
    z-index: 1060 !important;
}

/* --------------------------------------------------------------------------
   2. Tombol Modern dengan Efek Tekan Tactile Mobile
   -------------------------------------------------------------------------- */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.005em;
    padding: 0.62rem 1.25rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-width: 1.5px;
    user-select: none;
}

.btn:active {
    transform: scale(0.96) !important;
}

.btn-pill {
    border-radius: var(--radius-pill) !important;
}

.btn-touch {
    min-height: 46px;
}

.btn-primary {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 45%, #EA580C 100%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 6px 16px -3px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 60%, #C2410C 100%);
    border-color: transparent;
    color: #FFFFFF;
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-orange);
}

.btn-primary:disabled {
    background: #EA580C !important;
    border-color: transparent !important;
}

.btn-soft-primary {
    background-color: #FFF7ED;
    color: #EA580C;
    border: 1.5px solid #FFEDD5;
}

.btn-soft-primary:hover {
    background-color: #FFEDD5;
    border-color: #FED7AA;
    color: #C2410C;
}

.btn-outline-primary {
    color: #EA580C;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #FDBA74;
}

.btn-outline-primary:hover {
    background-color: #FFF7ED;
    border-color: #F97316;
    color: #C2410C;
}

.btn-white-glass {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid #E2E8F0;
    color: var(--catering-heading);
    box-shadow: var(--shadow-xs);
}

.btn-white-glass:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: var(--catering-primary-hover);
    box-shadow: var(--shadow-soft);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   3. Form Input Halus
   -------------------------------------------------------------------------- */
.form-label {
    font-weight: 600;
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 0.45rem;
}

.form-control,
.form-select {
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: 13px;
    border: 1.5px solid #E2E8F0;
    padding: 0.72rem 1rem;
    font-size: 15px;
    color: var(--catering-heading);
    background-color: #F8FAFC;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: #94A3B8;
}

.form-control:hover,
.form-select:hover {
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--catering-primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    outline: none;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-icon-wrap .form-control {
    padding-left: 2.8rem;
}

.input-icon-wrap:focus-within .input-icon-left {
    color: var(--catering-primary);
}

.input-icon-wrap .btn-toggle-pass {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94A3B8;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.input-icon-wrap .form-control.has-toggle {
    padding-right: 3rem;
}

/* Hilangkan warna biru pucat bawaan Chrome Autofill agar tetap menyatu dengan tema hangat */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--catering-heading) !important;
    -webkit-box-shadow: 0 0 0px 1000px #FFFFFF inset !important;
    border-color: #FED7AA !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Tombol Submit Utama Form (Rounded 14px + Inner Highlight Modern, Tidak Lonjong Kaku) */
.btn-submit-modern {
    border-radius: 14px !important;
    padding: 0.78rem 1.4rem;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #FB923C 0%, #F97316 45%, #EA580C 100%);
    border: 1px solid #EA580C;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 20px -4px rgba(249, 115, 22, 0.42);
    color: #FFFFFF;
}

.btn-submit-modern:hover,
.btn-submit-modern:focus {
    background: linear-gradient(180deg, #F97316 0%, #EA580C 60%, #C2410C 100%);
    color: #FFFFFF;
    transform: translateY(-1.5px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 24px -4px rgba(234, 88, 12, 0.5);
}

.form-check-input:checked {
    background-color: var(--catering-primary);
    border-color: var(--catering-primary);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--catering-danger);
    background-color: #FEF2F2;
    background-image: none;
}

.invalid-feedback {
    font-size: 13px;
    font-weight: 500;
    color: var(--catering-danger);
    margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   4. Card Modern & Badge Status
   -------------------------------------------------------------------------- */
.card-modern {
    background: var(--catering-card);
    border: 1px solid var(--catering-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

@media (hover: hover) {
    .card-hover:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
        border-color: #FED7AA;
    }
}

.stat-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.icon-soft-primary   { background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%); color: #EA580C; }
.icon-soft-success   { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); color: #059669; }
.icon-soft-warning   { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); color: #D97706; }
.icon-soft-info      { background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%); color: #0284C7; }
.icon-soft-danger    { background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%); color: #DC2626; }

.badge-status {
    font-size: 13px;
    font-weight: 600;
    padding: 0.42em 0.85em;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-soft-warning   { background-color: #FEF3C7; color: #B45309; }
.badge-soft-info      { background-color: #E0F2FE; color: #0369A1; }
.badge-soft-primary   { background-color: #FFEDD5; color: #C2410C; }
.badge-soft-secondary { background-color: #F1F5F9; color: #475569; }
.badge-soft-success   { background-color: #D1FAE5; color: #047857; }
.badge-soft-danger    { background-color: #FEE2E2; color: #B91C1C; }

/* --------------------------------------------------------------------------
   5. NATIVE MOBILE APP BOTTOM NAVIGATION DOCK & BOTTOM SHEET (SHARED)
   -------------------------------------------------------------------------- */
.mobile-bottom-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
    padding: 0.35rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    display: none;
}

.mobile-dock-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    max-width: 520px;
    margin: 0 auto;
}

.mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
    padding: 0.3rem 0.15rem;
    border-radius: 12px;
    position: relative;
    transition: color 0.2s ease, transform 0.15s ease;
    background: transparent;
    border: none;
    width: 100%;
}

.mobile-dock-item:active {
    transform: scale(0.9);
}

.mobile-dock-item i {
    font-size: 1.28rem;
    line-height: 1.15;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.mobile-dock-item span {
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.mobile-dock-item.active {
    color: var(--catering-primary);
}

.mobile-dock-item.active i {
    transform: translateY(-1px);
}

/* Tombol Tengah Melayang (Center FAB Action pada Bottom Dock) */
.mobile-dock-fab-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #334155;
    position: relative;
    margin-top: -22px;
}

.mobile-dock-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FB923C 0%, #F97316 50%, #EA580C 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 10px 22px -4px rgba(249, 115, 22, 0.5);
    border: 4px solid #FFFFFF;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-dock-fab-wrap:active .mobile-dock-fab {
    transform: scale(0.92);
}

.mobile-dock-fab-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--catering-heading);
    margin-top: 2px;
}

/* Native iOS / Android Bottom Sheet (Offcanvas Bottom) */
.offcanvas-bottom.app-bottom-sheet {
    height: auto;
    max-height: 84vh;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    border-top: none;
    box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.18);
}

.sheet-drag-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background-color: #CBD5E1;
    margin: 0.75rem auto 0.25rem;
}

.app-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 0.5rem;
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 18px;
    text-decoration: none;
    color: var(--catering-heading);
    font-weight: 600;
    font-size: 13px;
    gap: 0.45rem;
    transition: all 0.18s ease;
}

.app-menu-tile:active,
.app-menu-tile:hover {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: #EA580C;
    transform: scale(0.97);
}

.app-menu-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   6. Layout Admin Desktop + Mobile App Responsive (< 992px)
   -------------------------------------------------------------------------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background:
        radial-gradient(circle at 85% 0%, rgba(254, 215, 170, 0.25) 0%, transparent 36%),
        radial-gradient(circle at 15% 95%, rgba(249, 115, 22, 0.06) 0%, transparent 35%),
        #F5F7FA;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 4px 0 24px -12px rgba(15, 23, 42, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-x: hidden;
}

.sidebar-brand {
    height: var(--topbar-height);
    padding: 0 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #FB923C 0%, #F97316 50%, #EA580C 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 6px 14px -2px rgba(249, 115, 22, 0.35);
}

.sidebar-brand-text {
    min-width: 0;
    overflow: hidden;
}

.sidebar-brand-title {
    font-weight: 800;
    font-size: 14px;
    color: var(--catering-heading);
    letter-spacing: -0.02em;
    line-height: 1.22;
    display: block;
    white-space: normal;
}

.sidebar-brand-sub {
    font-size: 13px;
    color: var(--catering-muted);
    display: block;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.9rem;
}

.sidebar-section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #94A3B8;
    padding: 0.8rem 0.85rem 0.4rem;
    white-space: nowrap;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.68rem 0.9rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-height: 44px;
}

.sidebar-link i {
    font-size: 1.18rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: #64748B;
}

.sidebar-link:hover {
    background-color: #FFF7ED;
    color: #EA580C;
    transform: translateX(2px);
}

.sidebar-link:hover i {
    color: #F97316;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 50%, #EA580C 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px -4px rgba(249, 115, 22, 0.38);
}

.sidebar-link.active i {
    color: #FFFFFF;
}

.sidebar-pill-badge {
    background: #EF4444;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 0.1rem 0.52rem;
    border-radius: 999px;
    line-height: 1.35;
}

.sidebar-pill-soft {
    background: #FFEDD5;
    color: #C2410C;
}

.sidebar-link.active .sidebar-pill-badge {
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
}

.sidebar-logout-link {
    color: #DC2626 !important;
    background: #FEF2F2;
}

.sidebar-logout-link i {
    color: #DC2626 !important;
}

.sidebar-logout-link:hover {
    background: #FEE2E2 !important;
    color: #B91C1C !important;
}

.sidebar-footer {
    padding: 0.9rem;
    border-top: 1px solid #F1F5F9;
}

@media (min-width: 992px) {
    body.sidebar-collapsed .admin-sidebar {
        width: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .sidebar-brand-text,
    body.sidebar-collapsed .sidebar-link span,
    body.sidebar-collapsed .sidebar-section-label {
        opacity: 0;
        width: 0;
        overflow: hidden;
        display: none;
    }

    body.sidebar-collapsed .sidebar-brand,
    body.sidebar-collapsed .sidebar-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
        transform: none;
    }

    body.sidebar-collapsed .admin-main {
        margin-left: var(--sidebar-collapsed-width);
    }
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-topbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #EEF2F6;
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.admin-content {
    padding: 1.75rem;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    flex: 1;
}

.admin-welcome-banner {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 65%, #431407 100%);
    border-radius: 22px;
    padding: 1.75rem 2rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.22);
}

.admin-welcome-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.35) 0%, rgba(249, 115, 22, 0) 70%);
    pointer-events: none;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
    color: #C2410C;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Mode Aplikasi Mobile Admin (< 992px) */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

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

    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .admin-main {
        margin-left: 0 !important;
        padding-bottom: calc(var(--mobile-nav-height) + 22px + env(safe-area-inset-bottom, 0px));
    }

    .admin-topbar {
        height: 64px;
        padding: 0 1rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-welcome-banner {
        border-radius: 20px;
        padding: 1.25rem 1.35rem;
    }

    /* Bento Stat Card 2x2 Ringkas seperti GoBiz / Shopee Seller */
    .bento-stat-card {
        padding: 1rem !important;
        border-radius: 18px !important;
    }

    .bento-stat-card .stat-icon-box {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.15rem;
    }

    .bento-stat-card .h2,
    .bento-stat-card .h3 {
        font-size: 1.3rem !important;
    }

    .mobile-bottom-dock {
        display: block;
    }

    /* Toast pada mobile tampil di atas layaknya in-app banner notification */
    .toast-container-custom {
        top: 0.85rem !important;
        left: 0.85rem !important;
        right: 0.85rem !important;
    }

    .toast-modern {
        width: 100%;
        min-width: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   7. Tabel Modern & Mobile Card List
   -------------------------------------------------------------------------- */
.table-modern-wrap {
    max-height: 580px;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid #F1F5F9;
}

.table-modern {
    margin-bottom: 0;
    vertical-align: middle;
}

.table-modern thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #F8FAFC;
    color: #64748B;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #EEF2F6;
    padding: 0.9rem 1.1rem;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
}

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

@media (max-width: 767.98px) {
    .table-modern-wrap {
        border: none;
        overflow: visible;
        max-height: none;
    }

    .table-mobile-card thead {
        display: none;
    }

    .table-mobile-card tbody tr {
        display: block;
        background: #FFFFFF;
        border: 1px solid #EEF2F6;
        border-radius: 18px;
        margin-bottom: 0.85rem;
        padding: 0.75rem 1rem;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    }

    .table-mobile-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0;
        text-align: right;
    }

    .table-mobile-card tbody td:last-child {
        border-bottom: 0;
    }

    .table-mobile-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748B;
        text-align: left;
        font-size: 13px;
    }
}

.skeleton-box {
    display: inline-block;
    height: 16px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s infinite;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   8. Halaman Auth Immersive Split-Screen + Demo Role Quick-Login Cards
   -------------------------------------------------------------------------- */
.auth-split-screen {
    min-height: 100vh;
    background-color: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
}

.auth-visual-panel {
    flex: 0 0 48%;
    max-width: 48%;
    padding: 1.15rem;
    display: flex;
}

.auth-visual-inner {
    width: 100%;
    border-radius: 26px;
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    background:
        linear-gradient(165deg, rgba(15, 23, 42, 0.72) 0%, rgba(124, 45, 18, 0.84) 58%, rgba(15, 23, 42, 0.92) 100%),
        url('https://images.unsplash.com/photo-1555244162-803834f70033?auto=format&fit=crop&w=1200&q=85') center/cover no-repeat;
    box-shadow: 0 20px 45px -12px rgba(124, 45, 18, 0.28);
}

.auth-visual-inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.42) 0%, transparent 70%);
    pointer-events: none;
}

.auth-form-panel {
    flex: 0 0 52%;
    max-width: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 237, 213, 0.45) 0%, transparent 40%),
        #FFFFFF;
}

.auth-form-box {
    width: 100%;
    max-width: 440px;
}

.auth-glass-quote {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 1.35rem 1.45rem;
}

/* Kartu Auto-Klik Akun Demo (Hanya Tampil di Localhost) */
.local-demo-box {
    background: linear-gradient(180deg, #FFFBF7 0%, #FFF7ED 100%);
    border: 1.5px dashed #FDBA74;
    border-radius: 18px;
    padding: 0.95rem 1rem;
}

.demo-role-btn {
    width: 100%;
    text-align: left;
    background: #FFFFFF;
    border: 1.5px solid #FED7AA;
    border-radius: 14px;
    padding: 0.68rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.06);
}

.demo-role-btn:hover {
    border-color: #F97316;
    background: #FFFDF9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -6px rgba(249, 115, 22, 0.22);
}

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

.demo-role-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Fallback untuk halaman forgot/reset password centered */
.auth-page-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(254, 215, 170, 0.55) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(249, 115, 22, 0.14) 0%, transparent 45%),
        #FFFBF7;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 24px;
    box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.auth-mobile-hero {
    display: none;
}

@media (max-width: 991.98px) {
    .auth-visual-panel {
        display: none;
    }

    .auth-split-screen {
        display: block;
        background: #FFFFFF;
    }

    .auth-form-panel {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 1.75rem 1.35rem 2.5rem;
        border-radius: 28px 28px 0 0;
        margin-top: -26px;
        background: #FFFFFF;
        position: relative;
        z-index: 2;
        box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.08);
    }

    .auth-mobile-hero {
        display: block;
        background:
            linear-gradient(155deg, rgba(15, 23, 42, 0.78) 0%, rgba(194, 65, 12, 0.88) 100%),
            url('https://images.unsplash.com/photo-1555244162-803834f70033?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
        color: #FFFFFF;
        padding: 1.5rem 1.35rem 3.2rem;
    }

    .auth-page-bg {
        display: block;
        padding: 0;
        background: #FFFFFF;
    }

    .auth-page-bg > .container {
        max-width: 100%;
        padding: 0;
    }

    .auth-card {
        border: none;
        border-radius: 28px 28px 0 0;
        margin-top: -26px;
        box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.08);
        min-height: calc(100vh - 150px);
    }
}

.img-preview-thumb {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px dashed #FDBA74;
    background: #FFF7ED;
}

.toast-container-custom {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1090;
}

.toast-modern {
    border: none;
    border-radius: 14px;
    box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.16);
    min-width: 310px;
}

/* --------------------------------------------------------------------------
   9. PREMIUM BENTO DASHBOARD COMMAND CENTER & STAGGER ANIMATION
   -------------------------------------------------------------------------- */
.stagger-item {
    opacity: 0;
    animation: bentoSlideIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagger-1 { animation-delay: 0.02s; }
.stagger-2 { animation-delay: 0.08s; }
.stagger-3 { animation-delay: 0.14s; }
.stagger-4 { animation-delay: 0.20s; }

@keyframes bentoSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.dash-command-hero {
    background:
        radial-gradient(circle at 92% 12%, rgba(251, 146, 60, 0.38) 0%, transparent 42%),
        radial-gradient(circle at 18% 110%, rgba(234, 88, 12, 0.26) 0%, transparent 45%),
        linear-gradient(135deg, #0F172A 0%, #1E293B 58%, #2E170D 100%);
    border-radius: 24px;
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-hero-title {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.live-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28); }
    50%      { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.08); }
}

.btn-hero-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
}

.btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    transform: translateY(-1.5px);
}

.dash-quota-glass {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
}

.text-emerald-light {
    color: #6EE7B7;
}

.dash-quota-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.dash-quota-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FBBF24 0%, #F97316 55%, #EA580C 100%);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Featured Primary Stat Card */
.dash-stat-featured {
    background: linear-gradient(140deg, #FB923C 0%, #F97316 45%, #C2410C 100%);
    border-radius: 20px;
    padding: 1.45rem 1.5rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 32px -8px rgba(234, 88, 12, 0.38);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.dash-stat-featured::after {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

@media (hover: hover) {
    .dash-stat-featured:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 38px -8px rgba(234, 88, 12, 0.48);
    }
}

.dash-featured-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.dash-featured-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.dash-stat-card {
    border-radius: 20px;
    padding: 1.45rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

@media (hover: hover) {
    .dash-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
        border-color: #FED7AA;
    }
}

.fw-extrabold {
    font-weight: 800 !important;
    letter-spacing: -0.025em;
}

/* Chart Mode Switcher (Line / Bar) */
.chart-mode-switcher {
    background: #F1F5F9;
    padding: 0.22rem;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.15rem;
}

.chart-mode-btn {
    border: none;
    background: transparent;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.chart-mode-btn.active {
    background: #FFFFFF;
    color: var(--catering-primary-hover);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Radar Pengiriman Dapur Hari Ini */
.kitchen-radar-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.kitchen-radar-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.kitchen-radar-item:hover {
    background: #FFFBF7;
    border-color: #FDBA74;
    transform: translateX(3px);
}

.kitchen-time-pill {
    width: 58px;
    height: 54px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #FED7AA;
    color: #EA580C;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.08);
}

.kitchen-time-pill span {
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
}

/* Top Menu Terlaris Bergambar */
.top-menu-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem;
    border-radius: 16px;
    transition: background-color 0.2s ease;
}

.top-menu-row:hover {
    background-color: #FFFBF7;
}

.top-menu-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #F1F5F9;
}

.top-menu-rank {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #0F172A;
    color: #FBBF24;
    font-size: 13px;
    font-weight: 800;
    padding: 0.05rem 0.42rem;
    border-radius: 999px;
    border: 2px solid #FFFFFF;
}

.mini-progress-track {
    height: 6px;
    border-radius: 999px;
    background: #F1F5F9;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FB923C 0%, #EA580C 100%);
}

@media (max-width: 991.98px) {
    body.sidebar-collapsed .sidebar-pill-badge {
        display: none;
    }

    .dash-command-hero {
        padding: 1.35rem;
        border-radius: 20px;
    }
}

@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar-pill-badge {
        display: none;
    }
}

.form-select.rounded-pill {
    padding-right: 2.5rem !important;
}

/* --------------------------------------------------------------------------
   10. DIGITAL E-INVOICE POP-UP TICKET (SIAP RENDER PNG HD HTML2CANVAS)
   -------------------------------------------------------------------------- */
.einvoice-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
}

.einvoice-ticket {
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    color: #1E293B;
}

.einvoice-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 52%, #9A3412 100%);
    padding: 1.5rem 1.6rem 1.35rem;
    color: #FFFFFF;
}

.einvoice-logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.einvoice-stamp {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.85rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.stamp-paid {
    background: #10B981;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.38);
}

.stamp-unpaid {
    background: #F59E0B;
    color: #0F172A;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.einvoice-code-strip {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.einvoice-perforation {
    position: relative;
    height: 24px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
}

.perforation-line {
    width: 100%;
    border-top: 2px dashed #E2E8F0;
    margin: 0 18px;
}

.notch-left,
.notch-right {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1E293B;
    top: 1px;
}

.notch-left  { left: -11px; }
.notch-right { right: -11px; }

.einvoice-body {
    padding: 0.35rem 1.6rem 1.6rem;
}

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

.einvoice-meta-box {
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
}

.meta-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
}

.meta-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    margin-top: 2px;
}

.meta-sub {
    font-size: 12px;
    color: #64748B;
}

.einvoice-address-box {
    background: #FFFBF5;
    border: 1px solid #FED7AA;
    border-radius: 14px;
    padding: 0.75rem 0.95rem;
}

.einvoice-items-wrap {
    border: 1px solid #EEF2F6;
    border-radius: 14px;
    padding: 0.25rem 0.9rem;
    background: #FFFFFF;
}

.einvoice-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px dashed #F1F5F9;
}

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

.einvoice-total-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FDBA74;
    border-radius: 16px;
    padding: 0.95rem 1.1rem;
}

.einvoice-barcode {
    width: 190px;
    height: 30px;
    opacity: 0.72;
    background: repeating-linear-gradient(
        90deg,
        #0F172A 0px,
        #0F172A 2px,
        transparent 2px,
        transparent 5px,
        #0F172A 5px,
        #0F172A 6px,
        transparent 6px,
        transparent 9px,
        #0F172A 9px,
        #0F172A 13px,
        transparent 13px,
        transparent 16px
    );
}

/* Responsif Pop-Up E-Invoice di Layar HP (< 576px) */
@media (max-width: 575.98px) {
    .einvoice-action-bar {
        border-radius: 16px;
        padding: 0.5rem 0.65rem;
    }

    .einvoice-action-bar .btn-sm {
        padding: 0.4rem 0.68rem !important;
        font-size: 12.5px !important;
        min-height: 36px !important;
    }

    .einvoice-header {
        padding: 1.15rem 1.1rem 1rem;
    }

    .einvoice-code-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .einvoice-code-strip .text-end {
        text-align: left !important;
    }

    .einvoice-body {
        padding: 0.25rem 1.1rem 1.25rem;
    }

    .einvoice-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
