* {
    box-sizing: border-box;
}

:root {
    --primary: #075985;
    --primary-dark: #064568;
    --accent: #f59e0b;
    --bg: #eef6fb;
    --text: #12324a;
    --muted: #64748b;
    --white: #ffffff;
    --border: #dbe5ec;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(14, 116, 144, .12), transparent 35%),
        linear-gradient(135deg, #edf7fb 0%, #f7fafc 100%);
}

.login-shell {
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .13);
    border: 1px solid rgba(219, 229, 236, .8);
}

.brand {
    text-align: center;
    margin-bottom: 26px;
}

.logo-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrap img {
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
}

.logo-fallback-text {
    display: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 24px;
    align-items: center;
    justify-content: center;
}

.logo-fallback .logo-fallback-text {
    display: flex;
}

.brand h1 {
    margin: 0;
    color: var(--primary);
    font-size: 26px;
}

.brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.alert {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}

.login-form label {
    display: block;
    margin: 15px 0 7px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    overflow: hidden;
}

.input-wrap > span {
    padding-left: 13px;
    font-size: 17px;
}

.input-wrap input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 13px 12px;
    font-size: 15px;
}

.password-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 17px;
}

.btn-login {
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 10px;
    padding: 14px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.btn-login:hover {
    background: var(--primary-dark);
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

/* Dashboard */
.app-page {
    min-height: 100vh;
}

.topbar {
    min-height: 70px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topbar span {
    font-size: 12px;
    opacity: .85;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-user small {
    display: block;
    opacity: .8;
    margin-top: 3px;
}

.btn-logout {
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
}

.app-layout {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: 250px 1fr;
}

.sidebar {
    background: #075985;
    color: white;
    padding: 20px 12px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    opacity: .7;
    margin: 16px 10px 8px;
}

.menu-item {
    display: block;
    color: white;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 8px;
    margin: 3px 0;
}

.menu-item:hover {
    background: rgba(255,255,255,.12);
}

.content {
    padding: 32px;
}

.welcome-card,
.role-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
}

.welcome-card h1 {
    margin: 8px 0;
    font-size: 28px;
}

.welcome-card p {
    color: var(--muted);
    margin: 0;
}

.role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #075985;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.info-card > span {
    font-size: 25px;
}

.info-card strong {
    display: block;
    margin-top: 10px;
}

.info-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .login-card {
        padding: 25px 20px;
    }

    .brand h1 {
        font-size: 21px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .content {
        padding: 18px;
    }

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

/* ============================================================
   DATA MASTER / INTERNAL PAGES
   ============================================================ */
body.app-page {
    min-height: 100vh;
    background: #eef6fb;
}

.brand-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-sub {
    display: block;
    font-size: 13px !important;
    opacity: .92 !important;
    margin-top: 5px;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 9px;
    background: rgba(255,255,255,.10);
    font-weight: 700;
    font-size: 14px;
}

.page-head {
    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0;
    color: #0f3557;
    font-size: 32px;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-head h1 .page-icon {
    font-size: 30px;
}

.page-head p {
    margin: 7px 0 0;
    color: #607b95;
    font-size: 16px;
}

.card {
    background: #fff;
    border: 1px solid #e1eaf1;
    border-radius: 18px;
    padding: 25px 28px;
    box-shadow: 0 9px 28px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.card-head h2 {
    margin: 0;
    color: #12385b;
    font-size: 25px;
}

.btn {
    border: 0;
    border-radius: 9px;
    padding: 10px 15px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-primary {
    color: #fff;
    background: #0787c9;
}

.btn-primary:hover { background: #0674ad; }

.btn-secondary {
    color: #23445e;
    background: #edf3f7;
    border: 1px solid #d8e3eb;
}

.btn-secondary:hover { background: #e3edf3; }

.btn-danger {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.search {
    flex: 1 1 320px;
    min-width: 240px;
}

.input,
.select,
textarea.input,
.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd8e4;
    border-radius: 9px;
    background: #fff;
    color: #1f3448;
    padding: 10px 13px;
    font: inherit;
    outline: none;
}

.toolbar .select,
.toolbar select {
    width: auto;
    min-width: 170px;
}

.input:focus,
.select:focus,
textarea.input:focus,
.toolbar input:focus,
.toolbar select:focus {
    border-color: #0787c9;
    box-shadow: 0 0 0 3px rgba(7,135,201,.10);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e9ef;
    border-radius: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: 14px;
}

.data-table th {
    background: #f4f8fb;
    color: #274b68;
    font-weight: 800;
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid #dbe5ec;
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #edf1f4;
    color: #334e68;
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background: #fbfdfe;
}

.data-table tbody tr:hover {
    background: #f0f8fc;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table td:first-child,
.data-table th:first-child {
    width: 55px;
    text-align: center;
}

.data-table small {
    color: #73869a;
    font-size: 12px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.actions form { margin: 0; }

.actions .btn {
    min-width: 38px;
    min-height: 36px;
    padding: 7px 9px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.empty {
    text-align: center !important;
    color: #718096 !important;
    padding: 35px !important;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding: 25px;
    background: rgba(15, 23, 42, .52);
    overflow-y: auto;
}

.modal.show { display: flex; align-items: center; justify-content: center; }

.modal-box {
    width: min(760px, 100%);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(15,23,42,.25);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e6edf2;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.modal-head h3 { margin: 0; color: #12385b; font-size: 20px; }

.close {
    border: 0;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 23px;
    cursor: pointer;
}

.modal-body { padding: 22px; }

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 22px;
    border-top: 1px solid #e6edf2;
    position: sticky;
    bottom: 0;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
}

.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
    display: block;
    margin-bottom: 7px;
    color: #294b65;
    font-weight: 700;
    font-size: 13px;
}

.field textarea,
textarea {
    display: block;
    width: 100%;
    min-width: 100%;
    min-height: 150px;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #cbd8e4;
    border-radius: 9px;
    background: #fff;
    color: #1f3448;
    padding: 10px 13px;
    font: inherit;
    outline: none;
}

.field textarea:focus,
textarea:focus {
    border-color: #0787c9;
    box-shadow: 0 0 0 3px rgba(7,135,201,.10);
}

@media (max-width: 1000px) {
    .app-layout { grid-template-columns: 220px 1fr; }
    .content { padding: 24px; }
    .data-table { min-width: 820px; }
}

@media (max-width: 760px) {
    .topbar { padding: 12px 16px; }
    .app-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .content { padding: 18px; }
    .page-head h1 { font-size: 26px; }
    .card { padding: 18px; }
    .card-head { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .toolbar .select, .toolbar select { flex: 1 1 180px; }
}
/* =========================================================
   JURI / LOMBA / PENUGASAN JURI
   ========================================================= */
.modal-wide{max-width:860px!important}.assignment-box{margin-top:18px;border:1px solid var(--border);border-radius:12px;padding:14px;background:#f8fbfe}.assignment-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#0f3557}.check-row{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:9px;margin:7px 0;cursor:pointer}.check-row input{width:17px;height:17px}.check-row span{display:flex;flex-direction:column;gap:3px}.check-row small{color:#64748b}.info-box{padding:12px 14px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;color:#334155}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-grid>div{padding:12px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.detail-grid small{display:block;color:#64748b;margin-bottom:4px}.detail-grid strong{color:#0f3557}.detail-list{padding-left:22px}.detail-list li{padding:7px 0}.detail-list li span{margin-left:8px;font-size:11px;background:#e0f2fe;color:#0369a1;padding:3px 7px;border-radius:999px}.badge-blue{background:#e0f2fe!important;color:#0369a1!important}.badge-purple{background:#ede9fe!important;color:#6d28d9!important}.count-pill{display:inline-flex;min-width:28px;justify-content:center;padding:4px 9px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-weight:700}.criteria-list{margin-top:18px}.criteria-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;margin-top:8px}.criteria-row>div:first-child{display:flex;flex-direction:column;gap:3px}.criteria-row small{color:#64748b}.assignment-table td{vertical-align:top}.assignment-lomba{display:flex;flex-direction:column;gap:4px}.assignment-lomba small{color:#64748b;font-size:11px}.juri-stack{display:flex;flex-direction:column;gap:8px}.juri-stack-item{display:flex;gap:8px;align-items:flex-start;padding:6px 8px;border-radius:8px;background:#f8fafc}.juri-stack-item span:nth-child(2){display:flex;flex-direction:column;gap:2px}.juri-stack-item small{color:#64748b}.actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.actions form{margin:0}.btn-success{background:#10b981;color:#fff;border:0}.btn-edit{background:#eef6fb;color:#0f3557;border:1px solid #d5e5f0}.btn-danger{background:#fff0f0;color:#b91c1c;border:1px solid #fecaca}.btn-secondary{background:#eef3f7;color:#0f3557;border:1px solid #d8e2ea}.btn-info{background:#e8f5ff;color:#0369a1;border:1px solid #bae6fd}.lomba-desc{max-width:360px;white-space:normal;line-height:1.4}.alert{margin-bottom:15px}.modal.show{display:flex}
@media(max-width:900px){.detail-grid{grid-template-columns:1fr}.modal-wide{max-width:95%!important}.toolbar{flex-wrap:wrap}.toolbar>*{min-width:180px;flex:1}.data-table{min-width:850px}}


/* ============================================================
   TAHAP 5 — PENILAIAN & AKUN PENGGUNA
   ============================================================ */
.score{display:inline-flex;min-width:54px;justify-content:center;padding:6px 10px;border-radius:9px;background:#ecfdf5;color:#047857;font-weight:800;border:1px solid #bbf7d0}
.score-muted{color:#64748b;font-size:12px}
.penilaian-status{padding:10px 13px;border-radius:10px;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;margin-bottom:16px;font-size:13px}
.penilaian-table td{vertical-align:top}
.criteria-score-list{display:flex;flex-direction:column;gap:8px}
.criteria-score-item{display:grid;grid-template-columns:minmax(180px,1fr) 110px;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}
.criteria-score-item .criteria-meta{display:flex;flex-direction:column;gap:3px}
.criteria-score-item .criteria-meta strong{color:#0f3557}
.criteria-score-item .criteria-meta small{color:#64748b}
.criteria-score-item input{width:100%;box-sizing:border-box}
.package-cell{display:flex;flex-direction:column;gap:4px}
.package-cell small{color:#64748b}
.account-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.account-stat{padding:15px 16px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(15,53,87,.05)}
.account-stat span{display:block;color:#64748b;font-size:12px;margin-bottom:5px}
.account-stat strong{font-size:25px;color:#0f3557}
.role-pills{display:flex;gap:8px;flex-wrap:wrap}
.role-pill-admin{background:#fee2e2!important;color:#991b1b!important}
.role-pill-juri{background:#dbeafe!important;color:#1d4ed8!important}
.role-pill-operator{background:#dcfce7!important;color:#166534!important}
.role-checks{display:flex;gap:18px;flex-wrap:wrap;padding:10px 0}
.role-check{display:flex;align-items:center;gap:8px;color:#0f3557;font-weight:600}
.role-check input{width:17px;height:17px}
.account-help{padding:12px 14px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;color:#334155;line-height:1.5;margin-bottom:15px}
@media(max-width:900px){.account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.criteria-score-item{grid-template-columns:1fr}}
@media(max-width:560px){.account-summary{grid-template-columns:1fr}}
/* ============================================================
   TAHAP 7 — REKAP, RANKING, PEMENANG, CETAK
   ============================================================ */
.report-panel{background:#fff;border:1px solid #dfe9f2;border-radius:16px;box-shadow:0 8px 28px rgba(15,53,87,.06);padding:24px;overflow:hidden}
.report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.report-toolbar h2{margin:0;color:#0f3557;font-size:24px}
.report-toolbar p{margin:5px 0 0;color:#64748b;font-size:13px}
.report-table-wrap{overflow:auto;border:1px solid #dbe6ee;border-radius:12px}
.report-table{width:100%;border-collapse:collapse;min-width:760px;background:#fff}
.report-table th{background:#f3f8fc;color:#143f63;font-weight:800;text-align:left;padding:13px 14px;border-bottom:1px solid #dbe6ee;white-space:nowrap}
.report-table td{padding:13px 14px;border-bottom:1px solid #e8eef3;color:#27455e;vertical-align:middle}
.report-table tbody tr:nth-child(even){background:#fbfdff}
.report-table tbody tr:hover{background:#f5fbff}
.report-empty{text-align:center!important;color:#64748b!important;padding:40px!important}
.center{text-align:center}
.info-box{padding:14px 16px;border-radius:11px;background:#eff6ff;border:1px solid #bfdbfe;color:#334155}
.detail-nilai-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.detail-nilai-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:11px 13px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}
.detail-nilai-nama{font-weight:700;color:#0f3557}.detail-nilai-label{font-size:11px;color:#64748b;margin-top:2px}.detail-nilai-angka{min-width:70px;text-align:center;font-weight:800;font-size:18px;color:#0369a1;background:#e0f2fe;border-radius:9px;padding:7px 10px}
.detail-total{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:13px 15px;border-radius:10px;background:#e0f2fe;color:#075985}
.rank-mark{font-size:22px}.rank-score{font-size:15px}.ranking-table .rank-1,.ranking-table .rank-2,.ranking-table .rank-3{font-weight:700}.ranking-table .rank-1 td{background:#fff8dc}.ranking-table .rank-2 td{background:#f6f8fb}.ranking-table .rank-3 td{background:#fff1e7}
.pemenang-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.pemenang-section{margin-top:24px;padding-top:22px;border-top:1px solid #e2e8f0}.pemenang-section:first-of-type{margin-top:0;padding-top:0;border-top:0}.pemenang-section-head h2{margin:0;color:#0f3557}.pemenang-section-head p{margin:5px 0 14px;color:#64748b;font-size:13px}.pemenang-lomba-card{border:1px solid #dbe6ee;border-radius:14px;padding:14px;margin-top:12px;background:#fff}.pemenang-lomba-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.pemenang-lomba-name{font-size:17px;font-weight:800;color:#0f3557}.pemenang-lomba-type{font-size:11px;font-weight:800;padding:5px 9px;border-radius:999px;background:#e0f2fe;color:#0369a1}.pemenang-overall-note{padding:11px 13px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:13px;margin-bottom:12px}.muted-block{display:block;color:#64748b;font-size:11px;margin-top:3px}
.cetak-page{padding:26px}.cetak-header{display:flex;align-items:center;gap:16px;padding:20px;border-radius:14px;background:#f5fbff;border:1px solid #d8ebf7;margin-bottom:20px}.cetak-header h2{margin:0;color:#0f3557}.cetak-header p{margin:4px 0 0;color:#64748b}.cetak-header-icon{font-size:34px;width:58px;height:58px;display:grid;place-items:center;background:#e0f2fe;border-radius:14px}.print-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.print-menu-card{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;padding:16px;border:1px solid #d9e5ed;border-radius:12px;background:#fff;transition:.15s ease;box-shadow:0 4px 12px rgba(15,53,87,.04)}.print-menu-card:hover{transform:translateY(-1px);border-color:#9bcdea;box-shadow:0 8px 20px rgba(15,53,87,.08);background:#fbfeff}.print-menu-card-wide{grid-column:1/-1}.print-menu-icon{font-size:29px;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:#eef7fc;flex:none}.print-menu-card strong{display:block;color:#0f3557;font-size:15px}.print-menu-card span{display:block;color:#64748b;font-size:12px;margin-top:3px}.print-preview-panel{padding-bottom:30px}.print-sheet{background:#fff;color:#111}.print-heading{text-align:center;margin:0 0 22px;padding-bottom:12px;border-bottom:1px solid #cbd5e1}.print-heading img{display:block;width:74px;height:74px;object-fit:contain;margin:0 auto 7px}.print-heading h1{margin:0;font-size:18px;letter-spacing:.4px}.print-heading p{margin:5px 0 0;font-size:12px;color:#475569}.print-sheet table{width:100%;border-collapse:collapse;margin:10px 0 18px;font-size:11px}.print-sheet th,.print-sheet td{border:1px solid #94a3b8;padding:7px 8px;vertical-align:top}.print-sheet th{background:#eef2f7;text-align:center;font-weight:800}.print-block{margin-bottom:22px}.print-block h2,.print-section-title{color:#0f3557;margin:18px 0 6px}.print-block p{margin:3px 0 8px;font-size:12px}.print-type{font-size:11px;color:#64748b}.no-print{display:block}
@media(max-width:900px){.pemenang-summary{grid-template-columns:1fr}.print-menu-grid{grid-template-columns:1fr}.print-menu-card-wide{grid-column:auto}}
@media print{
  body{background:#fff!important}.topbar,.sidebar,.page-head,.no-print{display:none!important}.app-layout{display:block!important}.content{padding:0!important;max-width:none!important}.report-panel{border:0!important;box-shadow:none!important;padding:0!important}.print-sheet{padding:0!important}.print-heading{margin-top:0}.print-sheet table{font-size:9pt}.print-sheet th,.print-sheet td{padding:5px 6px}.print-block{break-inside:avoid}
  @page{size:A4 portrait;margin:12mm}.print-preview-panel{display:block!important}
}

/* ============================================================
   CETAK — PROPORSI KOLOM NOMOR / PERTAMA
   ============================================================ */
.print-sheet table th:first-child,
.print-sheet table td:first-child {
    width: 42px;
    min-width: 42px;
    max-width: 52px;
    text-align: center;
    white-space: nowrap;
}
.print-sheet table th:nth-child(2) { text-align: center; }
.print-sheet table td:first-child { vertical-align: middle; }
.print-sheet .print-section-title { break-after: avoid; }

/* Tabel aplikasi: kolom No. dibuat lebih ramping dan konsisten */
.data-table th:first-child,
.data-table td:first-child,
.report-table th:first-child,
.report-table td:first-child {
    width: 44px;
    min-width: 44px;
    max-width: 54px;
    text-align: center;
}
.report-table th:first-child,
.report-table td:first-child { white-space: nowrap; }

@media print {
    .print-sheet table th:first-child,
    .print-sheet table td:first-child {
        width: 36px;
        min-width: 36px;
        max-width: 42px;
    }
}

/* =========================================================
   DASHBOARD APPS SCRIPT STYLE - PUSdatin LOMBA TINGKAT III 2026
========================================================= */
.dashboard-page {
    background: #edf6fb;
}

.dashboard-topbar {
    min-height: 76px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #075985 0%, #087ca5 55%, #0e7490 100%);
    box-shadow: 0 3px 14px rgba(15, 63, 87, .18);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.topbar-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.topbar-brand-text .brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .15px;
}

.topbar-brand-text .brand-sub {
    display: block;
    font-size: 11px;
    opacity: .88;
    margin-top: 3px;
}

.top-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.top-user-info strong {
    font-size: 13px;
}

.top-user-info span {
    font-size: 10px;
    opacity: .78;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 17px !important;
    opacity: 1 !important;
}

.dashboard-topbar .btn-logout {
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.18);
    transition: .2s ease;
}

.dashboard-topbar .btn-logout:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

.dashboard-layout {
    grid-template-columns: 245px 1fr;
}

.dashboard-sidebar {
    min-height: calc(100vh - 76px);
    padding: 18px 12px 20px;
    background: linear-gradient(180deg, #075985 0%, #075477 58%, #064b6b 100%);
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
}

.dashboard-sidebar .sidebar-title {
    margin-top: 17px;
    margin-bottom: 7px;
    color: #d9f2ff;
    opacity: .66;
    font-size: 10px;
    letter-spacing: 1px;
}

.dashboard-sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 11px;
    margin: 3px 0;
    color: #eaf8ff;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}

.dashboard-sidebar .menu-item:hover {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.08);
    transform: translateX(2px);
}

.dashboard-sidebar .menu-item.active {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.13);
    box-shadow: inset 3px 0 0 #fff;
    font-weight: 800;
}

.menu-icon {
    width: 27px;
    min-width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 8px;
    background: rgba(255,255,255,.09);
}

.dashboard-sidebar .menu-item.active .menu-icon {
    background: rgba(255,255,255,.20);
}

.sidebar-brand-mobile {
    display: none;
}

.sidebar-bottom {
    margin: 22px 5px 0;
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.70);
    font-size: 10px;
    line-height: 1.5;
}

.sidebar-version {
    color: #d8fbe4;
    font-weight: 800;
    margin-bottom: 4px;
}

.sidebar-version span {
    color: #34d399;
    margin-right: 4px;
}

.dashboard-content {
    padding: 28px 32px 34px;
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-welcome {
    min-height: 142px;
    background: #fff;
    border: 1px solid #dce8ef;
    border-radius: 18px;
    padding: 25px 28px;
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: 0 7px 24px rgba(30, 64, 85, .055);
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    right: -80px;
    top: -110px;
    background: rgba(14, 116, 144, .06);
}

.welcome-copy {
    position: relative;
    z-index: 2;
}

.dashboard-welcome .eyebrow,
.section-kicker {
    color: #087ca5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
}

.dashboard-welcome h1 {
    margin: 7px 0 6px;
    color: #103a59;
    font-size: 26px;
    line-height: 1.2;
}

.dashboard-welcome h1 span {
    font-size: 22px;
}

.dashboard-welcome p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.welcome-illustration {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.welcome-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(145deg, #e0f7ff, #ccecf7);
    box-shadow: 0 8px 20px rgba(8, 124, 165, .12);
}

.dashboard-role-card {
    background: #fff;
    border: 1px solid #dce8ef;
    border-radius: 18px;
    padding: 19px 24px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 7px 24px rgba(30, 64, 85, .045);
}

.dashboard-role-card h2,
.section-heading h2 {
    margin: 3px 0 0;
    font-size: 18px;
    color: #103a59;
}

.role-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.dashboard-role-card .role-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: .25px;
    border: 1px solid #bae6fd;
}

.pesta-hero {
    min-height: 145px;
    margin-bottom: 24px;
    border-radius: 19px;
    padding: 24px 28px;
    color: #fff;
    background: linear-gradient(120deg, #075985 0%, #087ca5 50%, #0e7490 100%);
    box-shadow: 0 10px 28px rgba(7, 89, 133, .18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.pesta-hero::before,
.pesta-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
}

.pesta-hero::before {
    width: 220px;
    height: 220px;
    right: 60px;
    top: -150px;
}

.pesta-hero::after {
    width: 310px;
    height: 310px;
    right: -100px;
    bottom: -260px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    opacity: .82;
    margin-bottom: 7px;
}

.pesta-hero h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: .4px;
}

.pesta-hero p {
    max-width: 660px;
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.6;
    opacity: .86;
}

.hero-emblem {
    width: 88px;
    height: 88px;
    min-width: 88px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 43px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
    transform: rotate(-3deg);
    position: relative;
    z-index: 2;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 2px 12px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-size: 10px;
    font-weight: 800;
}

.live-badge i {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 27px;
}

.stat-card {
    min-height: 112px;
    padding: 17px 17px 17px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dce8ef;
    box-shadow: 0 7px 22px rgba(30, 64, 85, .05);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 54px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 4px 4px 0;
    background: var(--stat-color, #0ea5e9);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 64, 85, .09);
}

.stat-icon {
    width: 49px;
    height: 49px;
    min-width: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 23px;
    background: var(--stat-bg, #e0f2fe);
}

.stat-data {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-data > span {
    color: #526b7f;
    font-size: 11px;
    font-weight: 700;
}

.stat-data strong {
    color: #103a59;
    font-size: 25px;
    line-height: 1.05;
}

.stat-data small {
    color: #94a3b8;
    font-size: 9px;
}

.stat-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 25px;
    font-weight: 300;
}

.stat-blue { --stat-color:#0284c7; --stat-bg:#e0f2fe; }
.stat-orange { --stat-color:#f59e0b; --stat-bg:#fef3c7; }
.stat-green { --stat-color:#10b981; --stat-bg:#dcfce7; }
.stat-purple { --stat-color:#8b5cf6; --stat-bg:#ede9fe; }
.stat-pink { --stat-color:#ec4899; --stat-bg:#fce7f3; }
.stat-gold { --stat-color:#eab308; --stat-bg:#fef9c3; }

.quick-heading {
    margin-bottom: 12px;
}

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

.quick-card {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #dce8ef;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(30,64,85,.035);
    transition: .18s ease;
}

.quick-card:hover {
    border-color: #b8d9e7;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30,64,85,.08);
}

.quick-icon {
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff8fc;
    font-size: 21px;
}

.quick-card div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-card strong {
    color: #16415f;
    font-size: 12px;
}

.quick-card small {
    color: #7b8fa0;
    font-size: 9px;
    line-height: 1.4;
}

.quick-arrow {
    margin-left: auto;
    color: #9aaebd;
    font-size: 19px;
}

.dashboard-footer {
    padding: 24px 4px 6px;
    text-align: center;
    color: #94a3b8;
    font-size: 10px;
}

@media (max-width: 1180px) {
    .dashboard-content {
        padding: 23px;
    }

    .stats-grid,
    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-topbar {
        position: relative;
    }

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

    .dashboard-sidebar {
        position: relative;
        top: auto;
        height: auto;
        min-height: auto;
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
    }

    .dashboard-sidebar .sidebar-title,
    .sidebar-bottom,
    .sidebar-brand-mobile {
        display: none;
    }

    .dashboard-sidebar .menu-item {
        width: auto;
        min-height: 36px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .dashboard-sidebar .menu-icon {
        display: none;
    }
}

@media (max-width: 680px) {
    .dashboard-topbar {
        padding: 10px 14px;
        align-items: center;
    }

    .topbar-brand-text .brand-title {
        font-size: 14px;
    }

    .topbar-brand-text .brand-sub,
    .top-user-info {
        display: none;
    }

    .dashboard-topbar .topbar-user {
        gap: 8px;
    }

    .dashboard-content {
        padding: 15px;
    }

    .dashboard-welcome {
        padding: 20px;
        min-height: 130px;
    }

    .dashboard-welcome h1 {
        font-size: 21px;
    }

    .welcome-illustration {
        display: none;
    }

    .dashboard-role-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .role-list {
        justify-content: flex-start;
    }

    .pesta-hero {
        padding: 21px;
        min-height: 135px;
    }

    .pesta-hero h2 {
        font-size: 21px;
    }

    .hero-emblem {
        width: 64px;
        height: 64px;
        min-width: 64px;
        font-size: 31px;
        border-radius: 18px;
    }

    .stats-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        gap: 10px;
    }
}


/* =========================================================
   DASHBOARD FINAL - LAYOUT PROPORSIONAL
   - Sidebar lebih besar dan nyaman dibaca
   - Hero Lomba Tingkat III dihapus dari dashboard
   - Menu Akses Cepat dihapus
   - Kartu Ringkasan Data diperbesar
========================================================= */
.dashboard-layout {
    grid-template-columns: 275px 1fr;
}

.dashboard-sidebar {
    padding: 22px 14px 24px;
}

.dashboard-sidebar .sidebar-title {
    margin: 19px 12px 9px;
    font-size: 11px;
    letter-spacing: 1.1px;
}

.dashboard-sidebar .menu-item {
    min-height: 48px;
    padding: 10px 12px;
    margin: 4px 0;
    gap: 12px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-sidebar .menu-item.active {
    box-shadow: inset 4px 0 0 #fff;
}

.dashboard-sidebar .menu-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
    background: rgba(255,255,255,.10);
}

.dashboard-sidebar .menu-item.active .menu-icon {
    background: rgba(255,255,255,.22);
}

.dashboard-content {
    padding: 30px 34px 38px;
    max-width: 1680px;
}

.dashboard-welcome {
    min-height: 150px;
    padding: 28px 30px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.dashboard-welcome h1 {
    font-size: 29px;
}

.dashboard-welcome p {
    font-size: 14px;
}

.welcome-circle {
    width: 88px;
    height: 88px;
    font-size: 38px;
}

.dashboard-role-card {
    min-height: 86px;
    padding: 20px 26px;
    margin-bottom: 27px;
    border-radius: 19px;
}

.dashboard-role-card h2,
.section-heading h2 {
    font-size: 20px;
}

.dashboard-role-card .role-badge {
    padding: 8px 15px;
    font-size: 11px;
}

/* Ringkasan data dibuat sebagai fokus utama dashboard */
.section-heading {
    margin: 0 3px 15px;
}

.section-kicker {
    font-size: 11px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 10px;
}

.stat-card {
    min-height: 136px;
    padding: 20px 20px 20px 23px;
    border-radius: 18px;
    gap: 16px;
}

.stat-card::before {
    width: 5px;
    height: 66px;
}

.stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 16px;
    font-size: 28px;
}

.stat-data {
    gap: 3px;
}

.stat-data > span {
    font-size: 12px;
}

.stat-data strong {
    font-size: 30px;
}

.stat-data small {
    font-size: 10px;
}

.stat-arrow {
    font-size: 30px;
}

/* Tidak dipakai lagi setelah Akses Cepat dihapus */
.quick-heading,
.quick-grid,
.pesta-hero {
    display: none !important;
}

.dashboard-footer {
    padding-top: 28px;
    font-size: 11px;
}

@media (max-width: 1250px) {
    .dashboard-layout {
        grid-template-columns: 255px 1fr;
    }

    .dashboard-content {
        padding: 26px 25px 34px;
    }

    .stat-card {
        min-height: 128px;
    }
}

@media (max-width: 1000px) {
    .dashboard-layout {
        grid-template-columns: 230px 1fr;
    }

    .dashboard-sidebar .menu-item {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        padding: 12px;
    }

    .dashboard-sidebar .menu-item {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .dashboard-sidebar .menu-icon {
        width: 30px;
        min-width: 30px;
        height: 30px;
        font-size: 15px;
    }
}

@media (max-width: 680px) {
    .dashboard-content {
        padding: 15px;
    }

    .dashboard-welcome {
        min-height: 135px;
        padding: 22px;
    }

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

    .dashboard-role-card {
        margin-bottom: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .stat-card {
        min-height: 118px;
    }
}

/* ============================================================
   FINAL FIX — SIDEBAR INTERNAL PAGE
   Sidebar dan konten memiliki area scroll masing-masing.
   Tidak mengubah desain Dashboard.
============================================================ */

/* Desktop */
@media (min-width: 901px) {

    html,
    body {
        min-height: 100%;
    }

    body.app-page {
        min-height: 100vh;
        overflow: hidden;
    }

    /* Area setelah topbar */
    body.app-page .app-layout {
        height: calc(100vh - 70px);
        min-height: 0;
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        overflow: hidden;
    }

    /* Sidebar internal */
    body.app-page .app-layout > .sidebar:not(.dashboard-sidebar) {
        height: calc(100vh - 70px);
        min-height: 0;
        max-height: calc(100vh - 70px);

        position: sticky;
        top: 70px;

        overflow-y: auto;
        overflow-x: hidden;

        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.28) transparent;
    }

    /* Scrollbar Chrome / Edge */
    body.app-page .app-layout > .sidebar:not(.dashboard-sidebar)::-webkit-scrollbar {
        width: 6px;
    }

    body.app-page .app-layout > .sidebar:not(.dashboard-sidebar)::-webkit-scrollbar-track {
        background: transparent;
    }

    body.app-page .app-layout > .sidebar:not(.dashboard-sidebar)::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.28);
        border-radius: 10px;
    }

    body.app-page .app-layout > .sidebar:not(.dashboard-sidebar)::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,.45);
    }

    /* Konten halaman */
    body.app-page .app-layout > .content {
        min-width: 0;
        min-height: 0;
        height: calc(100vh - 70px);

        overflow-y: auto;
        overflow-x: hidden;

        scrollbar-width: thin;
        scrollbar-color: #b8c9d5 transparent;
    }

    body.app-page .app-layout > .content::-webkit-scrollbar {
        width: 8px;
    }

    body.app-page .app-layout > .content::-webkit-scrollbar-track {
        background: transparent;
    }

    body.app-page .app-layout > .content::-webkit-scrollbar-thumb {
        background: #b8c9d5;
        border-radius: 10px;
    }

    body.app-page .app-layout > .content::-webkit-scrollbar-thumb:hover {
        background: #94aebb;
    }
}


/* ============================================================
   DASHBOARD TETAP MENGGUNAKAN SISTEM SCROLL SENDIRI
   Jangan menimpa konfigurasi dashboard yang sudah benar.
============================================================ */

@media (min-width: 901px) {

    body.dashboard-page {
        overflow: hidden;
    }

    body.dashboard-page .dashboard-layout {
        height: calc(100vh - 76px);
        min-height: 0;
        overflow: hidden;
    }

    body.dashboard-page .dashboard-sidebar {
        height: calc(100vh - 76px);
        min-height: 0;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.dashboard-page .dashboard-content {
        height: calc(100vh - 76px);
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
}


/* ============================================================
   RESPONSIVE
   Pada tablet/HP kembali ke scroll normal halaman.
============================================================ */

@media (max-width: 900px) {

    body.app-page {
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.app-page .app-layout {
        height: auto;
        min-height: 0;
        overflow: visible;
        display: grid;
        grid-template-columns: 1fr;
    }

    body.app-page .app-layout > .sidebar {
        position: relative;
        top: auto;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    body.app-page .app-layout > .content {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
}
/* =========================================================
   MOBILE SIDEBAR FINAL — INTERNAL PAGES
   Tidak mengubah desain desktop maupun dashboard.
========================================================= */

.mobile-menu-button,
.mobile-sidebar-overlay,
.mobile-sidebar-head {
    display: none;
}

@media (max-width: 900px) {

    body.app-page .topbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-height: 64px;
        padding: 10px 14px;
        box-sizing: border-box;
    }

    body.app-page .topbar-title-wrap {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    body.app-page .brand-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.app-page .brand-sub {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.app-page .topbar-user {
        flex-shrink: 0;
    }

    body.app-page .mobile-menu-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 0;
        border-radius: 10px;
        background: rgba(255,255,255,.14);
        color: #fff;
        font-size: 23px;
        line-height: 1;
        cursor: pointer;
    }

    body.app-page .mobile-menu-button:hover {
        background: rgba(255,255,255,.22);
    }

    body.app-page .app-layout > .sidebar {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: none !important;
        padding: 15px 12px 25px;
        box-sizing: border-box;
        background: #075985;
        z-index: 10000;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-110%);
        transition: transform .25s ease, box-shadow .25s ease;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
    }

    body.app-page .app-layout > .sidebar.mobile-sidebar-open {
        transform: translateX(0) !important;
        box-shadow: 8px 0 30px rgba(0,0,0,.25);
    }

    body.app-page .mobile-sidebar-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 3px 12px;
        margin-bottom: 7px;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

    body.app-page .mobile-sidebar-brand {
        color: #fff;
        font-size: 17px;
        font-weight: 800;
    }

    body.app-page .mobile-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 8px;
        background: rgba(255,255,255,.12);
        color: #fff;
        font-size: 25px;
        line-height: 1;
        cursor: pointer;
    }

    body.app-page .mobile-sidebar-close:hover {
        background: rgba(255,255,255,.22);
    }

    body.app-page .app-layout > .sidebar .sidebar-title {
        margin: 17px 8px 7px;
        color: #d9f2ff;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    body.app-page .app-layout > .sidebar .menu-item {
        display: block;
        width: 100%;
        box-sizing: border-box;
        min-height: 43px;
        padding: 10px 12px;
        margin: 3px 0;
        border-radius: 8px;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
    }

    body.app-page .app-layout > .sidebar .menu-item:hover {
        background: rgba(255,255,255,.12);
    }

    body.app-page .app-layout > .sidebar .menu-item.active {
        background: rgba(255,255,255,.18);
        box-shadow: inset 3px 0 0 #fff;
        font-weight: 800;
    }

    body.app-page .mobile-sidebar-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(15,23,42,.48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.app-page .mobile-sidebar-overlay.mobile-overlay-show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.app-page .app-layout {
        display: block;
        width: 100%;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    body.app-page .app-layout > .content {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: calc(100vh - 64px);
        overflow: visible;
        box-sizing: border-box;
    }

    body.mobile-sidebar-lock {
        overflow: hidden !important;
    }
}

@media (max-width: 600px) {

    body.app-page .topbar {
        min-height: 60px;
        padding: 9px 11px;
        gap: 8px;
    }

    body.app-page .mobile-menu-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 21px;
    }

    body.app-page .brand-title {
        font-size: 15px;
    }

    body.app-page .brand-sub {
        display: none;
    }

    body.app-page .topbar-user {
        gap: 5px;
    }

    body.app-page .topbar-user .user-pill {
        max-width: 90px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding: 8px 9px;
        font-size: 11px;
    }

    body.app-page .topbar-user .btn-logout {
        padding: 8px 9px;
        font-size: 10px;
    }

    body.app-page .app-layout > .sidebar {
        width: 275px !important;
        max-width: 86vw !important;
    }

    body.app-page .content {
        padding: 15px 12px 24px;
    }
}
