/* ================================================================
   PREMIUM DESIGN SYSTEM — Lembar Bimbingan Disertasi
   Warm editorial · DM Serif Display + DM Sans · Earth-tone green
   ================================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
    /* Brand — deep forest green */
    --brand:       #1a3a2a;
    --brand-dark:  #0f2519;
    --brand-mid:   #2a5e40;
    --brand-soft:  #e6efe9;
    --brand-ring:  rgba(26, 58, 42, .15);
    --brand-glow:  rgba(42, 94, 64, .12);

    /* Surfaces — warm cream */
    --bg-page:     #f4f1ec;
    --bg-card:     #ffffff;
    --bg-subtle:   #faf9f6;
    --bg-input:    #ffffff;
    --bg-hover:    #f8f6f2;

    /* Typography */
    --tx-1:  #1a1a1a;
    --tx-2:  #555550;
    --tx-3:  #8a8a82;
    --tx-inv: #ffffff;

    /* Borders */
    --bd:       #e4e0d8;
    --bd-focus: rgba(26, 58, 42, .45);
    --bd-light: #ece9e2;

    /* Alerts */
    --ok-bg:   #edf5f0;
    --ok-bd:   #b8d8c4;
    --ok-tx:   #1a5a30;
    --warn-bg: #fef8ed;
    --warn-bd: #f0d68a;
    --warn-tx: #7a5a12;

    /* Shadows */
    --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:  0 1px 4px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --shadow-btn: 0 2px 8px rgba(26, 58, 42, .18);

    /* Geometry */
    --radius:      14px;
    --radius-sm:   10px;
    --radius-xs:   6px;
    --radius-full: 9999px;

    /* Motion */
    --ease:  cubic-bezier(.4, 0, .2, 1);
    --speed: .18s;

    /* Fonts */
    --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
}


/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }

body {
    min-height: 100%;
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--tx-1);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #c8c4bc; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #a8a49c; }


/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--tx-1); line-height: 1.25; }
h1 { font-family: var(--font-serif); font-weight: 400; }
h2 { font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
p  { color: var(--tx-2); }


/* ── LAYOUT ────────────────────────────────────────────────────── */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 20px;
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}


/* ══════════════════════════════════════════════════════════════════
   HERO / HEADER
   ══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.hero__accent {
    height: 5px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 50%, #4a9068 100%);
}

.hero__content {
    padding: 28px 32px 26px;
}

.hero__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero__title {
    font-size: clamp(20px, 2.8vw, 28px);
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.hero__subtitle {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--tx-2);
    max-width: 600px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--bd-light);
}

.meta-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    border: 1px solid var(--bd-light);
}

.meta-chip__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tx-3);
}

.meta-chip__value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tx-1);
}


/* ══════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    transition: box-shadow var(--speed) var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bd-light);
}

.card__head--compact {
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    flex-shrink: 0;
}

.card__icon--sm {
    width: 34px;
    height: 34px;
}

.card__head h2 {
    font-size: 16px;
    color: var(--tx-1);
    margin-bottom: 2px;
}

.card__head h3 {
    font-size: 14.5px;
    color: var(--tx-1);
    margin-bottom: 2px;
}

.card__desc {
    font-size: 12.5px;
    color: var(--tx-3);
    margin-top: 2px;
}


/* ══════════════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════════════ */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
    animation: slideIn .35s var(--ease);
}

.alert--ok {
    background: var(--ok-bg);
    border: 1px solid var(--ok-bd);
    color: var(--ok-tx);
}

.alert--warn {
    background: var(--warn-bg);
    border: 1px solid var(--warn-bd);
    color: var(--warn-tx);
}

.alert__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.alert--ok .alert__icon {
    background: var(--ok-bd);
    color: #fff;
}

.alert--warn .alert__icon {
    background: var(--warn-bd);
    color: var(--warn-tx);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════════════
   FORM
   ══════════════════════════════════════════════════════════════════ */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tx-1);
    margin-bottom: 8px;
    letter-spacing: .01em;
}

.field__icon {
    color: var(--tx-3);
    flex-shrink: 0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bd);
    background: var(--bg-input);
    color: var(--tx-1);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease),
                background var(--speed) var(--ease);
    -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--tx-3);
    font-weight: 400;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #ccc8c0;
    background: var(--bg-hover);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--bd-focus);
    box-shadow: 0 0 0 3px var(--brand-ring);
    background: var(--bg-card);
}

.field textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.6;
}

.req {
    color: var(--brand-mid);
    font-weight: 800;
    margin-left: 2px;
}


