/*
 * Presendika — tampilan bersama untuk semua panel.
 * Komponen milik Presendika memakai awalan .pd-, penyesuaian Filament memakai class .fi-.
 * Warna utama mengikuti variabel Filament (--primary-*) yang diambil dari logo.
 */

:root {
    --pd-navy: #01377A;
    --pd-blue: #0169B4;
    --pd-teal: #02CDCD;
    --pd-ink: #0F2747;
    --pd-muted: #5A6B80;
    --pd-bg: #F4F7FB;
    --pd-card: #FFFFFF;
    --pd-line: #E2E8F0;
    --pd-line-soft: #EEF2F7;
    --pd-success-bg: #DCF5E8;
    --pd-success: #15803D;
    --pd-radius: 16px;
}

/* ---------- Kerangka panel ---------- */

.fi-body {
    background: var(--pd-bg);
    color: var(--pd-ink);
}

.fi-sidebar,
.fi-topbar > nav,
.fi-topbar {
    background: var(--pd-card);
}

.fi-sidebar {
    border-inline-end: 1px solid var(--pd-line);
}

.fi-sidebar-group-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8193A8;
}

.fi-sidebar-item-btn {
    border-radius: 10px;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: var(--primary-50);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon {
    color: var(--primary-700);
    font-weight: 600;
}

.fi-header-heading {
    letter-spacing: -0.01em;
    color: var(--pd-ink);
}

.fi-section {
    border-radius: var(--pd-radius);
}

/*
 * Tombol warna utama: biru logo dengan teks putih (kontras 5,5:1).
 * Bawaan Filament memilih biru muda dengan teks gelap, sehingga tombol terlihat nonaktif.
 * Pilihan ToggleButtons yang tidak terpilih (aria-pressed="false") tetap memakai gaya bawaan.
 */
button.fi-color-primary.fi-bg-color-400:not([aria-pressed="false"]),
a.fi-color-primary.fi-bg-color-400 {
    background-color: var(--primary-600);
    color: #fff;
}

button.fi-color-primary.fi-bg-color-400:not([aria-pressed="false"]):hover,
a.fi-color-primary.fi-bg-color-400:hover {
    background-color: var(--primary-700);
    color: #fff;
}

/* ---------- Halaman login ---------- */

.fi-simple-layout {
    background:
        radial-gradient(60rem 30rem at 110% -10%, rgba(2, 205, 205, 0.16), transparent 60%),
        radial-gradient(50rem 30rem at -10% 110%, rgba(1, 105, 180, 0.14), transparent 60%),
        var(--pd-bg);
}

.fi-simple-main {
    border-radius: 20px;
    box-shadow: 0 20px 50px -24px rgba(1, 55, 122, 0.35);
}

/* ---------- Tombol, chip, tautan ---------- */

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pd-btn:focus-visible,
.pd-link:focus-visible {
    outline: 3px solid var(--pd-teal);
    outline-offset: 2px;
}

.pd-btn__icon {
    width: 16px;
    height: 16px;
}

.pd-btn--primary {
    background: var(--primary-600);
    color: #fff;
}

.pd-btn--primary:hover {
    background: var(--primary-700);
}

.pd-btn--ghost {
    border: 1px solid #CBD5E1;
    color: var(--pd-ink);
    background: #fff;
}

.pd-btn--ghost:hover {
    background: #F8FAFC;
}

.pd-btn--light {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.pd-btn--light:hover {
    background: rgba(255, 255, 255, 0.24);
}

.pd-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pd-chip--success {
    background: var(--pd-success-bg);
    color: var(--pd-success);
}

.pd-chip--muted {
    color: #94A3B8;
}

.pd-link {
    color: var(--primary-600);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.pd-link:hover {
    text-decoration: underline;
}

button.pd-link { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }

/* ---------- Banner status langganan ---------- */

.pd-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 12px;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 14px;
}

.pd-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 320px;
}

.pd-banner__text strong {
    font-size: 15px;
}

.pd-banner--info {
    background: #EEF6FD;
    border-color: #C9E2F7;
    color: #0B3F73;
}

.pd-banner--warning {
    background: #FFF7E6;
    border-color: #F9DDA6;
    color: #7A4A00;
}

.pd-banner--danger {
    background: #FDEEEE;
    border-color: #F5C2C2;
    color: #8A1C1C;
}

/* ---------- Langkah impor di modal ---------- */

.pd-import-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #EEF6FD;
    border: 1px solid #CFE3F7;
    color: #0B3F73;
    font-size: 14px;
    line-height: 1.55;
}

