/* PRONTT V1 — custom design system (lihat V1_CSS_NOTES.md utk histori/alasan) */

body {
    background-color: #efeff4 !important;
    background: #efeff4 !important;
}

/* Matikan efek "bounce"/overscroll-glow WebView Android saat narik melewati
   ujung konten (beda dari fix .wrapper height:auto di bawah — itu benerin
   SCROLL BERLEBIH yg genuine/ada overflow-nya; ini matikan efek elastis
   native WebView yg tetap muncul walau konten PAS/tidak overflow sama
   sekali). Lihat V1_CSS_NOTES.md bagian "scroll tidak perlu di mobile". */
html, body {
    overscroll-behavior-y: none;
}

/* Pembayaran Finnet/Finpay — tombol "Lanjutkan Pembayaran via Finpay" link
   (same-tab, <a> biasa) ke halaman KITA SENDIRI (Samsat::finpay_bayar()),
   yang baru di DALAM halaman itu nge-iframe URL Finpay. BUKAN target="_blank"
   /window.open() atau redirect server-side langsung ke domain luar — WebView
   wrapper APK tidak menangani itu dgn aman (force close). Dipakai di
   samsat/bg_finpay_bayar.php. */
.v1finnet-frame-wrap { margin: 10px 0 14px; border: 1px solid #e7eef4; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(16,36,58,.06); }
.v1finnet-frame { width: 100%; height: 70vh; border: 0; display: block; background: #fff; }

/* Tabbar bawah */
.menubar-sticky {
    background-color: #fff !important;
    background: #fff !important;
    border-top: 1px solid #e7eef4 !important;
    box-shadow: 0 -4px 16px rgba(16,36,58,.05);
    border-radius: 0 !important;
}
.v1tab-row {
    display: flex; padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px));
}
.v1tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-decoration: none; color: #7489a0; font-weight: 600; font-size: 11px;
    padding: 4px 2px; cursor: pointer;
}
.v1tab:hover, .v1tab:active, .v1tab:focus { text-decoration: none; color: #7489a0; }
.v1tab .ti { width: 28px; height: 28px; fill: none; stroke: #9fb1c4; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.v1tab.active { color: #0f6fc0; }
.v1tab.active:hover, .v1tab.active:focus { color: #0f6fc0; }
.v1tab.active .ti { stroke: #0f6fc0; fill: rgba(0,153,221,.14); }

/* Segmented control (toggle Samsat/Retribusi dkk) */
.v1seg { display: flex; gap: 4px; padding: 4px; background: #e6edf4; border-radius: 14px; margin: 0 0 14px; }
.v1seg-btn {
    flex: 1; text-align: center; border-radius: 11px; padding: 10px 6px;
    font-size: 12.5px; font-weight: 700; color: #395066; text-decoration: none;
}
.v1seg-btn:hover, .v1seg-btn:focus { text-decoration: none; color: #395066; }
.v1seg-btn.on { background: #fff; color: #006b9f; box-shadow: 0 2px 8px rgba(16,36,58,.1); }

/* Welcome/splash — background gambar full layar */
.v1-welcome-bg { position: fixed; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Kartu list riwayat transaksi (samsat/retribusi) */
.v1trx { display: flex; align-items: center; gap: 13px; padding: 14px; background: #fff; border-radius: 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(16,36,58,.07); text-decoration: none; }
.v1trx:last-child { margin-bottom: 0; }
.v1trx:hover, .v1trx:focus { text-decoration: none; }
.v1trx-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; align-items: center; justify-content: center; flex-shrink: 0; }
.v1trx-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v1trx-ic.green { background: #e3f6ec; color: #17a567; }
.v1trx-ic.red   { background: #fde3e3; color: #c23b3b; }
.v1trx-ic.gray  { background: #eceef1; color: #74899f; }
.v1trx-ic.blue  { background: #e0f4fc; color: #0099dd; }
.v1trx-m { flex: 1 1 0%; min-width: 0; }
.v1trx-tt { font-size: 13.5px; font-weight: 700; color: #10243a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v1trx-ts { font-size: 11.5px; color: #7489a0; margin-top: 2px; }
.v1trx-r { text-align: right; flex-shrink: 0; margin-left: 8px; }
.v1trx-amt { font-size: 13.5px; font-weight: 800; color: #10243a; white-space: nowrap; }
.v1trx-st { font-size: 10px; font-weight: 700; display: inline-block; padding: 3px 8px; border-radius: 999px; margin-top: 6px; white-space: nowrap; }
.v1trx-st.paid    { background: #e3f6ec; color: #17a567; }
.v1trx-st.expired { background: #fde3e3; color: #c23b3b; }
.v1trx-st.default { background: #eceef1; color: #51657a; }

/* Kartu "billcard" — detail riwayat/tagihan (samsat & retribusi detail_riwayat) */
.v1bill-card { background: #fff; border: 1px solid #e7eef4; border-radius: 16px; padding: 4px 14px; box-shadow: 0 2px 10px rgba(16,36,58,.06); margin-bottom: 14px; }
.v1bill-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #e7eef4; }
.v1bill-row:last-child { border-bottom: none; }
.v1bill-row.big .v1bill-num { font-size: 16px; font-weight: 800; color: #006b9f; }
.v1bill-k { flex-shrink: 0; font-size: 10.5px; font-weight: 700; color: #7489a0; text-transform: uppercase; letter-spacing: .02em; padding-top: 2px; }
.v1bill-v { display: flex; align-items: center; gap: 7px; font-size: 13px; text-align: right; justify-content: flex-end; }
.v1bill-num { font-size: 13px; font-weight: 600; color: #10243a; word-break: break-word; }
.v1bill-copy { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #e7eef4; border-radius: 7px; background: #fff; color: #7489a0; cursor: pointer; padding: 0; }
.v1bill-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v1bill-chip { font-size: 10.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.v1bill-chip.paid    { background: #e3f6ec; color: #17a567; }
.v1bill-chip.expired { background: #fde3e3; color: #c23b3b; }
.v1bill-chip.pending { background: #fde8c2; color: #8a5a05; }
.v1bill-chip.default { background: #eceef1; color: #51657a; }
.v1bill-wajib { background: #e0f4fc; border: 1px solid #c0e9f7; border-radius: 16px; padding: 14px 16px 10px; margin-bottom: 14px; }
.v1bill-wajib-title { font-size: 11px; font-weight: 800; color: #006b9f; margin-bottom: 9px; }
.v1bill-wajib ol { padding-left: 17px; margin: 0 0 6px; font-size: 12.5px; color: #10243a; line-height: 1.5; }
.v1bill-wajib p { font-size: 12.5px; color: #10243a; line-height: 1.5; margin: 0 0 6px; }
.v1bill-cta { display: block; width: 100%; text-align: center; padding: 15px; border-radius: 15px; border: none; font-weight: 700; font-size: 14.5px; color: #fff; background: linear-gradient(120deg,#0f6fc0 0%,#0099DD 60%,#33cae5 100%); text-decoration: none; margin-bottom: 10px; }
.v1bill-cta:hover, .v1bill-cta:focus { color: #fff; text-decoration: none; }
.v1bill-cta.secondary { background: #eceef1; color: #395066; }
.v1bill-cta.secondary:hover, .v1bill-cta.secondary:focus { color: #395066; }

/* Toggle show/hide password */
.v1-pwd-wrap { position: relative; }
.v1-pwd-wrap input { padding-right: 42px !important; }
.v1-pwd-toggle {
    position: absolute; right: 10px; top: 0; bottom: 0;
    display: flex; align-items: center; cursor: pointer; color: #9fb1c4;
}
.v1-pwd-toggle svg { width: 20px; height: 20px; }
.v1-pwd-toggle:hover { color: #7489a0; }

/* Judul halaman (.card-title) — gradient-text biru->ungu, berlaku global */
.card-title {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 800; letter-spacing: -.3px;
    color: #0b4f96;
    background-image: linear-gradient(90deg, #0b4f96, #0099DD 60%, #7c5ce0);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Wrapper konten utama — hapus double-padding thdp .content-wrapper */
.col-12.align-items-center.justify-content-center {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Top header bar (brand box + lambang) — halaman "level atas" */
.v1hdr-bar {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(120deg,#0b4f96 0%,#0f6fc0 45%,#0099DD 80%,#33CAE5 100%);
    border-bottom: 3px solid #f6a723;
    box-shadow: 0 6px 18px rgba(11,79,150,.22);
}
.v1hdr-brand-box {
    flex: 1 1 auto; min-width: 0; min-height: 40px;
    display: flex; align-items: center;
}
.v1hdr-brand-box img { display: block; max-width: 100%; max-height: 46px; }
.v1hdr-brand-name {
    font-family: 'Montserrat', 'Segoe UI', sans-serif; font-weight: 900; font-size: 24px;
    line-height: 1; letter-spacing: -.6px; color: #fff;
}
.v1hdr-brand-name span { color: #ffd54a; }
.v1hdr-brand-tag {
    margin-top: 5px; font-size: 10px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: rgba(255,255,255,.82);
}
.v1hdr-emblem {
    width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain;
    background: #fff; border-radius: 50%; padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* Appbar halaman non-dashboard — tombol back + judul + sub-judul */
.v1hdr-appbar {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px;
    background: linear-gradient(120deg,#0b4f96 0%,#0f6fc0 45%,#0099DD 80%,#33CAE5 100%);
    border-bottom: 3px solid #f6a723;
    box-shadow: 0 6px 18px rgba(11,79,150,.22);
}
.v1hdr-back {
    width: 38px; height: 38px; border-radius: 12px; border: none;
    background: rgba(255,255,255,.18); color: #fff;
    display: grid; place-items: center; cursor: pointer; flex: 0 0 38px;
    text-decoration: none;
}
.v1hdr-back:hover, .v1hdr-back:focus { background: rgba(255,255,255,.3); color: #fff; text-decoration: none; }
.v1hdr-back svg { width: 20px; height: 20px; }
.v1hdr-appbar-text { min-width: 0; flex: 1 1 auto; }
.v1hdr-appbar-text h1 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: 19px; font-weight: 800;
    letter-spacing: -.2px; margin: 0; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v1hdr-appbar-sub {
    font-size: 12px; color: rgba(255,255,255,.78); font-weight: 500; margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Profil akun (prontt/account) */
.v1acc-profile {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(130deg,#0b4f96 0%,#0f6fc0 40%,#0099DD 75%,#2bc0d9 100%);
    border-radius: 22px; padding: 16px; box-shadow: 0 10px 24px rgba(21,114,199,.25);
    margin-bottom: 18px;
}
.v1acc-avatar {
    width: 48px; height: 48px; border-radius: 14px; flex: 0 0 48px;
    display: grid; place-items: center; font-size: 16px; font-weight: 800;
    color: #5a3c05; background: linear-gradient(135deg,#ffd54a,#f6a723);
}
.v1acc-name { font-size: 17px; font-weight: 800; color: #fff; }
.v1acc-role { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 3px; }
.v1acc-section-label { font-size: 12px; font-weight: 700; color: #395066; text-transform: uppercase; letter-spacing: .7px; margin: 0 0 8px; }
.v1acc-menu { background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(16,36,58,.06); margin-bottom: 18px; overflow: hidden; }
.v1acc-item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; text-decoration: none; cursor: pointer; }
.v1acc-item:hover, .v1acc-item:focus { text-decoration: none; }
.v1acc-ic { width: 46px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 46px; color: #fff; background: linear-gradient(135deg,#f6a723,#f08a24); }
.v1acc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v1acc-t { flex: 1 1 0%; font-size: 14px; font-weight: 600; color: #10243a; }
.v1acc-ch { color: #9fb1c4; flex: 0 0 auto; }
.v1acc-ch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.v1acc-logout {
    display: block; width: 100%; text-align: center; padding: 14px; border-radius: 15px;
    background: #fff; color: #e5484d; font-weight: 700; border: 1px solid #f5c2c4;
    cursor: pointer;
}

/* Status Orderan (samsat/retribusi pesanan) — kartu putih generik pembungkus
   progress-tracker + pesan status per order (beda dari .v1bill-card yg
   diasumsikan isinya baris label/value). */
.v1order-card { background: #fff; border: 1px solid #e7eef4; border-radius: 16px; padding: 18px 16px; box-shadow: 0 2px 10px rgba(16,36,58,.06); margin-bottom: 14px; }
.progress-tracker { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; margin: 0 0 18px; }
.progress-tracker::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 4px; background-color: #e7eef4; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; flex: 1; }
.step .circle { width: 16px; height: 16px; border-radius: 50%; margin: 0 auto 6px auto; background-color: #e7eef4; border: 2px solid #e7eef4; }
.step.done .circle { background-color: #1CBCD8; border-color: #1CBCD8; }
.step.active .circle { background-color: #0099DD; border-color: #0099DD; }
.step-label { font-size: 12.5px; color: #7489a0; }
.step-label.active { font-weight: 700; color: #0099DD; }

/* Wrapper konten utama — override height:100vh bawaan tema (app.css, tanpa
   media query, berlaku di SEMUA lebar layar) + clearfix utk .main-panel yg
   float:right. Lihat V1_CSS_NOTES.md bagian "scroll tidak perlu di mobile". */
.wrapper {
    height: auto !important;
}
.wrapper::after {
    content: "";
    display: block;
    clear: both;
}

/* Desktop "device mockup" stage */
.stage { width: 100%; }
.screen-wrap { width: 100%; }
@media (min-width: 561px) {
    body { background-color: #e9eef5 !important; }
    .stage {
        display: flex; align-items: center; justify-content: center;
        min-height: 100vh; padding: 20px;
    }
    .screen-wrap {
        position: relative;
        max-width: 390px;
        height: min(844px, calc(100vh - 40px));
        overflow: hidden;
        background-color: #efeff4;
        border-radius: 34px;
        box-shadow: 0 30px 70px rgba(16,36,58,.22), 0 0 0 1px rgba(16,36,58,.06);
        transform: translateZ(0);
    }
    #mobile, .menubar {
        width: 100% !important;
    }
    #mobile {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }
}
