/* =====================================================================
   BEE PRINT - theme-apple.css  (lapisan tema, dimuat SETELAH style.css)
   ---------------------------------------------------------------------
   - Hanya tampilan. Tidak ada perubahan ID, class, atribut data-*, form,
     event handler, endpoint, atau logika JavaScript.
   - style.css lama tetap utuh. Rollback: hapus <link> ke file ini.
   - style.css memiliki banyak !important; aturan di sini memakai prefiks
     "html body" (spesifisitas lebih tinggi) dan !important hanya bila
     diperlukan untuk menang.
   - Tanpa font/aset eksternal: memakai font sistem (SF di Apple,
     Segoe UI Variable/Segoe UI di Windows).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS (menimpa token style.css)
   --------------------------------------------------------------------- */
:root {
    color-scheme: light;

    --primary: #1D1D1F;
    --primary-600: #000000;
    --primary-50: #F2F2F5;
    --primary-100: #E5E5EA;
    --bee: #F5B301;

    /* sidebar terang (nama token lama dipertahankan) */
    --navy: #FBFBFD;
    --navy-2: #EFEFF2;
    --navy-3: #E8E8ED;
    --navy-text: #1D1D1F;
    --navy-muted: #86868B;

    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --surface-2: #FAFAFC;
    --border: #E8E8ED;
    --border-strong: #D2D2D7;

    --text: #1D1D1F;
    --text-2: #424245;
    --muted: #6E6E73;
    --on-primary: #FFFFFF;

    --baru: #0A66D8;
    --baru-bg: #EEF4FD;
    --proses: #B45F06;
    --proses-bg: #FFF5E6;
    --selesai: #1E7B3A;
    --selesai-bg: #EBF7EE;
    --batal: #C7362F;
    --batal-bg: #FDEEEE;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .18);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

    --ap-hairline: #ECECF0;
    --ap-accent: #0071E3;
    --ap-wa: #1FAF54;
    --ap-wa-bg: #E9F8EF;
    --ap-ease: cubic-bezier(.25, .1, .25, 1);
}

/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */
html body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font) !important;
    letter-spacing: -0.003em;
    -webkit-font-smoothing: antialiased;
}

html body h1,
html body h2,
html body h3 {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -0.02em;
}

html body button,
html body input,
html body select,
html body textarea {
    font-family: var(--font) !important;
}

html body .icon {
    stroke-width: 1.7;
}

/* ---------------------------------------------------------------------
   3. TOMBOL
   --------------------------------------------------------------------- */
html body .btn {
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    transition: background-color .2s var(--ap-ease), box-shadow .2s var(--ap-ease), transform .1s var(--ap-ease) !important;
}

html body .btn.primary {
    background: #1D1D1F !important;
    border-color: #1D1D1F !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12) !important;
}

html body .btn.primary:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}

html body .btn:active {
    transform: scale(.98);
}

html body .btn .icon {
    stroke: currentColor;
}

html body .icon-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-2) !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    transition: background-color .2s var(--ap-ease) !important;
}

html body .icon-btn:hover {
    background: var(--primary-50) !important;
}

