/* ==========================================================================
   SALUT — Sentra Layanan Universitas Terbuka
   Tema: formal, bersih, nuansa biru-putih kampus
   ========================================================================== */

:root {
    --navy: #0B2A5B;
    --navy-2: #123E82;
    --blue: #1D4ED8;
    --blue-600: #2563EB;
    --blue-50: #EFF5FF;
    --line: #DCE6F5;
    --line-soft: #EAF1FB;
    --ink: #0F1E35;
    --muted: #5C6C85;
    --bg: #F3F7FD;
    --white: #FFFFFF;
    --green: #15803D;
    --green-bg: #E8F7EE;
    --amber: #B45309;
    --amber-bg: #FEF4E6;
    --red: #B91C1C;
    --red-bg: #FDECEC;
    --sky: #0369A1;
    --sky-bg: #E6F3FB;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(11, 42, 91, .06);
    --shadow: 0 1px 2px rgba(11, 42, 91, .05), 0 10px 30px -18px rgba(11, 42, 91, .35);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: linear-gradient(180deg, #F7FAFF 0%, var(--bg) 45%, #EDF3FC 100%);
    background-attachment: fixed;
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; color: var(--navy); }

/* ------------------------------- Layout --------------------------------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 258px;
    flex: 0 0 258px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #EAF1FB;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}
.nav { flex: 1 1 auto; }
.brand, .sidebar-foot { flex: 0 0 auto; }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 20px; }
.brand-mark {
    width: 42px; height: 42px; flex: 0 0 42px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: linear-gradient(140deg, #60A5FA, #2563EB);
    color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
    box-shadow: 0 6px 18px -8px rgba(37, 99, 235, .9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; color: #fff; }
.brand-text small { font-size: 11.5px; color: #A9C1E6; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #C7D8F2;
    font-weight: 500;
    font-size: 14px;
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.nav-link svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-link.is-active { background: #fff; color: var(--navy); font-weight: 650; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .6); }

.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .16); color: #fff; font-weight: 650;
}
.who-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who-text strong { font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text small { font-size: 11.5px; color: #A9C1E6; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 32px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
}
.topbar-title { flex: 1 1 auto; min-width: 0; }
.topbar-title h1 { font-size: 21px; }
.topbar-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.hamburger {
    display: none;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fff; color: var(--navy);
    cursor: pointer; place-items: center;
}
.hamburger svg { width: 20px; height: 20px; }

.content { flex: 1 1 auto; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 24px; }

.page-foot {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 32px 26px; color: var(--muted); font-size: 12.5px;
}

/* ------------------------------- Cards ---------------------------------- */

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.card-head h2 { font-size: 15.5px; }
.card-head .hint { color: var(--muted); font-size: 12.5px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ------------------------------- Stat ----------------------------------- */

.stat {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); opacity: .85; }
.stat.is-baru::after { background: var(--blue); }
.stat.is-diproses::after { background: var(--amber); }
.stat.is-menunggu::after { background: #7C3AED; }
.stat.is-selesai::after { background: var(--green); }
.stat.is-ditolak::after { background: var(--red); }
.stat.is-total::after { background: var(--navy); }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 550; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 27px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .sub { color: var(--muted); font-size: 12px; }
/* Nilai rupiah pada kartu statistik perlu lebih kecil agar tidak meluber */
.stat .value.uang { font-size: 21px; }

/* ------------------------------- Button --------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fff; color: var(--navy);
    font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--blue-50); border-color: #BFD4F5; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(180deg, var(--blue-600), var(--blue)); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -12px rgba(29, 78, 216, .95); }
.btn-primary:hover { background: linear-gradient(180deg, #1D4ED8, #1A44BE); border-color: #1A44BE; }
.btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-danger { color: var(--red); border-color: #F3C9C9; background: #fff; }
.btn-danger:hover { background: var(--red-bg); border-color: #E9AFAF; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ------------------------------- Form ----------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field .help { font-size: 12px; color: var(--muted); }
.field .req { color: var(--red); }

input[type="text"], input[type="password"], input[type="date"], input[type="number"], input[type="tel"], select, textarea {
    width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
    color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6C85' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }

.form-actions { display: flex; gap: 12px; align-items: center; padding-top: 4px; flex-wrap: wrap; }

.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px 16px; align-items: end; }
.filter-bar .field label { font-size: 12.5px; }

/* ------------------------------- Table ---------------------------------- */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    text-align: left; padding: 11px 16px; background: var(--blue-50);
    color: var(--navy); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tbody tr:hover { background: #FAFCFF; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 650; color: var(--navy); }

/* ------------------------------- Badge ---------------------------------- */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-baru { background: var(--blue-50); color: var(--blue); border-color: #CDDEFA; }
.st-diproses { background: var(--amber-bg); color: var(--amber); border-color: #F6DDB8; }
.st-menunggu { background: #F1ECFE; color: #6D28D9; border-color: #DDD3FB; }
.st-selesai { background: var(--green-bg); color: var(--green); border-color: #BFE7CF; }
.st-ditolak { background: var(--red-bg); color: var(--red); border-color: #F3C9C9; }

.prio { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.prio-tinggi { color: var(--red); border-color: #F3C9C9; background: var(--red-bg); }
.prio-normal { color: var(--sky); border-color: #CDE6F5; background: var(--sky-bg); }
.prio-rendah { color: var(--muted); background: #F5F7FB; }

.chip {
    display: inline-block; padding: 2px 9px; border-radius: 6px;
    background: var(--blue-50); color: var(--navy); font-size: 12px; font-weight: 600; border: 1px solid #D9E6F9;
}

/* ------------------------------- Alert ---------------------------------- */

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #BFE7CF; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #F3C9C9; }
.alert-info { background: var(--blue-50); color: var(--navy); border-color: #CDDEFA; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }

/* ------------------------------- Bar chart ------------------------------ */

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 210px 1fr 48px; gap: 14px; align-items: center; }
.bar-row .bar-label { font-size: 13px; color: var(--ink); font-weight: 550; }
.bar-track { height: 11px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #60A5FA, var(--blue)); border-radius: 999px; min-width: 3px; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--navy); font-size: 13px; }

/* ------------------------------- Timeline ------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 20px 26px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; left: -7px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 2px solid var(--blue);
}
.timeline .tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.timeline .tl-time { color: var(--muted); font-size: 12px; }
.timeline .tl-note { color: var(--ink); font-size: 13.5px; }
.timeline .tl-user { color: var(--muted); font-size: 12px; }

/* ------------------------------- Detail --------------------------------- */

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.detail-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.detail-item .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.detail-item .v { font-size: 14px; color: var(--ink); word-break: break-word; }
.ticket-no { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; font-weight: 650; color: var(--navy); }

.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination .pg { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--navy); font-weight: 600; }
.pagination .pg:hover { background: var(--blue-50); text-decoration: none; }
.pagination .pg.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .pg.is-disabled { opacity: .45; pointer-events: none; }

/* ------------------------------- Login ---------------------------------- */

.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 28px 18px;
    background:
        radial-gradient(900px 500px at 12% -10%, #DCE8FB 0%, rgba(220, 232, 251, 0) 65%),
        radial-gradient(800px 480px at 100% 105%, #E3EDFC 0%, rgba(227, 237, 252, 0) 60%),
        linear-gradient(180deg, #F7FAFF, #EDF3FC);
}
.login-shell { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1.05fr .95fr; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(11, 42, 91, .55); }
.login-side { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 65%, #1B4C9E 100%); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; gap: 22px; }
.login-side .brand { padding: 0; }
.login-side h2 { color: #fff; font-size: 24px; line-height: 1.3; }
.login-side p { color: #BBD0EE; font-size: 14px; margin: 0; }
.login-side ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.login-side li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #DCE8FB; }
.login-side li svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; color: #93C5FD; }
.login-form { padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; }
.login-form h3 { font-size: 19px; }
.login-form .sub { color: var(--muted); font-size: 13.5px; margin: -14px 0 0; }
.login-form .stack { display: flex; flex-direction: column; gap: 16px; }
.login-form .note { background: var(--blue-50); border: 1px solid #CDDEFA; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12.5px; color: var(--navy); }
.login-form .note code { background: #fff; border: 1px solid #D9E6F9; border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }

/* ---------------- Informasi pelayanan & kegiatan SALUT ------------------ */

/* Panel informasi: dipakai di halaman login (panel kiri), samping formulir
   pendaftaran (aside), dan halaman Informasi. */
.info-panel { display: flex; flex-direction: column; gap: 20px; }
.info-blok { display: flex; flex-direction: column; gap: 10px; }
.info-blok h3 { font-size: 14px; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.info-poin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.info-poin li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; }
.info-poin li svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; color: var(--blue); }
.info-poin-besar li { font-size: 14.5px; }
.info-ket { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.info-tombol { margin-top: 4px; }
.info-prodi { display: flex; flex-direction: column; gap: 10px; }
.info-prodi-grup { display: flex; flex-direction: column; gap: 2px; }
.info-prodi-judul { font-size: 12px; font-weight: 700; color: var(--navy); }
.info-prodi-daftar { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.info-kegiatan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.info-kegiatan li { display: flex; gap: 10px; align-items: center; }
.info-kegiatan img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: 0 0 46px; }
.info-kegiatan span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.info-kegiatan strong { font-size: 13px; line-height: 1.4; }
.info-kegiatan small { font-size: 11.5px; color: var(--muted); }

/* Layout dua kolom halaman publik (formulir + panel informasi) */
.public-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.public-split-utama { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.public-aside { position: sticky; top: 18px; }
.public-aside .info-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 20px; box-shadow: var(--shadow-sm); gap: 22px;
}
@media (max-width: 1100px) {
    .public-split { grid-template-columns: minmax(0, 1fr); }
    .public-aside { position: static; }
}

/* Panel informasi pada halaman login (latar biru tua) */
.login-side .login-info-poin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.login-side .login-info-poin li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #DCE8FB; }
.login-side .login-info-poin li svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; color: #93C5FD; }
.login-side .login-info-blok { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.login-side .login-info-judul { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #93C5FD; }
.login-side .login-info-kegiatan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.login-side .login-info-kegiatan li { display: flex; gap: 10px; align-items: center; }
.login-side .login-info-kegiatan img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; flex: 0 0 42px; }
.login-side .login-info-kegiatan span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.login-side .login-info-kegiatan strong { font-size: 13px; color: #fff; line-height: 1.4; }
.login-side .login-info-kegiatan small { font-size: 11.5px; color: #BBD0EE; }
.login-side .login-info-tombol { background: #fff; color: var(--navy); border-color: transparent; font-weight: 700; }
.login-side .login-info-tombol:hover { background: #EAF2FF; }

/* Halaman Informasi & Kegiatan */
.info-subjudul { font-size: 13.5px; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }

/* Beranda publik (landing): sorotan berfoto + panel layanan */
.land-nav {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 10px; box-shadow: var(--shadow-sm);
}
.land-nav a {
    font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; color: var(--navy);
}
.land-nav a:hover { background: var(--blue-50); text-decoration: none; }
.land-nav a.is-aktif { background: linear-gradient(180deg, var(--blue-600), var(--blue)); color: #fff; }
.land-nav .land-nav-cta { margin-left: auto; background: #FACC15; color: #3F2D02; padding: 8px 16px; }
.land-nav .land-nav-cta:hover { background: #EAB308; }

.land-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.land-hero-foto {
    position: relative; overflow: hidden; border-radius: var(--radius);
    min-height: 432px; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 16px;
    color: #fff; box-shadow: var(--shadow);
    background: linear-gradient(140deg, #0B2A5B 0%, #123E82 55%, #1D4ED8 100%);
    background-size: cover; background-position: center;
    justify-content: center;
}
.land-hero-foto.is-foto::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8, 28, 64, .92) 0%, rgba(8, 28, 64, .78) 45%, rgba(8, 28, 64, .34) 100%);
}
.land-hero-isi { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.land-hero-judul { margin: 0; font-size: 40px; line-height: 1.12; color: #fff; letter-spacing: -.02em; }
.land-hero-judul .aksen { color: #FACC15; }
.land-hero-teks { margin: 0; font-size: 15px; line-height: 1.75; color: #DCE8FB; max-width: 46ch; }
.land-hero-aksi { display: flex; flex-wrap: wrap; gap: 12px; }
.land-hero-aksi .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.land-hero-aksi .btn:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.land-hero-aksi .btn-kuning { background: #FACC15; border-color: #FACC15; color: #3F2D02; font-weight: 700; }
.land-hero-aksi .btn-kuning:hover { background: #EAB308; border-color: #EAB308; }

.land-badge { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; position: relative; z-index: 1; }
.land-badge span {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px; padding: 8px 14px;
}
.land-badge svg { width: 15px; height: 15px; color: #FACC15; }

.land-layanan {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.land-layanan-judul { display: flex; flex-direction: column; gap: 4px; }
.land-layanan-judul .pra { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.land-layanan-judul h2 { font-size: 20px; line-height: 1.25; }
.land-layanan-judul p { margin: 0; font-size: 13px; color: var(--muted); }
.land-layanan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.land-layanan-kartu {
    display: flex; flex-direction: column; gap: 6px; padding: 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.land-layanan-kartu:hover { border-color: #BFD4F5; box-shadow: var(--shadow-sm); transform: translateY(-2px); text-decoration: none; }
.land-layanan-kartu .ikon {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue); border: 1px solid #D8E5FA;
}
.land-layanan-kartu .ikon svg { width: 17px; height: 17px; }
.land-layanan-kartu strong { font-size: 13px; color: var(--navy); line-height: 1.35; display: flex; align-items: center; gap: 6px; }
.land-layanan-kartu strong svg { width: 13px; height: 13px; margin-left: auto; color: var(--blue); flex: 0 0 13px; }
.land-layanan-kartu small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* Tombol kuning (khas ajakan mendaftar pada beranda) */
.btn-kuning {
    background: #FACC15; border-color: #FACC15; color: #3F2D02; font-weight: 700;
    box-shadow: 0 10px 20px -14px rgba(250, 204, 21, .95);
}
.btn-kuning:hover { background: #EAB308; border-color: #EAB308; color: #3F2D02; }
.btn-kuning svg { width: 15px; height: 15px; }

/* Keunggulan sebagai kartu centang */
.info-poin-kartu { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.info-poin-kartu li {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 15px 18px; font-size: 13.5px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.info-poin-kartu li svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--blue); margin-top: 2px; }

/* Tentang kami + statistik */
.land-tentang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: stretch; }
.land-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.land-tentang-foto {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(140deg, var(--blue-50), #DCE9FB); min-height: 280px;
    display: grid; place-items: center;
}
.land-tentang-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.land-tentang-isi {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.land-tentang-isi .pra { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.land-tentang-isi h2 { font-size: 22px; }
.land-tentang-isi p { margin: 0; font-size: 14px; line-height: 1.8; color: #33415C; }

.land-stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.land-stat-kartu {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
}
.land-stat-kartu .ikon {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue); border: 1px solid #D8E5FA;
}
.land-stat-kartu .ikon svg { width: 21px; height: 21px; }
.land-stat-kartu strong { display: block; font-size: 20px; color: var(--navy); line-height: 1.2; }
.land-stat-kartu small { font-size: 12.5px; color: var(--muted); }

/* Keunggulan kuliah di UT */
.land-keunggulan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.land-keunggulan-kartu {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
}
.land-keunggulan-kartu .ikon {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--blue-600), var(--navy)); color: #fff;
}
.land-keunggulan-kartu .ikon svg { width: 20px; height: 20px; }
.land-keunggulan-kartu h3 { font-size: 15px; }
.land-keunggulan-kartu p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* Judul bagian beranda + tombol "Lihat Semua" */
.land-bagian { display: flex; flex-direction: column; gap: 20px; }
.land-bagian-kepala { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.land-bagian-kepala .pra { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.land-bagian-kepala h2 { font-size: 24px; }
.land-bagian-kepala p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.land-bagian-kepala .aksi { margin-left: auto; }

/* Berita & pengumuman */
.land-berita { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.land-berita-kartu {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.land-berita-kartu:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.land-berita-gambar { height: 168px; background: linear-gradient(140deg, var(--blue-50), #D6E4F8); overflow: hidden; }
.land-berita-gambar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.land-berita-gambar .tanpa { height: 100%; display: grid; place-items: center; color: #8AA4CC; }
.land-berita-gambar .tanpa svg { width: 34px; height: 34px; }
.land-berita-isi { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.land-berita-tgl { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.land-berita-isi h3 { font-size: 15.5px; line-height: 1.4; }
.land-berita-isi p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.land-berita-isi .baca { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--blue); }

/* Galeri kegiatan & testimoni (dapat digeser) */
.land-geser { position: relative; }
.land-rel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.land-rel > * { scroll-snap-align: start; }
.land-rel::-webkit-scrollbar { height: 8px; }
.land-rel::-webkit-scrollbar-thumb { background: #C7D6EC; border-radius: 8px; }
.land-geser-tombol { display: flex; gap: 8px; }
.land-geser-tombol button {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
    color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.land-geser-tombol button:hover { background: var(--blue-50); border-color: #BFD4F5; }
.land-geser-tombol svg { width: 17px; height: 17px; }

.land-galeri-item {
    border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff;
    display: flex; flex-direction: column;
}
.land-galeri-item img { width: 100%; height: 168px; object-fit: cover; display: block; }
.land-galeri-item figcaption { padding: 10px 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.land-galeri-item figcaption strong { display: block; color: var(--navy); font-size: 12.5px; }

.land-testimoni { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.land-testimoni-kartu {
    scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm);
}
.land-testimoni-orang { display: flex; align-items: center; gap: 12px; }
.land-avatar {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--blue-600), var(--navy)); color: #fff; font-weight: 700; font-size: 15px;
}
.land-testimoni-orang strong { display: block; font-size: 14px; color: var(--navy); }
.land-testimoni-orang small { font-size: 12px; color: var(--muted); }
.land-testimoni-kutipan { margin: 0; font-size: 13.5px; line-height: 1.7; color: #33415C; flex: 1 1 auto; }
.land-bintang { color: #F59E0B; letter-spacing: 2px; font-size: 14px; }

/* Media sosial & Instagram */
.land-sosmed { display: flex; gap: 10px; flex-wrap: wrap; }
.land-sosmed a {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.land-sosmed a:hover { border-color: #BFD4F5; background: var(--blue-50); text-decoration: none; }
.land-sosmed svg { width: 17px; height: 17px; }
.land-sosmed .ikon-ig { color: #DD2A7B; }
.land-sosmed .ikon-tiktok { color: #111827; }
.land-sosmed .ikon-fb { color: #1877F2; }
.land-sosmed .ikon-yt { color: #FF0000; }

/* Isi berita pada halaman baca selengkapnya */
.berita-isi { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.berita-isi p { margin: 0; font-size: 14.5px; line-height: 1.85; color: #33415C; }

/* Ajakan mendaftar */
.land-cta {
    border-radius: var(--radius); padding: 26px 30px; color: #fff;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #1D4ED8 100%);
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.land-cta h2 { color: #fff; font-size: 22px; }
.land-cta p { margin: 6px 0 0; font-size: 13.5px; color: #CFDFF6; max-width: 62ch; }
.land-cta .aksi { margin-left: auto; }

/* Daftar program studi (kelompok per bidang ilmu) */
.prodi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.prodi-kartu {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
    background: var(--blue-50); box-shadow: var(--shadow-sm);
}
.prodi-kartu h3 { font-size: 13.5px; margin: 0 0 8px; color: var(--navy); }
.prodi-kartu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.prodi-kartu li { font-size: 13px; line-height: 1.5; }

/* Kartu profil Instagram (dimuat atas permintaan pengunjung) */
.ig-kartu { display: flex; flex-direction: column; gap: 18px; }
.ig-identitas {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
    background: linear-gradient(120deg, #FDF0F5 0%, var(--blue-50) 70%);
}
.ig-lambang {
    width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 14px;
    background: linear-gradient(140deg, #F58529, #DD2A7B 45%, #8134AF 100%); color: #fff;
    box-shadow: 0 10px 22px -14px rgba(221, 42, 123, .95);
}
.ig-lambang svg { width: 26px; height: 26px; }
.ig-nama { display: flex; flex-direction: column; gap: 3px; min-width: 200px; flex: 1 1 240px; }
.ig-nama strong { font-size: 16px; color: var(--navy); }
.ig-nama span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.ig-aksi { display: flex; gap: 10px; flex-wrap: wrap; }
.ig-pratinjau {
    border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px;
    background: #fff; display: flex; justify-content: center;
}
/* `display: flex` di atas mengalahkan `[hidden]` bawaan peramban, jadi perlu ditegaskan. */
.ig-pratinjau[hidden] { display: none; }
.ig-pratinjau iframe {
    width: 100%; max-width: 540px; height: 420px; border: 0; border-radius: var(--radius-sm);
    background: #fff;
}

/* Kegiatan sebagai linimasa */
.kegiatan-list { display: flex; flex-direction: column; gap: 26px; position: relative; padding-left: 26px; }
.kegiatan-list::before {
    content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--blue-600), #BFD4F5);
    border-radius: 2px;
}
.kegiatan-kartu {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
    background: #fff; display: flex; flex-direction: column; gap: 12px;
    position: relative; box-shadow: var(--shadow-sm);
}
.kegiatan-titik {
    position: absolute; left: -26px; top: 22px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 3px solid var(--blue-600); box-shadow: 0 0 0 4px var(--bg);
}
.kegiatan-kepala h3 { font-size: 17px; margin: 2px 0 0; }
.kegiatan-tanggal { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.kegiatan-ket { font-size: 14px; line-height: 1.75; margin: 0; }
.kegiatan-foto { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kegiatan-foto img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.kegiatan-video { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; }
.kegiatan-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.kegiatan-instagram { border-top: 1px dashed var(--line); padding-top: 12px; }

/* Baris bawah halaman Informasi (pembayaran + kontak) */
.info-bawah { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }

/* Unggah foto kegiatan (halaman petugas) */
.kegiatan-thumb { width: 74px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: 4px; }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.foto-item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.foto-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.foto-item figcaption { padding: 8px; text-align: center; }

@media (max-width: 1100px) {
    .land-hero { grid-template-columns: minmax(0, 1fr); }
    .land-hero-foto { min-height: 380px; }
    .land-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .land-keunggulan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .land-berita { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .land-tentang { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .land-hero-foto { padding: 24px 22px; }
    .land-hero-judul { font-size: 30px; }
    .land-layanan-grid { grid-template-columns: minmax(0, 1fr); }
    .land-cta { padding: 22px; }
    .land-cta .aksi { margin-left: 0; }
}

@media (max-width: 720px) {
    .prodi-grid { grid-template-columns: minmax(0, 1fr); }
    .kegiatan-kartu { padding: 16px 14px; }
    .kegiatan-list { padding-left: 20px; }
    .kegiatan-titik { left: -20px; width: 12px; height: 12px; }
    .land-hero-judul { font-size: 26px; }
    .land-hero-teks { font-size: 14px; }
    .land-stat, .land-keunggulan, .land-berita { grid-template-columns: minmax(0, 1fr); }
    .land-bagian-kepala .aksi { margin-left: 0; }
    .land-nav { border-radius: var(--radius); }
    .land-nav .land-nav-cta { margin-left: 0; }
}

/* ------------------------------- Print ---------------------------------- */

@media print {
    .sidebar, .topbar, .page-foot, .no-print, .hamburger { display: none !important; }
    body { background: #fff; }
    .content { padding: 0; gap: 16px; }
    .card { box-shadow: none; border-color: #C9D6EA; break-inside: avoid; }
}

/* --------------------------- Surat & kop surat -------------------------- */

.surat-sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 38px 46px;
    max-width: 900px;
    margin: 0 auto;
    font-size: 14.5px;
    color: #10203A;
}
.surat-kop { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; }
.surat-kop .kop-logo {
    width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; color: #fff;
    background: linear-gradient(140deg, var(--navy-2), var(--blue));
    letter-spacing: .5px; font-size: 19px;
}
.surat-kop .kop-teks { flex: 1 1 auto; text-align: center; }
.surat-kop .kop-teks strong { display: block; font-size: 16.5px; letter-spacing: .04em; color: var(--navy); line-height: 1.3; }
.surat-kop .kop-teks span { display: block; font-size: 12.5px; color: var(--muted); }
.surat-garis { border: none; border-top: 3px double var(--navy); margin: 0 0 18px; }
.surat-badan { font-size: 14.5px; }
.surat-badan p { margin: 0 0 12px; line-height: 1.85; }
.surat-judul { text-align: center; margin-bottom: 20px; }
.surat-judul strong { display: block; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); text-decoration: underline; }
.surat-judul span { font-size: 13px; color: var(--ink); }

.surat-meta { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13.5px; line-height: 1.7; }
.surat-meta .kanan { text-align: right; }
/* Tanggal di atas blok tanda tangan: rata tengah pada kolom yang sama dengan
   kotak tanda tangan (lebar 290px di sisi kanan), supaya sejajar dengan nama. */
.surat-tanggal {
    text-align: center;
    width: 290px;
    min-width: 290px;
    margin: 16px 0 0 auto;
    font-size: 13.5px;
}
.surat-kepada { margin: 0 0 14px; line-height: 1.7; font-size: 14px; }

.surat-identitas, .surat-tabel { border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.surat-identitas td, .surat-tabel td { padding: 3px 6px 3px 0; vertical-align: top; line-height: 1.7; }
.surat-identitas td:first-child, .surat-tabel td:first-child { width: 170px; }
.surat-identitas td:nth-child(2), .surat-tabel td:nth-child(2) { width: 14px; }

.surat-ttd { margin-top: 30px; display: flex; justify-content: flex-end; }
.surat-ttd .ttd-box { text-align: center; min-width: 290px; font-size: 14px; line-height: 1.6; }
.surat-ttd .ttd-unit { font-weight: 600; }
.surat-ttd .ttd-jabatan { margin-bottom: 4px; }
.surat-ttd .ttd-box .nama { margin-top: 62px; font-weight: 700; text-decoration: underline; text-transform: uppercase; }
/* Tanda tangan memakai gambar hasil pindai: ruang 62px dipakai untuk gambar */
.surat-ttd .ttd-box.ttd-pakai-scan .nama { margin-top: 6px; }
.surat-ttd .ttd-ruang { height: 62px; display: flex; align-items: flex-end; justify-content: center; }
.surat-ttd .ttd-ruang img { max-height: 62px; max-width: 190px; }
.surat-ttd .ttd-jabatan-bawah { font-size: 13.5px; }
.surat-ttd .nip { font-size: 13px; }
.surat-footer { margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; font-size: 11.5px; color: var(--muted); font-style: italic; }

@media print {
    .public-bar, .public-foot-kaya, .public-foot-bawah, .topbar, .sidebar, .page-foot { display: none !important; }
    .surat-sheet { border: none; box-shadow: none; padding: 0; max-width: none; }
    .content, .public-main { padding: 0 !important; }
    /* Blok tanda tangan selalu di kanan dan tanggal rata tengah di atasnya —
       jangan sampai ada aturan lebar layar yang menggesernya ke kiri. */
    .surat-ttd { justify-content: flex-end; }
    .surat-ttd .ttd-box { min-width: 290px; }
    .surat-tanggal { width: 290px; min-width: 290px; margin-left: auto; text-align: center; }
    @page { margin: 18mm 18mm; }
}

/* ---------------- Formulir resmi UT (DP + Surat Pernyataan) --------------- */
/* Kertas F4 / Folio 21,5 x 33 cm. Dipakai halaman pmb_cetak.php. */

.dok-body {
    background: #EDF1F7;
    margin: 0;
    font-family: var(--font);
    color: #10203A;
}
.dok-aksi {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
    padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 10;
}
.dok {
    width: 215mm;
    min-height: 330mm;
    margin: 18px auto;
    padding: 14mm 15mm;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px -20px rgba(11, 42, 91, .5);
    box-sizing: border-box;
    font-size: 10.5px;
    line-height: 1.5;
}
.dok-baru { page-break-before: always; }
.dok-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dok-kop-kiri { display: flex; gap: 10px; align-items: center; }
.dok-logo { width: 38px; height: 38px; border-radius: 6px; }
.dok-ut { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.dok-layanan { font-size: 10px; color: #33415C; }
.dok-kop-kanan { text-align: right; font-size: 9px; color: #33415C; line-height: 1.45; }
.dok-garis { border-top: 2.5px solid var(--navy); margin: 8px 0 12px; }

.dok-judul { text-align: center; margin-bottom: 12px; }
.dok-judul strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.dok-judul span { display: block; font-size: 11px; }

.dok-info {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 10px; margin-bottom: 8px; color: #33415C;
}

.dp-tabel { width: 100%; border-collapse: collapse; }
.dp-tabel th, .dp-tabel td { border: 1px solid #7C8DA6; padding: 3.5px 6px; vertical-align: top; }
.dp-tabel thead th {
    background: #E8EEF7; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em;
    text-align: left; font-weight: 700;
}
.dp-tabel td.kode { width: 66px; font-weight: 700; white-space: nowrap; }
.dp-tabel td.label { width: 205px; }
.dp-tabel td.isian { }
.dp-pemisah td {
    background: #F1F4F9; font-style: italic; font-size: 9.5px; text-align: center; color: #33415C;
}

.isian-kosong {
    display: inline-block; min-width: 120px; border-bottom: 1px dotted #4B5C74; height: 12px;
}
.isian-isi { font-weight: 600; border-bottom: 1px solid transparent; }
.ket { color: #4B5C74; font-size: 9.5px; margin-left: 6px; }

.cb { white-space: nowrap; margin-right: 14px; display: inline-block; }
.cb-on { font-weight: 700; }
.cb-gap { display: inline-block; width: 6px; }
.cb-jarak { display: inline-block; width: 14px; }

.dok-ttd-kanan { display: flex; justify-content: flex-end; margin-top: 16px; }
/* Surat pernyataan: hanya mahasiswa yang menandatangani (tanpa tanda tangan petugas) */
.pernyataan-penutup { text-align: right; margin: 14px 0 6px; font-size: 10.5px; }
.dok-ttd-tunggal { display: flex; justify-content: flex-end; margin-top: 4px; }
.dok-ttd-tunggal .kotak-ttd { min-width: 230px; }
.dok-ttd-dua { display: flex; justify-content: space-between; gap: 24px; margin-top: 18px; }
.kotak-ttd { text-align: center; font-size: 10px; min-width: 200px; }
.ruang-ttd { height: 58px; }
.materai {
    display: inline-block; border: 1px dashed #4B5C74; border-radius: 3px;
    padding: 3px 8px; font-size: 8.5px; line-height: 1.2; color: #4B5C74;
}
.garis-ttd { border-top: 1px solid #33415C; padding-top: 2px; font-weight: 600; }
.ket-kecil { font-size: 9px; color: #4B5C74; }

.pernyataan-tabel { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: 10.5px; }
.pernyataan-tabel td { padding: 3px 4px; vertical-align: bottom; }
.pernyataan-tabel td:first-child { width: 150px; }
.pernyataan-tabel td:nth-child(2) { width: 10px; }
.pernyataan-tabel td:last-child { border-bottom: 1px dotted #4B5C74; }
.pernyataan-poin { margin: 4px 0 10px; padding-left: 20px; }
.pernyataan-poin li { margin-bottom: 5px; line-height: 1.6; }

.biaya-tabel { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 10.5px; }
.biaya-tabel th, .biaya-tabel td { border: 1px solid #7C8DA6; padding: 4px 8px; }
.biaya-tabel thead th { background: #E8EEF7; text-align: left; font-size: 9.5px; text-transform: uppercase; }
.biaya-tabel td.num, .biaya-tabel th.num { text-align: right; white-space: nowrap; }
.biaya-tabel tfoot td { font-weight: 700; background: #F7FAFF; }

.dok-catatan {
    margin-top: 14px; padding: 8px 10px; border: 1px dashed #A9B8CE; border-radius: 4px;
    font-size: 9px; color: #4B5C74;
}

@media print {
    .dok-body { background: #fff; }
    .dok-aksi, .dok-catatan, .no-print { display: none !important; }
    .dok {
        width: auto; min-height: 0; margin: 0; padding: 0;
        border: none; box-shadow: none;
    }
    .dp-tabel tr, .pernyataan-tabel tr, .biaya-tabel tr { break-inside: avoid; }
    @page { size: 215mm 330mm; margin: 12mm 13mm; }
}

/* --------------------- Formulir pendaftaran siap cetak ------------------- */

.form-sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 780px;
    margin: 0 auto;
    padding: 26px 30px 18px;
    font-size: 12px;
    color: #10203A;
}
.form-kop { text-align: center; }
.form-kop .k1 { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.form-kop .k2 { font-size: 13px; font-weight: 700; }
.form-kop .k3 { font-size: 10.5px; color: #33415C; }
.form-judul { text-align: center; margin: 14px 0 18px; }
.form-judul strong { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.form-judul span { font-size: 12px; }
.form-blok { margin-bottom: 14px; }
.form-blok-judul {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--navy); border-bottom: 1.5px solid var(--navy); padding-bottom: 3px; margin-bottom: 7px;
}
.form-tabel { width: 100%; border-collapse: collapse; }
.form-tabel td { padding: 3px 3px; vertical-align: top; line-height: 1.6; }
.form-tabel td.l { width: 190px; }
.form-tabel td.s { width: 10px; }
.form-tabel td.v { font-weight: 600; }
.form-tabel td.v.lebar { font-weight: 500; }
.form-tabel-biaya td.v { text-align: right; font-weight: 600; }
.form-tabel-biaya tr.total td { border-top: 1px solid #33415C; padding-top: 5px; }
.form-rekening { margin-top: 8px; font-size: 11px; color: #33415C; line-height: 1.6; }
.form-catatan { margin: 6px 0 16px; font-size: 11px; line-height: 1.6; }
.form-catatan .lbl { font-weight: 700; margin-bottom: 2px; }
.form-catatan p { margin: 0; }
.form-ttd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 12px; }
.form-ttd .box { text-align: center; font-size: 12px; }
.form-ttd .ruang { height: 58px; }
.form-ttd .garis { border-top: 1px solid #33415C; padding-top: 3px; font-weight: 600; }
.form-kaki {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid var(--line); padding-top: 8px; font-size: 10px; color: var(--muted);
}

@media print {
    .form-sheet { border: none; box-shadow: none; padding: 0; max-width: none; }
    .form-blok { break-inside: avoid; }
    @page { size: A4 portrait; margin: 14mm; }
}

/* --------------------- Lembar Informasi Pembayaran ---------------------- */
/* Satu lembar A4 tegak (portrait) untuk mahasiswa. */

.lembar-sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    max-width: 780px;
    margin: 0 auto;
}
.lembar {
    border: 1px solid var(--navy);
    border-radius: 4px;
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 12px;
    line-height: 1.55;
    color: #10203A;
    background: #fff;
    break-inside: avoid;
}
.lembar-kop { text-align: center; border-bottom: 2px solid var(--navy); padding-bottom: 8px; }
.lembar-kop .k1 { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.lembar-kop .k2 { font-size: 13px; font-weight: 700; }
.lembar-kop .k3 { font-size: 10.5px; color: #33415C; }
.lembar-judul { text-align: center; }
.lembar-jenis {
    display: inline-block; margin-bottom: 3px; padding: 1px 9px; border-radius: 999px;
    background: var(--navy); color: #fff; font-size: 9px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
}
.lembar-judul strong { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.lembar-judul span { font-size: 12px; }
.lembar-nama { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; }
.lembar-nama .lbl { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lembar-nama .garis { font-size: 14px; font-weight: 700; border-bottom: 1px dotted #9AB0CE; padding-bottom: 3px; }

.lembar-tabel { width: 100%; border-collapse: collapse; }
.lembar-tabel td { padding: 3px 3px; vertical-align: top; }
.lembar-tabel td.l { width: 128px; color: #33415C; }
.lembar-tabel td.s { width: 8px; color: #33415C; }
.lembar-tabel td.v { font-weight: 600; border-bottom: 1px dotted #C6D5EA; }
.lembar-tabel tbody + tbody tr:first-child td { padding-top: 10px; }

.lembar-rincian { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.lembar-rincian th {
    text-align: left; padding: 3px 4px; border-bottom: 1.5px solid var(--navy);
    font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--navy);
}
.lembar-rincian td { padding: 3px 4px; border-bottom: 1px dotted #C6D5EA; }
.lembar-rincian td.num, .lembar-rincian th.num { text-align: right; white-space: nowrap; }
.lembar-rincian tfoot td { border-bottom: none; border-top: 1px solid #33415C; font-weight: 700; }

/* Formulir pendaftaran: tabel kiri-kanan + sub-bagian */
.lembar-dua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lembar-sub { margin-top: 2px; }
.lembar-sub .lbl {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--navy); border-bottom: 1.5px solid var(--navy); padding-bottom: 2px; margin-bottom: 5px;
}
.lembar-pernyataan { margin: 0; font-size: 11px; line-height: 1.6; }
.lembar-catatan-kecil { margin-top: 5px; font-size: 10.5px; color: #33415C; line-height: 1.55; }

/* ---------------- SPJ Pengeluaran (dokumen cetak keuangan) -------------- */

.spj-tabel { font-size: 10.5px; table-layout: auto; }
.spj-tabel th, .spj-tabel td { padding: 3px 4px; vertical-align: top; }
.spj-tabel th.no, .spj-tabel td.no { width: 22px; text-align: center; }
.spj-tabel td.nowrap, .spj-tabel th.nowrap { white-space: nowrap; }
.spj-tabel tfoot td.total { font-weight: 700; border-top: 1px solid #33415C; }
.spj-tabel tr { break-inside: avoid; }
.spj-ringkas { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); }
.spj-ringkas .lembar-tabel td.l { width: 176px; }
.spj-ringkas .v { font-weight: 700; }

.lembar-ttd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lembar-ttd .box { border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; text-align: center; }
.lembar-ttd .lbl { font-size: 11px; font-weight: 700; }
.lembar-ttd .ruang { height: 58px; }
/* Kotak tanda tangan mahasiswa saat pembayaran TRANSFER: ruang tanda tangan
   diganti keterangan transfernya. Pembayaran tunai tetap memakai .ruang kosong
   supaya dapat ditandatangani mahasiswa. */
.lembar-ttd .ruang.is-transfer { text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.lembar-ttd .ruang-transfer .rt-lbl, .lembar-ttd .ruang .rt-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.lembar-ttd .ruang .rt-isi { font-size: 10.5px; line-height: 1.45; }
.lembar-ttd .ruang-keuangan { text-align: left; font-size: 11px; line-height: 1.6; margin: 6px 0 4px; }
.lembar-ttd .ruang-keuangan .terbilang { font-style: italic; }
.lembar-ttd .garis-ttd { border-top: 1px solid #33415C; font-size: 11px; font-weight: 600; padding-top: 3px; }

.lembar-layanan, .lembar-catatan { font-size: 11px; }
.lembar-layanan .lbl, .lembar-catatan .lbl { font-weight: 700; margin-bottom: 3px; }
.lembar-layanan ul, .lembar-catatan ul { margin: 0; padding-left: 15px; display: flex; flex-direction: column; gap: 2px; }

.lembar-kaki {
    margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    font-size: 10px; color: var(--muted);
}

@media print {
    .lembar-sheet { border: none; box-shadow: none; padding: 0; max-width: none; }
    .lembar { border-color: #000; }
    @page { size: A4 portrait; margin: 12mm; }
}

/* ----------------------------- Halaman publik --------------------------- */

.public-body {
    background:
        radial-gradient(900px 480px at 8% -12%, #DCE8FB 0%, rgba(220, 232, 251, 0) 62%),
        radial-gradient(760px 440px at 102% 4%, #E3EDFC 0%, rgba(227, 237, 252, 0) 58%),
        linear-gradient(180deg, #F7FAFF, #EDF3FC);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.public-bar { background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.public-bar-inner { max-width: 1040px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.public-brand { padding: 0; text-decoration: none; }
.public-brand .brand-text strong { color: var(--navy); }
.public-brand .brand-text small { color: var(--muted); }
.public-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.public-link { padding: 8px 13px; border-radius: var(--radius-sm); color: var(--navy); font-weight: 600; font-size: 13.5px; }
.public-link:hover { background: var(--blue-50); text-decoration: none; }
.public-link.is-active { background: var(--blue-50); color: var(--blue); }
.public-main { flex: 1 1 auto; width: 100%; max-width: 1040px; margin: 0 auto; padding: 30px 22px 44px; display: flex; flex-direction: column; gap: 22px; }
.public-head h1 { font-size: 25px; }
.public-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 68ch; }

/* Kaki halaman publik: ringkasan unit, menu, layanan, dan kontak */
.public-foot-kaya { background: #fff; border-top: 1px solid var(--line); margin-top: auto; }
.public-foot-kaya .public-bar-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; padding: 32px 22px 22px; align-items: start; }
.public-foot-kaya h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 0 0 12px; }
.public-foot-kaya ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.public-foot-kaya li { font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; }
.public-foot-kaya a { color: var(--muted); }
.public-foot-kaya a:hover { color: var(--blue); text-decoration: none; }
.public-foot-unit { display: flex; flex-direction: column; gap: 10px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.public-foot-unit .brand { padding: 0; }
.public-foot-unit p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.public-foot-sosmed { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.public-foot-sosmed a {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    border: 1px solid var(--line); background: #fff; color: var(--navy);
}
.public-foot-sosmed a:hover { background: var(--blue-50); border-color: #BFD4F5; }
.public-foot-sosmed svg { width: 17px; height: 17px; }
.public-foot-bawah {
    border-top: 1px solid var(--line-soft);
    background: #fff;
}
.public-foot-bawah .public-bar-inner { padding: 14px 22px; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
    .public-foot-kaya .public-bar-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 620px) {
    .public-foot-kaya .public-bar-inner { grid-template-columns: minmax(0, 1fr); }
}


.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; }
.step .no { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 13.5px; }
.step strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 3px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

/* ------------------------------- Tabel impor ---------------------------- */

.preview-table { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.preview-table table.data th { position: sticky; top: 0; z-index: 1; }
.import-note { font-size: 13px; color: var(--muted); }
.map-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.map-row:last-child { border-bottom: none; }
.map-row span { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ------------------------------- Lain-lain ------------------------------ */

/* Sub-navigasi bagian (mis. Pembayaran: Data Pembayaran / Kwitansi / Impor) */

.subnav {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 6px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.subnav-link {
    padding: 8px 15px; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 600; color: var(--navy);
    transition: background .15s ease, color .15s ease;
}
.subnav-link:hover { background: var(--blue-50); text-decoration: none; }
.subnav-link.is-active { background: linear-gradient(180deg, var(--blue-600), var(--blue)); color: #fff; }
.subnav-link.is-active .subnav-badge { background: #fff; color: var(--blue); }
/* Lencana jumlah pada sub-navigasi (mis. bukti transfer yang belum diperiksa) */
.subnav-badge {
    display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 6px;
    border-radius: 999px; background: var(--blue); color: #fff;
    font-size: 11px; font-weight: 700; text-align: center; line-height: 1.5;
}

.nav-group {
    display: block; padding: 14px 12px 6px; font-size: 10.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: #7E9AC4;
}
.nav-group:first-child { padding-top: 4px; }

a.stat { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .05s ease; }
a.stat:hover { border-color: #BFD4F5; text-decoration: none; }
a.stat:active { transform: translateY(1px); }
.stat .goto { color: var(--blue); font-size: 12.5px; font-weight: 600; }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.kv .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kv .v { font-size: 14px; }

.timeline.compact li { padding-bottom: 14px; }
.timeline.compact .tl-note { font-size: 13px; }
.small-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }

.alert-warn { background: var(--amber-bg); color: var(--amber); border-color: #F6DDB8; }

.biaya-box {
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 12px; border: 1px dashed #BFD4F5; border-radius: var(--radius-sm);
    background: var(--blue-50);
}
.biaya-nilai { font-size: 17px; font-weight: 700; color: var(--navy); }
.biaya-nilai[data-kosong] { font-size: 14px; font-weight: 600; color: var(--muted); }
.biaya-rincian { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.biaya-rincian li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; border-top: 1px dotted #BFD4F5; padding-top: 3px; }
.biaya-rincian li span { color: var(--muted); }
.biaya-rincian li strong { color: var(--navy); }

.check-inline { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.check-inline input { width: auto; }

/*
 * PENTING: blok ini memakai "screen" saja. Lebar kertas A4 saat dicetak/di-PDF
 * (sekitar 794px CSS) lebih kecil dari 980px, sehingga tanpa pembatas "screen"
 * aturan sempit ini ikut terpakai pada hasil cetak — akibatnya blok tanda tangan
 * dan tanggal di surat berpindah ke kiri di PDF. Untuk tampilan layar sempit
 * tetap berlaku seperti sebelumnya.
 */
@media screen and (max-width: 980px) {
    .public-nav { margin-left: 0; width: 100%; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .surat-sheet { padding: 24px 20px; }
    .surat-ttd .ttd-box { min-width: 0; }
    .surat-ttd { justify-content: flex-start; }
    .surat-identitas td:first-child, .surat-tabel td:first-child { width: auto; }
    .surat-meta { flex-direction: column; gap: 8px; }
    .surat-meta .kanan, .surat-tanggal { text-align: left; }
}


/* ------------------------------- Responsive ----------------------------- */

@media (max-width: 1150px) {
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
    .sidebar {
        position: fixed; inset: 0 auto 0 0;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 0 60px rgba(11, 42, 91, .35);
        height: 100vh;
    }
    .app.sidebar-open .sidebar { transform: translateX(0); }
    .app.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(11, 42, 91, .35); z-index: 35; }
    .hamburger { display: grid; }
    .topbar { padding: 16px 18px; }
    .content { padding: 20px 18px 32px; }
    .page-foot { padding: 14px 18px 22px; }
    .login-shell { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
    .login-side { padding: 28px 26px; }
    .login-side ul { margin-top: 6px; }
    .login-form { padding: 28px 26px; }
}

@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4, .grid-5, .form-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .field.span-2 { grid-column: span 1; }
    .bar-row { grid-template-columns: 1fr; gap: 6px; }
    .bar-value { text-align: left; }
    .topbar-title h1 { font-size: 18px; }
}

/* ------------------- Bagan tahap pengiriman modul ----------------------- */
/* Dipakai bagian "Informasi Modul" pada halaman publik "Mahasiswa" dan
   halaman petugas: Data Modul Tercatat -> Diproses di SALUT ->
   Dalam Pengiriman -> Diterima Mahasiswa. */

.modul-bagan {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 22px;
}
.modul-langkah { text-align: center; padding: 0 4px; }
.modul-langkah-ikon {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.modul-garis {
    position: absolute;
    top: 26px;
    left: 50%;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: var(--line);
}
.modul-garis.is-hijau { background: #1E9E5A; }
.modul-ikon-bulat {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: #E7ECF5;
    color: #8A96AC;
}
.modul-ikon-bulat svg { width: 26px; height: 26px; }
.modul-langkah.is-selesai .modul-ikon-bulat { background: #1E9E5A; color: #fff; }
.modul-langkah.is-aktif .modul-ikon-bulat {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 7px rgba(29, 78, 216, .14);
}
.modul-langkah-judul { font-size: 13px; font-weight: 650; color: var(--navy); line-height: 1.35; }
.modul-langkah-tgl { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Kotak "Status Saat Ini" */
.modul-status-kotak {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--blue-50);
    margin-bottom: 16px;
}
.modul-status-kotak .ikon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #DCE7FB;
    color: var(--blue);
    display: grid;
    place-items: center;
    flex: none;
}
.modul-status-kotak .ikon svg { width: 30px; height: 30px; }
.modul-status-kotak .lbl { font-size: 12.5px; color: var(--muted); }
.modul-status-kotak .nilai { font-size: 21px; font-weight: 700; color: var(--blue); line-height: 1.25; }

/* Daftar rincian berikon (Nama Mahasiswa, NIM, ...) */
.modul-rincian {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.modul-rincian-baris {
    display: grid;
    grid-template-columns: minmax(0, 220px) 14px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 13.5px;
}
.modul-rincian-baris:first-child { border-top: 0; }
.modul-rincian-ikon {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 600;
}
.modul-rincian-ikon svg { width: 18px; height: 18px; flex: none; }
.modul-rincian-nilai { color: var(--navy); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modul-resi { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 720px) {
    .modul-bagan { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; }
    .modul-garis { display: none; }
    .modul-ikon-bulat { width: 46px; height: 46px; }
    .modul-ikon-bulat svg { width: 22px; height: 22px; }
    .modul-langkah-judul { font-size: 12px; }
    .modul-status-kotak { align-items: flex-start; }
    .modul-status-kotak .nilai { font-size: 18px; }
    .modul-rincian-baris { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .modul-rincian-baris .pemisah { display: none; }
}
