/* Sistem Informasi Skripsi — tampilan
   Konsep: portal akademik resmi. Kop institusi biru tua bergaris emas, menu samping putih,
   judul berhuruf serif, tabel bergaris, status bertanda titik. Tanpa bayangan dan sudut membulat besar. */

@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --canvas: #f4f5f7;
  --paper: #ffffff;
  --paper-2: #f8f9fb;
  --ink: #1a2230;
  --ink-2: #3a4556;
  --muted: #687284;
  --rule: #dfe3ea;
  --rule-2: #c4cbd6;
  --navy: #1c3260;
  --navy-deep: #13234a;
  --navy-ink: #14223d;
  --navy-tint: #edf1f8;
  --link: #22457f;
  --gold: #b0903f;
  --ok: #2d6a46;   --ok-bg: #e7f1eb;
  --warn: #8a5708; --warn-bg: #f8eedb;
  --bad: #9a2b2b;  --bad-bg: #f7e5e5;
  --info: #22457f; --info-bg: #e8eef7;
  --plum: #5c3f80;
  --serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --r: 3px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--navy-ink); line-height: 1.25; text-wrap: balance; }
h2 { font-size: 1.14rem; margin-bottom: 14px; }
p { margin: 0 0 10px; }
code { font-family: var(--mono); font-size: .86em; background: var(--paper-2); border: 1px solid var(--rule); padding: 0 4px; border-radius: 2px; }
.small { font-size: .86rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .86em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.ok { color: var(--ok); font-weight: 700; }

/* ---------- Kop institusi ---------- */
.masthead { background: var(--navy-deep); color: #fff; border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.mast-inner { display: flex; align-items: center; gap: 18px; padding: 10px 24px; min-height: 66px; }
.mast-id { display: flex; align-items: center; gap: 13px; color: #fff; min-width: 0; }
.mast-id:hover { text-decoration: none; }
.crest { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; }
.crest > span { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: .86rem; letter-spacing: .04em; }
.crest-img { border: 0; border-radius: 0; object-fit: contain; background: transparent; }
.mast-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mast-text .inst { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mast-text .sys { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #c9d3e6; }
.mast-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ctx { display: flex; align-items: center; gap: 8px; }
.ctx label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #c9d3e6; white-space: nowrap; }
.ctx select { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 6px 8px; font-size: .88rem; max-width: 260px; }
.ctx select option, .ctx select optgroup { color: var(--ink); background: #fff; }
.who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; text-align: right; }
.who-name { font-weight: 600; font-size: .92rem; }
.who-role { font-size: .78rem; color: #c9d3e6; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r); width: 38px; height: 34px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; }

/* ---------- Tata letak ---------- */
.layout { display: flex; min-height: calc(100vh - 69px); }
.sidenav { width: 240px; flex: none; background: var(--paper); border-right: 1px solid var(--rule); padding: 14px 0 24px; display: flex; flex-direction: column; }
.nav-sec { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 22px 6px; }
.nav-sec:first-child { padding-top: 6px; }
.sidenav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 22px; color: var(--ink-2); font-size: .95rem; border-left: 3px solid transparent; }
.sidenav a:hover { background: var(--paper-2); color: var(--navy-ink); text-decoration: none; }
.sidenav a.on { background: var(--navy-tint); color: var(--navy); font-weight: 600; border-left-color: var(--navy); }
.nav-count { font-size: .74rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 0 7px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.nav-scrim { display: none; }
.content { flex: 1; min-width: 0; padding: 26px 34px 30px; max-width: 1200px; }
.content.solo { margin: 0 auto; }
.page-head { border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 22px; }
.crumbs { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { color: var(--rule-2); }
.page-head h1 { font-size: 1.7rem; letter-spacing: -.005em; }
.lede { color: var(--muted); margin: 4px 0 0; }
.foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }

/* ---------- Bidang konten ---------- */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 24px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 720px; }
.card.highlight { background: var(--navy-tint); border-color: #cdd7e8; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
details.card > summary { cursor: pointer; font-weight: 600; color: var(--navy-ink); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.grid2.wide-right { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.grid2 > * { min-width: 0; }
.row { display: flex; gap: 12px 14px; flex-wrap: wrap; align-items: flex-end; }
.row > label { flex: 1 1 150px; }
.row > label.grow { flex: 2 1 230px; }
.stack { display: flex; flex-direction: column; gap: 15px; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .tabs { margin-bottom: 0; flex: 1; }
.section-title { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }

/* ---------- Ringkasan angka ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: 22px; }
.stat { display: block; padding: 16px 20px 15px; color: var(--ink); border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
a.stat:hover { background: var(--paper-2); text-decoration: none; }
.stat span { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--navy-ink); font-variant-numeric: tabular-nums lining-nums; }
.stat small { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.stat.warn span { color: var(--warn); }
.stat.warn small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: 1px; }

/* ---------- Formulir ---------- */
label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
label > input, label > select, label > textarea, label > .hint-warn { display: block; margin-top: 5px; }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.check > input { display: inline-block; margin-top: 0; }
input, select, textarea { font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 8px 10px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--navy); }
input[type=file] { padding: 6px; background: var(--paper-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,50,96,.14); }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 700; font-size: .88rem; padding: 0 6px; color: var(--navy-ink); }
.hint-warn { color: var(--warn); font-size: .8rem; font-weight: 400; }
.search input { min-width: 250px; padding: 7px 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; padding: 7px 15px; border-radius: var(--r); border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); line-height: 1.4; }
.btn:hover { background: var(--paper-2); border-color: #aab3c2; text-decoration: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-deep); }
.btn.danger { color: var(--bad); border-color: #e2bcbc; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--link); padding-left: 8px; padding-right: 8px; }
.btn.ghost:hover { background: var(--navy-tint); }
.btn.sm { padding: 4px 10px; font-size: .84rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); border-bottom-color: var(--rule-2); white-space: nowrap; }
tbody tr:hover { background: #fbfcfd; }
tbody tr:last-child td { border-bottom: 0; }
tr.dim td { color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
td.actions { white-space: nowrap; text-align: right; }
td.actions > *, td.actions form { display: inline-block; margin-left: 4px; vertical-align: middle; }
td.wrap { max-width: 380px; }
table.compact th, table.compact td { padding: 7px 10px; }
.card > .table-wrap > table th:first-child, .card > .table-wrap > table td:first-child { padding-left: 0; }
.card > .table-wrap > table th:last-child, .card > .table-wrap > table td:last-child { padding-right: 0; }
.card.flush > .table-wrap > table th:first-child, .card.flush > .table-wrap > table td:first-child { padding-left: 20px; }
.card.flush > .table-wrap > table th:last-child, .card.flush > .table-wrap > table td:last-child { padding-right: 20px; }
.card > .table-wrap > table th { background: transparent; }
table.komponen td { padding: 6px 8px; vertical-align: middle; }
table.komponen tfoot td { border-top: 1px solid var(--rule-2); border-bottom: 0; }
input.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Status & label ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; line-height: 1.3; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; opacity: .9; }
.badge.amber { color: var(--warn); } .badge.red { color: var(--bad); } .badge.green { color: var(--ok); }
.badge.blue { color: var(--info); } .badge.violet { color: var(--plum); } .badge.gray { color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: 2px; padding: 0 6px; }

.alert { padding: 11px 14px 11px 16px; border-radius: var(--r); margin-bottom: 18px; font-size: .93rem; border: 1px solid; border-left-width: 4px; }
.alert.success { background: var(--ok-bg); color: var(--ok); border-color: #c6dccf; border-left-color: var(--ok); }
.alert.error { background: var(--bad-bg); color: var(--bad); border-color: #e6c3c3; border-left-color: var(--bad); }
.alert.info { background: var(--info-bg); color: var(--info); border-color: #c9d6ea; border-left-color: var(--info); }
.note { background: var(--warn-bg); color: #6a4306; padding: 9px 12px; border-radius: var(--r); font-size: .9rem; border: 1px solid #ecdcb9; }
.empty { text-align: center; color: var(--muted); padding: 26px 16px; font-size: .93rem; font-style: italic; }

.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--rule-2); }
.tabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--navy-ink); text-decoration: none; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--navy); }
.count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 2px; background: var(--canvas); color: var(--muted); font-size: .76rem; text-align: center; font-variant-numeric: tabular-nums; }
.tabs a.on .count { background: var(--navy-tint); color: var(--navy); }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 7px 16px; margin: 0 0 14px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.judul { font-family: var(--serif); font-size: 1.16rem; line-height: 1.45; color: var(--navy-ink); margin: 2px 0 14px; }
.quote { border-left: 2px solid var(--rule-2); padding: 1px 0 1px 12px; color: var(--ink-2); font-size: .93rem; font-style: italic; }
.reply { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 11px; margin-top: 6px; font-size: .9rem; }
.reply::before { content: "Tanggapan dosen"; display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.doc { font-weight: 600; white-space: nowrap; }
.doc .ext { font-size: .8em; margin-left: 3px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 3px; }
.feed li:first-child { padding-top: 0; }
.feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.feed li form, .feed li .btn { align-self: flex-start; margin-top: 4px; }
.feed-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

.bar { height: 6px; background: var(--rule); border-radius: 1px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--navy); }
.progress-line { display: flex; flex-direction: column; gap: 6px; font-size: .93rem; margin: 4px 0 14px; }
.bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 34px; align-items: center; gap: 12px; font-size: .9rem; }
.bar-row .bar { height: 10px; }
.bar-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar.t-judul i { background: #98a1af; } .bar.t-proposal i { background: #3f6197; } .bar.t-penelitian i { background: var(--plum); }
.bar.t-akhir i { background: var(--gold); } .bar.t-selesai i { background: var(--ok); }

/* Tahapan skripsi: urutan nyata, jadi diberi nomor */
.timeline { display: flex; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: tahap; }
.timeline li { flex: 1; position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 34px; counter-increment: tahap; }
.timeline li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--rule-2); z-index: 1; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.timeline li span::before { content: counter(tahap); }
.timeline li::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--rule); }
.timeline li:first-child::before { display: none; }
.timeline li.done { color: var(--ink-2); }
.timeline li.done span { background: var(--navy); border-color: var(--navy); color: #fff; }
.timeline li.done::before, .timeline li.now::before { background: var(--navy); }
.timeline li.now { color: var(--navy); font-weight: 700; }
.timeline li.now span { border: 2px solid var(--navy); color: var(--navy); }

details.proc > summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; font-weight: 400; color: var(--ink); }
details.proc > summary::-webkit-details-marker { display: none; }
details.proc > summary::after { content: "Tinjau"; font-size: .84rem; font-weight: 600; color: var(--link); white-space: nowrap; }
details.proc[open] > summary::after { content: "Tutup"; }
details.proc[open] > summary { padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
details.pop { display: inline-block; position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop[open] form { position: absolute; right: 0; z-index: 4; width: 320px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 12px; box-shadow: 0 8px 24px rgba(19,35,74,.14); text-align: left; }
ol.steps { padding-left: 20px; margin: 6px 0 12px; } ol.steps li { margin-bottom: 6px; }
.pick-list { list-style: none; padding: 0; margin: 10px 0 0; columns: 2 260px; }
.pick-list li { padding: 4px 0; break-inside: avoid; }
.pick-list li.pick-group { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.pick-list li.pick-group:first-child { padding-top: 0; }
.fak-block + .fak-block { margin-top: 6px; }
.logo-preview { display: flex; align-items: center; gap: 14px; }
.logo-preview img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--rule); padding: 4px; background: var(--paper); }

/* ---------- Masuk ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); min-height: 100vh; background: var(--paper); }
.auth-side { background: var(--navy-deep); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; border-right: 4px solid var(--gold); }
.auth-side .crest { width: 64px; height: 64px; }
.auth-side .crest > span { width: 54px; height: 54px; font-size: 1.1rem; }
.auth-side .crest-img { width: 72px; height: 72px; }
.auth-inst { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.2; margin: 28px 0 6px; color: #fff; }
.auth-sys { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #c9d3e6; }
.auth-text { margin-top: 28px; max-width: 34em; color: #dfe5f1; font-size: 1rem; }
.auth-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; max-width: 34em; }
.auth-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #dfe5f1; font-size: .94rem; }
.auth-list li b { font-family: var(--serif); color: var(--gold); font-weight: 600; }
.auth-foot { margin-top: auto; padding-top: 30px; font-size: .8rem; color: #9fb0cf; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 360px; }
.auth-box h1 { font-size: 1.6rem; margin-bottom: 4px; }
.auth-box .muted { margin-bottom: 22px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--canvas); }
.login-box { width: 100%; max-width: 400px; background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--navy); border-radius: var(--r); padding: 30px 30px 26px; }
.login-box.wide { max-width: 580px; }
.login-box h1 { font-size: 1.5rem; margin-bottom: 6px; }
.login-box .crest { background: var(--navy-deep); color: #fff; margin-bottom: 16px; }
.checklist { list-style: none; padding: 0; font-size: .92rem; } .checklist .ok { color: var(--ok); } .checklist .bad { color: var(--bad); font-weight: 700; }

/* ---------- Layar kecil ---------- */
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .mast-inner { padding: 8px 16px; gap: 12px; }
  .who { display: none; }
  .ctx label { display: none; }
  .ctx select { max-width: 150px; }
  .sidenav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; box-shadow: none; }
  body.nav-open .sidenav { transform: none; box-shadow: 6px 0 24px rgba(0,0,0,.18); }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(10,18,38,.35); }
  .content { padding: 18px 16px 24px; }
  .grid2, .grid2.wide-right { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 9px; }
  .timeline li { font-size: .68rem; }
  .bar-row { grid-template-columns: 112px 1fr 28px; }
  .search input { min-width: 0; }
  .stat { border-left: 0; border-top: 1px solid var(--rule); }
  .stat:first-child { border-top: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px; border-right: 0; border-bottom: 4px solid var(--gold); }
  .auth-inst { font-size: 1.4rem; margin-top: 16px; }
  .auth-list, .auth-text, .auth-foot { display: none; }
}
@media (max-width: 520px) { .mast-text .inst { font-size: .94rem; } .mast-text .sys { font-size: .66rem; } .crest { width: 38px; height: 38px; } .crest > span { width: 30px; height: 30px; font-size: .74rem; } }
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none; } }
tr.group-row th { background: var(--navy-tint); color: var(--navy-ink); font-family: var(--serif); font-size: .94rem; font-weight: 600; text-transform: none; letter-spacing: 0; padding-top: 8px; padding-bottom: 8px; }
tr.group-row:hover { background: transparent; }
table.t-prodi { table-layout: fixed; }
table.t-prodi col.c-kode { width: 70px; } table.t-prodi col.c-num { width: 11%; } table.t-prodi col.c-act { width: 150px; }