/* ---------------------------------------------------------------------
   4. SIDEBAR (desktop) + NAV
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
    html body .nav {
        background: rgba(251, 251, 253, .92) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-right: 1px solid var(--ap-hairline) !important;
        color: var(--text) !important;
        padding: 22px 14px !important;
    }

    html body .nav-brand {
        color: var(--text) !important;
        padding: 2px 10px 26px !important;
    }

    html body .nav-brand strong {
        font-size: 15px;
        letter-spacing: .02em;
        color: var(--text) !important;
    }

    html body .nav-brand small {
        color: var(--muted) !important;
    }

    html body .nav-items {
        gap: 2px !important;
    }

    html body .nav .nav-item {
        min-height: 40px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        color: var(--text-2) !important;
        background: transparent !important;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        box-shadow: none !important;
        transition: background-color .15s var(--ap-ease), color .15s var(--ap-ease) !important;
    }

    html body .nav .nav-item .icon,
    html body .nav .nav-item .nav-icon {
        color: var(--muted) !important;
        stroke: currentColor;
    }

    html body .nav .nav-item:hover {
        background: rgba(0, 0, 0, .045) !important;
        color: var(--text) !important;
    }

    html body .nav .nav-item.active {
        background: #FFFFFF !important;
        color: var(--text) !important;
        font-weight: 600 !important;
        box-shadow: 0 0 0 1px var(--ap-hairline), 0 1px 3px rgba(0, 0, 0, .06) !important;
    }

    html body .nav .nav-item.active .icon,
    html body .nav .nav-item.active .nav-icon {
        color: var(--text) !important;
    }

    html body .nav .nav-item.nav-whatsapp .nav-wa-icon,
    html body .nav .nav-item.nav-whatsapp.active .nav-wa-icon {
        color: var(--ap-wa) !important;
    }

    html body .nav .nav-item .soon {
        background: var(--primary-50) !important;
        color: var(--muted) !important;
        border-radius: 999px !important;
        font-weight: 500 !important;
    }

    html body .nav-status {
        background: #FFFFFF !important;
        border: 1px solid var(--ap-hairline) !important;
        box-shadow: var(--shadow-sm) !important;
        border-radius: 16px !important;
        color: var(--text-2) !important;
    }

    html body .nav-status-head,
    html body .nav-status-head strong {
        color: var(--text) !important;
    }

    html body .nav-status p {
        color: var(--muted) !important;
    }

    html body .nav-status .btn.primary {
        background: var(--primary-50) !important;
        border-color: transparent !important;
        color: var(--text) !important;
        box-shadow: none !important;
    }

    html body .nav-status .btn.primary:hover {
        background: var(--primary-100) !important;
    }

    html body .topbar {
        padding: 10px 36px !important;
    }

    html body .content {
        padding: 32px 36px 48px !important;
        max-width: 1320px;
    }
}

/* ---------------------------------------------------------------------
   5. TOPBAR
   --------------------------------------------------------------------- */
html body .topbar {
    background: rgba(255, 255, 255, .82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--ap-hairline) !important;
    box-shadow: none !important;
}

html body .topbar-search {
    background: var(--primary-50) !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

html body .topbar-search input {
    background: transparent !important;
    color: var(--text) !important;
}

html body .topbar-clock span {
    color: var(--muted) !important;
}

html body .topbar-clock b {
    color: var(--text) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

html body .topbar-updated {
    color: var(--muted) !important;
}

html body .live-dot {
    background: #34C759 !important;
}

html body .avatar {
    background: linear-gradient(180deg, #FFD54A, #F5B301) !important;
    color: #1D1D1F !important;
    font-weight: 700 !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06) !important;
}

html body .avatar-name {
    color: var(--text) !important;
    font-weight: 600 !important;
}

/* ---------------------------------------------------------------------
   6. JUDUL HALAMAN
   --------------------------------------------------------------------- */
html body .page-head {
    align-items: flex-end !important;
    margin-bottom: 28px !important;
}

html body .page-head h1 {
    font-size: clamp(26px, 3vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.028em !important;
    color: var(--text) !important;
}

html body .page-head p {
    color: var(--muted) !important;
    font-size: 15px !important;
    margin-top: 6px !important;
}

html body .eyebrow,
html body .dashboard-panel-head small {
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
}

html body .section-head h2,
html body .panel h2,
html body .dashboard-panel-head h2 {
    font-size: 19px !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
    color: var(--text) !important;
}

html body .section-head p {
    color: var(--muted) !important;
}

/* ---------------------------------------------------------------------
   7. KARTU (permukaan umum)
   --------------------------------------------------------------------- */
html body .dashboard-summary-card,
html body .dashboard-status-panel,
html body .panel,
html body .stat,
html body .product-card,
html body .w2-column,
html body .dashboard-orders-table-wrap {
    background: #FFFFFF !important;
    border: 1px solid var(--ap-hairline) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow) !important;
}

/* Dashboard - ringkasan */
html body .dashboard-summary-grid {
    gap: 16px !important;
}

html body .dashboard-summary-card {
    padding: 20px 22px !important;
    transition: transform .2s var(--ap-ease), box-shadow .2s var(--ap-ease) !important;
}

html body .dashboard-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .07) !important;
}

