:root{font:16px/1.5 system-ui,sans-serif;color:#14263b;background:#f1f5f9;--navy:#122945;--teal:#006d65;--line:#dce4ed}
*{box-sizing:border-box}body{margin:0}.top{min-height:68px;background:white;border-bottom:1px solid var(--line);padding:12px max(20px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px}.brand,.account,.buttons{display:flex;align-items:center;gap:12px}.brand small,.indicator small{display:block;color:#545f70}.mark{border-radius:10px;width:40px;height:40px;display:grid;place-items:center;background:var(--navy);color:white;font-weight:800}.account{font-size:.9rem}main{max-width:1160px;margin:auto;padding:28px 20px 48px}.hero{background:linear-gradient(120deg,#122945,#124c60);color:white;border-radius:18px;padding:32px;margin-bottom:20px}.eyebrow{font-size:.8rem;letter-spacing:.12em;font-weight:750;color:#198577;margin:0 0 8px}.hero .eyebrow{color:#a6e8dc}h1{font-size:clamp(1.7rem,4vw,2.65rem);line-height:1.13;margin:0 0 12px}h2{font-size:1.2rem;margin:0 0 12px}.hero p:last-child{margin:0;color:#e1eef5}.panel,.filters{background:white;border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:16px}.filters,.stats{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.stats{align-items:stretch}.stats .panel{flex:1 1 170px}.stats span{display:block;color:#545f70}.stats strong{font-size:1.75rem}.stack{display:grid;gap:12px;max-width:540px}.stack button{justify-self:start}label{display:grid;gap:5px;font-weight:600;font-size:.92rem}input,select,textarea,button{font:inherit;border-radius:8px;padding:8px 12px;border:1px solid #adbccc;background:white;color:inherit;max-width:100%}button{background:var(--teal);border-color:var(--teal);color:white;font-weight:700;cursor:pointer}.outline{background:white;color:var(--teal)}a{color:var(--teal)}.indicator{border-top:1px solid var(--line)}summary{cursor:pointer}.indicator summary{display:grid;grid-template-columns:minmax(200px,3fr) 1fr 1fr max-content;align-items:center;gap:12px;padding:14px 0}.indicator summary>div:first-child strong::after{content:' ＋';color:var(--teal)}.indicator[open] summary>div:first-child strong::after{content:' −'}.badge{background:#e6f3f0;color:#14594f;border-radius:20px;padding:5px 9px;font-size:.82rem}.detail{background:#f4f7fb;padding:16px;border-radius:10px;margin-bottom:12px}dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0 0 16px}dt{font-weight:700}dd{margin:0}.master details{padding:10px 0;border-top:1px solid var(--line)}.master form{margin-top:14px}.muted{color:#545f70}.notice{padding:12px 14px;background:#e1f4eb;color:#18543e;border-radius:8px;margin-bottom:14px}.error{background:#fbe9e9;color:#8d2525}.login{max-width:470px;margin:50px auto;padding:28px}
@media(max-width:650px){.indicator summary{grid-template-columns:1fr 1fr}.indicator summary>div:first-child{grid-column:span 2}.hero{padding:22px}.account span{display:none}dl{grid-template-columns:1fr;gap:3px}dd{margin-bottom:6px}}

.main-nav{display:flex;gap:18px;max-width:1160px;margin:auto;padding:13px 20px 0}.main-nav a{font-weight:650;text-decoration:none;padding:4px 0}.main-nav a[aria-current]{border-bottom:2px solid var(--teal)}.action-link{font-weight:700;padding:8px 4px}.table-scroll{overflow:auto;margin:8px 0 16px}.table-scroll table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}.table-scroll th,.table-scroll td{padding:10px;border-bottom:1px solid var(--line)}.table-scroll th{background:#f3f6fa}.detail h3{font-size:1.05rem;margin:16px 0 8px}.check{display:flex;align-items:center;gap:8px;margin:5px 0}.source-form{margin-bottom:12px}
.overview-cards a{text-decoration:none;color:inherit}.overview-cards a:hover,.overview-cards a[aria-current]{border-color:var(--teal);background:#eaf6f4}.section-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.overdue{background:#fbe9e9;color:#8d2525}.compact-filters{border:0;padding:0}.compact-filters select{max-width:min(580px,75vw)}.trend{max-width:640px}.trend svg{display:block;width:100%;font-size:12px;fill:#526174}.trend line{stroke-width:2.5}.trend-target{stroke:#7656a8;fill:#7656a8}.trend-actual{stroke:#006d65;fill:#006d65}.target-dot{color:#7656a8}.actual-dot{color:#006d65;margin-left:12px}.table-scroll th small{display:block;font-weight:400;color:#545f70}

.matrix-footer{align-items:center;color:#545f70}.matrix-footer nav{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.matrix-footer a{font-weight:650}

/* Dashboard Pimpinan */
.executive-dashboard{--ink:#172c46;--accent:#087d76;--surface:#fff;color:var(--ink)}
.executive-dashboard .executive-hero{padding:clamp(22px,4vw,48px);border-radius:24px;margin-bottom:14px;background:radial-gradient(ellipse at 100% 0%,#236d78 0%,transparent 55%),linear-gradient(110deg,#162c49,#183d59)}
.executive-hero h1{font-size:clamp(1.8rem,5vw,3.2rem);letter-spacing:-.045em}
.executive-dashboard .executive-filters{border-radius:16px;gap:12px}
.executive-dashboard .panel{border-radius:18px;box-shadow:0 4px 12px #183d5909}
.executive-dashboard .overview-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.executive-dashboard .overview-cards a{border-top:3px solid var(--card-accent,#4074a4);margin-bottom:0}
.executive-dashboard .overview-cards a:nth-child(1){--card-accent:#087d76}
.executive-dashboard .overview-cards a:nth-child(2){--card-accent:#ac6b14}
.executive-dashboard .overview-cards a:nth-child(4){--card-accent:#a4475a}
.executive-dashboard .overview-cards strong{display:block;color:var(--card-accent);font-size:2.2rem;font-variant-numeric:tabular-nums}
.executive-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:14px;margin:14px 0 0;align-items:stretch}
.executive-grid .panel{padding:clamp(18px,3vw,26px)}
.verification-layout{display:grid;grid-template-columns:132px minmax(0,1fr);gap:clamp(12px,3vw,28px);align-items:center;margin-top:16px}
.verification-ring{width:132px;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--accent) var(--progress),#e1edf1 0);display:grid;place-items:center}
.verification-ring div{width:105px;aspect-ratio:1;border-radius:50%;background:var(--surface);display:grid;align-content:center;justify-items:center}
.verification-ring strong{font-size:1.45rem;line-height:1.2}.verification-ring small{color:#526174;font-size:.8rem}
.verification-counts{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0}.verification-counts dd{text-align:right;font-weight:750}.verification-counts dt{font-weight:500}
.achievement-value{display:block;font-size:3rem;line-height:1.15;margin:12px 0;font-variant-numeric:tabular-nums}
.achievement-track{height:12px;border-radius:12px;background:#e1edf1;overflow:hidden}.achievement-track span{display:block;height:100%;background:var(--accent)}
.executive-indicators{margin:4px 0 16px}.executive-indicator-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.executive-indicator{margin:0;display:flex;flex-direction:column;gap:10px}.executive-indicator h3{margin:0;font-size:1rem;line-height:1.35;overflow-wrap:anywhere}.executive-indicator dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:auto 0 0;gap:8px}.executive-indicator dd{font-size:1.45rem;font-weight:750;margin:0}.executive-indicator dt,.indicator-unit{font-size:.875rem;color:#526174;margin:0}.executive-indicator footer{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap}.executive-indicator footer a{font-weight:650}
.executive-dashboard .table-scroll thead th{background:#eaf1f8}.executive-dashboard .table-scroll tbody tr:hover{background:#f0f7fa}
@media(max-width:870px){.executive-dashboard .overview-cards,.executive-indicator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.executive-grid{grid-template-columns:1fr}.executive-indicator-grid{grid-template-columns:1fr}.verification-layout{grid-template-columns:112px minmax(0,1fr)}.verification-ring{width:112px}.verification-ring div{width:88px}.verification-ring strong{font-size:1.15rem}}

/* Kontras dashboard dan pelaporan */
:root {
    --ink: #132741;
    --line: #c9d6e7;
    --teal: #00695f;
    --blue: #164b9c;
    background: #edf3fb;
    color: var(--ink);
}
.top {background:#102d55;color:white;border-color:#102d55}
.top .brand small,.top .account {color:#e0edff}
.top .mark {background:#2360b9;color:white}
.main-nav {flex-wrap:wrap;gap:8px 14px}
.main-nav a {color:#164080;padding:7px 11px;border-radius:8px}
.main-nav a[aria-current] {background:#164b9c;color:white;border-bottom-color:transparent}
.hero,.executive-dashboard .executive-hero {
    background:linear-gradient(115deg,#12366d 0%,#1853a9 70%,#00695f 150%);
    color:white;
}
.hero p:last-child {color:#e7f0ff}
.hero .eyebrow {color:#a8eddf}
.panel,.filters {border-color:var(--line);box-shadow:0 3px 12px #17396712}
.panel h2 {color:#12366d}
.muted,.stats span,.indicator small,.brand small {color:#435570}
input,select,textarea {border-color:#7388a6;color:var(--ink)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
    outline:3px solid #2c72cb;
    outline-offset:3px;
}
.stats .panel:nth-child(1) {--stat-bg:#164b9c}
.stats .panel:nth-child(2) {--stat-bg:#00695f}
.stats .panel:nth-child(3) {--stat-bg:#875000}
.stats .panel:nth-child(4) {--stat-bg:#9d2745}
.stats .panel {background:var(--stat-bg,#164b9c);color:white;border-color:transparent}
.stats .panel span,.executive-dashboard .overview-cards strong {color:white}
.executive-dashboard .overview-cards a:nth-child(2) {--stat-bg:#875000}
.executive-dashboard .overview-cards a:nth-child(3) {--stat-bg:#164b9c}
.executive-dashboard .overview-cards a:nth-child(1) {--stat-bg:#00695f}
.executive-dashboard .overview-cards a {border-top:3px solid transparent}
.executive-dashboard .overview-cards a:hover,.executive-dashboard .overview-cards a[aria-current] {background:var(--stat-bg);border-color:#d6e7ff;box-shadow:0 0 0 2px #184990}
.progress-panel,.achievement-panel {border-top:4px solid #164b9c}
.achievement-panel {border-top-color:#00695f}
.executive-dashboard .verification-ring,.executive-dashboard .achievement-track {--accent:#00695f}
.table-scroll thead th,.executive-dashboard .table-scroll thead th {background:#183d76;color:white}
.table-scroll tbody tr:nth-child(even) {background:#eef4fc}
.table-scroll tbody tr:hover,.executive-dashboard .table-scroll tbody tr:hover {background:#dbeaff}
.table-scroll th,.table-scroll td {border-bottom-color:#cedbeb}
.table-scroll thead a {color:white}
.detail {background:#eaf2fc;border:1px solid #c5d7ed}
.badge {background:#e2ebf7;color:#233f67}
.badge[data-status="reached"],.badge[data-status="Terverifikasi"],.badge[data-status="Selesai"] {background:#d2f4df;color:#075338}
.badge[data-status="below"],.badge[data-status="Perlu perbaikan"],.badge.overdue {background:#fbdde5;color:#802039}
.badge[data-status="pending"],.badge[data-status="Diajukan"],.badge[data-status="Berjalan"] {background:#ffedc3;color:#693e00}
.trend-target {stroke:#693db0;fill:#693db0}
.trend-actual {stroke:#00695f;fill:#00695f}
.target-dot {color:#693db0}
.actual-dot {color:#00695f}
.executive-indicator {border-top:4px solid #164b9c}
.executive-indicator[data-state="reached"] {border-top-color:#00695f}
.executive-indicator[data-state="below"] {border-top-color:#9d2745}
.executive-indicator[data-state="pending"] {border-top-color:#875000}

.top .brand-logo {width:40px;height:40px;flex:0 0 40px;object-fit:contain;box-sizing:border-box;padding:3px;border-radius:9px;background:#fff}

/* Foto kampus dan banner evaluasi IKU */
.iku-login-layout {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);max-width:960px;margin:clamp(16px,6vh,64px) auto;gap:20px;align-items:stretch}
.iku-login-layout .login {margin:0;max-width:none;align-content:center;display:grid}
.iku-campus-photo {margin:0;min-width:0;border-radius:18px;overflow:hidden;background:#164b9c;display:grid}
.iku-campus-photo img {width:100%;height:100%;min-height:320px;object-fit:cover;object-position:center}
.hero.iku-audit-hero,.executive-dashboard .hero.iku-audit-hero {
    padding-right:clamp(24px,36%,430px);
    background:linear-gradient(90deg,#12366d 0%,#164b9c 46%,#164b9c 58%,#164b9c22 100%),var(--iku-banner-image, url('/dokumen-audit.png')) right 47% / 46% auto no-repeat,#164b9c;
}
@media(max-width:700px) {
    .iku-login-layout {grid-template-columns:1fr;max-width:475px;gap:12px}
    .iku-campus-photo img {height:auto;min-height:0;aspect-ratio:2;object-fit:cover}
    .hero.iku-audit-hero,.executive-dashboard .hero.iku-audit-hero {
        padding-right:22px;padding-bottom:105px;
        background:linear-gradient(180deg,#12366d 0%,#164b9c 51%,#164b9c1a 100%),var(--iku-banner-image, url('/dokumen-audit.png')) center bottom 34% / cover no-repeat,#164b9c;
    }
}

.iku-performance-hero {--iku-banner-image:url('/grafik-kinerja.jpg')}
.iku-budget-hero {--iku-banner-image:url('/perencanaan-rkat.jpg')}
.iku-calendar-hero {--iku-banner-image:url('/kalender-pelaporan.png')}

/* Layout tablet dan ponsel */
@media (max-width: 1024px) {
    main,.main-nav {min-width:0}
    .table-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
    .table-scroll th,.table-scroll td {white-space:normal;min-width:105px;overflow-wrap:anywhere}
    .table-scroll th:first-child,.table-scroll td:first-child {min-width:145px}
    .indicator summary {grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}
    .indicator summary > *, .detail dd {min-width:0;overflow-wrap:anywhere}
    .filters label,.filters select,.filters input,.stack fieldset {min-width:0;max-width:100%}
    .filters select {text-overflow:ellipsis}
}
@media (max-width: 760px) {
    main {padding-inline:14px}
    .top {padding-inline:14px}
    .main-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-inline:14px}
    .main-nav a {display:flex;align-items:center;min-height:44px;padding:6px 9px;line-height:1.25}
    .filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
    .filters select,.filters input:not([type=hidden]) {width:100%}
    .filters button,.stack button,.account button {min-height:44px}
    .filters .action-link {align-self:center}
    .stack input,.stack select,.stack textarea,.filters input,.filters select {font-size:16px;min-height:44px}
    .stack input[type=checkbox] {width:auto;min-height:0}
    .buttons {flex-wrap:wrap}
    .stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .stats .panel {margin-bottom:0}
    .stats {margin-bottom:14px}
    .indicator summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .indicator summary > div:first-child {grid-column:1 / -1}
    .indicator summary > .badge {justify-self:start;white-space:normal}
    .detail dl {grid-template-columns:minmax(0,1fr)}
    .detail dt {margin-top:5px}
    .matrix-footer nav {gap:10px}
    .matrix-footer nav a {display:inline-flex;align-items:center;min-height:44px}
    .hero.iku-audit-hero,.executive-dashboard .hero.iku-audit-hero {padding-right:20px}
}
@media (max-width: 420px) {
    .main-nav a {font-size:.875rem}
    .filters {grid-template-columns:minmax(0,1fr)}
    .hero,.executive-dashboard .executive-hero {padding-inline:18px}
    .hero h1 {font-size:clamp(1.55rem,7vw,2rem);overflow-wrap:anywhere}
    .panel {padding:13px}
    .stats .panel,.executive-dashboard .overview-cards a {padding:10px}
    .stats .panel span {font-size:.875rem;overflow-wrap:anywhere}
    .trend svg text {font-size:11px}
}

.unit-parent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .65rem;
}
.unit-parent-edit summary {
    color: var(--accent, #00645b);
    cursor: pointer;
}
.unit-parent-edit .stack {
    margin-top: .4rem;
}
.unit-parent-remove button {
    padding: .25rem .55rem;
    font-size: .85rem;
}