/* ---------- Visualisasi beranda fakultas ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sw.t-proposal, .sb-track i.t-proposal { background: #3f6197; } .sw.t-penelitian, .sb-track i.t-penelitian { background: var(--plum); }
.sw.t-akhir, .sb-track i.t-akhir { background: var(--gold); } .sw.t-selesai, .sb-track i.t-selesai { background: var(--ok); }
.stack-bars { display: flex; flex-direction: column; gap: 12px; }
.sb-row { display: grid; grid-template-columns: minmax(140px, 230px) 1fr 40px; gap: 14px; align-items: center; font-size: .92rem; }
.sb-label small { display: block; color: var(--muted); font-size: .76rem; }
.sb-track { display: flex; height: 16px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.sb-track i { display: block; height: 100%; }
.sb-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.colchart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 190px; padding: 6px 0 0; border-bottom: 1px solid var(--rule-2); margin-bottom: 8px; }
.cc-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.cc-n { font-size: .74rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 1.1em; }
.cc-bar { width: 70%; max-width: 28px; height: 140px; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.cc-bar i { display: block; width: 100%; }
.cc-x { font-size: .72rem; color: var(--muted); margin-top: 4px; height: 1.2em; }
.cc-col .cc-x { position: relative; top: 22px; }
.colchart { margin-bottom: 30px; }
.j-sempro { background: #7f9cc7; } .j-semhas { background: var(--plum); } .j-sidang { background: var(--navy); }
@media (max-width: 960px) { .sb-row { grid-template-columns: 110px 1fr 30px; font-size: .84rem; } .colchart { gap: 3px; } }

/* Peringatan (mis. kuota bimbingan terlampaui) */
.alert.warn { background: var(--warn-bg); color: #6a4306; border-color: #ecdcb9; border-left-color: var(--warn); }
.h-sub { font-family: var(--sans, inherit); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }

/* Riwayat keputusan: garis waktu sederhana */
ol.log { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule); }
ol.log > li { position: relative; padding: 0 0 16px 4px; }
ol.log > li:last-child { padding-bottom: 0; }
ol.log > li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule-2); }
ol.log > li.log-keputusan::before { background: var(--navy); border-color: var(--navy); }
ol.log > li.log-revisi_selesai::before, ol.log > li.log-revisi_diterima::before { border-color: var(--ok); }
ol.log > li.log-revisi_perbaikan::before { border-color: var(--bad); }
ol.log > li[class*="log-koreksi"]::before, ol.log > li.log-revisi_batas::before { border-color: var(--warn); background: var(--warn-bg); }
.log-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
ol.log details { margin-top: 6px; }
ol.log details summary { cursor: pointer; color: var(--link); }
ol.log details table { margin-top: 6px; max-width: 520px; }