/* ── RADIO GROUP ───────────────────────────────────────────────── */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bd);
    background: var(--bg-subtle);
    cursor: pointer;
    user-select: none;
    transition: all var(--speed) var(--ease);
}

.radio-card:hover {
    border-color: var(--brand-mid);
    background: var(--brand-soft);
}

/* Hide native radio */
.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio dot */
.radio-card__dot {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--bd);
    background: var(--bg-card);
    flex-shrink: 0;
    transition: all var(--speed) var(--ease);
}

.radio-card__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    transform: translate(-50%, -50%) scale(0);
    transition: transform .2s var(--ease);
}

.radio-card input[type="radio"]:checked ~ .radio-card__dot {
    border-color: var(--brand);
}

.radio-card input[type="radio"]:checked ~ .radio-card__dot::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-card input[type="radio"]:checked ~ .radio-card__text {
    color: var(--brand-dark);
    font-weight: 600;
}

.radio-card:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.radio-card__text {
    font-size: 14px;
    color: var(--tx-1);
    transition: color var(--speed) var(--ease);
}


/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.actions {
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--speed) var(--ease);
}

.btn--primary {
    width: 100%;
    background: var(--brand);
    color: var(--tx-inv);
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(26, 58, 42, .25);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}


/* ══════════════════════════════════════════════════════════════════
   SIDEBAR — STAT CARDS
   ══════════════════════════════════════════════════════════════════ */
.stat-card {
    margin-top: 10px;
    padding: 12px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bd);
    background: var(--bg-subtle);
    transition: all var(--speed) var(--ease);
}

.stat-card:hover {
    border-color: #c8c4bc;
    box-shadow: var(--shadow-sm);
}

.stat-card__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx-1);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .005em;
}

.stat-card__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.stat-card__item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stat-card__label {
    font-size: 10px;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stat-card__number {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--brand);
    letter-spacing: -.02em;
    line-height: 1.1;
    text-align: center;
}

.stat-card__date {
    font-size: 12px;
    
    color: var(--tx-1);
    margin-top: 1px;
    line-height: 1.2;
}

/* Premium progress bar (Ringkasan Progress) */
.stat-progress {
    margin-top: 9px;
    padding: 9px 11px 8px;
    border-radius: var(--radius-xs);
    background: linear-gradient(145deg, rgba(255, 255, 255, .85) 0%, var(--bg-card) 100%);
    border: 1px solid var(--bd-light);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 1px 2px rgba(26, 58, 42, .04);
}

.stat-progress__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.stat-progress__label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--tx-3);
}

.stat-progress__pct {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-family: var(--font-serif);
    color: var(--brand);
    line-height: 1;
}

.stat-progress__pct-num {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -.03em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.stat-progress__pct-unit {
    font-size: 11px;
    font-weight: 600;
    opacity: .85;
    margin-left: 1px;
}

.stat-progress__track {
    position: relative;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, #e8e4dc 0%, #f2efe8 100%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, .06),
        inset 0 -1px 0 rgba(255, 255, 255, .5);
    overflow: hidden;
}

.stat-progress__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--p, 0%);
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--brand-dark) 0%,
        var(--brand-mid) 42%,
        #3d7a55 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .12) inset,
        0 1px 8px rgba(26, 58, 42, .22);
    transition: width 0.85s cubic-bezier(.22, 1, .36, 1);
}

.stat-card--accent-b .stat-progress__fill {
    background: linear-gradient(
        90deg,
        #1a3328 0%,
        #2d6b4a 45%,
        #3a8f62 100%
    );
}

.stat-progress__shine {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 45%;
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .35) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.stat-progress__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--tx-3);
}

.stat-progress__hint {
    font-weight: 500;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
}


/* ══════════════════════════════════════════════════════════════════
   SIDEBAR — QUICK LINKS
   ══════════════════════════════════════════════════════════════════ */
.card--links {
    padding: 20px;
}

.card--links__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx-1);
    margin-bottom: 12px;
    letter-spacing: -.01em;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--tx-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--speed) var(--ease);
}

.quick-link svg {
    color: var(--tx-3);
    flex-shrink: 0;
    transition: color var(--speed) var(--ease);
}

.quick-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.quick-link:hover svg {
    color: var(--brand);
}

/* ──────────────────────────────────────────────────────────────────
   SIDEBAR — ToS Bimbingan (denser, smaller)
   ────────────────────────────────────────────────────────────────── */