html body .dashboard-summary-card small {
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

html body .dashboard-summary-card b {
    color: var(--text) !important;
    font-family: var(--font-display);
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

html body .dashboard-summary-card em {
    color: var(--muted) !important;
}

html body .dashboard-summary-icon,
html body .dashboard-status-icon {
    background: var(--primary-50) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Dashboard - status */
html body .dashboard-status-panel {
    padding: 24px !important;
}

html body .dashboard-status-grid {
    gap: 12px !important;
}

html body .dashboard-status-item {
    background: var(--surface-2) !important;
    border: 1px solid var(--ap-hairline) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    position: relative;
}

html body .dashboard-status-item::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

html body .dashboard-status-item.baru::after { background: var(--baru); }
html body .dashboard-status-item.proses::after { background: #F59E0B; }
html body .dashboard-status-item.selesai::after { background: #34C759; }
html body .dashboard-status-item.batal::after { background: #FF3B30; }

html body .dashboard-status-item small {
    color: var(--muted) !important;
    font-weight: 500 !important;
}

html body .dashboard-status-item b {
    color: var(--text) !important;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

html body .dashboard-status-item em {
    color: var(--muted) !important;
}

html body .dashboard-link-btn {
    color: var(--ap-accent) !important;
    background: transparent !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

html body .dashboard-link-btn:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------
   8. TABEL
   --------------------------------------------------------------------- */
html body .dashboard-orders-table-wrap {
    overflow: hidden;
}

html body .dashboard-orders-table th,
html body #orders-list .order-detail-table th {
    background: #FFFFFF !important;
    color: #86868B !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ap-hairline) !important;
}

html body .dashboard-orders-table td,
html body #orders-list .order-detail-table td {
    border-bottom: 1px solid #F2F2F5 !important;
    color: var(--text-2) !important;
}

html body .dashboard-orders-table td strong,
html body .dashboard-orders-table td b,
html body #orders-list .order-detail-table td strong {
    color: var(--text) !important;
    font-weight: 600 !important;
}

html body .dashboard-orders-table tbody tr,
html body #orders-list .order-detail-table tbody tr {
    transition: background-color .15s var(--ap-ease);
}

html body .dashboard-orders-table tbody tr:hover,
html body #orders-list .order-detail-table tbody tr:hover {
    background: #FAFAFC !important;
}

/* Tombol aksi kecil (Edit/Hapus/Selesai/Batal) */
html body .dashboard-action-btn,
html body #orders-list .order-edit-btn,
html body #orders-list .order-delete-btn,
html body #orders-list .order-finish-btn,
html body #orders-list .order-cancel-btn,
html body .product-actions button,
html body .w2-card-actions button,
html body #finance-transactions-list button {
    background: #FFFFFF !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 999px !important;
    color: var(--text) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    padding: 5px 12px !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .15s var(--ap-ease), border-color .15s var(--ap-ease) !important;
}

html body .dashboard-action-btn:hover,
html body #orders-list .order-edit-btn:hover,
html body #orders-list .order-delete-btn:hover,
html body #orders-list .order-finish-btn:hover,
html body #orders-list .order-cancel-btn:hover,
html body .product-actions button:hover,
html body .w2-card-actions button:hover,
html body #finance-transactions-list button:hover {
    background: var(--primary-50) !important;
}

html body #orders-list .order-delete-btn,
html body #orders-list .order-cancel-btn,
html body .dashboard-action-btn.danger,
html body .product-actions button + button,
html body #finance-transactions-list button {
    color: #C7362F !important;
}

html body #orders-list .order-finish-btn {
    color: var(--selesai) !important;
}

/* Badge status */
html body .dashboard-status-badge,
html body .status {
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    letter-spacing: .02em !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* ---------------------------------------------------------------------
   9. HALAMAN PESANAN (markup dari app.js; gaya inline ditimpa)
   --------------------------------------------------------------------- */
html body #orders-list .order-section {
    margin-bottom: 18px !important;
    background: #FFFFFF;
    border: 1px solid var(--ap-hairline);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

html body #orders-list .order-section-title {
    background: #FFFFFF !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ap-hairline) !important;
    border-radius: 0 !important;
    min-height: 56px !important;
    padding: 10px 18px !important;
    color: var(--text) !important;
}

html body #orders-list .order-section-title strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-transform: capitalize;
}

/* ikon emoji diganti titik warna (teks emoji tetap ada di DOM) */
html body #orders-list .order-section-title > div > span:first-child {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px;
    border-radius: 50% !important;
    font-size: 0 !important;
    color: transparent !important;
    overflow: hidden;
    background: var(--muted) !important;
}

html body #orders-list .order-section:nth-of-type(1) .order-section-title > div > span:first-child { background: var(--baru) !important; }
html body #orders-list .order-section:nth-of-type(2) .order-section-title > div > span:first-child { background: #F59E0B !important; }
html body #orders-list .order-section:nth-of-type(3) .order-section-title > div > span:first-child { background: #34C759 !important; }
html body #orders-list .order-section:nth-of-type(4) .order-section-title > div > span:first-child { background: #FF3B30 !important; }