/* Halaman verifikasi dokumen (publik) */
.verif-page { max-width: 760px; padding-top: 28px; }
.verif-ok { border-top: 4px solid var(--ok); }

/* Menu akun di pojok kanan atas */
.akun { position: relative; }
.akun > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: var(--r); }
.akun > summary::-webkit-details-marker { display: none; }
.akun > summary:hover, .akun[open] > summary { background: rgba(255,255,255,.08); }
.akun > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #c9d3e6; }
.akun-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--r); box-shadow: 0 10px 28px rgba(19,35,74,.18); padding: 6px 0; z-index: 40; }
.akun-head { padding: 10px 16px 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.akun-head strong { font-size: .92rem; } .akun-head span { font-size: .78rem; color: var(--muted); }
.akun-menu a { display: block; padding: 8px 16px; color: var(--ink); font-size: .92rem; }
.akun-menu a:hover { background: var(--navy-tint); text-decoration: none; }
.akun-menu a.keluar { color: var(--bad); border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; }
@media (max-width: 960px) { .akun .who { display: none; } .caret { display: none; } .akun-menu { right: -6px; } }
.verif-bad { border-top: 4px solid var(--bad); }
ul.doklist { list-style: none; margin: 0; padding: 0; }
ul.doklist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
ul.doklist li:last-child { border-bottom: 0; }
/* Format dokumen */
.grid-templat { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.templat-area { font-size: .84rem; line-height: 1.5; white-space: pre; overflow-wrap: normal; overflow-x: auto; min-height: 420px; tab-size: 2; }
.isian-list ul { list-style: none; margin: 0; padding: 0; }
.isian-list li { display: flex; flex-direction: column; gap: 1px; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: .82rem; color: var(--muted); }
.isian { font-family: var(--mono); font-size: .8rem; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.isian:hover { text-decoration: underline; }
@media (max-width: 960px) { .grid-templat { grid-template-columns: 1fr; } }
.total-akhir { font-weight: 700; font-size: 1.15rem; }
/* Rekap nilai */
table.rekap td { vertical-align: top; }
.print-head { display: none; }
@media print {
  .masthead, .sidenav, .nav-scrim, .no-print, .crumbs, .foot, .alert { display: none !important; }
  .layout { display: block !important; } .content { padding: 0 !important; max-width: none !important; }
  .print-head { display: block; margin-bottom: 10px; font-size: 10pt; }
  .card { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  table.rekap { font-size: 9pt; } table.rekap a { color: inherit; text-decoration: none; }
}
.jumlah-akhir { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; font-weight: 700; }
table.rekap td.num { white-space: nowrap; }