.card--tos .card--links__title { margin-bottom: 10px; }
.card--tos .muted { font-size: 12.5px; }
.card--tos .quick-links { gap: 4px; }
.card--tos .quick-link {
    padding: 7px 12px;
    font-size: 12.5px;
    gap: 9px;
    line-height: 1.25;
}
.card--tos .quick-link svg { width: 14px; height: 14px; }
.card--tos .status__badges { margin-top: 10px; }
.card--tos .badge { font-size: 11.5px; }


/* ══════════════════════════════════════════════════════════════════
   UTILITY CLASSES (for report pages compatibility)
   ══════════════════════════════════════════════════════════════════ */
.stack  { display: flex; flex-direction: column; gap: 20px; }
.compare { display: flex; gap: 18px; align-items: flex-start; }
.compare__col { flex: 1; min-width: 0; }
.muted  { color: var(--tx-2); font-size: 13.5px; }

/* Recap stats */
.recap { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.recap__item {
    flex: 1;
    min-width: 155px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bd);
    background: var(--bg-subtle);
    transition: all var(--speed) var(--ease);
}
.recap__item:hover { border-color: #c8c4bc; box-shadow: var(--shadow-sm); }
.recap__k {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--tx-3);
    font-weight: 700;
}
.recap__v {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-serif);
    letter-spacing: -.03em;
    color: var(--brand);
}
.recap--small .recap__item { min-width: 125px; }
.recap--small .recap__v    { font-size: 20px; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bd);
    background: var(--bg-subtle);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--tx-2);
}
.badge--status { font-weight: 700; }

/* Tables */
.tableWrap {
    overflow: auto;
    border: 1px solid var(--bd);
    border-radius: var(--radius-sm);
    margin-top: 6px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}
.table thead th {
    position: sticky;
    top: 0;
    padding: 11px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tx-3);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--bd);
    white-space: nowrap;
}
.table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bd-light);
    font-size: 13.5px;
    color: var(--tx-2);
    vertical-align: top;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg-hover); color: var(--tx-1); }
.cell-pre { white-space: normal; }
.table--compact thead th { padding: 9px 12px; }
.table--compact tbody td { padding: 10px 12px; }

/* Nav back (report pages) */
.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--bd);
    background: var(--bg-card);
    color: var(--tx-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-xs);
    transition: all var(--speed) var(--ease);
}
.nav-back:hover {
    color: var(--brand);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    transform: translateX(-2px);
}
.nav-back::before { content: '←'; font-size: 14px; }

/* Button variants for report pages */
.btn-outline-primary,
.btn--ghost {
    background: var(--bg-subtle);
    color: var(--tx-2);
    border: 1px solid var(--bd);
    box-shadow: var(--shadow-xs);
}
.btn-outline-primary:hover,
.btn--ghost:hover {
    background: var(--bg-card);
    color: var(--brand);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

/* Side links (legacy compat) */
.side-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

/* Link pills */
.link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--bd);
    background: var(--bg-card);
    text-decoration: none;
    color: var(--tx-2);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-xs);
    transition: all var(--speed) var(--ease);
}
.link:hover {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Status badges */
.status { margin-top: 14px; }
.status__label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--tx-3);
    font-weight: 700;
}
.status__badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Progress items (legacy compat) */
.progress-item {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bd);
    background: var(--bg-subtle);
    margin-top: 12px;
    transition: all var(--speed) var(--ease);
}
.progress-item:hover { border-color: #c8c4bc; box-shadow: var(--shadow-sm); }
.progress-item__top strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.progress-item__body { margin-top: 10px; }
.kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.kv__k { font-size: 12px; color: var(--tx-3); }
.kv__v {
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--brand);
    letter-spacing: -.02em;
}

/* Info labels */
.info__label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--tx-3);
    font-weight: 700;
}
.info__links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* W-100 compat */
.w-100 { width: 100%; }


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer {
    margin-top: 36px;
    text-align: center;
    color: var(--tx-3);
    font-size: 12.5px;
    padding-top: 20px;
    border-top: 1px solid var(--bd-light);
}


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
    .grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .compare { flex-direction: column; }
    .recap__item { min-width: 140px; }
}