html body #orders-list .order-count {
    background: var(--primary-50) !important;
    color: var(--text-2) !important;
}

html body #orders-list .order-collapse-btn {
    color: var(--muted) !important;
    border-radius: 999px !important;
}

html body #orders-list .order-collapse-btn:hover {
    background: var(--primary-50) !important;
}

html body #orders-list .order-section-body {
    border: 0 !important;
    border-radius: 0 !important;
}

/* ---------------------------------------------------------------------
   10. KATALOG
   --------------------------------------------------------------------- */
html body .product-grid {
    gap: 16px !important;
}

html body .product-card {
    padding: 20px !important;
    transition: transform .2s var(--ap-ease), box-shadow .2s var(--ap-ease) !important;
}

html body .product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .07) !important;
}

html body .product-name {
    color: var(--text) !important;
    font-family: var(--font-display);
    font-weight: 650 !important;
    font-size: 17px !important;
    letter-spacing: -0.015em;
}

html body .product-category {
    color: var(--muted) !important;
    font-size: 13px !important;
}

html body .product-price {
    color: var(--text) !important;
    font-weight: 650 !important;
}

html body .product-price span {
    color: var(--muted) !important;
    font-weight: 400 !important;
}

/* ---------------------------------------------------------------------
   11. KEUANGAN
   --------------------------------------------------------------------- */
html body .segmented {
    background: #EBEBEF !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 3px !important;
    box-shadow: none !important;
}

html body .segmented .finance-tab {
    background: transparent !important;
    color: var(--text-2) !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: background-color .2s var(--ap-ease) !important;
}

html body .segmented .finance-tab.active {
    background: #FFFFFF !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04) !important;
}

html body .stats {
    gap: 16px !important;
}

html body .stat {
    padding: 20px !important;
}

html body .stat small {
    color: var(--muted) !important;
    font-weight: 500 !important;
}

html body .stat b {
    color: var(--text) !important;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

html body .stat-icon {
    background: var(--primary-50) !important;
    color: var(--text-2) !important;
    border-radius: 12px !important;
}

html body .stat-income .stat-icon { color: var(--selesai) !important; background: var(--selesai-bg) !important; }
html body .stat-expense .stat-icon { color: var(--batal) !important; background: var(--batal-bg) !important; }

html body .panel {
    padding: 24px !important;
}

html body #finance-chart > div > div {
    padding: 12px 0;
    border-bottom: 1px solid #F2F2F5;
}

html body #finance-chart > div > div:last-child {
    border-bottom: 0;
}

html body #finance-chart b {
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
}

html body #finance-chart span {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 20px;
    letter-spacing: -0.02em;
}

html body #finance-transactions-list > div {
    background: #FFFFFF !important;
    border: 1px solid var(--ap-hairline) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
}

html body #finance-transactions-list > div small {
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   12. WHATSAPP (aksen hijau)
   --------------------------------------------------------------------- */
