/* ============================================
   MANAJEMEN LAUNDRY PRO — style.css
   Semua CSS global dipindahkan dari index.html
   ============================================ */

/* ── VARIABLES ── */
:root {
    --primary: #d97706;
    --primary-teal: #d97706;
    --primary-teal-hover: #b45309;
    --primary-light: #fef3c7;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f59e0b;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --bg-body: #f4f7f6;
    --sidebar-bg: #c07a3c;
}

/* ── BASE ── */
body { font-family: 'Geist', sans-serif; background-color: var(--bg-body); }

/* ── LOADING OVERLAY ── */
#loadingOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#loadingOverlay .spinner-border { width: 3rem; height: 3rem; color: var(--primary-teal); }

/* ── LAYOUT ── */
.wrapper { display: flex; width: 100%; min-height: 100vh; }

.sidebar {
    width: 250px; background: var(--sidebar-bg);
    box-shadow: 2px 0 5px rgba(0,0,0,0.05); transition: all 0.3s; z-index: 1040;
}

.content { flex: 1; padding: 20px; width: 100%; overflow-x: hidden; }

/* ── SIDEBAR NAV ── */
.sidebar .nav-link {
    color: rgba(255,255,255,0.85); padding: 12px 20px; font-weight: 200;
    border-radius: 8px; margin: 5px 15px; display: flex; align-items: center;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active { background: rgba(255,255,255,1); color: var(--sidebar-bg); }
.sidebar .nav-link i { width: 25px; }

/* ── COLOR HELPERS ── */
.bg-teal { background-color: var(--primary-teal) !important; color: white; }
.text-teal { color: var(--primary-teal) !important; }
.btn-teal { background-color: var(--primary-teal); color: white; border: none; }
.btn-teal:hover { background-color: var(--primary-teal-hover); color: white; }
.rounded-4 { border-radius: 1rem !important; }
.cursor-pointer { cursor: pointer; }

/* ── APP HEADER ── */
.app-header {
    background-color: var(--primary-teal); color: white;
    padding: 15px 20px; border-radius: 12px 12px 0 0;
    margin: -20px -20px 20px -20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ── LOGIN ── */
.login-screen { min-height: 100vh; display: flex; background-color: #fff; }
.login-container { display: flex; width: 100%; max-width: 1200px; margin: auto; }
.login-branding { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center; }
.login-logo-big { max-width: 250px; margin-bottom: 20px; border-radius: 20px; }
.login-form-box { flex: 1; display: flex; justify-content: center; align-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 450px; padding: 40px; background: #fff; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid #f1f5f9; }
.login-input-group { position: relative; margin-bottom: 20px; }
.login-input-group i.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.login-input-group .form-control { padding-left: 45px; height: 55px; border-radius: 12px; border: 1px solid #e2e8f0; }
.btn-eye { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #94a3b8; cursor: pointer; z-index: 10; }
.btn-login-pro { background-color: #ea580c; color: white; border: none; height: 55px; border-radius: 12px; font-weight: bold; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; margin-top: 10px; }
@media (max-width: 991px) {
    .login-container { flex-direction: column; padding: 20px; }
    .login-branding { flex: 0; padding: 20px 0; }
    .login-logo-big { max-width: 150px; }
    .login-card { box-shadow: none; border: none; padding: 0; }
}

/* ── ANIMASI TRANSISI ── */
.page-transition { transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-out { opacity: 0; transform: scale(0.98); pointer-events: none; }
.fade-in-up { animation: fadeInUI 0.6s ease forwards; }
@keyframes fadeInUI { from { opacity: 0; } to { opacity: 1; } }

/* ── APP CONTAINER ── */
.app-container { max-width: 600px; margin: 0 auto; background: var(--bg-body); padding-bottom: 80px; }

/* ── SEARCH BOX ── */
.search-box { background: white; border-radius: 10px; padding: 10px 15px; border: 1px solid #e3e6f0; }
.search-box input { border: none; outline: none; width: 100%; box-shadow: none; }

/* ── CARDS ── */
.pelanggan-card, .pesanan-card {
    background: white; border-radius: 12px; padding: 15px; margin-bottom: 12px;
    border: 1px solid #e3e6f0; cursor: pointer; transition: 0.2s;
}
.pelanggan-card:hover, .pesanan-card:hover {
    border-color: var(--primary-teal); transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.pesanan-card:active { transform: scale(0.98); }

.detail-card { background: white; border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid #e3e6f0; }

/* ── FAB BUTTON ── */
.fab-add {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary-teal); color: white; font-size: 24px;
    display: none; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(56,178,172,0.4); cursor: pointer; z-index: 1000; border: none;
}
#page-master-parfum .fab-add,
#page-transaksi #trx-step-1 .fab-add { display: flex; }
.fab-add:hover { background: var(--primary-teal-hover); transform: scale(1.05); }

/* ── SERVICE TYPE BUTTONS ── */
.service-type-btn { flex: 1; text-align: center; padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; border: none; }
.service-type-btn.kiloan { background-color: #ccfbf1; color: #0d9488; }
.service-type-btn.kiloan.active { background-color: #14b8a6; color: white; }
.service-type-btn.satuan { background-color: #e0e7ff; color: #6366f1; }
.service-type-btn.satuan.active { background-color: #8b5cf6; color: white; }
.service-type-btn.meter { background-color: #fee2e2; color: #ef4444; }
.service-type-btn.meter.active { background-color: #f43f5e; color: white; }

/* ── BOTTOM BAR ── */
.bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white; padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 1000; text-align: center;
}

/* ── PENGATURAN MENU ── */
.pengaturan-menu {
    background: var(--primary-light); border-radius: 12px; padding: 15px 20px;
    margin-bottom: 15px; cursor: pointer; border: 1px solid transparent;
    transition: 0.2s; display: flex; align-items: center;
}
.pengaturan-menu:hover { border-color: var(--primary-teal); background: #dff0ef; transform: translateY(-2px); }
.icon-box-pengaturan { width: 45px; height: 45px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; margin-right: 15px; }

/* ── TOGGLE BUTTONS ── */
.btn-check-custom + .btn { background-color: #e2e8f0; color: #64748b; border: none; font-weight: bold; }
.btn-check-custom:checked + .btn { background-color: #f59e0b; color: white; }

/* ── TABS PESANAN ── */
.nav-tabs-pesanan { gap: 20px; }
.tab-pesanan { color: #64748b; padding: 12px 5px; cursor: pointer; white-space: nowrap; font-weight: 600; position: relative; transition: 0.3s; }
.tab-pesanan:hover { color: #334155; }
.tab-pesanan.active { color: #ea580c !important; }
.tab-pesanan.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: #ea580c; }

/* ── TAB DETAIL TRX ── */
.tab-detail-trx { flex: 1; text-align: center; padding: 12px 5px; cursor: pointer; font-weight: bold; color: #64748b; border-bottom: 2px solid transparent; transition: 0.3s; }
.tab-detail-trx.active { color: var(--primary-teal); border-bottom: 2px solid var(--primary-teal); }

/* ── SCROLLBAR ── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── SORT ITEM ── */
.sort-item:hover { background-color: #f8f9fc; color: var(--primary-teal); }

/* ── TIMELINE ── */
.timeline-item { position: relative; padding-left: 20px; border-left: 2px solid #e2e8f0; margin-bottom: 15px; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%; background-color: var(--primary-teal); }

/* ── NOTA ── */
.nota-box { background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; margin-top: 10px; }
.nota-header { background: #fff; padding: 30px 20px 20px; text-align: center; border-bottom: 1px dashed #e2e8f0; }
.nota-body { padding: 25px 20px; }

/* ── PEMBAYARAN ── */
.tab-bayar { padding: 12px 5px; color: #64748b; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; flex: 1; text-align: center; transition: 0.3s; }
.tab-bayar.active { color: #ea580c; border-bottom: 2px solid #ea580c; }
.btn-uang-pas { border: 1px solid #ea580c; color: #ea580c; background: white; border-radius: 10px; padding: 12px 15px; font-weight: 600; text-align: center; cursor: pointer; transition: 0.2s; }
.btn-uang-pas:hover, .btn-uang-pas.active { background: #ea580c; color: white; }
.input-bayar-custom { border: none; border-bottom: 2px solid #cbd5e1; border-radius: 0; outline: none; box-shadow: none; padding-left: 0; font-size: 1.1rem; font-weight: bold; color: #334155; }
.input-bayar-custom:focus { border-bottom-color: #ea580c; box-shadow: none; }
#inputBayarCustom::placeholder { color: #94a3b8 !important; font-weight: 400 !important; }
.box-qris { border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.2s; }
.box-qris:hover { border-color: #ea580c; background: #fff7ed; }

/* ── LIGHTBOX ── */
.lightbox-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-container.show { display: flex; opacity: 1; }
.lightbox-img { max-width: 90%; max-height: 80vh; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.2); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }

/* ── PELANGGAN UI ── */
.pill-filter { padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; border: 1px solid #e2e8f0; background: white; color: #64748b; font-weight: 500; white-space: nowrap; transition: 0.2s; }
.pill-filter.active { background: var(--primary-teal); color: white; border-color: var(--primary-teal); }
.btn-kebab { color: #94a3b8; font-size: 1.2rem; padding: 0 10px; background: transparent; border: none; font-weight: bold; transition: 0.2s; }
.btn-kebab:hover { color: var(--primary-teal); transform: scale(1.1); }
.btn-kebab::after { display: none; }
.pelanggan-item-clean { background: white; padding: 15px; margin-bottom: 12px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 2px 5px rgba(0,0,0,0.02); display: flex; justify-content: space-between; align-items: center; transition: 0.2s; cursor: pointer; }
.pelanggan-item-clean:hover { border-color: var(--primary-teal); transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.pelanggan-item-clean:active { transform: scale(0.98); }
@keyframes fadeInCard { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card-animate { animation: fadeInCard 0.3s ease forwards; }
.pelanggan-item-clean .dropdown-menu { position: fixed !important; z-index: 9999 !important; }
#masterPelangganListContainer { overflow: visible !important; position: relative; }
#masterPelangganListContainer .dropdown-menu { z-index: 9999 !important; }
#masterPelangganListContainer .pelanggan-item-clean { position: relative; z-index: 1; }
#masterPelangganListContainer .pelanggan-item-clean .dropdown { position: static; }

/* ── BOTTOM NAV ── */
.bottom-nav-item { color: #6c757d; transition: color 0.3s; }
.bottom-nav-item.active-nav { color: #d97706 !important; }
.bottom-nav-item.active-nav small, .bottom-nav-item.active-nav i { color: #d97706 !important; }
.bottom-nav-item small, .bottom-nav-item i { color: inherit; }

/* ── LAYANAN UI ── */
.lay-tipe-btn { color: #64748b; transition: all 0.2s; }
.lay-tipe-btn i { color: #94a3b8; }
.btn-check:checked + .lay-tipe-btn { border-color: #ea580c !important; position: relative; background-color: #fff7ed !important; }
.btn-check:checked + .lay-tipe-btn i { color: #ea580c; }
.btn-check:checked + .lay-tipe-btn::before { content: '\f192'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 10px; left: 10px; color: #ea580c; font-size: 1.1rem; }
.lay-est-btn { color: #64748b; transition: all 0.2s; font-size: 0.9rem; }
.btn-check:checked + .lay-est-btn { border-color: #ea580c !important; color: #ea580c; font-weight: bold; background-color: #fff7ed !important; }

/* ── LAYANAN PILLS ── */
.lay-pill { padding: 8px 18px; border-radius: 8px; font-weight: bold; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; white-space: nowrap; }
.lay-pill-semua { background-color: white; color: #64748b; border-color: #e2e8f0; }
.lay-pill-semua:hover, .lay-pill-semua.active { background-color: #ea580c !important; color: white !important; border-color: #ea580c !important; }
.lay-pill-kiloan { background-color: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.lay-pill-kiloan:hover, .lay-pill-kiloan.active { background-color: #16a34a !important; color: white !important; border-color: #16a34a !important; }
.lay-pill-satuan { background-color: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.lay-pill-satuan:hover, .lay-pill-satuan.active { background-color: #2563eb !important; color: white !important; border-color: #2563eb !important; }
.lay-pill-meter { background-color: #fef2f2; color: #dc2626; border-color: #fecaca; }
.lay-pill-meter:hover, .lay-pill-meter.active { background-color: #dc2626 !important; color: white !important; border-color: #dc2626 !important; }

/* ── LAYANAN TABLE TYPOGRAPHY ── */
.lay-head-text { font-size: 0.7rem; font-weight: bold; color: #6c757d; }
.lay-row-text { font-size: 0.75rem; word-break: break-word; line-height: 1.3; }
.lay-badge-text { font-size: 0.65rem; font-weight: 600; }
.lay-btn-aksi { width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; }
.lay-btn-aksi i { font-size: 0.7rem; }
@media (min-width: 768px) {
    .lay-head-text { font-size: 0.85rem; }
    .lay-row-text { font-size: 0.9rem; }
    .lay-badge-text { font-size: 0.8rem; }
    .lay-btn-aksi { width: 32px; height: 32px; }
    .lay-btn-aksi i { font-size: 0.85rem; }
}

/* ── ITEM LAYANAN CARD (DETAIL PESANAN) ── */
.item-layanan-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; margin-bottom: 12px; background: #ffffff; transition: 0.2s; }
.item-layanan-card:hover { border-color: #ea580c; background: #fff7ed; }
.icon-layanan-box { width: 45px; height: 45px; background: #f1f5f9; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #475569; }

/* ── SKELETON LOADING ── */
@keyframes skeleton-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton-pulse { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%); background-size: 800px 100%; animation: skeleton-shimmer 1.6s ease-in-out infinite; border-radius: 6px; }
.page-content { position: relative; }
.skeleton-container { padding: 16px; width: 100%; }
.skeleton-container.hidden { display: none; }
.page-content.is-loading > *:not(.skeleton-container) { display: none !important; }
.skeleton-card { background: white; border-radius: 16px; padding: 20px; margin-bottom: 16px; border: 1px solid #e2e8f0; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.skeleton-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.skeleton-row:last-child { margin-bottom: 0; }
.skeleton-circle { width: 45px; height: 45px; border-radius: 50%; flex-shrink: 0; }
.skeleton-circle-sm { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.skeleton-line { height: 14px; width: 100%; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.h-lg { height: 22px; border-radius: 8px; }
.skeleton-line.h-md { height: 18px; border-radius: 7px; }
.skeleton-line.h-sm { height: 10px; }
.skeleton-badge { height: 26px; width: 65px; border-radius: 20px; }
.skeleton-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-bottom: 20px; }
.skeleton-stat-card { background: white; border-radius: 16px; padding: 18px; border: 1px solid #e2e8f0; }
.skeleton-table-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.skeleton-table-row:last-child { border-bottom: none; }
.page-content-inner { transition: opacity 0.25s ease; }
.page-content-inner.fade-in { animation: fadeInContent 0.3s ease forwards; }
@keyframes fadeInContent { from { opacity: 0.6; } to { opacity: 1; } }

/* ── AUTO-REFRESH INDICATOR ── */
.refresh-indicator { position: fixed; top: 8px; right: 8px; background: rgba(217,119,6,0.9); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; z-index: 9998; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; pointer-events: none; }
.refresh-indicator.show { opacity: 1; transform: translateY(0); }

/* ── WA BLAST ── */
.wa-menu-item { background: white; border-radius: 15px; padding: 18px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #eef2f6; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.wa-menu-item:hover { border-color: #ea580c; background: #fff7ed; transform: translateY(-2px); }
.wa-menu-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 1.3rem; }
.btn-wa-send { background: #22c55e; color: white; border: none; padding: 8px 18px; border-radius: 25px; font-weight: bold; font-size: 0.8rem; box-shadow: 0 4px 10px rgba(34,197,94,0.3); }
.wa-summary-box { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; }
.wa-list-item { background: white; border-radius: 16px; border: 1px solid #f1f5f9; transition: 0.2s; }
.wa-list-item.selected { background-color: #eff6ff; border-color: #bfdbfe; }
.wa-check-custom { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cbd5e1; cursor: pointer; }
.wa-check-custom:checked { background-color: #2563eb; border-color: #2563eb; }
.wa-var-btn { background: white; color: #3b82f6; border: 1px solid #bfdbfe; border-radius: 20px; padding: 6px 12px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.wa-var-btn:hover { background: #eff6ff; }
.wa-format-btn { background: transparent; border: none; color: #64748b; font-size: 1.1rem; cursor: pointer; padding: 5px 10px; }
.wa-format-btn:hover { color: #0f172a; }
.form-switch.wa-switch .form-check-input { width: 2.8em; height: 1.4em; cursor: pointer; border-color: #cbd5e1; }
.form-switch.wa-switch .form-check-input:checked { background-color: #ea580c; border-color: #ea580c; }
.link-ubah-teks { font-size: 0.8rem; color: #2563eb; text-decoration: none; font-weight: 600; cursor: pointer; display: inline-block; margin-top: 4px; }
.link-ubah-teks:hover { text-decoration: underline; color: #1d4ed8; }

/* ── ARUS KEUANGAN (ak-*) ── */
.ak-hdr { display:flex; align-items:center; gap:12px; padding:16px; border-bottom:1px solid #f1f5f9; background:#fff; position:sticky; top:0; z-index:100; }
.ak-back { width:36px; height:36px; border-radius:50%; border:none; background:#fff7ed; color:#ea580c; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ak-period-box { margin:0; border:1px solid #f1f5f9; border-radius:14px; padding:12px 14px; display:flex; align-items:center; gap:10px; cursor:pointer; background:#fff; position:relative; z-index:120; }
.ak-period-icon { width:40px; height:40px; border-radius:10px; background:#fff7ed; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ak-btn-refresh { margin-left:auto; border:1.5px solid #ea580c; color:#ea580c; background:#fff; border-radius:25px; padding:7px 14px; font-size:13px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:6px; flex-shrink:0; white-space:nowrap; }
.ak-btn-refresh:hover { background:#fff7ed; }
.ak-period-dropdown { position:absolute; top:calc(100% + 4px); left:0; right:0; background:#fff; border-radius:14px; border:1px solid #f1f5f9; box-shadow:0 8px 24px rgba(0,0,0,0.12); z-index:200; overflow:hidden; display:none; }
.ak-period-opt { padding:12px 16px; font-size:13px; font-weight:600; color:#334155; cursor:pointer; border-bottom:1px solid #f8f9fa; display:flex; justify-content:space-between; align-items:center; }
.ak-period-opt:last-child { border-bottom:none; }
.ak-period-opt:hover, .ak-period-opt.ak-active { background:#fff7ed; color:#ea580c; }
.ak-custom-date { padding:10px 16px 14px; border-top:1px solid #f1f5f9; display:none; }
.ak-custom-date.show { display:block; }
.ak-custom-date-row { display:flex; gap:8px; }
.ak-custom-date-row input { flex:1; border:1px solid #e2e8f0; border-radius:8px; padding:7px 10px; font-size:12px; color:#334155; background:#f8f9fa; }
.ak-apply-btn { width:100%; margin-top:8px; background:#ea580c; color:#fff; border:none; border-radius:8px; padding:9px; font-size:13px; font-weight:700; cursor:pointer; }
.ak-tabs { display:flex; border-bottom:2px solid #f1f5f9; margin:12px 16px 0; position:relative; z-index:1; }
.ak-tab { flex:1; text-align:center; padding:11px 0; font-size:14px; font-weight:600; color:#94a3b8; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.2s; }
.ak-tab.ak-active { color:#ea580c; border-bottom:2px solid #ea580c; }
.ak-body { padding:14px 16px; padding-bottom:90px; }
.ak-filter-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.ak-chk-wrap { display:flex; align-items:center; gap:8px; cursor:pointer; }
.ak-chk { width:20px; height:20px; border-radius:5px; border:2px solid #e2e8f0; background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.2s; flex-shrink:0; }
.ak-chk.on { background:#ea580c; border-color:#ea580c; }
.ak-chk.on i { display:block; }
.ak-chk i { display:none; color:#fff; font-size:10px; }
.ak-chk-label { font-size:13px; font-weight:600; color:#ea580c; }
.ak-cb-filter-wrap { position:relative; }
.ak-cb-filter { display:flex; align-items:center; gap:6px; border:1px solid #e2e8f0; border-radius:20px; padding:5px 12px; cursor:pointer; background:#fff; font-size:12px; color:#334155; font-weight:600; white-space:nowrap; }
.ak-cb-dd { position:absolute; top:calc(100% + 4px); right:0; background:#fff; border-radius:12px; border:1px solid #f1f5f9; box-shadow:0 8px 20px rgba(0,0,0,0.1); z-index:300; min-width:140px; overflow:hidden; display:none; }
.ak-cb-dd.open { display:block; }
.ak-cb-opt { padding:10px 14px; font-size:13px; font-weight:600; color:#334155; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.ak-cb-opt:hover, .ak-cb-opt.ak-active { background:#fff7ed; color:#ea580c; }
.ak-sum-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.ak-sum-card { border-radius:14px; padding:14px; position:relative; overflow:hidden; }
.ak-sum-card.masuk { background:#f0fdf4; border:1px solid #bbf7d0; }
.ak-sum-card.keluar { background:#fef2f2; border:1px solid #fecaca; }
.ak-sum-dot { width:8px; height:8px; border-radius:50%; margin-bottom:4px; }
.ak-sum-card.masuk .ak-sum-dot { background:#f59e0b; }
.ak-sum-card.keluar .ak-sum-dot { background:#3b82f6; }
.ak-sum-lbl { font-size:12px; color:#64748b; font-weight:500; margin-bottom:4px; }
.ak-sum-val { font-size:17px; font-weight:700; color:#1e293b; }
.ak-sum-icon { position:absolute; right:12px; top:50%; transform:translateY(-50%); width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; }
.ak-sum-card.masuk .ak-sum-icon { background:#dcfce7; border:2px solid #22c55e; color:#22c55e; }
.ak-sum-card.keluar .ak-sum-icon { background:#fef2f2; border:2px solid #ef4444; color:#ef4444; }
.ak-tbl-wrap { background:#fff; border-radius:12px; border:1px solid #f1f5f9; overflow:hidden; margin-bottom:10px; }
.ak-tbl { width:100%; border-collapse:collapse; font-size:12px; table-layout:fixed; }
.ak-tbl thead th { padding:10px 8px; color:#94a3b8; font-weight:600; background:#f8f9fa; font-size:11px; text-align:left; }
.ak-tbl thead th:nth-child(3), .ak-tbl thead th:nth-child(4) { text-align:right; }
.ak-tbl thead th:nth-child(1) { width:26%; }
.ak-tbl thead th:nth-child(2) { width:36%; }
.ak-tbl thead th:nth-child(3), .ak-tbl thead th:nth-child(4) { width:19%; }
.ak-tbl tbody td { padding:10px 8px; border-top:1px solid #f8f9fa; color:#334155; font-weight:500; vertical-align:middle; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ak-tbl tbody td:nth-child(3), .ak-tbl tbody td:nth-child(4) { text-align:right; font-weight:700; }
.ak-saldo-row td { background:#fff8f8; color:#ef4444; font-weight:700; font-size:12px; }
.ak-total-box { background:#f8f9fa; border-radius:12px; border:1px solid #f1f5f9; padding:12px 14px; }
.ak-total-row { display:flex; justify-content:space-between; align-items:center; padding:4px 0; }
.ak-total-lbl { font-size:13px; color:#64748b; font-weight:500; }
.ak-total-val { font-size:14px; font-weight:700; color:#1e293b; }
.ak-total-val.saldo { color:#ea580c; font-size:16px; }
.ak-cb-tbl-wrap { background:#fff; border-radius:12px; border:1px solid #f1f5f9; overflow:hidden; }
.ak-cb-tbl { width:100%; border-collapse:collapse; font-size:12px; }
.ak-cb-tbl thead th { padding:10px 8px; color:#94a3b8; font-weight:600; background:#f8f9fa; font-size:11px; text-align:right; }
.ak-cb-tbl thead th:first-child { text-align:left; }
.ak-cb-tbl tbody tr { border-top:1px solid #f8f9fa; cursor:pointer; transition:background 0.15s; }
.ak-cb-tbl tbody tr:hover { background:#fff7ed; }
.ak-cb-tbl tbody td { padding:12px 8px; color:#334155; font-weight:600; vertical-align:middle; text-align:right; }
.ak-cb-tbl tbody td:first-child { text-align:left; }
.ak-cb-name { display:flex; align-items:center; gap:8px; }
.ak-cb-icon { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ak-saldo-akhir-val { color:#ea580c; font-weight:700; }
.ak-analisa-bar { padding:12px 16px; background:transparent; border-top:none; position:sticky; bottom:0; z-index:50; }
.ak-btn-analisa { width:100%; background:#ea580c; border:none; color:#fff; border-radius:14px; padding:15px; font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; }
.ak-btn-export { border:1.5px solid #ea580c; color:#ea580c; background:#fff; border-radius:8px; padding:6px 12px; font-size:12px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:5px; margin-left:auto; }
.ak-btn-export:hover { background:#fff7ed; }
@keyframes ak-spin { to { transform:rotate(360deg); } }
.ak-spinning { animation:ak-spin 0.8s linear infinite; }

/* ── RESPONSIVE ── */
@media (min-width: 769px) { .bottom-bar { left: 250px; } }

@media (max-width: 768px) {
    .sidebar { position: fixed; left: -250px; height: 100%; z-index: 1050; }
    .sidebar.active { left: 0; }
    .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1040; display: none; }
    .sidebar-overlay.active { display: block; }
    .app-header { margin: -20px -20px 20px -20px; border-radius: 0; }
    .bottom-bar { left: 0; }
    .fab-add { bottom: 100px; right: 20px; }
}

/* ══════════════════════════════════════
   RL MODAL — BASE
══════════════════════════════════════ */
:root {
    --rl-modal-radius-mobile: 28px 28px 0 0;
    --rl-modal-radius-desktop: 24px;
    --rl-modal-max-width: 480px;
    --rl-modal-z: 99999;
    --rl-confirm-z: 100001;
    --rl-confirm-overlay-z: 100000;
    --rl-confirm-radius: 20px;
    --rl-confirm-max-width: 320px;
    --rl-color-primary: #FF6B2C;
    --rl-color-success: #22C55E;
    --rl-color-wave-1: rgba(255,107,44,0.13);
    --rl-color-wave-2: rgba(255,107,44,0.08);
    --rl-transition-modal: 300ms cubic-bezier(0.34,1.56,0.64,1);
    --rl-transition-confirm: 200ms cubic-bezier(0.34,1.56,0.64,1);
    --rl-transition-item: 0.2s ease;
}
.rl-modal {
    position: fixed; inset: 0;
    z-index: var(--rl-modal-z);
    display: flex; align-items: flex-end;
    pointer-events: none;
}
.rl-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: none; opacity: 0;
    transition: opacity 200ms ease;
}
.rl-modal__overlay--visible { opacity: 1; }
.rl-modal__card {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; max-height: 92vh;
    border-radius: var(--rl-modal-radius-mobile);
    background: #fff; overflow: hidden;
    transform: translateY(100%);
    transition: var(--rl-transition-modal);
    z-index: var(--rl-modal-z); pointer-events: all;
}
.rl-modal__card--open { transform: translateY(0); }
@media (min-width: 640px) {
    .rl-modal { align-items: center; justify-content: center; }
    .rl-modal__card {
        position: fixed; bottom: auto; left: 50%; top: 50%; right: auto;
        width: calc(100% - 48px); max-width: var(--rl-modal-max-width);
        border-radius: var(--rl-modal-radius-desktop); max-height: 90vh;
        transform: translate(-50%, -50%) scale(0.92); opacity: 0;
        transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), opacity 200ms ease;
    }
    .rl-modal__card--open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .rl-modal__drag-handle { display: none; }
    .rl-modal__body { padding: 0 32px; }
    .rl-action-item:hover { background: #FFF8F5; transform: translateX(4px); }
    .rl-modal__wave { border-radius: 0 0 24px 24px; overflow: hidden; }
}
.rl-modal__drag-handle {
    width: 40px; height: 4px; background: #E0E0E0;
    border-radius: 2px; margin: 12px auto 0;
}
.rl-modal__close-btn {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    background: #F5F5F5; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #555; pointer-events: all; z-index: 1;
}
.rl-modal__top {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 20px 0;
}
.rl-modal__body { padding: 0 20px; margin-bottom: 0; }
.rl-modal__icon-wrap {
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
    position: relative; border-radius: 50%; margin: 0 auto 4px;
}
.rl-modal__icon-main {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.rl-modal__particle { position: absolute; border-radius: 50%; }
.rl-modal__diamond { position: absolute; transform: rotate(45deg); }
.rl-modal__star { position: absolute; }
.rl-modal__title {
    font-size: 20px; font-weight: 800; color: #1A1A1A;
    text-align: center; margin: 12px 0 4px; line-height: 1.3;
}
.rl-modal__subtitle {
    font-size: 14px; color: #6B7280;
    text-align: center; margin-bottom: 20px;
}
.rl-modal__wave {
    width: 100%; margin: 0; padding: 0;
    line-height: 0; display: block; overflow: hidden;
}
.rl-modal__wave svg { display: block; width: 100%; height: 70px; margin: 0; padding: 0; }

/* ── RL ACTION ITEMS ── */
.rl-action-item {
    display: flex; align-items: center; gap: 14px;
    border: 1px solid #F0F0F0; border-radius: 14px;
    padding: 14px 16px; background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 10px; cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.rl-action-item:active { background: #FFF8F5; transform: scale(0.985); }
.rl-action-item__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rl-action-item__icon--orange { background: #FFF3E0; }
.rl-action-item__icon--blue   { background: #EEF2FF; }
.rl-action-item__icon--green  { background: #ECFDF5; }
.rl-action-item__text { flex: 1; }
.rl-action-item__title { font-size: 15px; font-weight: 700; color: #1A1A1A; margin: 0; }
.rl-action-item__subtitle { font-size: 12px; color: #9CA3AF; margin: 2px 0 0; }
.rl-action-item__chevron { flex-shrink: 0; }

/* ── RL CONFIRM ── */
.rl-confirm {
    display: none; position: fixed; inset: 0;
    z-index: var(--rl-confirm-overlay-z);
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4);
}
.rl-confirm--visible { display: flex; }
.rl-confirm__card {
    background: #fff; border-radius: var(--rl-confirm-radius);
    width: calc(100% - 48px); max-width: var(--rl-confirm-max-width);
    padding: 28px 24px 20px; z-index: var(--rl-confirm-z);
    transform: scale(0.92); opacity: 0;
    transition: transform var(--rl-transition-confirm), opacity 200ms ease;
}
.rl-confirm__card--open { transform: scale(1); opacity: 1; }
.rl-confirm__icon { font-size: 2rem; text-align: center; margin-bottom: 8px; }
.rl-confirm__title { font-size: 18px; font-weight: 800; color: #1A1A1A; text-align: center; margin: 0 0 6px; }
.rl-confirm__message { font-size: 14px; color: #6B7280; text-align: center; margin-bottom: 20px; }
.rl-confirm__actions { display: flex; gap: 10px; }
.rl-confirm__btn--cancel, .rl-confirm__btn--confirm {
    flex: 1; padding: 12px; border-radius: 12px; border: none;
    font-size: 15px; font-weight: 700; cursor: pointer;
}
.rl-confirm__btn--cancel { background: #F3F4F6; color: #374151; }
.rl-confirm__btn--confirm { background: var(--rl-color-primary); color: #fff; }

/* ══════════════════════════════════════
   RL TAGIHAN CARD
══════════════════════════════════════ */
.rl-tagihan-card {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid #F0F0F0; border-radius: 16px;
    padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin: 0 0 12px;
}
.rl-tagihan-card__left { display: flex; align-items: center; gap: 12px; }
.rl-tagihan-card__icon {
    width: 44px; height: 44px; background: #FFF3E0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rl-tagihan-card__label { display: block; font-size: 13px; font-weight: 600; color: #6B7280; margin-bottom: 2px; }
.rl-tagihan-card__amount {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}
.rl-tagihan-card__actions { display: flex; gap: 8px; align-items: center; }
.rl-tagihan-card__btn-detail {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; background: #fff;
    border: 1.5px solid var(--rl-color-primary);
    border-radius: 12px; color: var(--rl-color-primary);
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .15s ease; white-space: nowrap;
}
.rl-tagihan-card__btn-detail:hover { background: #FFF3E0; }
.rl-tagihan-card__btn-bayar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--rl-color-primary), #e05520);
    border: none; border-radius: 12px; color: #fff;
    font-size: 13px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,107,44,.35);
    transition: all .15s ease; white-space: nowrap;
}
.rl-tagihan-card__btn-bayar:hover { opacity: .9; transform: scale(.97); }

/* ══════════════════════════════════════
   RL BILL DETAIL MODAL
══════════════════════════════════════ */
.rl-bill {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.50); backdrop-filter: blur(4px);
    z-index: var(--rl-modal-z); display: none;
}
.rl-bill__card {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; max-height: 85vh; background: #fff;
    border-radius: var(--rl-modal-radius-mobile);
    overflow: hidden; display: flex; flex-direction: column;
    transform: translateY(100%); transition: var(--rl-transition-modal);
    z-index: calc(var(--rl-modal-z) + 1); pointer-events: all;
}
.rl-bill__card--open { transform: translateY(0); }
@media (min-width: 640px) {
    .rl-bill__card {
        bottom: auto; left: 50%; top: 50%; right: auto;
        width: calc(100% - 48px); max-width: var(--rl-modal-max-width);
        border-radius: var(--rl-modal-radius-desktop); max-height: 90vh;
        transform: translate(-50%, -50%) scale(.92); opacity: 0;
        transition: transform 250ms cubic-bezier(.34,1.56,.64,1), opacity 200ms ease;
    }
    .rl-bill__card--open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .rl-bill__drag-handle { display: none; }
}
.rl-bill__drag-handle {
    width: 40px; height: 4px; background: #E0E0E0;
    border-radius: 2px; margin: 12px auto 4px; flex-shrink: 0;
}
.rl-bill__header { padding: 16px 20px 12px; flex-shrink: 0; }
.rl-bill__total-label { display: block; font-size: 14px; font-weight: 500; color: #6B7280; margin-bottom: 4px; }
.rl-bill__total-amount { display: block; font-size: 36px; font-weight: 800; color: var(--rl-color-primary); }
.rl-bill__divider { height: 1px; background: #F0F0F0; margin: 0; flex-shrink: 0; }
.rl-bill__scroll { overflow-y: auto; flex: 1; }
.rl-bill__section { flex-shrink: 0; }
.rl-bill__section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; cursor: pointer; user-select: none;
}
.rl-bill__section-title { font-size: 15px; font-weight: 700; color: #1A1A1A; }
.rl-bill__section-toggle { color: #9CA3AF; transition: transform .25s ease; flex-shrink: 0; }
.rl-bill__section--open .rl-bill__section-toggle { transform: rotate(180deg); }
.rl-bill__section-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.rl-bill__section--open .rl-bill__section-body { padding-bottom: 16px; }
.rl-bill__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rl-bill__row--bold .rl-bill__row-label,
.rl-bill__row--bold .rl-bill__row-value { font-size: 14px; font-weight: 700; color: #1A1A1A; }
.rl-bill__row--sub .rl-bill__row-label { font-size: 13px; font-weight: 400; color: #6B7280; flex-shrink: 0; }
.rl-bill__row--sub .rl-bill__row-value { font-size: 13px; font-weight: 600; color: #1A1A1A; flex-shrink: 0; }
.rl-bill__row-value { flex-shrink: 0; }
.rl-bill__dotted {
    flex: 1; border-bottom: 2px dotted #D1D5DB;
    height: 1px; align-self: flex-end; margin-bottom: 4px; min-width: 16px;
}
.rl-bill__empty { font-size: 14px; font-style: italic; color: #9CA3AF; text-align: center; padding: 8px 0 4px; margin: 0; }
.rl-bill__footer {
    position: sticky; bottom: 0; background: #fff;
    padding: 12px 20px 28px; border-top: 1px solid #F0F0F0; flex-shrink: 0;
}
.rl-bill__btn-preview {
    width: 100%; background: linear-gradient(135deg, var(--rl-color-primary), #e05520);
    color: #fff; border: none; border-radius: 14px; padding: 15px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 20px rgba(255,107,44,.35); transition: opacity .15s, transform .15s;
}
.rl-bill__btn-preview:hover { opacity: .9; transform: scale(.98); }
/* ── TAB PESANAN SLIDER ── */
.nav-tabs-pesanan { position: relative !important; }
#tabPesananSlider {
    position: absolute; bottom: -1px; height: 2px;
    background: #ea580c; border-radius: 1px 1px 0 0;
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1),
                width 0.28s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none; z-index: 2;
}

/* ── LIST PESANAN ANIMASI ── */
@keyframes listPesananFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.list-pesanan-animate {
    animation: listPesananFadeUp 0.22s cubic-bezier(0.4,0,0.2,1) both;
}
#listPesananContainer {
    will-change: transform, opacity;
}
/* ── CARD STAGGER ANIMATION ── */
#listPesananContainer .order-card {
    animation: cardFadeIn 0.16s ease both;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
.tab-master {
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.tab-master.active {
    color: #ea580c;
}
.btn-riwayat-trx {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-riwayat-trx:hover {
    background: #fff0e5;
    transform: scale(1.08);
}
.btn-riwayat-trx:active {
    background: #fff0e5;
    transform: scale(0.93);
}