@media (max-width: 768px) {
    .wrap { padding: 18px 16px 48px; }
    .hero__content { padding: 22px 22px 20px; }
    .card { padding: 20px; }
    /* Card padding turun jadi 20px, sementara base rule table pakai -26px.
       Supaya tidak kepotong di layar kecil, samakan margin full-bleed. */
    .card--table .tableWrap { margin-left: -20px !important; margin-right: -20px !important; }
    .grid, .stack, .compare { gap: 14px; }
    .recap { gap: 10px; }
    .recap__v { font-size: 22px; }

    /* Tablet / lebar <=768px: pastikan tabel tidak memaksa lebar (no horizontal scroll). */
    .tableWrap { overflow-x: hidden !important; }
    .table { table-layout: fixed; }
    .table thead th {
        min-width: 0 !important;
        white-space: normal !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 11.5px !important;
    }
    .table tbody td {
        min-width: 0 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12.5px !important;
    }

    /* Kolom Timestamp (DOM nth-child=2) jangan wordwrap agar tetap ringkas. */
    .table thead th:nth-child(2),
    .table tbody td:nth-child(2) {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0 !important;
    }

    /* Kolom "Tanggal Jam" (DOM nth-child=3) tetap 1 baris. */
    .table thead th:nth-child(3),
    .table tbody td:nth-child(3) {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .wrap { padding: 12px 12px 40px; }
    .hero__content { padding: 18px 16px 16px; }
    .hero__title { font-size: 20px; }
    .hero__meta { flex-direction: column; gap: 8px; }
    .card { padding: 16px; }
    /* Samakan lagi dengan padding card mobile (16px). */
    .card--table .tableWrap { margin-left: -16px !important; margin-right: -16px !important; }
    .recap__item { flex: 0 0 100%; min-width: 0; }
    /* iOS zoom prevention */
    .field input,
    .field select,
    .field textarea { font-size: 16px; }
    .btn { font-size: 14px; padding: 12px 16px; }

    /* Mobile table: biarkan kolom mengecil + header boleh wrap. */
    .tableWrap { overflow-x: hidden !important; }
    .table { table-layout: fixed; }
    .table thead th {
        min-width: 0 !important;
        white-space: normal !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 10.5px !important;
    }
    .table tbody td {
        min-width: 0 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12.5px !important;
    }

    /* Kolom "Tanggal Jam" (DOM nth-child=3) tetap 1 baris (tanpa wordwrap). */
    .table thead th:nth-child(3),
    .table tbody td:nth-child(3) {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0 !important;
    }

    /* Kolom Timestamp (DOM nth-child=2) juga pakai ellipsis agar tidak memaksa lebar. */
    .table thead th:nth-child(2),
    .table tbody td:nth-child(2) {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   REPORT PAGE ENHANCEMENTS
   ══════════════════════════════════════════════════════════════════ */

/* Row numbering */
.th--num,
.td--num {
    width: 40px;
    text-align: center;
    color: var(--tx-3);
    font-size: 12px;
    font-weight: 600;
}

.td--num {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--tx-3);
}

/* Time split (date on top, hour below) */
.td--time {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.time-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-1);
}

.time-hour {
    font-size: 11.5px;
    color: var(--tx-3);
    font-weight: 500;
}

/* Badge count circle */
.badge__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

/* Smaller recap value for dates */
.recap__v--date {
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -.01em;
}
.recap--small .recap__v--date {
    font-size: 14px;
}

/* Empty table cell */
.td--empty {
    text-align: center;
    padding: 28px 14px;
    font-style: italic;
}

/* Card with table — tighter padding */
.card--table {
    padding-bottom: 0;
}
.card--table .tableWrap {
    margin-left: -26px;
    margin-right: -26px;
    border: none;
    border-top: 1px solid var(--bd-light);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Code inline */
.code-inline {
    background: var(--bg-subtle);
    border: 1px solid var(--bd-light);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    color: var(--brand-mid);
}


/* ── PRINT ─────────────────────────────────────────────────────── */
@media print {
    body { background: #fff; }
    .hero, .card { box-shadow: none; border: 1px solid #ddd; }
    .hero__accent { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .nav-back { display: none; }
    .sidebar { position: static; }

    /* Agar tabel tidak bergantung pada scrollbar horizontal saat dicetak. */
    .tableWrap { overflow: visible !important; }

    /* Hindari efek "full-bleed" yang bisa bikin tabel keluar area halaman print. */
    .card--table .tableWrap { margin-left: 0 !important; margin-right: 0 !important; }

    /* Hilangkan "paksa lebar" + nowrap yang membuat konten terpotong. */
    .table { width: 100% !important; }
    .table thead th {
        position: static !important;
        min-width: 0 !important;
        white-space: normal !important;
    }
    .table tbody td {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Supaya baris tidak gampang dipotong di tengah saat print. */
    .table tbody tr { page-break-inside: avoid; }
}