html body .w2-page-head h2 {
    font-size: clamp(26px, 3vw, 34px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.028em !important;
}

html body .w2-grid {
    gap: 16px !important;
}

html body .w2-column {
    padding: 20px !important;
}

html body .w2-column-head span {
    color: var(--muted) !important;
}

html body .w2-clean-title {
    color: var(--text) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
}

html body .w2-clean-icon {
    color: var(--ap-wa) !important;
    border-color: var(--ap-wa) !important;
}

html body .w2-refresh {
    background: #FFFFFF !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 999px !important;
    color: var(--text) !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}

html body .w2-refresh:hover {
    background: var(--primary-50) !important;
}

html body .w2-card {
    background: #FFFFFF !important;
    border: 1px solid var(--ap-hairline) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

html body .w2-card.w2-inbox-unread {
    border: 1px solid #F6D3D1 !important;
    border-left: 3px solid #FF3B30 !important;
    background: #FFF8F7 !important;
}

html body .w2-card.w2-inbox-read {
    border: 1px solid #F3E5B6 !important;
    border-left: 3px solid #FFCC00 !important;
    background: #FFFDF6 !important;
}

html body .w2-card.w2-inbox-unknown {
    border-left: 3px solid #C7C7CC !important;
}

html body .w2-card-title {
    color: var(--text) !important;
    font-weight: 650 !important;
}

html body .w2-card-meta {
    color: var(--muted) !important;
}

html body .w2-card-preview {
    color: var(--text-2) !important;
}

html body .w2-empty {
    color: var(--muted) !important;
    background: var(--surface-2) !important;
    border: 1px dashed var(--border) !important;
    border-radius: 14px !important;
}

html body .w2-reminder-form input {
    background: #FFFFFF !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 12px !important;
}

html body .w2-reminder-form button {
    background: var(--ap-wa) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
}

html body .w2-reminder-form button:hover {
    background: #189447 !important;
}

html body .w2-order-check {
    accent-color: var(--ap-wa);
}

/* ---------------------------------------------------------------------
   13. MODAL & FORM
   --------------------------------------------------------------------- */
html body .modal {
    background: rgba(0, 0, 0, .28) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

html body .sheet {
    border-radius: 22px 22px 0 0 !important;
    box-shadow: var(--shadow-lg) !important;
}

@media (min-width: 640px) {
    html body .sheet {
        border-radius: 22px !important;
    }
}

html body .sheettop {
    border-bottom: 1px solid var(--ap-hairline) !important;
}

html body .sheettop small {
    color: var(--muted) !important;
    letter-spacing: .06em !important;
}

html body .sheettop h3 {
    font-weight: 650 !important;
}

html body .field label,
html body .field-label {
    color: var(--text-2) !important;
    font-weight: 500 !important;
}

html body .form input,
html body .form select,
html body .form textarea,
html body .w1-auth-field input {
    background: #FFFFFF !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 12px !important;
    color: var(--text) !important;
    box-shadow: none !important;
    transition: border-color .15s var(--ap-ease), box-shadow .15s var(--ap-ease) !important;
}

html body .form input[readonly] {
    background: var(--surface-2) !important;
    color: var(--muted) !important;
}

html body .form input:focus,
html body .form select:focus,
html body .form textarea:focus,
html body .w1-auth-field input:focus {
    border-color: var(--ap-accent) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, .16) !important;
    outline: none !important;
}

/* (a) Tombol "Simpan" di HP tidak lagi tertutup bottom navigation.
   style.css menaikkan z-index nav sampai 9999-10002 !important di < 1024px. */
html body .modal {
    z-index: 10050 !important;
}

@media (max-width: 1023.98px) {
    html body .modal .sheet {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ---------------------------------------------------------------------
   14. NOTIFIKASI W1 & GERBANG LOGIN
   --------------------------------------------------------------------- */
html body .w1-notification-panel {
    background: rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--ap-hairline) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .14) !important;
}

html body .w1-notification-panel-title {
    color: var(--text) !important;
    font-weight: 650 !important;
}

html body .w1-notification-empty {
    color: var(--muted) !important;
}

html body .w1-notification-badge {
    background: #FF3B30 !important;
    color: #FFFFFF !important;
}

html body .w1-auth-gate {
    background: rgba(245, 245, 247, .82) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

html body .w1-auth-card {
    background: #FFFFFF !important;
    border: 1px solid var(--ap-hairline) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .12) !important;
}

html body .w1-auth-card h1 {
    color: var(--text) !important;
    letter-spacing: -0.025em !important;
}

html body .w1-auth-subtitle {
    color: var(--muted) !important;
}

html body .w1-auth-logo {
    background: #FFF6D6 !important;
    border-radius: 14px !important;
}

/* ---------------------------------------------------------------------
   15. LAPORAN / PENGATURAN (segera hadir)
   --------------------------------------------------------------------- */
html body .soon-panel {
    text-align: center;
    padding: 48px 24px !important;
}

html body .soon-icon {
    background: var(--primary-50) !important;
    color: var(--text-2) !important;
    border-radius: 16px !important;
}

html body .soon-panel p {
    color: var(--muted) !important;
}

html body .empty {
    color: var(--muted) !important;
    background: #FFFFFF !important;
    border: 1px dashed var(--border) !important;
    border-radius: 16px !important;
}

/* ---------------------------------------------------------------------
   16. NAVIGASI BAWAH (HP / tablet)
   --------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    html body .nav {
        background: rgba(255, 255, 255, .88) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid var(--ap-hairline) !important;
        box-shadow: none !important;
    }

    html body .nav .nav-item {
        background: transparent !important;
        color: #8E8E93 !important;
        box-shadow: none !important;
    }

    html body .nav .nav-item.active {
        background: transparent !important;
        color: var(--text) !important;
    }

    html body .nav .nav-item.active .icon {
        stroke-width: 2;
    }

    html body .nav .nav-item.nav-whatsapp .nav-wa-icon {
        color: var(--ap-wa) !important;
    }

    html body .nav .nav-item.nav-nuki .icon-mic {
        color: #FFFFFF !important;
    }

    html body .more-sheet {
        background: rgba(255, 255, 255, .96) !important;
        border: 1px solid var(--ap-hairline) !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 48px rgba(0, 0, 0, .14) !important;
    }

    html body .topbar-brand strong {
        color: var(--text) !important;
    }
}

/* ---------------------------------------------------------------------
   17. GERAK HALUS
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    html body .page:not(.hide-page) {
        animation: ap-fade .28s var(--ap-ease);
    }
}

@keyframes ap-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   18. PENYESUAIAN KHUSUS
   --------------------------------------------------------------------- */

/* Ikon WhatsApp: SVG hijau di desktop dan HP (lingkaran "WA" hitam lama disembunyikan) */
html body .nav-items > .nav-whatsapp::before {
    content: none !important;
    display: none !important;
}

html body .nav-items > .nav-whatsapp .nav-wa-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: none;
    color: var(--ap-wa) !important;
}

html body .nav-items > .nav-whatsapp .nav-wa-icon path:first-child {
    fill: none !important;
    stroke: var(--ap-wa) !important;
    stroke-width: 1.8 !important;
}

html body .nav-items > .nav-whatsapp .nav-wa-icon path:last-child {
    fill: var(--ap-wa) !important;
    stroke: none !important;
}

@media (max-width: 1023.98px) {
    html body .nav-items > .nav-whatsapp .nav-wa-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    html body .nav-items > .nav-whatsapp > span:not(.nav-icon) {
        color: inherit !important;
    }

    html body .nav-items > .nav-whatsapp.active > span:not(.nav-icon) {
        color: var(--text) !important;
    }
}

/* Judul grup pesanan: "Pesanan baru" (teks asli dari app.js tidak diubah) */
html body #orders-list .order-section-title strong {
    display: inline-block;
    text-transform: lowercase !important;
}