.pd-import-steps {
    margin: 4px 0 0;
    padding-left: 20px;
    list-style: decimal;
    text-align: left;
    line-height: 1.7;
}

/* ---------- Kartu ---------- */

.pd-card {
    background: var(--pd-card);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    padding: 24px;
}

.pd-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-card__subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--pd-muted);
    max-width: 62ch;
}

/* ---------- Sambutan di Beranda ---------- */

.pd-welcome {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-blue) 62%, #0291B8 100%);
}

.pd-welcome::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--pd-teal);
    opacity: 0.18;
    pointer-events: none;
}

.pd-welcome__main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.pd-welcome__logo {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    padding: 6px;
}

.pd-welcome__logo--initial {
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--pd-navy);
    font-size: 24px;
    font-weight: 800;
}

.pd-welcome__text {
    flex: 1;
    min-width: 200px;
}

.pd-welcome__date {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.pd-welcome__title {
    margin: 2px 0 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.pd-welcome__school {
    margin: 2px 0 0;
    font-size: 15px;
    opacity: 0.9;
}

.pd-welcome__facts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 20px 0 0;
}

.pd-fact {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.pd-fact dt {
    font-size: 12px;
    opacity: 0.75;
}

.pd-fact dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

/* ---------- Langkah persiapan ---------- */

.pd-setup__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.pd-setup__count {
    margin: 0;
    font-size: 14px;
    color: var(--pd-muted);
}

.pd-setup__count strong {
    color: var(--primary-600);
    font-size: 18px;
}

.pd-progress {
    height: 8px;
    margin: 16px 0 8px;
    border-radius: 999px;
    background: #E8EEF6;
    overflow: hidden;
}

.pd-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pd-blue), var(--pd-teal));
    transition: width 0.4s ease;
}

.pd-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    margin: 0 -12px;
    border-top: 1px solid var(--pd-line-soft);
}

.pd-step:first-child {
    border-top: 0;
}

.pd-step--next {
    border-radius: 12px;
    background: #F3F8FE;
    border-top-color: transparent;
}

.pd-step--next + .pd-step {
    border-top-color: transparent;
}

.pd-step__marker {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pd-line-soft);
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
}

.pd-step--next .pd-step__marker {
    background: var(--primary-600);
    color: #fff;
    box-shadow: 0 0 0 4px var(--primary-100);
}

.pd-step--done .pd-step__marker {
    background: var(--pd-success-bg);
    color: var(--pd-success);
}

.pd-step__check {
    width: 18px;
    height: 18px;
}

.pd-step__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--pd-ink);
}

.pd-step--done .pd-step__title {
    color: var(--pd-muted);
}

.pd-step__desc {
    margin: 2px 0 0;
    font-size: 13.5px;
    color: var(--pd-muted);
}

.pd-step--soon .pd-step__body {
    opacity: 0.6;
}

.pd-step__action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* ---------- Input teks bersama ---------- */

.pd-input,
.pd-select {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #fff;
    color: var(--pd-ink);
    font: inherit;
    font-size: 15px;
    height: 44px;
}

.pd-input:focus,
.pd-select:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 0;
    border-color: transparent;
}

.pd-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Scan Gerbang ---------- */

.pd-scan {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-scan__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
}

