/* =====================================================
   SIMSUP-GURU INTRANET EDITION
   DESIGN SYSTEM V1.0
   ===================================================== */

:root {
    --navy: #102f50;
    --navy-dark: #0a2039;
    --teal: #087f8c;
    --teal-light: #e6f6f6;
    --gold: #d7a84b;
    --background: #f3f6fb;
    --surface: #ffffff;
    --text: #20344c;
    --muted: #718096;
    --border: #e1e8f0;
    --radius: 14px;
    --shadow: 0 5px 24px rgba(16, 47, 80, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* HEADER */

header {
    background: linear-gradient(110deg, var(--navy-dark), var(--navy));
    color: #ffffff;
    padding: 20px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 20px rgba(10, 32, 57, 0.15);
}

header strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

header a {
    color: white;
    text-decoration: none;
}

/* MAIN */

main {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 24px;
}

/* =========================================
   PENYESUAIAN HALAMAN LOGIN
   ========================================= */

body.simsup-login-mode main {
    margin-top: 8px;
    margin-bottom: 0;
}

/* PANEL / CARD */

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.panel .panel {
    box-shadow: none;
    margin-bottom: 0;
}

/* NAVIGATION */

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 9px;
    background: #f4f7fb;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--teal);
    background: var(--teal-light);
    border-color: #b9e4e4;
}

/* TYPOGRAPHY */

h1 {
    color: var(--navy);
    font-size: 26px;
    font-weight: 750;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--navy);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px;
}

p {
    margin-top: 0;
}

/* FORMS */

label {
    display: block;
    margin: 12px 0 7px;
    color: #43556b;
    font-size: 14px;
    font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    background: #ffffff;
    border: 1px solid #cbd7e3;
    border-radius: 9px;
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: var(--teal);
}

/* BUTTONS */

button {
    background: linear-gradient(110deg, #078b98, #086c80);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 11px 19px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(8, 127, 140, 0.2);
}

button.alt {
    background: #52677d;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* TABLES */

.scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background: #eaf0f7;
    color: var(--navy);
    font-weight: 700;
    text-align: left;
    padding: 14px;
    white-space: nowrap;
}

td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:hover {
    background: #f6fafc;
}

/* GRID */

.cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* UTILITIES */

.muted {
    color: var(--muted);
}

.status {
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
}

.inline {
    display: inline;
}

.error {
    background: #fff0ed;
    border-left: 4px solid #d9534f;
    color: #933324;
    padding: 14px 18px;
    border-radius: 9px;
    margin-bottom: 18px;
}

/* FOOTER */

footer {
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    header {
        padding: 16px 20px;
    }

    header strong {
        font-size: 15px;
    }

    main {
        margin: 20px auto;
        padding: 0 14px;
    }

    .panel {
        padding: 18px;
    }

    .cols {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 13px;
        padding: 9px 12px;
    }

    h1 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =====================================================
   SIMSUP-GURU — SIDEBAR NAVIGASI
   ===================================================== */

.simsup-sidebar {
    width: 260px;
    background: #102f50;
    color: #ffffff;
    border-radius: 14px;
    padding: 20px 14px;
    box-shadow: 0 8px 24px rgba(16, 47, 80, 0.12);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b8d8e6;
}

.sidebar-heading-icon {
    font-size: 20px;
    color: #d7a84b;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    color: #e8f2fa;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .simsup-sidebar {
        width: 100%;
    }
}

/* =====================================================
   SIMSUP-GURU — LAYOUT SIDEBAR DAN KONTEN
   ===================================================== */

.simsup-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    width: 100%;
}

.simsup-sidebar {
    width: 100%;
    min-width: 0;
}

.simsup-content {
    min-width: 0;
    width: 100%;
}

.simsup-content > .panel {
    margin-top: 0;
}

/* Tampilan HP dan tablet */
@media (max-width: 900px) {

    .simsup-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .simsup-sidebar {
        width: 100%;
    }

}

/* =====================================================
   SIMSUP-GURU — PENANDA MENU AKTIF
   ===================================================== */