html body #orders-list .order-section-title strong::first-letter {
    text-transform: uppercase;
}

/* Tombol aksi di tabel pesanan dibuat ringkas agar muat */
html body #orders-list .order-edit-btn,
html body #orders-list .order-delete-btn,
html body #orders-list .order-finish-btn,
html body #orders-list .order-cancel-btn {
    padding: 4px 10px !important;
    margin-right: 4px !important;
    font-size: 12px !important;
}

/* Sel tabel transparan agar garis pemisah baris utuh */
html body .dashboard-orders-table td,
html body .dashboard-orders-table th {
    background-color: transparent !important;
}

html body .dashboard-orders-table thead th {
    background-color: #FFFFFF !important;
}

/* Sel aksi di tabel Dashboard: style.css menjadikannya flex sehingga garis baris terputus */
html body #page-home .dashboard-orders-table td.dashboard-order-actions {
    display: table-cell !important;
    white-space: nowrap !important;
}

html body #page-home .dashboard-order-actions .dashboard-action-btn {
    margin-right: 6px;
}

/* ---------------------------------------------------------------------
   15. MONITOR MINI WHATSAPP (W2) - static/w2_monitor.js
   Di bawah modal (10050), gerbang login (99999),
   dan bottom navigation HP (9999).
   --------------------------------------------------------------------- */
.w2-mini {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9000;
    width: 360px;
    max-width: calc(100vw - 32px);
    font-family: var(--font);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.w2-mini[hidden],
body.w1-auth-locked .w2-mini {
    display: none !important;
}

.w2-mini > * {
    pointer-events: auto;
}

.w2-mini button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.w2-mini button:focus-visible {
    outline: 3px solid rgba(0, 113, 227, .45);
    outline-offset: 2px;
}

/* Pil (bentuk ciut) */
.w2-mini-pill {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform .2s var(--ap-ease), box-shadow .2s var(--ap-ease);
}

.w2-mini-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

.w2-mini:not(.is-collapsed) .w2-mini-pill {
    display: none;
}

.w2-mini-wa-icon {
    width: 22px;
    height: 22px;
    background: var(--ap-wa);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.w2-mini-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-pill);
    background: #FF3B30;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.w2-mini-badge[hidden] {
    display: none;
}