.pd-scan__result {
    display: flex;
    align-items: center;
    min-height: 280px;
    padding: 28px;
    border-radius: 20px;
    border: 2px solid var(--pd-line);
    background: var(--pd-card);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pd-scan__result--success { background: #E8F7EF; border-color: #8FD6AE; color: #0E5A32; }
.pd-scan__result--warning { background: #FFF5E0; border-color: #F3C46B; color: #7A4A00; }
.pd-scan__result--danger { background: #FDECEC; border-color: #F1A5A5; color: #8A1C1C; }
.pd-scan__result--muted { background: #F1F5F9; border-color: #CBD5E1; color: #334155; }

.pd-scan__hint-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--pd-ink); }
.pd-scan__hint { margin: 4px 0 0; font-size: 15px; color: var(--pd-muted); }

.pd-scan__status {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pd-scan__name {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.pd-scan__class { margin: 4px 0 0; font-size: 18px; font-weight: 600; opacity: 0.85; }
.pd-scan__message { margin: 14px 0 0; font-size: 17px; }

.pd-scan__input {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pd-scan__counter {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--pd-muted);
}

.pd-scan__counter strong { font-size: 28px; color: var(--primary-600); }
.pd-scan__counter small { font-size: 14px; color: var(--pd-muted); font-weight: 500; }

.pd-scan__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.pd-scan__row { display: flex; gap: 8px; }

.pd-scan__camera { display: flex; flex-direction: column; gap: 10px; }
.pd-scan__camera-btn { width: 100%; }
.pd-scan__reader { width: 100%; overflow: hidden; border-radius: 14px; background: #0F172A; }
.pd-scan__error { margin: 0; font-size: 13px; color: #B42318; }

.pd-scan__recent {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.pd-scan__recent li {
    display: grid;
    grid-template-columns: 12px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--pd-line-soft);
    font-size: 14px;
}

.pd-scan__recent li:first-child { border-top: 0; }
.pd-scan__recent-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-scan__recent-class,
.pd-scan__recent-msg { color: var(--pd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-scan__recent-time { font-variant-numeric: tabular-nums; color: var(--pd-muted); }

.pd-scan__dot { width: 10px; height: 10px; border-radius: 50%; background: #94A3B8; }
.pd-scan__dot--success { background: #16A34A; }
.pd-scan__dot--warning { background: #D97706; }
.pd-scan__dot--danger { background: #DC2626; }

/* ---------- Absensi Harian ---------- */

.pd-daily {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-daily__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    padding: 18px 20px;
}

.pd-field {
    flex: 1 1 200px;
    max-width: 280px;
}

.pd-daily__date {
    margin: 0 0 10px auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--pd-ink);
}

.pd-tally {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.pd-tally__item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--pd-line);
    border-top: 4px solid #94A3B8;
    background: var(--pd-card);
}

.pd-tally--spaced { margin-top: 16px; }

.pd-tally__item dt { font-size: 13px; color: var(--pd-muted); }
.pd-tally__item dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pd-ink); }

.pd-tally__item--hadir { border-top-color: #16A34A; }
.pd-tally__item--terlambat { border-top-color: #D97706; }
.pd-tally__item--izin { border-top-color: #7C3AED; }
.pd-tally__item--sakit { border-top-color: #0891B2; }
.pd-tally__item--alfa { border-top-color: #DC2626; }

/* ---------- Rekap Bulanan ---------- */

.pd-field--wide { flex: 0 1 auto; max-width: none; }
.pd-segment { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--pd-line); border-radius: 12px; background: var(--pd-bg); }
.pd-segment button { padding: 9px 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--pd-muted); cursor: pointer; }
.pd-segment button[aria-pressed="true"] { background: var(--pd-card); color: var(--pd-blue); box-shadow: 0 1px 3px rgba(15, 39, 71, .12); }
.pd-segment button:focus-visible { outline: 3px solid var(--pd-teal); outline-offset: 1px; }

.pd-report { padding: 0; overflow: hidden; }
.pd-report__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 20px; border-bottom: 1px solid var(--pd-line); }
.pd-report__head strong { color: var(--pd-ink); }
.pd-report__head span { font-size: 13px; color: var(--pd-muted); }
.pd-report__scroll { overflow-x: auto; }
.pd-report__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.pd-report__table th, .pd-report__table td { padding: 10px 12px; border-bottom: 1px solid var(--pd-line-soft); text-align: center; white-space: nowrap; }
.pd-report__table th { position: sticky; top: 0; background: #F8FAFC; font-size: 12px; font-weight: 700; color: var(--pd-muted); }
.pd-report__table tbody tr:hover td { background: #F8FAFC; }
.pd-report__name { position: sticky; left: 0; z-index: 1; text-align: left !important; background: var(--pd-card); }
th.pd-report__name { z-index: 2; background: #F8FAFC; }
.pd-report__name small { display: block; font-size: 12px; font-weight: 500; color: var(--pd-muted); }
.pd-report__table--matrix th, .pd-report__table--matrix td { padding: 6px 3px; min-width: 30px; font-size: 13px; }
.pd-report__table--matrix .pd-report__name { min-width: 190px; max-width: 240px; padding-left: 16px; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--pd-line); }
.pd-report__table--matrix th small { display: block; font-size: 10px; font-weight: 500; }
.pd-report__closed { background: #EEF2F7 !important; color: #94A3B8; }
.pd-report__total { font-weight: 700; color: var(--pd-ink); background: #FBFCFE; }
.pd-report__table--matrix .pd-report__total { min-width: 36px; }
.pd-report__pct { font-weight: 800; color: var(--pd-ink); }
.pd-report__alert { color: #B42318; font-weight: 700; }
.pd-report__empty { padding: 28px !important; color: var(--pd-muted); }
.pd-code { font-weight: 700; }
.pd-code--H { color: #15803D; }
.pd-code--T { background: #FEF3C7; color: #92400E; }
.pd-code--I { background: #EDE9FE; color: #6D28D9; }
.pd-code--S { background: #DBEAFE; color: #1D4ED8; }
.pd-code--A { background: #FEE2E2; color: #B42318; }
.pd-code--none { color: #94A3B8; font-weight: 500; }

.pd-tally--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-detail { display: grid; gap: 10px; font-size: 14px; color: var(--pd-ink); }
.pd-detail p { margin: 0; }
.pd-detail__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--pd-line); border-radius: 12px; }
.pd-detail__list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--pd-line-soft); }
.pd-detail__list li:first-child { border-top: 0; }
.pd-detail__list .pd-code { padding: 2px 10px; border-radius: 999px; font-size: 12px; }

/* ---------- Profil saya ---------- */

.pd-profile { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--pd-radius); color: #fff; background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-blue) 62%, #0291B8 100%); }
.pd-profile__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .45); font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.pd-profile__body { min-width: 0; }
.pd-profile__name { margin: 0; font-size: 20px; font-weight: 800; }
.pd-profile__meta { margin: 2px 0 0; font-size: 14px; color: #DCEAF8; overflow-wrap: anywhere; }

/* ---------- Langganan ---------- */

.pd-quota { flex: 1 1 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pd-line); font-size: 14px; color: var(--pd-ink); }
.pd-quota p { margin: 0; line-height: 1.55; }
.pd-quota__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pd-quota__pct { font-weight: 800; color: var(--pd-blue); }
.pd-quota__pct--over { color: #B42318; }
.pd-quota__bar { height: 10px; border-radius: 999px; background: var(--pd-line-soft); overflow: hidden; }
.pd-quota__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pd-teal), var(--pd-blue)); }
.pd-quota__bar span.pd-quota__fill--over { background: #DC2626; }
.pd-sub__gets, .pd-plan__gets { margin: 10px 0 0; padding-left: 18px; list-style: disc; font-size: 14px; color: var(--pd-ink); line-height: 1.6; }
.pd-plan__gets { margin-bottom: 14px; }
.pd-quota__period { margin: 0 0 8px !important; color: var(--pd-muted); }
.pd-choice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pd-choice__options button { display: grid; gap: 4px; padding: 16px 18px; text-align: left; border: 2px solid var(--pd-line); border-radius: 14px; background: var(--pd-card); font: inherit; cursor: pointer; }
.pd-choice__options button strong { font-size: 16px; color: var(--pd-ink); }
.pd-choice__options button span { font-size: 13px; color: var(--pd-muted); line-height: 1.5; }
.pd-choice__options button[aria-pressed="true"] { border-color: var(--pd-blue); background: #F4F8FD; box-shadow: 0 0 0 3px rgba(1, 105, 180, .12); }
.pd-choice__options button:focus-visible { outline: 3px solid var(--pd-teal); outline-offset: 2px; }
.pd-summary-box { padding: 4px 2px; text-align: left; }
.pd-summary { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.pd-summary th { width: 42%; padding: 6px 10px 6px 0; font-weight: 500; color: var(--pd-muted); vertical-align: top; }
.pd-summary td { padding: 6px 0; font-weight: 600; color: var(--pd-ink); }
.pd-summary tr + tr th, .pd-summary tr + tr td { border-top: 1px solid #E3ECF6; }
.pd-summary__total th, .pd-summary__total td { padding-top: 10px !important; font-size: 16px; font-weight: 800 !important; color: var(--pd-ink) !important; }
.pd-summary__note { margin: 10px 0 0 !important; font-size: 13px; color: var(--pd-muted); text-align: left; }
.pd-summary__warn { margin: 10px 0 0 !important; padding: 10px 12px; border-radius: 10px; background: #FFF7E6; color: #7A4A00; font-size: 13px; text-align: left; }
@media (max-width: 768px) { .pd-choice__options { grid-template-columns: minmax(0, 1fr); } }
.pd-planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.pd-planner__field .pd-input { max-width: 220px; font-size: 20px; font-weight: 800; }
.pd-planner__hint { margin: 8px 0 0; font-size: 13px; color: var(--pd-muted); line-height: 1.5; }
.pd-planner__calc { padding: 14px 18px; border-radius: 14px; background: #F4F8FD; border: 1px solid #DCE8F5; font-size: 14px; color: var(--pd-ink); }
.pd-planner__calc p { margin: 0 0 6px; line-height: 1.55; }
.pd-planner__quota { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed #C9DAEE; }
@media (max-width: 768px) { .pd-planner { grid-template-columns: minmax(0, 1fr); } }

.pd-sub {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-sub__status {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pd-sub__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8193A8;
}

.pd-sub__state { margin: 2px 0 0; font-size: 24px; font-weight: 800; color: var(--pd-ink); }

.pd-sub__badge { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pd-sub__badge--info { background: #EEF6FD; color: #0B3F73; }
.pd-sub__badge--success { background: var(--pd-success-bg); color: var(--pd-success); }
.pd-sub__badge--warning { background: #FFF7E6; color: #7A4A00; }
.pd-sub__badge--danger { background: #FDEEEE; color: #8A1C1C; }

.pd-sub__invoice { display: flex; flex-direction: column; gap: 18px; border-color: #F3C46B; }

.pd-sub__amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #F3F8FE;
}

.pd-sub__total { margin: 2px 0 0; font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: var(--primary-700); font-variant-numeric: tabular-nums; }
.pd-sub__hint { margin: 4px 0 0; font-size: 13px; color: var(--pd-muted); max-width: 60ch; }

.pd-sub__banks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pd-sub__banks li { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--pd-line); border-radius: 12px; font-size: 14px; }
.pd-sub__banks strong { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pd-sub__bank { font-size: 12px; font-weight: 700; color: #8193A8; text-transform: uppercase; }

.pd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.pd-plan { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pd-plan--featured { border: 2px solid var(--primary-600); }
.pd-plan--note { background: #F8FAFC; }
.pd-plan__ribbon { position: absolute; top: -12px; right: 16px; padding: 3px 12px; border-radius: 999px; background: var(--primary-600); color: #fff; font-size: 12px; font-weight: 700; }
.pd-plan__name { margin: 0; font-size: 16px; font-weight: 700; color: var(--pd-muted); }
.pd-plan__price { margin: 0; font-size: 30px; font-weight: 800; color: var(--pd-ink); font-variant-numeric: tabular-nums; }
.pd-plan__price small { font-size: 14px; font-weight: 500; color: var(--pd-muted); }
.pd-plan__strike { margin: -6px 0 0; font-size: 13px; color: #94A3B8; text-decoration: line-through; }
.pd-plan__desc { margin: 0; font-size: 14px; color: var(--pd-muted); flex-grow: 0; }
.pd-plan .fi-btn { margin-top: auto; }

.pd-table-scroll { overflow-x: auto; margin-top: 12px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-table th, .pd-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--pd-line-soft); white-space: nowrap; }
.pd-table th { font-size: 12px; color: #8193A8; text-transform: uppercase; letter-spacing: 0.05em; }
.pd-num { text-align: right !important; font-variant-numeric: tabular-nums; }

/* ---------- Layar QR guru ---------- */

.pd-qrscreen { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.pd-qrscreen__main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.pd-qrscreen__title { margin: 0; font-size: 26px; font-weight: 800; color: var(--pd-ink); }
.pd-qrscreen__qr { width: min(420px, 100%); aspect-ratio: 1; max-width: 100%; }
.pd-qrscreen__qr svg { width: 100%; height: 100%; }
.pd-qrscreen__bar { width: min(420px, 100%); margin: 4px 0 0; }
.pd-qrscreen__bar span { transition: width 1s linear; }
.pd-qrscreen__hint { margin: 0; color: var(--pd-muted); }
.pd-qrscreen__clock { margin: 0; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary-700); }

/* ---------- HP ---------- */

@media (max-width: 640px) {
    .pd-card,
    .pd-welcome {
        padding: 18px;
    }

    .pd-welcome__title {
        font-size: 20px;
    }

    .pd-welcome__main .pd-btn {
        width: 100%;
    }

    .pd-step {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px 12px;
    }

    .pd-step__action {
        grid-column: 2;
        justify-content: flex-start;
    }

    .pd-scan__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-tally {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pd-tally--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-plans,
    .pd-qrscreen {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-field {
        max-width: none;
    }

    .pd-daily__date {
        margin: 0;
    }

    .pd-scan__result {
        min-height: 180px;
        padding: 20px;
    }

    .pd-scan__recent li {
        grid-template-columns: 12px minmax(0, 1fr) auto;
    }

    .pd-scan__recent-class,
    .pd-scan__recent-msg {
        display: none;
    }
}
