:root, html[data-theme="biru"] {
    --navy: #142b4a;
    --blue: #2463eb;
    --blue-hover: #174bbd;
    --ink: #192b45;
    --muted: #718096;
    --line: #e8edf4;
    --page: #f5f7fb;
    --surface: #fff;
    --sidebar-bg: #fff;
    --chip: #f6f8fc;
    --nav: #52627a;
    --nav-hover-bg: #edf3ff;
    --nav-hover: #2058c5;
    --brand-bg: #eaf0ff;
    --avatar-bg: #dbe7ff;
    --avatar: #2456b8;
    --banner: linear-gradient(110deg,#1c3f68,#235a96);
    --btn: #2463eb;
    --btn-hover: #174fc9;
    --topbar: rgba(255,255,255,.94);
    --sidebar: 252px;
    --header-h: 74px;
}
html[data-theme="hijau"] {
    --navy: #0d3b2e; --blue: #0f9f6e; --blue-hover: #0b7d56; --btn: #0f9f6e; --btn-hover: #0b7d56;
    --brand-bg: #e5f7ef; --nav-hover-bg: #e7f6ef; --nav-hover: #0b7d56; --avatar-bg: #d7f3e6; --avatar: #0b7d56;
    --banner: linear-gradient(110deg,#0d5c45,#14956a);
}
html[data-theme="teal"] {
    --navy: #0e3a42; --blue: #0f8f9b; --blue-hover: #0c717b; --btn: #0f8f9b; --btn-hover: #0c717b;
    --brand-bg: #e4f6f7; --nav-hover-bg: #e5f5f6; --nav-hover: #0c717b; --avatar-bg: #d4eef0; --avatar: #0c717b;
    --banner: linear-gradient(110deg,#0e4e56,#128f9c);
}
html[data-theme="ungu"] {
    --navy: #2d2154; --blue: #6d4aff; --blue-hover: #5634e0; --btn: #6d4aff; --btn-hover: #5634e0;
    --brand-bg: #efeaff; --nav-hover-bg: #f1edff; --nav-hover: #5634e0; --avatar-bg: #e6defc; --avatar: #5634e0;
    --banner: linear-gradient(110deg,#3a2778,#6a45e0);
}
html[data-theme="gelap"] {
    --navy: #8eb4ff; --blue: #6ea2ff; --blue-hover: #9cbcff; --ink: #e8eef7; --muted: #9aabbf; --line: #2a384c;
    --page: #0f1724; --surface: #182234; --sidebar-bg: #121b2b; --chip: #1c2940; --nav: #c5d0de;
    --nav-hover-bg: #243656; --nav-hover: #9cbcff; --brand-bg: #243656; --avatar-bg: #243656; --avatar: #9cbcff;
    --banner: linear-gradient(110deg,#1a3358,#27497a); --btn: #3b82f6; --btn-hover: #2563eb;
    --topbar: rgba(18,27,43,.94); color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #174bbd; }
.app-shell { min-height: 100vh; }
.app-header { height: var(--header-h); position: sticky; top: 0; z-index: 1050; display: flex; align-items: center; gap: 16px; padding: 0 18px 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--btn); }
.header-logo { color: inherit; min-width: 0; }
.header-logo:hover { color: inherit; }
.patra-logo { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; flex: 0 0 auto; display: block; object-fit: contain; }
.patra-word { min-width: 0; }
.patra-word strong { display: block; font-size: 18px; line-height: 1; letter-spacing: .06em; font-weight: 800; }
.about-panel { text-align: center; }
.about-logo { width: min(180px, 60%); height: auto; display: block; margin: 0 auto 8px; }
.about-copy { text-align: left; margin-top: 14px; }
.about-copy p { margin: 0 0 12px; font-size: 14px; font-weight: 550; line-height: 1.65; }
.about-copy h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 800; }
.about-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 16px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 800; }
.about-wa:hover { color: #fff; }
.patra-word strong { overflow-wrap: anywhere; }
.patra-word small { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; font-weight: 550; line-height: 1.25; letter-spacing: .01em; overflow-wrap: anywhere; }
.header-page { min-width: 0; padding-left: 16px; border-left: 1px solid var(--line); }
.header-kicker { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.header-page h1 { margin: 2px 0 0; font-size: 18px; line-height: 1.2; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-user { display: flex; align-items: center; gap: 8px; margin-left: 6px; padding: 4px 12px 4px 4px; background: var(--chip); border-radius: 999px; }
.header-user-copy { min-width: 0; }
.header-user-copy strong,.header-user-copy small { display: block; }
.header-user-copy strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.header-user-copy small { color: var(--muted); font-size: 10px; }
.menu-toggle { width: 38px; height: 38px; padding: 0; flex: 0 0 auto; }
.sidebar { width: var(--sidebar); position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 1040; background: var(--sidebar-bg); border-right: 1px solid var(--line); padding: 14px 17px 16px; display: flex; flex-direction: column; }
.avatar { background: var(--avatar-bg); color: var(--avatar); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.avatar-large { width: 66px; height: 66px; font-size: 24px; }
.profile-photo { object-fit: cover; border: 2px solid #e3eaf5; }
.side-nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side-nav > a { color: var(--nav); padding: 10px 12px; border-radius: 9px; font-weight: 550; display: flex; align-items: center; gap: 11px; }
.side-nav > a i { font-size: 17px; width: 20px; text-align: center; }
.side-nav > a:hover,.side-nav > a.active { background: var(--nav-hover-bg); color: var(--nav-hover); }
.side-nav > a.active { font-weight: 700; }
.nav-caption { color: #9aa6b7; font-size: 10px; font-weight: 800; letter-spacing: .09em; padding: 16px 12px 5px; }
.nav-count { background: #ef4444; color: #fff; font-size: 10px; border-radius: 10px; padding: 1px 6px; margin-left: auto; }
.side-logout { color: #7a879a; border-top: 1px solid var(--line); padding: 16px 12px 4px; margin-top: auto; }
.side-logout i { margin-right: 8px; }
.main-area { margin-left: var(--sidebar); min-height: calc(100vh - var(--header-h)); }
.eyebrow { color: #8a97aa; font-weight: 750; font-size: 10px; letter-spacing: .1em; }
.theme-toggle { width: 38px; height: 38px; padding: 0; color: var(--nav); }
.theme-menu { min-width: 180px; padding: 6px; }
.theme-option,.theme-card { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--ink); border-radius: 8px; padding: 8px 10px; text-align: left; }
.theme-option:hover,.theme-card:hover,.theme-option.active,.theme-card.active { background: var(--nav-hover-bg); color: var(--nav-hover); }
.theme-option.active,.theme-card.active { font-weight: 750; }
.theme-swatch { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.theme-swatch-biru { background: #2463eb; } .theme-swatch-hijau { background: #0f9f6e; } .theme-swatch-teal { background: #0f8f9b; } .theme-swatch-ungu { background: #6d4aff; } .theme-swatch-gelap { background: #1c2940; box-shadow: inset 0 0 0 1px #6ea2ff; }
.theme-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-card { width: auto; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; }
.notification-button { color: #65738a; font-size: 19px; position: relative; padding: 8px; }
.notification-button span { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; position: absolute; top: 7px; right: 7px; border: 1px solid #fff; }
.content-area { padding: 29px 36px 50px; max-width: 1180px; margin: 0 auto; }
.welcome-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fff; padding: 26px 30px; background: var(--banner); border-radius: 18px; margin-bottom: 22px; box-shadow: 0 9px 26px rgba(28,63,104,.1); }
.welcome-banner .eyebrow { color: #bdcfea; }
.welcome-banner h2 { margin: 7px 0 5px; font-size: 23px; font-weight: 750; }
.welcome-banner p { margin: 0; color: #d4e0ef; }
.welcome-banner .btn-light { color: #1e4674; font-weight: 650; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px; min-width: 0; display: flex; gap: 12px; align-items: center; box-shadow: 0 2px 8px rgba(24,39,75,.025); }
.stat-icon,.service-icon,.list-symbol { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.stat-card span:not(.stat-icon) { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; font-size: 23px; line-height: 1.2; margin-top: 3px; }
a.pegangan-card { color: inherit; text-decoration: none; }
a.pegangan-card.is-active { border-color: var(--blue); }
.stat-card small { display: block; color: #9aa6b7; font-size: 11px; }
.blue { background: #edf3ff; color: #2463eb; }.green { background: #e8f8ef; color: #16804a; }.purple { background: #f1edff; color: #7656d6; }.orange { background: #fff4e7; color: #ce7715; }.red { background: #fff0ed; color: #d84636; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.chart-wrap { height: 230px; position: relative; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 20px; box-shadow: 0 2px 8px rgba(24,39,75,.025); }
.panel h3 { margin: 0; font-size: 15px; font-weight: 750; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.panel-heading p,.section-heading p { color: var(--muted); margin: 4px 0 0; font-size: 12px; }
.panel-heading > a { white-space: nowrap; font-size: 12px; font-weight: 650; }
.compact-list { display: flex; flex-direction: column; }
.compact-row { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f2f6; color: inherit; min-width: 0; }
.compact-row:first-child { border-top: 0; }
.compact-main { flex: 1; min-width: 0; }
.compact-main strong,.compact-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-main strong { color: var(--ink); font-size: 12px; }
.compact-main small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.list-symbol { width: 35px; height: 35px; font-size: 15px; border-radius: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 2px 0 18px; }
.section-heading h2 { margin: 0; font-size: 21px; font-weight: 760; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.layanan-groups { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.layanan-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.layanan-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.layanan-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.layanan-item:hover { color: var(--ink); background: var(--chip); border-color: var(--blue); }
.layanan-copy { flex: 1; min-width: 0; }
.layanan-copy strong,.layanan-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layanan-copy strong { font-size: 13px; }
.layanan-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.layanan-item > .bi-chevron-right { color: #a3afbf; flex: 0 0 auto; }
.layanan-darurat { border-color: #fecaca; background: #fff8f7; }
.layanan-darurat:hover { border-color: #ef4444; background: #fff1ef; }
.service-card { padding: 10px 6px 8px; min-height: 0; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 6px; position: relative; transition: transform .15s,box-shadow .15s; }
.service-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,52,88,.08); }
.service-card .service-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 26px; }
.service-card strong { font-size: 11px; line-height: 1.25; }
.service-arrow { display: none; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 155px; gap: 6px; color: #8491a4; text-align: center; padding: 20px; }
.empty-state strong { color: #52627a; font-size: 13px; }.empty-state > span:last-child { font-size: 12px; }
.empty-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #f0f4fa; color: #72829b; font-size: 18px; margin-bottom: 4px; }
.filter-row { display: flex; gap: 9px; margin-bottom: 15px; }.filter-row .form-control { max-width: 370px; }.filter-row .form-select { max-width: 175px; }
.table { --bs-table-bg: transparent; font-size: 12px; margin-bottom: 0; }.table > :not(caption) > * > * { padding: 12px 10px; border-bottom-color: #edf0f5; }.table thead th { color: #8b97a9; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }.table td { color: #3d4d64; }
.table td small { font-size: 10px; }.table .badge { font-size: 10px; font-weight: 650; }.form-label { font-weight: 650; font-size: 12px; color: #46566d; }.form-control,.form-select { border-color: #dfe5ee; border-radius: 8px; font-size: 13px; padding: 9px 11px; }.form-control:focus,.form-select:focus { border-color: #8babf5; box-shadow: 0 0 0 .2rem rgba(36,99,235,.12); }
.btn { border-radius: 8px; font-weight: 650; font-size: 12px; padding: 8px 12px; }.btn-sm { font-size: 11px; padding: 6px 9px; }.btn-primary { --bs-btn-bg: var(--btn); --bs-btn-border-color: var(--btn); --bs-btn-hover-bg: var(--btn-hover); --bs-btn-hover-border-color: var(--btn-hover); --bs-btn-active-bg: var(--btn-hover); --bs-btn-active-border-color: var(--btn-hover); }
.alert { font-size: 13px; border-radius: 10px; }
.info-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 13px; font-size: 11px; }.info-card h3 { font-size: 16px; margin-bottom: 9px; }.info-copy { color: #4b5b72; font-size: 13px; line-height: 1.75; white-space: normal; }
.info-card .panel-heading { margin-bottom: 0; }.inline-review { display: flex; gap: 5px; flex-wrap: wrap; }.inline-review .form-control,.inline-review .form-select { min-width: 0; flex: 1; }.review-form,.payment-form,.payment-cancel-form { min-width: 0; }
.bill-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bill-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--page); min-width: 0; }
.bill-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bill-card-top > div { min-width: 0; }
.bill-card-top strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.bill-card-top small,.bill-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.bill-card-top .badge { flex: 0 0 auto; }
.bill-amount { margin: 8px 0; font-size: 18px; font-weight: 760; }
.bill-card form { display: grid; gap: 8px; margin-top: 10px; }
.bill-actions { display: flex; gap: 8px; }
.bill-actions .btn { flex: 1; }
.bill-card > .btn { width: 100%; }
.permit-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
.permit-card { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.permit-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.permit-top > div { min-width: 0; }
.permit-top strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.permit-top small, .permit-meta, .permit-note { display: block; color: var(--muted); font-size: 12px; margin: 4px 0 0; overflow-wrap: anywhere; }
.permit-top .badge { flex: 0 0 auto; }
.permit-copy { margin: 8px 0 0; color: #3d4d64; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.permit-review { display: grid; gap: 8px; margin-top: 12px; }
.permit-review .btn { justify-self: start; }
html[data-theme="gelap"] .permit-copy { color: var(--ink); }
.gang-list { display: flex; flex-direction: column; gap: 8px; }
.gang-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gang-row-main { min-width: 0; }
.gang-row-main strong { display: block; font-size: 14px; }
.gang-row-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.gang-row-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.gang-row-side .btn { width: auto; padding: 4px 10px; font-size: 12px; }
@media (max-width: 640px) {
    .gang-row { align-items: flex-start; }
    .gang-row-side { flex-direction: column; align-items: flex-end; }
}.reply-box { background: #f6f8fc; border-radius: 10px; padding: 12px; margin-top: 12px; font-size: 12px; }.reply-box p { margin: 6px 0 0; white-space: pre-wrap; }
.notification-row { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }.notification-row.unread { border-left: 3px solid var(--blue); }.notification-dot { color: var(--blue); background: #edf3ff; border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; }.notification-copy { flex: 1; min-width: 0; }.notification-copy strong { font-size: 13px; }.notification-copy p { margin: 3px 0; color: #5c6b80; }.notification-copy small { color: var(--muted); }.notification-actions { display: flex; gap: 6px; align-items: center; }
.profile-detail { text-align: center; }.profile-detail h3 { margin-top: 12px; }.profile-detail p { color: var(--muted); }.profile-detail dl { text-align: left; margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 12px; display: grid; grid-template-columns: 110px 1fr; gap: 9px; font-size: 12px; }.profile-detail dt { color: var(--muted); font-weight: 500; }.profile-detail dd { margin: 0; font-weight: 650; }
.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 0%,var(--brand-bg) 0%,transparent 55%),var(--page); }.auth-card { width: min(100%,450px); padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 55px rgba(30,55,91,.08); }.auth-brand { margin-bottom: 22px; }.auth-brand .logo-mark { width: 48px; height: 48px; }.auth-brand .patra-word strong { font-size: 22px; }.auth-card h2 { font-size: 23px; font-weight: 760; margin-bottom: 6px; }.auth-card > p { font-size: 13px; margin-bottom: 22px; }.auth-foot { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-layout:has(.login-screen) { display: block; padding: 0; margin: 0; background: #eef3f9; min-height: 100dvh; }
.login-screen { display: flex; flex-direction: column; min-height: 100dvh; width: 100%; }
.login-aside { position: relative; overflow: hidden; color: #fff; padding: calc(22px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 56px max(20px, env(safe-area-inset-left, 0px)); background: radial-gradient(180px 120px at 100% 0%, rgba(255,255,255,.16), transparent 70%), linear-gradient(165deg,#1e3a8a 0%,#1d4ed8 48%,#3b82f6 100%); }
.login-aside::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; background: rgba(255,255,255,.08); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #fff; }
.login-brand:hover { color: #fff; }
.login-mark { width: 46px; height: 46px; display: block; background: #fff; border-radius: 14px; overflow: hidden; flex: 0 0 auto; box-shadow: 0 8px 18px rgba(15,23,42,.16); }
.login-mark img { width: 46px; height: 46px; object-fit: cover; display: block; }
.login-name strong { display: block; font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: .02em; }
.login-name strong { overflow-wrap: anywhere; }
.login-name small { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.82); font-weight: 600; overflow-wrap: anywhere; }
.login-aside-body { position: relative; z-index: 1; margin-top: 22px; }
.login-aside-body h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; line-height: 1.15; }
.login-aside-body p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.9); }
.login-aside-body p b { font-weight: 800; }
.login-points { display: none; list-style: none; margin: 28px 0 0; padding: 0; }
.login-points li { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.login-points i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); font-size: 18px; flex: 0 0 auto; }
.login-points strong,.login-points small { display: block; }
.login-points strong { font-size: 14px; }
.login-points small { margin-top: 2px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 550; }
.login-art { display: none; }
.login-art svg { width: 100%; height: auto; display: block; }
.login-panel { position: relative; z-index: 2; flex: 1; margin-top: -28px; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -12px 32px rgba(15,23,42,.08); }
.login-card { padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); }
.login-card h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #14233a; }
.login-card > p { margin: 0 0 18px; color: #64748b; font-size: 13px; }
.login-card .form-label { margin-bottom: 6px; color: #334155; }
.login-input { position: relative; margin-bottom: 14px; }
.login-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; pointer-events: none; }
.login-card .form-control { height: 48px; border-radius: 14px; border-color: #e2e8f0; background: #f4f7fb; padding: 12px 14px 12px 42px; color: #14233a; }
.login-card .form-control:focus { background: #fff; border-color: #93b4f8; box-shadow: 0 0 0 .2rem rgba(37,99,235,.12); }
.login-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: #64748b; cursor: pointer; }
.login-input:has(.login-eye) .form-control { padding-right: 44px; }
.login-card .btn { height: 48px; border-radius: 14px; font-weight: 800; font-size: 14px; }
.remember-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 16px; color: #334155; font-size: 13px; font-weight: 700; cursor: pointer; }
.remember-row input { width: 18px; height: 18px; margin: 0; accent-color: #2563eb; }
.login-card .auth-foot { margin-top: 18px; }
@media (min-width: 992px) {
    .login-screen { flex-direction: row; min-height: 100vh; height: 100vh; }
    .login-aside { width: min(52%, 720px); flex: none; min-height: 100vh; padding: 48px 56px 40px; display: flex; flex-direction: column; background: radial-gradient(520px 320px at 110% -10%, rgba(255,255,255,.18), transparent 60%), radial-gradient(420px 280px at -8% 108%, rgba(14,165,233,.38), transparent 62%), linear-gradient(160deg,#1e3a8a 0%,#1d4ed8 46%,#2563eb 100%); }
    .login-aside::before { width: 280px; height: 280px; right: -90px; top: -110px; }
    .login-mark,.login-mark img { width: 54px; height: 54px; }
    .login-name strong { font-size: 24px; }
    .login-aside-body { max-width: 440px; margin-top: 56px; }
    .login-aside-body h2 { font-size: 26px; }
    .login-aside-body p { font-size: 16px; max-width: 380px; }
    .login-points { display: block; max-width: 420px; }
    .login-art { display: block; position: absolute; right: 28px; bottom: 18px; width: min(280px, 42%); pointer-events: none; }
    .login-panel { margin: 0; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 0%, #fff 0%, #eef3f9 58%); padding: 40px 32px; }
    .login-card { width: min(100%, 440px); padding: 36px 34px 28px; background: #fff; border: 1px solid #e6edf5; border-radius: 24px; box-shadow: 0 24px 60px rgba(30,55,91,.08); }
    .login-card h2 { font-size: 28px; }
}
@media (max-width: 380px) {
    .login-aside-body h2 { font-size: 16px; }
    .login-card { padding-left: 16px; padding-right: 16px; }
}
.bottom-nav { display: none; }
@media (max-width: 1199px) { .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.content-area { padding-left: 25px; padding-right: 25px; }.service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(30,50,80,.1); }.sidebar.open { transform: translateX(0); }.main-area { margin-left: 0; }.app-header { padding-right: 14px; }.header-page { display: none; }.content-area { padding: 23px 22px 40px; }.dashboard-columns { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    body { font-size: 13px; }:root { --header-h: 64px; }.app-header { padding-left: 10px; gap: 8px; }.app-header .patra-word small,.header-user-copy { display: none; }.app-header .patra-word strong { font-size: 15px; letter-spacing: .04em; }.app-header .logo-mark { width: 36px; height: 36px; }.header-user { padding-right: 4px; margin-left: 0; }.content-area { padding: 17px 14px calc(85px + env(safe-area-inset-bottom)); }.welcome-banner { padding: 20px 17px; align-items: flex-start; flex-direction: column; gap: 15px; border-radius: 15px; }.welcome-banner h2 { font-size: 19px; }.welcome-banner p { font-size: 12px; }.welcome-banner .btn { align-self: stretch; }.stats-grid { gap: 9px; margin-bottom: 18px; }.stat-card { padding: 12px 10px; gap: 8px; border-radius: 12px; }.stat-icon { width: 35px; height: 35px; font-size: 16px; border-radius: 10px; }.stat-card strong { font-size: 19px; }.stat-card span:not(.stat-icon),.stat-card small { font-size: 10px; }.section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }.section-heading h2 { font-size: 18px; }.service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.service-card { min-height: 0; padding: 8px 4px 7px; }.service-card .service-icon { width: 58px; height: 58px; font-size: 26px; border-radius: 18px; }.service-card strong { font-size: 10px; }.layanan-list { grid-template-columns: 1fr; }.panel { padding: 15px; border-radius: 13px; }.panel-heading { gap: 8px; }.table { min-width: 0; width: 100%; } .content-area,.panel { min-width: 0; max-width: 100%; overflow-x: clip; }.filter-row { flex-wrap: wrap; }.filter-row .form-control { max-width: none; flex: 1 1 100%; }.filter-row .form-select { flex: 1; max-width: none; }.notification-row { align-items: flex-start; }.notification-actions { flex-direction: column; align-items: stretch; }.bottom-nav { display: flex; position: fixed; z-index: 1030; bottom: 0; left: 0; right: 0; padding: 8px 7px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); justify-content: space-around; }.bottom-nav a { color: #8995a7; min-width: 55px; text-align: center; font-size: 9px; display: flex; flex-direction: column; gap: 3px; }.bottom-nav a i { font-size: 18px; }.bottom-nav a.active { color: var(--blue); font-weight: 750; }.auth-card { padding: 25px 21px; }.profile-detail { margin-bottom: 2px; }
}
@media (max-width: 360px) { .stats-grid { grid-template-columns: 1fr 1fr; }.stat-card { padding: 10px 8px; }.stat-icon { width: 31px; height: 31px; } }
@media print { body { background: #fff; }.receipt { margin: 0 auto; box-shadow: none; }button { display: none; } }
html[data-theme="gelap"] .form-control,
html[data-theme="gelap"] .form-select,
html[data-theme="gelap"] .form-control:focus,
html[data-theme="gelap"] .form-select:focus { background: #121b2b; color: var(--ink); border-color: var(--line); }
html[data-theme="gelap"] .login-screen .form-control,
html[data-theme="gelap"] .login-screen .form-control:focus { background: #f4f7fb; color: #14233a; border-color: #e2e8f0; }
html[data-theme="gelap"] .login-card h2,
html[data-theme="gelap"] .login-card .form-label,
html[data-theme="gelap"] .login-screen .remember-row { color: #14233a; }
html[data-theme="gelap"] .form-label,
html[data-theme="gelap"] .table td,
html[data-theme="gelap"] .dropdown-item { color: var(--ink); }
html[data-theme="gelap"] .table > :not(caption) > * > * { border-bottom-color: var(--line); }
html[data-theme="gelap"] .btn-light,
html[data-theme="gelap"] .dropdown-menu { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="gelap"] .dropdown-header { color: var(--muted); }
html[data-theme="gelap"] .bottom-nav { background: rgba(18,27,43,.97); }
html[data-theme="gelap"] .bottom-nav a { color: var(--muted); }
html[data-theme="gelap"] .reply-box,
html[data-theme="gelap"] .empty-icon { background: var(--chip); color: var(--muted); }
html[data-theme="gelap"] .text-secondary { color: var(--muted) !important; }
html[data-theme="gelap"] .layanan-darurat { background: #2a1c1c; border-color: #5c3030; }
html[data-theme="gelap"] .btn-close { filter: invert(1); }
.is-home { background: #e7eef6; }
.is-home .app-header,.is-home .sidebar { display: none; }
.is-home .main-area { margin-left: 0; background: #e7eef6; min-height: 100vh; }
.is-home .content-area { max-width: 430px; margin: 0 auto; padding: 0 16px 108px; background: #f5f8fc; min-height: 100vh; box-shadow: 0 0 40px rgba(23,58,110,.08); }
.home-hero { position: relative; margin: 0 -16px; padding: calc(18px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 86px max(18px, env(safe-area-inset-left, 0px)); color: #fff; overflow: hidden; background: radial-gradient(140px 90px at 92% 72%, rgba(255,255,255,.16), transparent 70%), linear-gradient(165deg,#1d4ed8 0%,#2563eb 46%,#3b82f6 100%); }
.home-hero::before { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.08); }
.home-hero::after { content: ""; position: absolute; width: 260px; height: 140px; right: -30px; bottom: -48px; border-radius: 50%; background: rgba(255,255,255,.08); }
.home-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.home-brand:hover { color: #fff; }
.home-mark { width: 46px; height: 46px; display: block; background: #fff; border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.home-mark img { width: 46px; height: 46px; object-fit: cover; display: block; }
.home-name strong { display: block; font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: .01em; overflow-wrap: anywhere; }
.home-name small { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.82); font-weight: 600; overflow-wrap: anywhere; }
.home-tools { display: flex; align-items: center; gap: 10px; }
.home-bell { position: relative; color: #fff; font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; }
.home-bell span { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; border: 2px solid #2563eb; }
.home-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #1d4ed8; display: grid; place-items: center; font-weight: 800; box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
.home-hero-copy { position: relative; z-index: 2; max-width: 240px; margin-top: 26px; }
.home-hero h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; line-height: 1.15; }
.home-hero p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.92); }
.home-hero p b { font-weight: 800; }
.home-art { position: absolute; z-index: 1; right: -12px; bottom: 42px; width: 200px; pointer-events: none; }
.home-art svg { width: 100%; height: auto; display: block; }
.home-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; background: #fff; border-radius: 22px; padding: 16px 6px 14px; margin: -48px 0 22px; box-shadow: 0 16px 40px rgba(30,74,150,.12); }
.home-stat { text-align: center; min-width: 0; }
.home-stat i { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.tone-blue { background: #e8f1ff; color: #2f6fed; }
.tone-purple { background: #f3e9ff; color: #7c3aed; }
.tone-green { background: #e7f8ef; color: #16a34a; }
.tone-orange { background: #fff3e4; color: #f59e0b; }
.tone-red { background: #ffe8ee; color: #e11d48; }
.home-stat span { display: block; margin-top: 8px; color: #64748b; font-size: 11px; font-weight: 700; line-height: 1.25; }
.home-stat p { margin: 2px 0 0; color: #94a3b8; font-size: 11px; }
.home-stat strong { color: #0f172a; font-size: 18px; font-weight: 800; }
.home-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 6px 2px 14px; min-width: 0; }
.home-section-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: #0f172a; min-width: 0; }
.home-section-head a { font-size: 13px; font-weight: 700; }
.quick-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,4.6rem),1fr)); gap: 0.6rem; margin-bottom: 20px; }
.quick-item { color: #0f172a; text-align: center; min-width: 0; }
.quick-item:hover { color: #0f172a; }
.quick-item span { width: min(3.4rem,100%); aspect-ratio: 1; height: auto; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; }
.quick-item strong { display: block; margin-top: 8px; font-size: 0.72rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.q1 { background: #e7f0ff; color: #2f6fed; }
.q2 { background: #e5f8ef; color: #12b981; }
.q3 { background: #f3e8ff; color: #8b5cf6; }
.q4 { background: #ffe8ee; color: #fb7185; }
.q5 { background: #e8f4ff; color: #38bdf8; }
.home-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; overflow: hidden; min-height: 176px; margin-bottom: 22px; padding: 20px 16px; border-radius: 22px; background: radial-gradient(90px 70px at 88% 20%, rgba(255,255,255,.2), transparent 70%), linear-gradient(115deg,#1d4ed8,#3b82f6 70%); }
.home-banner-copy { position: relative; z-index: 1; max-width: 210px; }
.home-banner-kicker { font-size: 12px; font-weight: 700; }
.home-banner h3 { margin: 4px 0 8px; font-size: 22px; font-weight: 800; line-height: 1.15; }
.home-banner p { margin: 0 0 14px; color: rgba(255,255,255,.92); font-size: 12.5px; line-height: 1.4; }
.home-banner .btn { background: #fff; color: #1d4ed8; border: 0; border-radius: 999px; font-weight: 800; padding: 8px 14px; }
.home-banner-art { position: relative; width: 128px; height: 140px; flex: 0 0 auto; }
.home-banner-art .phone { position: absolute; right: 18px; top: 8px; width: 68px; height: 124px; border-radius: 16px; border: 3px solid #dbeafe; background: linear-gradient(180deg,#eff6ff,#fff); color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 12px 24px rgba(15,23,42,.18); }
.home-banner-art .phone strong { display: block; max-width: 52px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.home-banner-art .bubble { position: absolute; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 16px; box-shadow: 0 6px 14px rgba(15,23,42,.12); }
.home-banner-art .b1 { left: 0; top: 18px; background: #38bdf8; }
.home-banner-art .b2 { right: 0; top: 4px; background: #22c55e; }
.home-banner-art .b3 { left: 8px; bottom: 16px; background: #3b82f6; }
.home-banner-art .b4 { right: 0; bottom: 10px; background: #6366f1; }
.activity-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 14px; margin-bottom: 10px; color: inherit; box-shadow: 0 8px 24px rgba(24,39,75,.05); }
.activity-card:hover { color: inherit; }
.activity-card .list-symbol { width: 42px; height: 42px; border-radius: 50%; background: #e8f1ff; color: #2f6fed; }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy strong,.activity-copy small,.activity-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { font-size: 14px; color: #0f172a; }
.activity-copy small { color: #64748b; margin-top: 2px; font-size: 12px; }
.activity-copy em { color: #94a3b8; font-style: normal; font-size: 12px; margin-top: 2px; }
.activity-go { color: #94a3b8; }
.home-tabbar { display: flex; position: fixed; z-index: 1030; left: 50%; right: auto; transform: translateX(-50%); bottom: 0; width: min(430px,100%); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid #e8eef5; justify-content: space-around; }
.home-tabbar a { position: relative; color: #94a3b8; min-width: 64px; text-align: center; font-size: 11px; font-weight: 700; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.home-tabbar a i { font-size: 20px; }
.home-tabbar a.active { color: #2563eb; }
.home-tabbar a.active::after { content: ""; width: 18px; height: 3px; border-radius: 99px; background: #2563eb; }
.home-tabbar a b { position: absolute; top: -2px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 750; display: grid; place-items: center; }
.bottom-nav a { position: relative; }
.bottom-nav a b { position: absolute; top: -4px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 750; display: grid; place-items: center; }
html[data-theme="gelap"] .is-home,html[data-theme="gelap"] .is-home .main-area,html[data-theme="gelap"] .is-home .content-area { background: var(--page); }
html[data-theme="gelap"] .home-stats,html[data-theme="gelap"] .activity-card,html[data-theme="gelap"] .home-tabbar { background: var(--surface); }
html[data-theme="gelap"] .home-stat span,html[data-theme="gelap"] .home-section-head h2,html[data-theme="gelap"] .home-stat strong,html[data-theme="gelap"] .activity-copy strong,html[data-theme="gelap"] .quick-item { color: var(--ink); }
@media (min-width: 992px) {
    .is-home { background: var(--page); }
    .is-home .app-header { display: flex; }
    .is-home .sidebar { display: flex; }
    .is-home .main-area { margin-left: var(--sidebar); background: var(--page); }
    .is-home .content-area { max-width: 1180px; margin: 0 auto; padding: 24px 28px 48px; background: transparent; box-shadow: none; min-height: 0; }
    .is-home .home-tabbar { display: none; }
    .home-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 18px; padding: 28px 32px; border-radius: 20px; }
    .home-bar { display: none; }
    .home-hero-copy { max-width: 640px; margin-top: 0; flex: 1; }
    .home-hero h2 { font-size: 22px; }
    .home-hero p { font-size: 15px; max-width: 460px; }
    .home-art { position: relative; right: auto; bottom: auto; width: 210px; flex: 0 0 auto; }
    .home-stats { margin: 0 0 22px; padding: 18px 12px; }
    .home-split { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.8fr); gap: 8px 22px; align-items: start; margin-bottom: 8px; }
    .home-activity { grid-column: 2; grid-row: 1 / span 2; }
    .home-split .home-banner-copy { max-width: 420px; }
    .home-split .quick-item span { width: 52px; height: 52px; font-size: 22px; }
    .is-home .service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .is-home .home-services { margin-top: 8px; }
}
@media (min-width: 1200px) {
    .is-home .service-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
.license-fields .form-text, .license-fields small { display: block; margin-top: 4px; }
@media (max-width: 767.98px) {
    .rt-desktop { display: none !important; }
    .license-fields > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    .platform-actions, .bill-card form { margin-bottom: 4px; }
}
@media (max-width: 991.98px) {
    body:has(.app-shell) { background: #e7eef6; }
    .app-shell { background: #e7eef6; }
    .app-shell:not(.is-home) .app-header { max-width: 430px; width: 100%; margin: 0 auto; height: calc(64px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); color: #fff; background: linear-gradient(165deg,#1e3a8a 0%,#1d4ed8 58%,#3b82f6 100%); border: 0; box-shadow: none; }
    .app-shell:not(.is-home) .header-logo,.app-shell:not(.is-home) .header-kicker,.app-shell:not(.is-home) .header-user-copy { display: none; }
    .app-shell:not(.is-home) .header-page { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; padding: 0; border: 0; }
    .app-shell:not(.is-home) .header-page h1 { color: #fff; font-size: 18px; margin: 0; }
    .app-shell:not(.is-home) .menu-toggle,.app-shell:not(.is-home) .theme-toggle { width: 36px; height: 36px; color: #fff; background: transparent; border-color: transparent; }
    .app-shell:not(.is-home) .notification-button { color: #fff; }
    .app-shell:not(.is-home) .notification-button span { border-color: #1d4ed8; }
    .app-shell:not(.is-home) .header-user { background: transparent; padding: 0; margin: 0; }
    .app-shell:not(.is-home) .avatar { background: #fff; color: #1d4ed8; box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
    .app-shell:not(.is-home) .main-area { max-width: 430px; margin-left: auto; margin-right: auto; background: #f5f8fc; min-height: calc(100vh - 64px - env(safe-area-inset-top, 0px)); box-shadow: 0 0 40px rgba(23,58,110,.08); }
    .app-shell:not(.is-home) .content-area { max-width: none; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
    .app-shell:not(.is-home) .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .app-shell:not(.is-home) .section-heading .btn,.app-shell:not(.is-home) .section-heading a.btn { align-self: stretch; text-align: center; }
    .app-shell:not(.is-home) .filter-row { flex-wrap: wrap; }
    .app-shell:not(.is-home) .filter-row .form-control,.app-shell:not(.is-home) .filter-row .form-select { max-width: none; flex: 1 1 100%; }
    .app-shell:not(.is-home) .content-area [class*="col-md-"],.app-shell:not(.is-home) .content-area [class*="col-lg-"],.app-shell:not(.is-home) .content-area [class*="col-xl-"] { flex: 0 0 100%; max-width: 100%; }
    .app-shell:not(.is-home) .panel { border-radius: 16px; }
    .app-shell:not(.is-home) .table-responsive { margin: 0 -4px; }
    .sidebar { top: env(safe-area-inset-top, 0px); z-index: 1060; padding-left: max(17px, env(safe-area-inset-left, 0px)); }
    .app-shell .bottom-nav { display: flex; position: fixed; z-index: 1030; left: 50%; right: auto; transform: translateX(-50%); bottom: 0; width: min(430px,100%); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid #e8eef5; justify-content: space-around; }
    .app-shell .bottom-nav a,.app-shell .bottom-nav .tab-menu { position: relative; color: #94a3b8; min-width: 64px; border: 0; background: transparent; padding: 0; text-align: center; font-size: 11px; font-weight: 700; display: flex; flex-direction: column; gap: 3px; align-items: center; }
    .app-shell .bottom-nav a i,.app-shell .bottom-nav .tab-menu i { font-size: 20px; }
    .app-shell .bottom-nav a.active,.app-shell .bottom-nav .tab-menu:focus-visible { color: #2563eb; }
    .app-shell .bottom-nav a.active::after { content: ""; width: 18px; height: 3px; border-radius: 99px; background: #2563eb; }
}
html[data-theme="gelap"] .app-shell:not(.is-home) .main-area { background: var(--page); }
html[data-theme="gelap"] .app-shell .bottom-nav { background: rgba(18,27,43,.98); }
.surat-types { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.surat-type { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 8px 12px; text-align: center; color: var(--ink); cursor: pointer; }
.surat-type span { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.surat-type strong { display: block; margin-top: 8px; font-size: 12px; line-height: 1.25; font-weight: 800; }
.surat-type.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.surat-row { display: flex; gap: 14px; align-items: flex-start; }
.surat-mark { width: 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.surat-copy { flex: 1; min-width: 0; }
.surat-copy h3 { font-size: 16px; }
.surat-detail { margin: 0 0 10px; color: #3d4d64; line-height: 1.55; }
.surat-note { margin: 0 0 8px; color: var(--muted); }
.resident-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.resume-table { min-width: 980px; }
.resume-table th, .resume-table td { white-space: nowrap; }
.resume-table th:first-child, .resume-table td:first-child { position: sticky; left: 0; min-width: 88px; background: var(--surface); z-index: 1; }
.resume-table th:nth-child(2), .resume-table td:nth-child(2) { position: sticky; left: 88px; min-width: 140px; background: var(--surface); z-index: 1; }
.resume-table thead th { z-index: 2; }
.resume-table thead th:first-child, .resume-table thead th:nth-child(2) { z-index: 3; }
.iuran-mark { color: #94a3b8; font-weight: 700; }
.iuran-mark.is-paid { color: #15803d; }
.house-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 100%; }
.house-card { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.house-card-top { display: flex; align-items: flex-start; gap: 10px; }
.house-card-top .badge { flex: 0 0 auto; margin-top: 2px; }
.house-card-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.house-card-main > div { min-width: 0; }
.house-card-main strong,.house-member strong { display: block; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.house-card-main small,.house-member small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.house-card-meta { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.house-card-meta > span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 9px; border-radius: 999px; background: var(--page); color: var(--muted); font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.house-card-meta i { font-size: 12px; opacity: .85; }
.house-kk-link { color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.house-kk-link:hover { text-decoration: underline; }
.house-card-actions,.house-table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.house-card-actions { padding-top: 2px; }
.house-members { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; font-size: 12px; }
.house-members-table { margin: 0; }
.house-member { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--page); border: 1px solid transparent; }
.house-member-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 180px; }
.house-member-main .resident-photo { width: 36px; height: 36px; }
.house-member-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; min-width: 0; max-width: 100%; }
.stack-actions .cash-cancel-form { flex: 1 1 100%; display: grid; gap: 6px; min-width: 0; }
.iuran-months { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.iuran-months span { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 6px 2px; border-radius: 8px; background: var(--page); text-align: center; }
.iuran-months em { font-style: normal; color: var(--muted); font-size: 10px; }
.permit-card .asset-thumbnail { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; display: block; }
@media (min-width: 640px) { .iuran-months { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (min-width: 900px) { .iuran-months { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (min-width: 1200px) { .iuran-months { grid-template-columns: repeat(12,minmax(0,1fr)); } }
.house-toggle { width: 28px; height: 28px; margin-right: 0; border: 0; border-radius: 8px; background: #e8f1ff; color: #1d4ed8; vertical-align: middle; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.house-toggle i { display: inline-block; transition: transform .15s ease; }
.house-toggle[aria-expanded="true"] i { transform: rotate(90deg); }
.house-table { --bs-table-bg: transparent; margin-bottom: 0; min-width: 720px; }
.house-table > :not(caption) > * > * { vertical-align: middle; }
.house-table thead th { white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 700; border-bottom-width: 1px; }
.house-table-toggle { width: 44px; }
.house-table .resident-photo { width: 38px; height: 38px; }
.house-row td { border-bottom-color: var(--line); }
tr.house-detail > td { background: #f8fafc; padding: 12px 14px; border-bottom-color: var(--line); }
tr.house-detail[hidden] { display: none !important; }
html[data-theme="gelap"] .house-toggle { background: var(--chip); color: var(--ink); }
html[data-theme="gelap"] .house-card-meta > span { background: var(--chip); }
html[data-theme="gelap"] .house-member { background: var(--chip); }
html[data-theme="gelap"] tr.house-detail > td { background: #121b2b; }
.resident-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.resident-photo-empty { display: inline-flex; align-items: center; justify-content: center; background: #e8f1ff; color: #1d4ed8; font-weight: 800; }
@media (min-width: 992px) { .surat-types { grid-template-columns: repeat(6,minmax(0,1fr)); } }
