/* APBDes Kecamatan — frontend desa */
.apbdes-login,
.apbdes-dashboard,
.apbdes-notice {
    --apbdes-ink: #1d2b25;
    --apbdes-muted: #65756c;
    --apbdes-primary: #176b4d;
    --apbdes-primary-dark: #10533b;
    --apbdes-border: #dce7df;
    --apbdes-soft: #f4f8f5;
    --apbdes-white: #fff;
    box-sizing: border-box;
    color: var(--apbdes-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.apbdes-dashboard *, .apbdes-login *, .apbdes-notice * { box-sizing: border-box; }
.apbdes-dashboard { max-width: 1120px; margin: 36px auto; padding: 0 20px 36px; font-size: 15px; line-height: 1.6; }
.apbdes-dashboard h2 { margin: 0 0 4px; color: #163a2b; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.apbdes-dashboard > p { color: var(--apbdes-muted); margin: 6px 0 24px; }
.apbdes-dashboard h3 { color: #244a38; font-size: 19px; margin: 26px 0 12px; }
.apbdes-dashboard form { margin: 0; }
.apbdes-dashboard label, .apbdes-login label { color: #35463c; font-weight: 600; }
.apbdes-dashboard input:not([type=checkbox]):not([type=file]), .apbdes-dashboard select,
.apbdes-login input:not([type=checkbox]) { min-height: 42px; max-width: 100%; padding: 9px 12px; border: 1px solid #cbd8cf; border-radius: 7px; background: #fff; color: #1d2b25; font: inherit; }
.apbdes-dashboard input:focus, .apbdes-dashboard select:focus, .apbdes-login input:focus { outline: 3px solid rgb(23 107 77 / 16%); border-color: var(--apbdes-primary); }
.apbdes-dashboard button, .apbdes-login button { min-height: 40px; padding: 9px 16px; border: 0; border-radius: 7px; background: var(--apbdes-primary); color: #fff; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.2; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.apbdes-dashboard button:hover, .apbdes-login button:hover { background: var(--apbdes-primary-dark); transform: translateY(-1px); }
.apbdes-dashboard a, .apbdes-login a { color: var(--apbdes-primary); font-weight: 600; }
.apbdes-dashboard .apbdes-card { margin: 18px 0; padding: 20px; border: 1px solid var(--apbdes-border); border-radius: 12px; background: var(--apbdes-white); box-shadow: 0 4px 16px rgb(25 56 39 / 5%); }
.apbdes-dashboard .apbdes-card > h3:first-child { margin-top: 0; }
.apbdes-dashboard .apbdes-subtitle { margin: 8px 0 24px; }
.apbdes-dashboard .apbdes-progress { height: 12px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: #e6eee8; }
.apbdes-dashboard .apbdes-progress span { display: block; width: var(--apbdes-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #23734f, #55a86e); transition: width .25s ease; }
.apbdes-dashboard .apbdes-lock-notice { margin: 14px 0 22px; padding: 14px 17px; border: 1px solid #c8e2d1; border-radius: 9px; background: #f0faf3; color: #24583a; }
.apbdes-dashboard .apbdes-locked-file { display: inline-block; padding: 7px 10px; border-radius: 6px; background: #edf5ef; color: #45634f; font-size: 13px; font-weight: 650; }
.apbdes-dashboard .apbdes-card strong { color: #254c39; }
.apbdes-dashboard .apbdes-ok { color: #147345; font-weight: 650; }
.apbdes-dashboard .apbdes-error { padding: 12px 15px; border: 1px solid #f1c4c1; border-radius: 8px; background: #fff5f4; color: #9b2720; }
.apbdes-dashboard .apbdes-notice { padding: 12px 15px; border: 1px solid #c8e2d1; border-radius: 8px; background: #f0faf3; color: #24583a; }
.apbdes-dashboard table { width: 100%; margin: 14px 0 24px; overflow: hidden; border: 1px solid var(--apbdes-border); border-collapse: separate; border-spacing: 0; border-radius: 10px; background: #fff; }
.apbdes-dashboard th { padding: 13px 14px; background: #edf5ef; color: #2b4b39; font-size: 13px; font-weight: 700; }
.apbdes-dashboard td { padding: 14px; border-top: 1px solid #e7eee9; vertical-align: top; }
.apbdes-dashboard tbody tr:hover { background: #fbfdfb; }
.apbdes-dashboard input[type=file] { display: block; max-width: 100%; margin: 4px 0; color: #54645a; font-size: 13px; }
.apbdes-dashboard .apbdes-file-name { display: none; margin: 4px 0 7px; color: #176b4d; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.apbdes-dashboard .apbdes-file-name.is-visible { display: block; }
.apbdes-dashboard button:disabled, .apbdes-login button:disabled { opacity: .68; cursor: wait; transform: none; }
.apbdes-dashboard .apbdes-progress span { transform: scaleX(.96); transform-origin: left; }
.apbdes-dashboard .apbdes-progress span.is-visible { transform: scaleX(1); }
.apbdes-dashboard small { color: var(--apbdes-muted); }
.apbdes-dashboard hr { margin: 30px 0 20px; border: 0; border-top: 1px solid var(--apbdes-border); }
.apbdes-login { width: min(100% - 32px, 460px); margin: 50px auto; padding: 30px; border: 1px solid var(--apbdes-border); border-radius: 14px; background: #fff; box-shadow: 0 12px 36px rgb(24 58 39 / 9%); }
.apbdes-login h2 { margin: 0 0 20px; color: #163a2b; font-size: 26px; }
.apbdes-login p { margin: 14px 0; }
.apbdes-login label { display: block; }
.apbdes-login input:not([type=checkbox]) { width: 100%; margin-top: 5px; }
.apbdes-login button { width: 100%; min-height: 46px; }
.apbdes-login .apbdes-error { padding: 11px 13px; border-radius: 7px; background: #fff3f1; color: #9b2720; }
.apbdes-login .apbdes-notice, .apbdes-notice { padding: 14px 16px; border: 1px solid #c8e2d1; border-radius: 8px; background: #f0faf3; color: #24583a; }
@media (max-width: 760px) {
    .apbdes-dashboard { margin: 22px auto; padding: 0 13px 26px; }
    .apbdes-dashboard table { display: block; overflow-x: auto; white-space: normal; }
    .apbdes-dashboard th, .apbdes-dashboard td { min-width: 150px; padding: 11px; }
    .apbdes-login { margin: 26px auto; padding: 22px; }
}

/* Dashboard rekap desa tahun berjalan */
.apbdes-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 26px; padding: 25px 28px; border-radius: 14px; background: linear-gradient(120deg,#124d37,#267650); color: #fff; box-shadow: 0 12px 30px rgb(20 69 45 / 13%); }
.apbdes-page-header h2 { margin: 4px 0 7px; color: #fff; }
.apbdes-page-header .apbdes-subtitle { margin: 0; color: rgb(255 255 255 / 80%); }
.apbdes-page-header .apbdes-subtitle strong { color: #fff; }
.apbdes-eyebrow { display: inline-block; color: #688474; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.apbdes-page-header .apbdes-eyebrow { color: #c9ead2; }
.apbdes-dashboard .apbdes-logout-link { flex: 0 0 auto; padding: 8px 13px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 7px; color: #fff; font-size: 13px; text-decoration: none; }
.apbdes-dashboard .apbdes-logout-link:hover { background: rgb(255 255 255 / 12%); }
.apbdes-dashboard .apbdes-flash { margin: 0 0 18px; }
.apbdes-overview-section, .apbdes-updates-section, .apbdes-detail-section, .apbdes-history-section { margin: 25px 0; }
.apbdes-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.apbdes-section-heading h3 { margin: 3px 0 2px; color: #214c36; font-size: 21px; }
.apbdes-section-heading p { margin: 3px 0 0; color: #738177; font-size: 13px; }
.apbdes-year-chip { padding: 7px 12px; border-radius: 99px; background: #eaf4ed; color: #246344; font-size: 12px; font-weight: 750; }
.apbdes-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.apbdes-overview-card, .apbdes-detail-card { padding: 20px; border: 1px solid #dce8df; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgb(25 56 39 / 5%); }
.apbdes-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.apbdes-type-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #eaf4ed; color: #176b4d; font-size: 18px; font-weight: 800; }
.apbdes-card-heading h4 { margin: 0; color: #1f4733; font-size: 17px; }
.apbdes-card-heading div > span { color: #78867d; font-size: 12px; }
.apbdes-card-status { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.apbdes-card-status.is-muted { background: #eff3f0; color: #64736a; }
.apbdes-card-status.is-review { background: #fff4dc; color: #85600f; }
.apbdes-card-status.is-complete { background: #e9f6ed; color: #1c7140; }
.apbdes-card-hint { min-height: 44px; margin: 9px 0 15px; color: #6e7c73; font-size: 13px; }
.apbdes-card-action { margin-top: 12px !important; }
.apbdes-card-progress-row { display: flex; align-items: baseline; gap: 10px; margin: 13px 0 0; }
.apbdes-card-progress-row strong { color: #176b4d; font-size: 23px; }
.apbdes-card-progress-row span { color: #68796f; font-size: 12px; }
.apbdes-dashboard .apbdes-card-progress { height: 9px; margin: 5px 0 16px; }
.apbdes-card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apbdes-dashboard .apbdes-button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 8px 13px; border-radius: 7px; background: #176b4d; color: #fff; font-size: 13px; text-decoration: none; }
.apbdes-dashboard .apbdes-button-link:hover { background: #10533b; color: #fff; }
.apbdes-dashboard .apbdes-recommendation-link { font-size: 12px; }
.apbdes-dashboard .apbdes-updates-section, .apbdes-dashboard .apbdes-detail-section, .apbdes-dashboard .apbdes-history-section { padding: 20px; border: 1px solid #dce8df; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgb(25 56 39 / 4%); }
.apbdes-responsive-table { width: 100%; overflow-x: auto; border: 1px solid #e0e9e2; border-radius: 9px; }
.apbdes-dashboard .apbdes-update-table, .apbdes-dashboard .apbdes-requirements-table, .apbdes-dashboard .apbdes-history-table { margin: 0; border: 0; border-radius: 0; font-size: 13px; }
.apbdes-dashboard .apbdes-update-table th, .apbdes-dashboard .apbdes-requirements-table th, .apbdes-dashboard .apbdes-history-table th { white-space: nowrap; }
.apbdes-dashboard .apbdes-update-table td, .apbdes-dashboard .apbdes-requirements-table td, .apbdes-dashboard .apbdes-history-table td { border-top: 1px solid #e8eee9; }
.apbdes-dashboard .apbdes-update-table small, .apbdes-dashboard .apbdes-requirements-table td small { display: block; margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; }
.apbdes-verification-badge { display: inline-block; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.apbdes-verification-badge.is-success { background: #e9f6ed; color: #1c7140; }
.apbdes-verification-badge.is-warning { background: #fff2df; color: #925813; }
.apbdes-verification-badge.is-muted { background: #eff3f0; color: #68776e; }
.apbdes-dashboard .apbdes-file-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.apbdes-dashboard .apbdes-file-label { max-width: 230px; color: #7b8980; overflow-wrap: anywhere; }
.apbdes-muted { color: #819087; font-size: 12px; }
.apbdes-dashboard .apbdes-review-note { max-width: 280px; padding: 8px 9px; border-left: 3px solid #e7ad45; border-radius: 4px; background: #fff9ec; color: #75521c; }
.apbdes-empty-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border: 1px dashed #cadbce; border-radius: 10px; background: #f7fbf8; color: #32543e; }
.apbdes-empty-card > span { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e3f2e7; color: #27724f; font-weight: 800; }
.apbdes-empty-card strong { display: block; }
.apbdes-empty-card p { margin: 4px 0 0; color: #6c7b71; font-size: 13px; }
.apbdes-submission-filter { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 16px !important; padding: 14px; border-radius: 9px; background: #f5f9f6; }
.apbdes-submission-filter label { display: grid; gap: 4px; font-size: 12px; }
.apbdes-submission-filter select { min-width: 170px; }
.apbdes-detail-card { margin: 12px 0; }
.apbdes-detail-card > p { margin-top: 0; }
.apbdes-dashboard .apbdes-requirements-table td > .apbdes-verification-badge { margin-top: 8px; }
.apbdes-dashboard .apbdes-requirements-table form { min-width: 210px; }
.apbdes-dashboard .apbdes-requirements-table form button { margin-top: 8px; }
.apbdes-dashboard .apbdes-recommendation-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 0; padding: 17px; border: 1px solid #cae2d1; border-radius: 10px; background: #f2faf4; }
.apbdes-dashboard .apbdes-recommendation-card p { margin: 4px 0 0; color: #65756c; font-size: 12px; }
.apbdes-account-settings { margin: 22px 0; border: 1px solid #dce8df; border-radius: 10px; background: #fff; }
.apbdes-account-settings summary { padding: 14px 17px; color: #2a4b37; font-weight: 700; cursor: pointer; }
.apbdes-account-settings .apbdes-detail-card { margin: 0; border: 0; border-top: 1px solid #e7eee9; border-radius: 0 0 10px 10px; box-shadow: none; }
.apbdes-dashboard .apbdes-history-table td { vertical-align: middle; }
@media (max-width: 760px) {
    .apbdes-page-header { flex-direction: column; padding: 20px; }
    .apbdes-overview-grid { grid-template-columns: 1fr; }
    .apbdes-dashboard .apbdes-updates-section, .apbdes-dashboard .apbdes-detail-section, .apbdes-dashboard .apbdes-history-section { padding: 14px; }
    .apbdes-dashboard .apbdes-recommendation-card { align-items: flex-start; flex-direction: column; }
    .apbdes-submission-filter { align-items: stretch; flex-direction: column; }
    .apbdes-submission-filter label, .apbdes-submission-filter select { width: 100%; }
}

/* Portal UI refresh: login, dashboard, verifier identity */
.apbdes-login-shell { --apbdes-primary:#176b4d; --apbdes-primary-dark:#10533b; position:relative; width:min(100% - 28px,560px); margin:42px auto; padding:12px; border:1px solid #e0ebe3; border-radius:24px; background:radial-gradient(circle at 5% 6%,#dff1e4 0,transparent 30%),radial-gradient(circle at 96% 90%,#e2efe7 0,transparent 34%),#f4f8f5; color:#1d2b25; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.apbdes-login-shell *, .apbdes-login-shell *::before, .apbdes-login-shell *::after { box-sizing:border-box; }
.apbdes-login-shell .apbdes-login { width:100%; margin:0; padding:0; overflow:hidden; border:1px solid #e4ece6; border-radius:18px; background:#fff; box-shadow:0 18px 48px rgb(20 57 38 / 12%); }
.apbdes-login-banner { position:relative; display:flex; min-height:116px; align-items:center; gap:15px; overflow:hidden; padding:22px 28px; background:linear-gradient(120deg,#114c36,#1b704c 62%,#32835a); color:#fff; }
.apbdes-login-banner::after { position:absolute; right:-30px; bottom:-105px; width:250px; height:250px; border:1px solid rgb(255 255 255 / 12%); border-radius:50%; content:""; box-shadow:0 0 0 24px rgb(255 255 255 / 4%),0 0 0 50px rgb(255 255 255 / 3%); }
.apbdes-login-orbit { position:absolute; z-index:0; border:1px solid rgb(255 255 255 / 13%); border-radius:50%; }
.apbdes-orbit-one { top:-50px; right:110px; width:145px; height:145px; }
.apbdes-orbit-two { top:-70px; right:165px; width:190px; height:190px; }
.apbdes-login-brandmark { position:relative; z-index:1; display:grid; width:52px; height:52px; flex:0 0 52px; place-items:center; border:1px solid rgb(255 255 255 / 32%); border-radius:16px; background:rgb(255 255 255 / 13%); color:#fff; font-size:18px; font-weight:850; letter-spacing:-.06em; }
.apbdes-banner-copy { position:relative; z-index:1; display:grid; gap:2px; }
.apbdes-banner-copy strong { color:#fff; font-size:18px; letter-spacing:-.02em; }
.apbdes-banner-copy span { color:rgb(255 255 255 / 76%); font-size:12px; }
.apbdes-login-banner-tag { position:absolute; z-index:1; right:22px; bottom:16px; color:rgb(255 255 255 / 69%); font-size:9px; font-weight:750; letter-spacing:.14em; }
.apbdes-login-card { padding:30px clamp(22px,6vw,42px) 26px; }
.apbdes-login-kicker { display:flex; align-items:center; gap:8px; color:#638071; font-size:10px; font-weight:800; letter-spacing:.12em; }
.apbdes-online-dot { width:7px; height:7px; border-radius:50%; background:#36a66a; box-shadow:0 0 0 4px #e6f5ea; }
.apbdes-login-card h2 { margin:12px 0 6px; color:#173d2b; font-size:30px; font-weight:760; letter-spacing:-.04em; line-height:1.15; }
.apbdes-login-card .apbdes-login-intro { margin:0 0 23px; color:#718077; font-size:13px; line-height:1.6; }
.apbdes-login-card .apbdes-notice, .apbdes-login-card .apbdes-error { display:grid; gap:3px; margin:12px 0; padding:11px 13px; border-radius:9px; font-size:12px; }
.apbdes-login-card .apbdes-notice { border:1px solid #cce5d2; background:#f1faf3; color:#315e40; }
.apbdes-login-card .apbdes-error { border:1px solid #f2cbc8; background:#fff5f3; color:#982f28; }
.apbdes-login-form .apbdes-login-field { margin:16px 0; }
.apbdes-login-form .apbdes-login-field > label { display:block; margin:0 0 7px; color:#2e4638; font-size:12px; font-weight:720; }
.apbdes-input-wrap { position:relative; display:flex; align-items:center; }
.apbdes-login .apbdes-input-wrap input:not([type=checkbox]) { width:100%; min-height:48px; margin:0; padding:11px 74px 11px 42px; border:1px solid #d7e2da; border-radius:9px; background:#fbfdfb; box-shadow:none; color:#1d2b25; font-family:inherit; font-size:14px; transition:border-color .16s ease,box-shadow .16s ease,background .16s ease; }
.apbdes-login .apbdes-input-wrap input:focus { border-color:#27845a; outline:0; background:#fff; box-shadow:0 0 0 4px rgb(39 132 90 / 11%); }
.apbdes-input-icon { position:absolute; left:14px; z-index:1; color:#82988a; font-size:18px; pointer-events:none; }
.apbdes-login .apbdes-password-toggle { position:absolute; right:7px; min-height:32px; padding:5px 9px; border-radius:6px; background:transparent; color:#176b4d; font-size:11px; font-weight:750; }
.apbdes-login .apbdes-password-toggle:hover { background:#eaf4ed; color:#10533b; transform:none; }
.apbdes-login-options { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 20px; }
.apbdes-login .apbdes-remember { display:flex; align-items:center; gap:8px; color:#5c6f63; font-size:12px; font-weight:600; cursor:pointer; }
.apbdes-login .apbdes-remember input { width:15px; height:15px; margin:0; accent-color:#176b4d; }
.apbdes-login-hint { color:#8a978f; font-size:10px; text-align:right; }
.apbdes-login .apbdes-login-submit { display:flex; width:100%; min-height:48px; align-items:center; justify-content:space-between; padding:10px 15px 10px 18px; border-radius:9px; background:linear-gradient(110deg,#176b4d,#218059); box-shadow:0 7px 15px rgb(23 107 77 / 18%); color:#fff; font-size:14px; font-weight:750; }
.apbdes-login .apbdes-login-submit:hover { background:linear-gradient(110deg,#10533b,#176b4d); transform:translateY(-1px); }
.apbdes-login-arrow { display:grid; width:27px; height:27px; place-items:center; border-radius:7px; background:rgb(255 255 255 / 16%); font-size:19px; line-height:1; }
.apbdes-login-footer { display:flex; align-items:center; gap:8px; margin-top:22px; padding-top:15px; border-top:1px solid #edf1ee; color:#849087; font-size:10px; line-height:1.4; }
.apbdes-shield { display:grid; width:20px; height:20px; flex:0 0 20px; place-items:center; border-radius:50%; background:#eaf5ed; color:#27724f; font-size:12px; font-weight:800; }
.apbdes-login-caption { margin:12px 0 0; color:#8c9a91; font-size:10px; letter-spacing:.04em; text-align:center; }
.apbdes-login :focus-visible, .apbdes-dashboard :focus-visible { outline:3px solid rgb(39 132 90 / 35%); outline-offset:2px; }

.apbdes-dashboard .apbdes-page-header { position:relative; min-height:180px; align-items:center; overflow:hidden; margin:8px 0 17px; padding:29px 32px; border:1px solid rgb(255 255 255 / 15%); border-radius:18px; background:linear-gradient(115deg,#103e2e 0%,#176b4d 54%,#34845a 100%); box-shadow:0 15px 34px rgb(19 67 43 / 17%); }
.apbdes-dashboard .apbdes-page-header::after { position:absolute; top:-140px; right:17%; width:310px; height:310px; border:1px solid rgb(255 255 255 / 13%); border-radius:50%; content:""; box-shadow:0 0 0 28px rgb(255 255 255 / 4%),0 0 0 62px rgb(255 255 255 / 3%); pointer-events:none; }
.apbdes-hero-main { position:relative; z-index:1; display:flex; align-items:center; gap:18px; }
.apbdes-hero-emblem { position:relative; display:grid; width:62px; height:62px; flex:0 0 62px; place-items:center; border:1px solid rgb(255 255 255 / 32%); border-radius:18px; background:rgb(255 255 255 / 13%); color:#fff; font-size:18px; font-weight:850; letter-spacing:-.06em; }
.apbdes-hero-emblem i { position:absolute; right:-3px; bottom:-3px; width:13px; height:13px; border:3px solid #176b4d; border-radius:50%; background:#70d49b; }
.apbdes-dashboard .apbdes-page-header h2 { margin:5px 0 7px; color:#fff; font-size:clamp(25px,3vw,34px); letter-spacing:-.035em; }
.apbdes-dashboard .apbdes-page-header .apbdes-subtitle { color:rgb(255 255 255 / 76%); font-size:12px; }
.apbdes-dashboard .apbdes-page-header .apbdes-subtitle strong { color:#fff; }
.apbdes-subtitle-divider { padding:0 5px; color:rgb(255 255 255 / 56%); }
.apbdes-hero-actions { position:relative; z-index:1; display:flex; align-items:center; gap:10px; }
.apbdes-secure-chip { padding:7px 11px; border:1px solid rgb(255 255 255 / 23%); border-radius:99px; background:rgb(255 255 255 / 9%); color:#e9f6ed; font-size:10px; font-weight:700; white-space:nowrap; }
.apbdes-secure-chip span { margin-right:4px; color:#a7edbd; }
.apbdes-dashboard .apbdes-logout-link { display:flex; align-items:center; gap:12px; padding:8px 11px; border:1px solid rgb(255 255 255 / 34%); border-radius:8px; color:#fff; font-size:12px; font-weight:650; }
.apbdes-dashboard .apbdes-logout-link span:last-child { display:grid; width:21px; height:21px; place-items:center; border-radius:6px; background:rgb(255 255 255 / 14%); }
.apbdes-dashboard .apbdes-logout-link:hover { background:rgb(255 255 255 / 12%); color:#fff; }
.apbdes-dashboard-nav { display:flex; align-items:center; gap:6px; overflow-x:auto; margin:0 0 16px; padding:6px; border:1px solid #e3ebe5; border-radius:11px; background:#fff; box-shadow:0 3px 12px rgb(25 56 39 / 3%); scrollbar-width:thin; }
.apbdes-dashboard-nav a { display:inline-flex; min-height:35px; flex:0 0 auto; align-items:center; gap:7px; padding:7px 11px; border-radius:7px; color:#63746a; font-size:11px; text-decoration:none; transition:background .15s ease,color .15s ease; }
.apbdes-dashboard-nav a span { color:#93a298; font-size:9px; font-weight:800; }
.apbdes-dashboard-nav a:hover, .apbdes-dashboard-nav a.is-active { background:#edf6ef; color:#176b4d; }
.apbdes-dashboard-nav a.is-active span { color:#176b4d; }
.apbdes-portal-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0 0 27px; padding:16px 19px; border:1px solid #e1eae3; border-radius:13px; background:#fff; box-shadow:0 5px 16px rgb(24 55 38 / 4%); }
.apbdes-metric-item { display:flex; align-items:center; gap:10px; padding:0 15px; border-right:1px solid #e8eee9; }
.apbdes-metric-item:first-child { padding-left:0; }
.apbdes-metric-icon { display:grid; width:35px; height:35px; flex:0 0 35px; place-items:center; border-radius:10px; background:#edf6ef; color:#247650; font-size:17px; font-weight:800; }
.apbdes-metric-item small, .apbdes-metric-progress small { display:block; color:#7a8980; font-size:9px; font-weight:700; letter-spacing:.02em; }
.apbdes-metric-item strong { display:block; margin-top:3px; color:#214935; font-size:17px; line-height:1.15; }
.apbdes-metric-item strong em { color:#87958c; font-size:9px; font-style:normal; font-weight:550; }
.apbdes-metric-highlight .apbdes-metric-icon { background:#e6f5eb; color:#18834d; }
.apbdes-metric-progress { padding-left:17px; }
.apbdes-metric-progress > div:first-child { display:flex; align-items:baseline; justify-content:space-between; gap:6px; }
.apbdes-metric-progress strong { color:#176b4d; font-size:17px; }
.apbdes-dashboard .apbdes-metric-progress .apbdes-progress { height:6px; margin:8px 0 0; }
.apbdes-dashboard .apbdes-overview-card { position:relative; overflow:hidden; border-color:#e1eae3; transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.apbdes-dashboard .apbdes-overview-card::after { position:absolute; top:-50px; right:-38px; width:115px; height:115px; border:1px solid #edf3ee; border-radius:50%; content:""; pointer-events:none; }
.apbdes-dashboard .apbdes-overview-card:hover { transform:translateY(-3px); border-color:#c9dfcf; box-shadow:0 12px 28px rgb(25 56 39 / 9%); }
.apbdes-dashboard .apbdes-card-heading { position:relative; z-index:1; }
.apbdes-dashboard .apbdes-type-icon { box-shadow:inset 0 0 0 1px rgb(23 107 77 / 5%); }
.apbdes-dashboard .apbdes-section-heading h3 { letter-spacing:-.02em; }
.apbdes-dashboard .apbdes-updates-section, .apbdes-dashboard .apbdes-detail-section, .apbdes-dashboard .apbdes-history-section { border-color:#e1eae3; box-shadow:0 7px 22px rgb(24 55 38 / 4%); }
.apbdes-dashboard .apbdes-update-table th, .apbdes-dashboard .apbdes-requirements-table th, .apbdes-dashboard .apbdes-history-table th { background:linear-gradient(180deg,#f2f8f3,#edf5ef); }
.apbdes-verifier-name { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid #dcece0; border-radius:7px; background:#f4faf5; color:#285c3b; font-size:11px; font-weight:700; }
.apbdes-verifier-name::before { display:grid; width:17px; height:17px; place-items:center; border-radius:50%; background:#e1f1e5; color:#247650; content:"✓"; font-size:10px; }
.apbdes-dashboard .apbdes-verifier-line { display:block; margin-top:7px; padding:6px 8px; border-left:2px solid #7db890; border-radius:0 5px 5px 0; background:#f4faf5; color:#65786b; font-size:11px; line-height:1.45; }
.apbdes-dashboard .apbdes-verifier-line strong { color:#28603d; }
.apbdes-dashboard .apbdes-update-table tbody tr:hover, .apbdes-dashboard .apbdes-requirements-table tbody tr:hover { background:#f7fbf8; }
.apbdes-dashboard-nav a:focus-visible { outline:2px solid #2a8b5d; outline-offset:1px; }
html.apbdes-dashboard-active { scroll-behavior:smooth; }
html.apbdes-motion-ready .apbdes-reveal { opacity:0; transform:translateY(14px); transition:opacity .5s ease,transform .5s ease; }
html.apbdes-motion-ready .apbdes-reveal.is-visible { opacity:1; transform:translateY(0); }
@media (max-width:900px) { .apbdes-portal-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:15px; } .apbdes-metric-item:nth-child(2) { border-right:0; } .apbdes-metric-progress { padding-left:15px; } }
@media (max-width:760px) {
    .apbdes-login-shell { width:min(100% - 20px,520px); margin:23px auto; padding:6px; border-radius:18px; }
    .apbdes-login-banner { min-height:98px; padding:17px 20px; }
    .apbdes-login-banner-tag { right:14px; bottom:10px; font-size:8px; }
    .apbdes-login-card { padding:25px 22px 21px; }
    .apbdes-login-card h2 { font-size:26px; }
    .apbdes-dashboard .apbdes-page-header { min-height:unset; align-items:flex-start; flex-direction:column; gap:18px; padding:22px 19px; }
    .apbdes-hero-main { align-items:flex-start; gap:12px; }
    .apbdes-hero-emblem { width:48px; height:48px; flex-basis:48px; border-radius:14px; font-size:15px; }
    .apbdes-dashboard .apbdes-page-header h2 { font-size:24px; }
    .apbdes-hero-actions { align-self:stretch; justify-content:space-between; }
    .apbdes-dashboard-nav { gap:2px; margin-bottom:12px; }
    .apbdes-dashboard-nav a { padding:7px 9px; font-size:10px; }
    .apbdes-portal-metrics { gap:12px 0; padding:14px; }
    .apbdes-metric-item { padding:0 8px; }
    .apbdes-metric-item:first-child { padding-left:0; }
    .apbdes-metric-icon { width:30px; height:30px; flex-basis:30px; }
    .apbdes-metric-item strong { font-size:15px; }
    .apbdes-metric-item strong em { display:block; margin-top:3px; }
    .apbdes-metric-progress { padding-left:8px; }
    .apbdes-dashboard .apbdes-update-table td { min-width:145px; }
}
@media (max-width:420px) {
    .apbdes-login-options { align-items:flex-start; flex-direction:column; gap:7px; }
    .apbdes-login-hint { text-align:left; }
    .apbdes-portal-metrics { grid-template-columns:1fr 1fr; }
    .apbdes-metric-item { border-right:0; }
    .apbdes-metric-progress { grid-column:1/-1; padding:5px 0 0; }
    .apbdes-hero-main { flex-direction:column; }
    .apbdes-dashboard .apbdes-page-header .apbdes-subtitle { font-size:11px; }
}
@media (prefers-reduced-motion:reduce) { html.apbdes-dashboard-active { scroll-behavior:auto; } .apbdes-login-shell *, .apbdes-login-shell *::before, .apbdes-login-shell *::after, .apbdes-dashboard *, .apbdes-dashboard *::before, .apbdes-dashboard *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }

/* Dana Desa village portal */
.apbdes-dana-portal { margin:30px 0 24px; padding:22px; border:1px solid #dfe9e2; border-radius:15px; background:linear-gradient(180deg,#fbfdfb,#f6faf7); box-shadow:0 8px 24px rgb(24 55 38 / 4%); }
.apbdes-dana-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid #e5eee7; }
.apbdes-dana-heading h3 { margin:3px 0 3px; color:#204a35; font-size:22px; letter-spacing:-.025em; }
.apbdes-dana-heading p { margin:0; color:#718077; font-size:12px; }
.apbdes-dana-mark { display:grid; width:48px; height:48px; flex:0 0 48px; place-items:center; border:1px solid #d3e7d8; border-radius:15px; background:linear-gradient(140deg,#eaf6ed,#dcefe2); color:#28724e; font-size:14px; font-weight:850; letter-spacing:-.04em; }
.apbdes-dana-current-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:17px 0 12px; }
.apbdes-dana-current-heading h4, .apbdes-dana-detail-title h4 { margin:3px 0 0; color:#254c38; font-size:17px; letter-spacing:-.02em; }
.apbdes-dana-stage-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(245px,1fr)); gap:13px; }
.apbdes-dana-stage-card { position:relative; overflow:hidden; padding:17px; border:1px solid #e0eae2; border-radius:11px; background:#fff; box-shadow:0 4px 15px rgb(24 55 38 / 4%); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.apbdes-dana-stage-card:hover { transform:translateY(-2px); border-color:#c7ddcd; box-shadow:0 9px 22px rgb(24 55 38 / 8%); }
.apbdes-dana-stage-title { display:flex; align-items:center; gap:10px; margin-bottom:13px; }
.apbdes-dana-stage-icon { display:grid; width:36px; height:36px; flex:0 0 36px; place-items:center; border-radius:11px; background:#eaf4ed; color:#176b4d; font-size:20px; font-weight:800; }
.apbdes-dana-stage-title h5 { margin:0; color:#204a35; font-size:15px; }
.apbdes-dana-stage-title small { color:#839087; font-size:10px; }
.apbdes-dana-stage-card .apbdes-card-hint { min-height:0; margin:8px 0 13px; }
.apbdes-dana-open-form { margin:10px 0 0 !important; }
.apbdes-dana-open-form button { min-height:38px; }
.apbdes-dana-stage-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid #edf1ee; color:#728078; font-size:10px; }
.apbdes-dana-stage-footer strong { color:#2c6644; }
.apbdes-dana-stage-footer a { font-size:10px; text-decoration:none; }
.apbdes-dana-detail, .apbdes-dana-history { margin-top:20px; padding:18px; border:1px solid #e1eae3; border-radius:12px; background:#fff; }
.apbdes-dana-detail-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:15px 0 12px; padding:12px 14px; border-left:3px solid #278054; border-radius:0 8px 8px 0; background:#f3f9f4; }
.apbdes-dana-filter { margin:0 0 14px !important; }
.apbdes-dana-filter select { min-width:230px; }
.apbdes-dana-progress-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px 20px; margin:12px 0; }
.apbdes-dana-progress-summary > div:not(.apbdes-progress) { display:grid; gap:3px; }
.apbdes-dana-progress-summary > div span { color:#7c8a81; font-size:10px; }
.apbdes-dana-progress-summary > div strong { color:#234d37; font-size:13px; }
.apbdes-dana-progress-summary .apbdes-progress { grid-column:1/-1; margin-top:0; }
.apbdes-dana-subheading { margin:20px 0 10px; color:#2a523b; font-size:15px; }
.apbdes-dashboard .apbdes-dana-requirements, .apbdes-dashboard .apbdes-dana-history-table { margin:0; border:1px solid #e0e9e2; border-radius:9px; font-size:12px; }
.apbdes-dashboard .apbdes-dana-requirements th, .apbdes-dashboard .apbdes-dana-history-table th { padding:11px; background:#edf5ef; color:#2c4d39; white-space:nowrap; }
.apbdes-dashboard .apbdes-dana-requirements td, .apbdes-dashboard .apbdes-dana-history-table td { padding:12px; border-top:1px solid #e8eee9; vertical-align:top; }
.apbdes-dashboard .apbdes-dana-requirements td small { display:block; margin-top:5px; color:#7b8980; font-size:10px; overflow-wrap:anywhere; }
.apbdes-dashboard .apbdes-dana-requirements form { min-width:195px; margin:0; }
.apbdes-dashboard .apbdes-dana-requirements form button { margin-top:7px; }
.apbdes-dana-letters { margin-top:21px; }
.apbdes-dana-letters .apbdes-dana-current-heading { margin-bottom:10px; }
.apbdes-dana-letters-count { padding:5px 9px; border-radius:99px; background:#edf6ef; color:#286542; font-size:10px; font-weight:750; }
.apbdes-dana-issued-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:10px; }
.apbdes-dana-issued-card { display:flex; align-items:flex-start; gap:10px; min-width:0; padding:12px; border:1px solid #e3ece5; border-radius:9px; background:#fcfefc; }
.apbdes-issued-icon { display:grid; width:27px; height:27px; flex:0 0 27px; place-items:center; border-radius:8px; background:#e9f5ec; color:#25804e; font-weight:800; }
.apbdes-dana-issued-card > div { display:grid; min-width:0; gap:4px; }
.apbdes-dana-issued-card strong { color:#2b5039; font-size:11px; }
.apbdes-dana-issued-card small { color:#78877d; font-size:9px; overflow-wrap:anywhere; }
.apbdes-dana-issued-card .apbdes-button-link { justify-self:start; min-height:29px; margin-top:4px; padding:5px 9px; font-size:10px; }
.apbdes-dana-history { margin-bottom:18px; }
.apbdes-dana-history .apbdes-dana-current-heading { margin-top:0; }
.apbdes-dashboard .apbdes-dana-history-table td { vertical-align:middle; }
.apbdes-dashboard .apbdes-dana-history-table a { font-size:10px; }
@media (max-width:760px) {
    .apbdes-dana-portal { margin:22px 0; padding:14px; }
    .apbdes-dana-heading h3 { font-size:19px; }
    .apbdes-dana-detail, .apbdes-dana-history { padding:13px; }
    .apbdes-dana-stage-grid { grid-template-columns:1fr; }
    .apbdes-dana-progress-summary { grid-template-columns:1fr; }
    .apbdes-dana-progress-summary .apbdes-progress { grid-column:auto; }
    .apbdes-dana-filter, .apbdes-dana-filter label, .apbdes-dana-filter select { width:100%; }
}

/* Portal product navigation: separate APBDes and Dana Desa pages */
.apbdes-product-nav { display:flex; gap:9px; margin:-8px 0 22px; padding:6px; border:1px solid #dfe9e2; border-radius:12px; background:#fff; box-shadow:0 4px 14px rgb(25 56 39 / 4%); }
.apbdes-product-nav a { display:flex; flex:1; min-height:48px; flex-direction:column; justify-content:center; gap:1px; padding:7px 15px; border-radius:8px; color:#53675b; font-size:14px; font-weight:750; text-decoration:none; transition:background .16s ease,color .16s ease,transform .16s ease; }
.apbdes-product-nav a small { color:#849188; font-size:11px; font-weight:500; }
.apbdes-product-nav a:hover { background:#f1f7f2; color:#176b4d; transform:translateY(-1px); }
.apbdes-product-nav a.is-active { background:linear-gradient(120deg,#176b4d,#258157); color:#fff; box-shadow:0 4px 10px rgb(23 107 77 / 16%); }
.apbdes-product-nav a.is-active small { color:rgb(255 255 255 / 79%); }
.apbdes-dana-dashboard .apbdes-dana-portal { margin-top:0; }
@media (max-width:600px) { .apbdes-product-nav { gap:5px; } .apbdes-product-nav a { align-items:center; padding:8px 7px; text-align:center; font-size:13px; } .apbdes-product-nav a small { font-size:10px; } }