.w2-mini.has-pending.is-collapsed .w2-mini-pill {
    animation: w2-mini-breathe 2.4s var(--ap-ease) infinite;
}

/* Panel */
.w2-mini-panel {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: min(520px, calc(100vh - 120px));
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .04);
    overflow: hidden;
    animation: w2-mini-in .28s var(--ap-ease);
}

.w2-mini.is-collapsed .w2-mini-panel {
    display: none;
}

.w2-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px 18px;
}

.w2-mini-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.022em;
    color: var(--text);
}

.w2-mini-count {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.w2-mini.has-pending .w2-mini-count {
    color: #C7362F;
    font-weight: 600;
}

.w2-mini-actions {
    display: flex;
    gap: 6px;
}

.w2-mini-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(118, 118, 128, .12);
    display: grid;
    place-items: center;
    transition: background .15s var(--ap-ease);
}

.w2-mini-icon-btn:hover {
    background: rgba(118, 118, 128, .2);
}

.w2-mini-icon-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--w2-mini-icon) center / contain no-repeat;
    mask: var(--w2-mini-icon) center / contain no-repeat;
}

.w2-mini-sound {
    color: var(--ap-accent) !important;
    --w2-mini-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5Z' fill='black'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
}

.w2-mini-sound.is-off {
    color: var(--muted) !important;
    --w2-mini-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5Z' fill='black'/%3E%3Cpath d='m16 9 6 6'/%3E%3Cpath d='m22 9-6 6'/%3E%3C/svg%3E");
}

.w2-mini-collapse {
    color: var(--muted) !important;
    --w2-mini-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.w2-mini-notice {
    margin: 0 12px 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--baru-bg);
    color: var(--baru);
    font-size: 13px;
    line-height: 1.35;
}

.w2-mini-notice[data-tone="warn"] {
    background: var(--proses-bg);
    color: var(--proses);
}

.w2-mini-notice[hidden] {
    display: none;
}

.w2-mini-list {
    list-style: none;
    margin: 0;
    padding: 0 8px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
}

.w2-mini.is-stale .w2-mini-list {
    opacity: .55;
}

.w2-mini-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    text-align: left;
    transition: background .15s var(--ap-ease);
}

.w2-mini-row:hover {
    background: rgba(118, 118, 128, .08);
}

.w2-mini-item + .w2-mini-item {
    border-top: 1px solid var(--ap-hairline);
}

.w2-mini-item.is-new .w2-mini-row {
    animation: w2-mini-flash 1.6s var(--ap-ease);
}

.w2-mini-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #AEAEB2;
}

.w2-mini-item.is-unread .w2-mini-dot {
    background: #FF3B30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, .16);
}

.w2-mini-item.is-read .w2-mini-dot {
    background: #FFCC00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .2);
}

.w2-mini-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.w2-mini-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.w2-mini-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.w2-mini-time {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.w2-mini-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.35;
    color: #3A3A3C;
}

.w2-mini-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted);
}

.w2-mini-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 16px 26px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.w2-mini-empty-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--selesai-bg);
}

.w2-mini-empty-icon::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: var(--selesai);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.w2-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--ap-hairline);
}

.w2-mini-updated {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.w2-mini-open {
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--ap-accent);
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 600;
}

.w2-mini-open:hover {
    background: #0077ED;
}

@keyframes w2-mini-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes w2-mini-flash {
    0%, 40% { background: rgba(0, 113, 227, .12); }
    100% { background: transparent; }
}

@keyframes w2-mini-breathe {
    0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, .14); }
    50% { box-shadow: 0 8px 28px rgba(0, 0, 0, .14), 0 0 0 6px rgba(255, 59, 48, .14); }
}

@media (prefers-reduced-motion: reduce) {
    .w2-mini-panel,
    .w2-mini-item.is-new .w2-mini-row,
    .w2-mini.has-pending.is-collapsed .w2-mini-pill {
        animation: none;
    }
}

@media (max-width: 1023.98px) {
    .w2-mini {
        right: 16px;
        /* +24px: memberi jarak dari tombol mikrofon NUKI yang menonjol di atas nav */
        bottom: calc(76px + env(safe-area-inset-bottom, 0px) + 24px);
    }

    .w2-mini-panel {
        max-height: min(440px, calc(100vh - 220px));
    }
}