.sidebar-nav a.active {
    background: #087f8c;
    color: #ffffff;
    font-weight: 700;
    border-left: 4px solid #d7a84b;
    padding-left: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* SIMSUP-GURU - Sidebar ringkas, tempel di akhir simsup.css */
.simsup-layout { align-items: start; }
.simsup-sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar-group { width: 100%; }
.sidebar-group summary {
    display: block;
    position: relative;
    cursor: pointer;
    color: #e8f2fa;
    padding: 12px 28px 12px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    list-style: none;
}
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary::after {
    content: '▾';
    position: absolute;
    right: 12px;
    transition: transform .2s;
}
.sidebar-group[open] summary::after { transform: rotate(180deg); }
.sidebar-group summary:hover,
.sidebar-group summary:focus-visible { background: rgba(255,255,255,.12); }
.sidebar-submenu {
    padding: 4px 0 5px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sidebar-submenu a { font-size: 13px; padding: 10px 12px; }
.sidebar-nav a { padding-top: 11px; padding-bottom: 11px; }
@media (max-width: 900px) {
    .simsup-sidebar { position: static; max-height: none; overflow: visible; }
}

/* =====================================================
   SIMSUP-GURU — TINGGI SIDEBAR DINAMIS
   ===================================================== */

@media (min-width: 901px) {

    .simsup-sidebar {
        min-height: 500px;
        height: auto;
    }

}

/* =====================================================
   SIMSUP-GURU — FIXED HEADER & SIDEBAR
   HANYA KONTEN KANAN YANG SCROLL
   ===================================================== */

@media (min-width: 901px) {

    body:has(.simsup-layout) {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body:has(.simsup-layout) > header {
        flex: 0 0 auto;
        position: relative;
        z-index: 100;
    }

    body:has(.simsup-layout) > main {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        margin: 0 auto;
        padding: 24px;
        overflow: hidden;
    }

    .simsup-layout {
        height: 100%;
        min-height: 0;
        align-items: stretch;
    }

    .simsup-sidebar {
        position: relative;
        top: auto;
        height: 100%;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }

    .simsup-content {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 6px;
        scrollbar-width: thin;
    }

}

/* =====================================================
   SIMSUP-GURU — FULL HEIGHT WORKSPACE
   Header tetap, sidebar dan konten scroll mandiri
   ===================================================== */

@media (min-width: 901px) {

    body:has(.simsup-layout) {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body:has(.simsup-layout) > header {
        flex: 0 0 74px;
        min-height: 74px;
        padding: 12px 4%;
    }

    body:has(.simsup-layout) > main {
        flex: 1 1 auto;
        min-height: 0;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 12px 16px 0;
        overflow: hidden;
    }

    .simsup-layout {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 16px;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .simsup-sidebar {
        position: relative;
        top: auto;
        height: 100%;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 12px 12px 0 0;
    }

    .simsup-content {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        padding-bottom: 20px;
        scrollbar-width: thin;
    }

    body:has(.simsup-layout) > footer {
        display: none;
    }

}

/* =====================================================
   SIMSUP-GURU — PERBAIKAN SCROLL KONTEN KANAN
   ===================================================== */

@media (min-width: 901px) {

    .simsup-layout {
        min-height: 0;
        overflow: hidden;
    }

    .simsup-content {
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

}


/* =====================================================
   SIMSUP-GURU — DASHBOARD PROFESIONAL V2
   ===================================================== */

.simsup-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
}

/* SELAMAT DATANG */

.simsup-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 32px;
    margin-bottom: 0;
    background: linear-gradient(
        115deg,
        #ffffff 65%,
        #edf8f6 100%
    );
}

.simsup-eyebrow {
    color: #087f8c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.simsup-welcome h1 {
    margin-bottom: 8px;
    font-size: 28px;
}

.simsup-welcome p {
    margin-bottom: 8px;
}

.simsup-welcome .muted {
    max-width: 650px;
    font-size: 14px;
}

/* KOTAK HAK AKSES */

.simsup-role-box {
    background: #08715c;
    color: white;
    border-radius: 16px;
    padding: 22px 24px;
    min-width: 190px;
    max-width: 280px;
}

.simsup-role-box small {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 7px;
}

.simsup-role-box strong {
    display: block;
    font-size: 17px;
    overflow-wrap: anywhere;
}

/* KARTU STATISTIK */

.simsup-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.simsup-stat-card {
    margin-bottom: 0;
    padding: 24px 26px;
    border-top: 4px solid #087f8c;
}

.simsup-stat-card:nth-child(2) {
    border-top-color: #16845e;
}

.simsup-stat-card:nth-child(3) {
    border-top-color: #d7a84b;
}

.simsup-stat-label {
    color: #52677d;
    font-size: 14px;
    font-weight: 600;
}

.simsup-stat-number {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.4;
    color: #102f50;
    margin: 8px 0;
}

.simsup-stat-note {
    font-size: 12px;
    color: #718096;
}

/* INFORMASI ADMINISTRASI */

.simsup-dashboard > .panel:last-child {
    margin-bottom: 0;
}

.simsup-dashboard-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.simsup-dashboard-info > div {
    padding: 20px;
    background: #f5f8fb;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
}

.simsup-dashboard-info strong {
    color: #102f50;
    font-size: 14px;
}

.simsup-dashboard-info p {
    color: #718096;
    font-size: 13px;
    margin: 10px 0 0;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .simsup-welcome {
        flex-direction: column;
        align-items: stretch;
    }

    .simsup-role-box {
        max-width: none;
    }

    .simsup-dashboard-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .simsup-stat-grid {
        grid-template-columns: 1fr;
    }

    .simsup-welcome {
        padding: 22px;
    }

    .simsup-welcome h1 {
        font-size: 23px;
    }
}

/* ==================================================
   VERIFIKASI DOKUMEN FINAL - RESPONSIF HP
   ================================================== */

.verifikasi-dokumen {
    max-width: 100%;
    min-width: 0;
}

.verifikasi-dokumen table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.verifikasi-dokumen th {
    width: 34%;
}

.verifikasi-dokumen td {
    width: 66%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.verifikasi-dokumen th,
.verifikasi-dokumen td {
    vertical-align: top;
    padding: 10px 12px;
}

@media (max-width: 600px) {
    .verifikasi-dokumen {
        padding: 16px;
    }

    .verifikasi-dokumen h1 {
        font-size: 1.35rem;
        line-height: 1.4;
    }

    .verifikasi-dokumen h2 {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .verifikasi-dokumen th,
    .verifikasi-dokumen td {
        font-size: 13px;
        padding: 9px 7px;
    }

    .verifikasi-dokumen th {
        width: 38%;
    }

    .verifikasi-dokumen td {
        width: 62%;
    }
}

