/*
 * SIP Kusuma Bangsa - tampilan modern (mobile-first)
 * Ditimpakan di atas bootstrap 2 + theme.css, jadi markup lama tetap jalan.
 */

:root {
    --sip-primary: #1e5bd8;
    --sip-primary-dark: #1546ab;
    --sip-primary-soft: #e8efff;
    --sip-accent: #e23b3b;
    --sip-success: #16a34a;
    --sip-warning: #f59e0b;
    --sip-danger: #dc2626;
    --sip-info: #0891b2;
    --sip-bg: #f2f5fa;
    --sip-surface: #ffffff;
    --sip-text: #1f2937;
    --sip-muted: #6b7280;
    --sip-border: #e3e8ef;
    --sip-radius: 12px;
    --sip-radius-sm: 8px;
    --sip-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --sip-shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
    --sip-topbar-h: 60px;
    --sip-sidebar-w: 264px;
    --sip-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- dasar ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sip-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--sip-text);
    background: var(--sip-bg);
    padding: 0;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--sip-font); color: #111827; line-height: 1.3; }
h1 { font-size: 26px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 16px; }
a { color: var(--sip-primary); }
a:hover, a:focus { color: var(--sip-primary-dark); }
img { max-width: 100%; height: auto; }
.content p, .content li, .module-body { overflow-wrap: break-word; }
.content td { overflow-wrap: break-word; word-break: normal; }
hr { border-top-color: var(--sip-border); }
.text-muted { color: var(--sip-muted); }
.text-error { color: var(--sip-danger); }
.text-success { color: var(--sip-success); }
.text-warning { color: #b45309; }
::selection { background: var(--sip-primary-soft); }

/* ---------- topbar ---------- */
.sip-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--sip-topbar-h);
    background: var(--sip-surface);
    border-bottom: 1px solid var(--sip-border);
    box-shadow: var(--sip-shadow);
}
.sip-topbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 16px;
    max-width: 1400px;
    margin: 0 auto;
}
.sip-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--sip-primary-soft);
    color: var(--sip-primary);
    font-size: 20px;
    line-height: 42px;
    padding: 0;
    flex: 0 0 auto;
}
.sip-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    color: #111827;
    text-decoration: none;
}
.sip-brand:hover, .sip-brand:focus { color: #111827; text-decoration: none; }
.sip-brand img { height: 38px; width: auto; flex: 0 0 auto; }
.sip-brand-txt {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sip-brand-txt small { display: block; font-weight: 500; font-size: 12px; color: var(--sip-muted); }
.sip-user { position: relative; flex: 0 0 auto; list-style: none; margin: 0; }
.sip-user > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 12px;
    border-radius: 999px;
    color: var(--sip-text);
    text-decoration: none;
    border: 1px solid var(--sip-border);
    background: #fff;
}
.sip-user > a:hover { background: var(--sip-bg); text-decoration: none; }
.sip-user-name { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sip-user .sip-avatar {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
    background: var(--sip-primary-soft); border: 0; padding: 0; margin: 0;
}
.sip-user .dropdown-menu {
    right: 0; left: auto; margin-top: 8px; min-width: 210px;
    border-radius: var(--sip-radius); border: 1px solid var(--sip-border);
    box-shadow: var(--sip-shadow-lg); padding: 6px;
}
.sip-user .dropdown-menu > li > a { padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.sip-user .dropdown-menu > li > a:hover { background: var(--sip-primary-soft); color: var(--sip-primary-dark); }
.sip-user .dropdown-menu i { width: 18px; color: var(--sip-muted); }

/* ---------- kerangka halaman ---------- */
.sip-shell {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - var(--sip-topbar-h));
}
.sip-sidebar {
    position: sticky;
    top: var(--sip-topbar-h);
    flex: 0 0 var(--sip-sidebar-w);
    width: var(--sip-sidebar-w);
    height: calc(100vh - var(--sip-topbar-h));
    overflow-y: auto;
    padding: 18px 12px 24px;
    -webkit-overflow-scrolling: touch;
}
.sip-sidebar-head { display: none; }
.sip-main { flex: 1 1 auto; min-width: 0; padding: 20px 20px 40px; }
.sip-main > .content { padding: 0; margin: 0; }
.sip-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 1040;
}

/* menu samping (markup dari libraries/Menu.php) */
.sip-sidebar .widget-menu {
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid var(--sip-border);
    background: transparent;
    box-shadow: none;
}
.sip-sidebar .widget-menu:last-child { border-bottom: 0; }
.sip-sidebar .widget-menu li { margin: 2px 0; border: 0; }
.sip-sidebar .widget-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
    background: transparent;
    border: 0;
    transition: background .15s, color .15s;
}
.sip-sidebar .widget-menu li a:hover { background: #e9eef7; color: #111827; }
.sip-sidebar .widget-menu li a.active,
.sip-sidebar .widget-menu li.active > a { background: var(--sip-primary); color: #fff; }
.sip-sidebar .widget-menu li a.active i { color: #fff; }
.sip-sidebar .widget-menu .menu-icon {
    width: 22px; text-align: center; font-size: 16px; color: #64748b;
    margin: 0; float: none; position: static;
}
.sip-sidebar .widget-menu .label,
.sip-sidebar .widget-menu .badge { margin-left: auto; border-radius: 999px; }

/* ---------- kartu / module ---------- */
.module, .well, .panel {
    background: var(--sip-surface);
    border: 1px solid var(--sip-border);
    border-radius: var(--sip-radius);
    box-shadow: var(--sip-shadow);
    margin-bottom: 18px;
}
.module { overflow: visible; }
.module-head {
    padding: 14px 18px;
    background: transparent;
    border-bottom: 1px solid var(--sip-border);
    border-radius: var(--sip-radius) var(--sip-radius) 0 0;
}
.module-head h3 { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.4; color: #111827; }
.module-head .btn, .module-head .btn-group { margin-top: -3px; }
.module-body { padding: 18px; }
.module-foot { padding: 12px 18px; border-top: 1px solid var(--sip-border); background: #fafbfd; border-radius: 0 0 var(--sip-radius) var(--sip-radius); }
.well { padding: 16px 18px; }
.well-small, .well-sm { padding: 12px 14px; }
.well-box { line-height: 1.7; }
.panel-heading { padding: 12px 16px; border-bottom: 1px solid var(--sip-border); font-weight: 600; border-radius: var(--sip-radius) var(--sip-radius) 0 0; }
.panel-body { padding: 16px; }
.bs-callout {
    border: 1px solid var(--sip-border);
    border-left: 4px solid var(--sip-primary);
    border-radius: var(--sip-radius-sm);
    background: #f8faff;
    padding: 12px 14px;
    margin: 0 0 16px;
}
.bs-callout .as-link { cursor: pointer; font-weight: 700; }
.bs-callout .table { background: transparent; }

/* kotak statistik beranda */
.btn-box-row { margin-bottom: 4px; }
.btn-box {
    border-radius: var(--sip-radius);
    border: 1px solid var(--sip-border);
    background: var(--sip-surface);
    box-shadow: var(--sip-shadow);
    padding: 18px 12px;
    margin-bottom: 16px;
    transition: transform .15s, box-shadow .15s;
}
.btn-box:hover { transform: translateY(-2px); box-shadow: var(--sip-shadow-lg); text-decoration: none; }
.btn-box i { color: var(--sip-primary); }
.btn-box b { color: #111827; }

/* ---------- tombol ---------- */
.btn {
    border-radius: var(--sip-radius-sm);
    font-weight: 600;
    font-size: 14px;
    padding: 7px 14px;
    line-height: 1.4;
    box-shadow: none;
    text-shadow: none;
    background-image: none;
    border: 1px solid var(--sip-border);
}
.btn-small, .btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-mini, .btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-large, .btn-lg { padding: 11px 20px; font-size: 16px; }
.btn-primary { background: var(--sip-primary); border-color: var(--sip-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { background: var(--sip-primary-dark); border-color: var(--sip-primary-dark); color: #fff; }
.btn-success { background: var(--sip-success); border-color: var(--sip-success); color: #fff; }
.btn-danger { background: var(--sip-danger); border-color: var(--sip-danger); color: #fff; }
.btn-warning { background: var(--sip-warning); border-color: var(--sip-warning); color: #fff; }
.btn-info { background: var(--sip-info); border-color: var(--sip-info); color: #fff; }
.btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover { filter: brightness(.93); color: #fff; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-top-left-radius: var(--sip-radius-sm); border-bottom-left-radius: var(--sip-radius-sm); }
.btn-group > .btn:last-child, .btn-group > .dropdown-toggle { border-top-right-radius: var(--sip-radius-sm); border-bottom-right-radius: var(--sip-radius-sm); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(30, 91, 216, .35);
    outline-offset: 1px;
}

/* ---------- form ---------- */
select, textarea,
input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"],
input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"],
input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"],
.uneditable-input {
    height: auto;
    min-height: 38px;
    padding: 7px 11px;
    font-size: 14.5px;
    line-height: 1.4;
    border: 1px solid #cfd6e1;
    border-radius: var(--sip-radius-sm);
    box-shadow: none;
    color: var(--sip-text);
    background-color: #fff;
}
select { padding-right: 6px; }
textarea { min-height: 80px; }
select:focus, textarea:focus, input[type="text"]:focus, input[type="password"]:focus,
input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="date"]:focus {
    border-color: var(--sip-primary);
    box-shadow: 0 0 0 3px rgba(30, 91, 216, .15);
    outline: 0;
}
label, .control-label { font-weight: 600; color: #374151; }
.radio, .checkbox { font-weight: 400; }
.help-block, .help-inline { color: var(--sip-muted); font-size: 13px; }
.input-append .add-on, .input-prepend .add-on { min-height: 24px; padding: 7px 10px; background: #f3f5f9; border-color: #cfd6e1; }
.input-append input, .input-append select { border-radius: var(--sip-radius-sm) 0 0 var(--sip-radius-sm); }
.input-append .btn:last-child, .input-append .add-on:last-child { border-radius: 0 var(--sip-radius-sm) var(--sip-radius-sm) 0; }
.form-actions { background: transparent; border-top: 1px solid var(--sip-border); padding: 16px 0 0; margin-top: 10px; }

/* ---------- tabel ---------- */
.sip-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: var(--sip-radius-sm);
}
.sip-table-wrap > .table { margin-bottom: 0; }
.table { background: #fff; font-size: 14px; }
.table th {
    background: #f6f8fb;
    color: #475569;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .02em;
    vertical-align: middle;
}
.table th, .table td { padding: 10px 12px; border-top-color: var(--sip-border); }
.table-condensed th, .table-condensed td { padding: 7px 9px; }
.table-striped tbody > tr:nth-child(odd) > td { background: #fafbfd; }
.table-hover tbody tr:hover > td, .table tbody tr:hover > td { background: #f1f5ff; }
.table-bordered { border-color: var(--sip-border); border-radius: var(--sip-radius-sm); }

/* datatables */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { margin-left: 6px; }
.dataTables_wrapper .dataTables_paginate a, .pagination ul > li > a, .pagination ul > li > span { border-radius: 6px; margin: 0 2px; }
.pagination ul { box-shadow: none; }
.pagination ul > li > a, .pagination ul > li > span { border: 1px solid var(--sip-border); }
.pagination ul > .active > a, .pagination ul > .active > span { background: var(--sip-primary); color: #fff; border-color: var(--sip-primary); }

/* ---------- komponen lain ---------- */
.alert { border-radius: var(--sip-radius-sm); padding: 12px 38px 12px 14px; text-shadow: none; border-width: 1px; }
.alert-success { background: #ecfdf3; border-color: #a6f0c6; color: #14532d; }
.alert-error, .alert-danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert:not(.alert-success):not(.alert-error):not(.alert-danger):not(.alert-info) { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.label, .badge { border-radius: 6px; padding: 3px 7px; font-weight: 600; text-shadow: none; }
.label-success, .badge-success { background: var(--sip-success); }
.label-warning, .badge-warning { background: var(--sip-warning); }
.label-important, .badge-important { background: var(--sip-danger); }
.label-info, .badge-info { background: var(--sip-info); }
.dropdown-menu { border-radius: var(--sip-radius-sm); border-color: var(--sip-border); box-shadow: var(--sip-shadow-lg); }
.nav-tabs > li > a { border-radius: 8px 8px 0 0; }
.nav-pills > li > a { border-radius: 999px; }
.nav-pills > .active > a, .nav-pills > .active > a:hover { background: var(--sip-primary); }
.modal { border-radius: var(--sip-radius); border: 0; box-shadow: var(--sip-shadow-lg); }
.img-polaroid { border-radius: 10px; }
.media.user { border-radius: var(--sip-radius); }
.breadcrumb { background: transparent; padding: 0 0 8px; margin-bottom: 8px; }
.sip-page-alert { margin-bottom: 16px; }

/* ---------- halaman publik / login ---------- */
.sip-public {
    min-height: 100vh;
    background: linear-gradient(160deg, #0f3fa8 0%, #1e5bd8 45%, #5b8def 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.sip-public > .container { width: 100%; max-width: 980px; }
.sip-login {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(8, 25, 70, .35);
}
.sip-login-hero {
    flex: 1 1 50%;
    padding: 44px 40px;
    color: #fff;
    background: linear-gradient(180deg, rgba(13, 42, 120, .92), rgba(21, 70, 171, .88)), url(../../../BGSMA.jpg) center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sip-login-hero img { height: 96px; width: auto; align-self: flex-start; margin-bottom: 22px; background: #fff; border-radius: 50%; padding: 4px; }
.sip-login-hero h1 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.sip-login-hero p { color: rgba(255, 255, 255, .85); font-size: 15px; margin: 0; }
.sip-login-form { flex: 1 1 50%; padding: 44px 40px; }
.sip-login-form h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.sip-login-form .sip-lead { color: var(--sip-muted); margin-bottom: 22px; }
.sip-login-logo-sm { display: none; }
.sip-field { margin-bottom: 14px; }
.sip-field label { display: block; font-size: 13.5px; margin-bottom: 6px; }
.sip-input {
    position: relative;
}
.sip-input i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 16px; pointer-events: none;
}
.sip-login-form .sip-input input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px 12px 42px;
    font-size: 16px;
    border-radius: 10px;
    margin: 0;
}
.sip-login-form .sip-input input:focus:invalid { border-color: var(--sip-primary); box-shadow: 0 0 0 3px rgba(30, 91, 216, .15); color: var(--sip-text); }
.sip-input .sip-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: #64748b; width: 38px; height: 38px; border-radius: 8px; padding: 0;
}
.sip-input .sip-eye:hover { background: var(--sip-bg); }
.sip-btn-login {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--sip-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-top: 6px;
    cursor: pointer;
}
.sip-btn-login:hover { background: var(--sip-primary-dark); }
.sip-login-form .alert { margin-bottom: 16px; }
.sip-login-foot { margin-top: 20px; font-size: 13px; color: var(--sip-muted); text-align: center; }

/* ---------- halaman ujian / tugas / baca materi (read.css lama memaksa lebar 1000px) ---------- */
body.sip-ujian, body.sip-read {
    background: var(--sip-bg);
    font-family: var(--sip-font);
    color: var(--sip-text);
    height: auto;
}
.sip-ujian .container, .sip-read .container {
    width: auto;
    max-width: 1100px;
    padding: 0 16px;
    box-sizing: border-box;
}
.sip-ujian hr.hr-top, .sip-read hr.hr-top { border-top: 3px solid var(--sip-primary); margin-bottom: 14px; }
.sip-read .content { border-radius: var(--sip-radius); border-color: var(--sip-border); box-shadow: var(--sip-shadow); }
.sip-ujian [id^="pilihan-"] > .table { background: transparent; }
.sip-ujian [id^="pilihan-"] > .table td { border: 0; background: transparent; vertical-align: top; }
.sip-ujian [id^="pilihan-"] > .table > tbody > tr:not(.warning) {
    cursor: pointer;
}
.sip-ujian [id^="pilihan-"] > .table > tbody > tr:not(.warning) > td {
    border-top: 1px solid var(--sip-border);
    border-bottom: 1px solid var(--sip-border);
    padding-top: 10px; padding-bottom: 10px;
}
.sip-ujian [id^="pilihan-"] > .table > tbody > tr:not(.warning) > td:first-child { border-left: 1px solid var(--sip-border); border-radius: 10px 0 0 10px; }
.sip-ujian [id^="pilihan-"] > .table > tbody > tr:not(.warning) > td:last-child { border-right: 1px solid var(--sip-border); border-radius: 0 10px 10px 0; }
.sip-ujian [id^="pilihan-"] > .table { border-collapse: separate; border-spacing: 0 6px; }
.sip-ujian [id^="pilihan-"] > .table > tbody > tr:hover > td { background: #f5f8ff; }
.sip-ujian [id^="pilihan-"] > .table > tbody > tr.sip-picked > td { background: var(--sip-primary-soft); border-color: #b9cdf8; }
.sip-ujian .label-radio { white-space: nowrap; margin: 0; }
.sip-ujian .label-radio input { margin: 0 4px 0 0; width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- halaman ujian / tugas ---------- */
.sip-ujian #wrap > .container, .sip-ujian > .container { padding-top: 14px; }
.sip-ujian .wrap-content .content {
    background: #fff;
    border: 1px solid var(--sip-border);
    border-radius: var(--sip-radius);
    padding: 18px;
    box-shadow: var(--sip-shadow);
}
.sip-ujian h1.title { font-size: 22px; margin: 6px 0; }
.sip-ujian .pertanyaan, .sip-ujian .pertanyaan p { font-size: 16px; line-height: 1.7; }
.sip-ujian label.radio, .sip-ujian label.checkbox {
    display: block;
    padding: 10px 12px 10px 34px;
    margin: 6px 0;
    border: 1px solid var(--sip-border);
    border-radius: 10px;
    cursor: pointer;
}
.sip-ujian label.radio:hover, .sip-ujian label.checkbox:hover { background: #f5f8ff; border-color: #c7d6fb; }
.sip-ujian label.radio input, .sip-ujian label.checkbox input { margin-left: -22px; }

/* ---------- tablet & HP ---------- */
@media (max-width: 979px) {
    .sip-burger { display: inline-block; }
    .sip-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        height: 100%;
        z-index: 1050;
        width: 82vw;
        max-width: 300px;
        background: #fff;
        box-shadow: var(--sip-shadow-lg);
        transform: translateX(-105%);
        transition: transform .25s ease;
        padding: 0 12px 24px;
    }
    .sip-sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: sticky; top: 0;
        background: #fff;
        padding: 14px 4px 12px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--sip-border);
        z-index: 1;
    }
    .sip-sidebar-head b { font-size: 16px; }
    .sip-sidebar-head button {
        border: 0; background: var(--sip-bg); width: 38px; height: 38px; border-radius: 10px; font-size: 18px; padding: 0;
    }
    .sip-nav-open .sip-sidebar { transform: none; }
    .sip-nav-open .sip-overlay { display: block; }
    .sip-nav-open { overflow: hidden; }
    .sip-sidebar .widget-menu li a { padding: 12px; font-size: 15.5px; }
    .sip-main { padding: 16px 14px 32px; }
}

@media (max-width: 767px) {
    body { font-size: 15.5px; }
    .sip-topbar-inner { padding: 0 10px; gap: 8px; }
    .sip-brand img { height: 32px; }
    .sip-brand-txt { font-size: 15px; }
    .sip-brand-txt small { display: none; }
    .sip-user-name { display: none; }
    .sip-user > a { padding: 3px; }
    .sip-main { padding: 12px 10px 28px; }

    h1 { font-size: 22px; } h2 { font-size: 19px; } h3 { font-size: 17px; }
    .module { margin-bottom: 14px; }
    .module-head { padding: 12px 14px; }
    .module-head .pull-right { float: none; display: block; margin: 8px 0 0; }
    .module-body { padding: 14px; }
    .well { padding: 12px 14px; }

    /* form selalu tersusun ke bawah dan penuh */
    .form-horizontal .control-label { float: none; width: auto; text-align: left; padding-top: 0; margin-bottom: 4px; }
    .form-horizontal .controls { margin-left: 0; }
    .form-horizontal .control-group { margin-bottom: 14px; }
    .content input[class*="span"], .content select[class*="span"], .content textarea[class*="span"],
    .content .uneditable-input[class*="span"], .controls input[type="text"], .controls input[type="password"],
    .controls input[type="email"], .controls input[type="number"], .controls select, .controls textarea {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 44px;
        font-size: 16px; /* cegah auto-zoom di iOS */
    }
    .controls .input-append, .controls .input-prepend { display: flex; }
    .controls .input-append input, .controls .input-prepend input { flex: 1 1 auto; width: auto; }
    .controls .radio.inline, .controls .checkbox.inline { display: block; margin-left: 0; padding-top: 6px; }
    .form-actions { padding-left: 0; }
    .form-search input, .form-inline input, .form-inline select { width: 100%; box-sizing: border-box; margin-bottom: 8px; }

    .btn { padding: 9px 14px; }
    .btn-small, .btn-sm { padding: 7px 11px; }
    .btn-group { display: inline-flex; flex-wrap: wrap; }
    /* deretan tombol "Tambah ..." jadi tombol terpisah selebar layar */
    .bs-callout > .btn-group.pull-right, .module-body > .btn-group.pull-right, .module-head .btn-group.pull-right {
        float: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px !important;
    }
    .bs-callout > .btn-group.pull-right > .btn, .module-body > .btn-group.pull-right > .btn {
        flex: 1 1 auto; border-radius: var(--sip-radius-sm) !important; margin: 0;
    }
    .table th:first-child, .table td:first-child { white-space: nowrap; }
    .pull-right.btn-group, .module-head .btn-group { float: none; }

    .table { font-size: 13.5px; }
    .table th, .table td { padding: 9px 10px; }
    .table td, .table th { white-space: normal; }
    .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { float: none; text-align: left; margin-bottom: 8px; }
    .dataTables_wrapper .dataTables_filter input { width: 100%; margin: 4px 0 0; box-sizing: border-box; }
    .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { float: none; text-align: center; margin-top: 10px; }

    .btn-box { padding: 14px 8px; }
    /* kotak statistik jadi 2 kolom */
    .btn-box-row.row-fluid:has(> .btn-box) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
    .btn-box-row.row-fluid:has(> .btn-box)::before, .btn-box-row.row-fluid:has(> .btn-box)::after { display: none; }
    .btn-box-row.row-fluid > .btn-box { width: auto; margin: 0; }
    .well-box small.pull-right { float: none; display: block; margin-bottom: 4px; }

    .modal { left: 10px; right: 10px; width: auto; margin-left: 0; top: 5%; }
    .modal.fade.in { top: 5%; }

    .pull-right.user-info { float: none; }
    /* halaman ujian di HP: huruf lebih kecil supaya muat lebih banyak */
    body.sip-ujian { font-size: 14px; line-height: 1.55; }
    .sip-ujian #wrap > .container, .sip-ujian > .container { padding-top: 10px; }
    .sip-ujian .wrap-content .content { padding: 12px; }
    .sip-ujian h1.title { font-size: 17px; }
    .sip-ujian #wrap > .container > .row-fluid:first-child { font-size: 13px; line-height: 1.4; }
    .sip-ujian .wrap-content .content > .row-fluid:first-child { font-size: 13.5px; }
    .sip-ujian .pertanyaan, .sip-ujian .pertanyaan p, .sip-ujian .pertanyaan li, .sip-ujian .pertanyaan td { font-size: 14.5px; line-height: 1.6; }
    .sip-ujian .pertanyaan p { margin-bottom: 8px; }
    .sip-ujian [id^="pilihan-"] td, .sip-ujian [id^="pilihan-"] p { font-size: 14px; line-height: 1.5; }
    .sip-ujian [id^="pilihan-"] > .table > tbody > tr:not(.warning) > td { padding-top: 8px; padding-bottom: 8px; }
    .sip-ujian [id^="pilihan-"] > .table { border-spacing: 0 5px; }
    .sip-ujian label.radio, .sip-ujian label.checkbox { font-size: 14px; padding: 8px 10px 8px 32px; }
    .sip-ujian .p-info { font-size: 14.5px; }
    /* tabel soal jadi tumpukan kartu, bukan tabel lebar */
    .sip-ujian table.datatable, .sip-ujian table.datatable > tbody,
    .sip-ujian table.datatable > tbody > tr, .sip-ujian table.datatable > tbody > tr > td { display: block; width: auto; }
    .sip-ujian table.datatable > thead { display: none; }
    .sip-ujian table.datatable > tbody > tr { padding: 12px 0; border-bottom: 1px solid var(--sip-border); }
    .sip-ujian table.datatable > tbody > tr > td { border: 0; padding: 2px 0; background: transparent !important; white-space: normal; }
    .sip-ujian .pertanyaan img { height: auto !important; }
    .table .label, .table .badge { white-space: normal; display: inline-block; line-height: 1.3; }

    /* login */
    .sip-public { padding: 0; align-items: stretch; background: #fff; }
    .sip-public > .container { padding: 0; }
    .sip-login { flex-direction: column; border-radius: 0; box-shadow: none; min-height: 100vh; }
    .sip-login-hero { flex: 0 0 auto; padding: 30px 22px 56px; text-align: center; align-items: center; }
    .sip-login-hero img { height: 76px; align-self: center; margin-bottom: 12px; }
    .sip-login-hero h1 { font-size: 21px; }
    .sip-login-hero p { font-size: 14px; }
    .sip-login-form {
        flex: 1 1 auto;
        padding: 26px 20px 30px;
        margin-top: -28px;
        background: #fff;
        border-radius: 22px 22px 0 0;
        position: relative;
    }
    .sip-login-form h2 { font-size: 20px; }
}

/* ---------- cetak ---------- */
@media print {
    .sip-topbar, .sip-sidebar, .sip-overlay, .sip-burger { display: none !important; }
    .sip-main { padding: 0; }
    body { background: #fff; }
    .module, .well { box-shadow: none; }
}

/* =====================================================================
 * Daftar berbentuk kartu (Penilaian, Materi, Perangkat Penilaian)
 * ===================================================================== */
.sip-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.sip-page-head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.sip-page-head p { margin: 2px 0 0; color: var(--sip-muted); font-size: 14px; }
.sip-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.sip-toolbar .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* panel filter */
.sip-filter {
    background: var(--sip-surface);
    border: 1px solid var(--sip-border);
    border-radius: var(--sip-radius);
    box-shadow: var(--sip-shadow);
    margin-bottom: 16px;
}
.sip-filter-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    font-weight: 700; color: var(--sip-text);
    cursor: pointer; text-decoration: none;
}
.sip-filter-toggle:hover, .sip-filter-toggle:focus { text-decoration: none; color: var(--sip-primary); }
.sip-filter-ic {
    width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sip-primary-soft); color: var(--sip-primary);
}
.sip-filter-toggle small { font-weight: 500; color: var(--sip-muted); margin-left: auto; }
.sip-filter-body { padding: 4px 16px 16px; border-top: 1px solid var(--sip-border); }
.sip-filter-row { padding: 12px 0 0; }
.sip-filter-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--sip-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.sip-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.sip-filter-grid input[type=text] { width: 100%; box-sizing: border-box; margin: 0; }
.sip-filter-actions { display: flex; gap: 8px; padding-top: 14px; }

/* pilihan centang berbentuk chip */
.sip-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
label.sip-chip {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0; padding: 6px 12px;
    border: 1px solid #cfd6e1; border-radius: 999px;
    background: #fff; font-weight: 500; font-size: 13.5px; color: #374151;
    cursor: pointer; user-select: none;
}
label.sip-chip input { margin: 0; }
label.sip-chip:has(input:checked) { background: var(--sip-primary-soft); border-color: #a9c1f5; color: var(--sip-primary-dark); }

/* daftar kartu */
.sip-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.sip-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--sip-surface);
    border: 1px solid var(--sip-border);
    border-radius: var(--sip-radius);
    box-shadow: var(--sip-shadow);
    padding: 16px;
    transition: box-shadow .15s, border-color .15s;
}
.sip-item:hover { box-shadow: var(--sip-shadow-lg); border-color: #d3dbe8; }
.sip-item.is-todo { border-left: 4px solid var(--sip-primary); background: linear-gradient(90deg, #f3f7ff, #fff 60%); }
.sip-item-ic {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: var(--sip-primary-soft); color: var(--sip-primary);
}
.sip-item-ic.t-ganda { background: #e7f8ee; color: #15803d; }
.sip-item-ic.t-essay { background: #eef2ff; color: #4338ca; }
.sip-item-ic.t-upload { background: #fff4e5; color: #c2410c; }
.sip-item-ic.t-file { background: #e8f4fb; color: #0369a1; }
.sip-item-ic.t-tulis { background: #f2ecff; color: #6d28d9; }
.sip-item-main { flex: 1 1 auto; min-width: 0; }
.sip-item-title {
    display: block;
    font-size: 16.5px; font-weight: 700; line-height: 1.35;
    color: #111827; margin: 0 0 6px;
    overflow-wrap: anywhere;
}
a.sip-item-title:hover, a.sip-item-title:focus { color: var(--sip-primary); text-decoration: none; }
.sip-id { font-weight: 600; font-size: 12px; color: var(--sip-muted); margin-left: 4px; white-space: nowrap; }
.sip-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.sip-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 1px 9px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; line-height: 1.7;
    background: #f1f4f9; color: #475569; border: 1px solid #e5e9f0;
}
.sip-tag.is-mapel { background: var(--sip-primary-soft); color: var(--sip-primary-dark); border-color: #d2defb; }
.sip-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--sip-muted); }
.sip-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.sip-meta a { color: inherit; font-weight: 600; }
.sip-meta a:hover { color: var(--sip-primary); }
.sip-meta i { color: #94a3b8; width: 14px; text-align: center; }
.sip-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sip-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sip-status.s-ok { background: #e7f8ee; color: #15803d; }
.sip-status.s-off { background: #f1f4f9; color: #64748b; }
.sip-status.s-warn { background: #fff4e5; color: #b45309; }
.sip-status.s-info { background: #e8f4fb; color: #0369a1; }
.sip-status.s-bad { background: #fdecec; color: #b91c1c; }
.sip-statuses { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sip-item-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 46%; }
.sip-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.sip-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; white-space: nowrap; }
.btn.sip-btn-ghost { background: #fff; color: #374151; border: 1px solid #d5dce6; }
.btn.sip-btn-ghost:hover, .btn.sip-btn-ghost:focus { background: var(--sip-bg); color: #111827; }
.btn.sip-btn-danger-ghost { background: #fff; color: var(--sip-danger); border: 1px solid #f3c4c4; }
.btn.sip-btn-danger-ghost:hover, .btn.sip-btn-danger-ghost:focus { background: #fdecec; color: #991b1b; }
.sip-more { margin-top: 8px; font-size: 13px; }
.sip-more > a { font-weight: 600; cursor: pointer; }
.sip-more-body { margin-top: 8px; padding: 12px 14px; border-radius: var(--sip-radius-sm); background: #f8fafc; border: 1px dashed #d5dce6; font-size: 14px; }
.sip-empty {
    text-align: center; padding: 40px 20px; color: var(--sip-muted);
    background: var(--sip-surface); border: 1px dashed #cfd6e1; border-radius: var(--sip-radius);
}
.sip-empty i { font-size: 34px; color: #cbd5e1; display: block; margin-bottom: 10px; }

@media (max-width: 767px) {
    .sip-page-head h2 { font-size: 19px; }
    .sip-toolbar { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
    .sip-toolbar .btn { flex-direction: column; gap: 4px; min-height: 64px; padding: 10px 6px; font-size: 13px; line-height: 1.25; border-radius: 12px; white-space: normal; }
    .sip-toolbar .btn i { font-size: 18px; }
    .sip-filter-grid { grid-template-columns: 1fr; }
    .sip-filter-actions .btn { flex: 1 1 auto; min-height: 44px; }
    label.sip-chip { padding: 8px 13px; font-size: 14px; }

    .sip-item { flex-wrap: wrap; padding: 14px; gap: 12px; }
    .sip-item-ic { width: 42px; height: 42px; font-size: 18px; }
    .sip-item-main { flex: 1 1 calc(100% - 60px); }
    .sip-item-title { font-size: 16px; }
    .sip-meta { font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
    .sip-meta > span:first-child { grid-column: 1 / -1; }
    .sip-meta > span { align-items: flex-start; }
    .sip-meta > span > i { margin-top: 3px; }
    .sip-item-side { flex: 1 1 100%; max-width: none; align-items: stretch; gap: 10px; border-top: 1px solid var(--sip-border); padding-top: 12px; }
    .sip-statuses { justify-content: flex-start; }
    /* tombol aksi: satu baris, sama lebar, tetap mudah disentuh */
    .sip-actions { display: flex; flex-wrap: wrap; gap: 6px; }
    .sip-actions .btn { flex: 1 1 72px; min-width: 0; min-height: 42px; padding: 8px 6px; font-size: 13.5px; gap: 5px; }
    .sip-actions .btn.sip-btn-wide { flex: 1 1 100%; min-height: 48px; font-size: 15.5px; }
}

/* =====================================================================
 * Timer ujian ringkas (views/default/ujian-timer.html + comp/jquery/ujian.js)
 * ===================================================================== */
.sip-timer {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1035;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 5px 5px 6px;
    background: #fff;
    border: 1px solid var(--sip-border);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .14);
    overflow: hidden;
    font-variant-numeric: tabular-nums;
    transition: border-color .2s, background .2s;
}
.sip-timer-ic {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sip-primary-soft); color: var(--sip-primary);
    font-size: 15px; flex: 0 0 auto;
}
.sip-timer-body { display: flex; flex-direction: column; line-height: 1.05; min-width: 62px; }
.sip-timer-body small { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sip-muted); }
.sip-timer-time { font-size: 19px; font-weight: 800; color: #111827; letter-spacing: .01em; }
.sip-timer-toggle {
    width: 30px; height: 30px; border-radius: 50%;
    border: 0; padding: 0; background: var(--sip-bg); color: #64748b;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex: 0 0 auto;
}
.sip-timer-toggle:hover { background: #e5eaf2; color: #111827; }
.sip-timer .sip-timer-toggle .sip-timer-ic-show { display: none; }
.sip-timer-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.sip-timer-bar > i { display: block; height: 100%; width: 100%; background: var(--sip-primary); transition: width 1s linear; }

/* disembunyikan: tinggal ikon jam + tombol mata */
.sip-timer.is-hidden { gap: 4px; }
.sip-timer.is-hidden .sip-timer-body, .sip-timer.is-hidden .sip-timer-bar { display: none; }
.sip-timer.is-hidden .sip-timer-toggle .sip-timer-ic-hide { display: none; }
.sip-timer.is-hidden .sip-timer-toggle .sip-timer-ic-show { display: inline-block; }

/* 5 menit terakhir & 1 menit terakhir */
.sip-timer.is-warn { border-color: #fbbf24; }
.sip-timer.is-warn .sip-timer-ic { background: #fff4e5; color: #c2410c; }
.sip-timer.is-warn .sip-timer-time { color: #c2410c; }
.sip-timer.is-warn .sip-timer-bar > i { background: #f59e0b; }
.sip-timer.is-danger { border-color: #f87171; background: #fff5f5; }
.sip-timer.is-danger .sip-timer-ic { background: #fdecec; color: #b91c1c; animation: sip-pulse 1s ease-in-out infinite; }
.sip-timer.is-danger .sip-timer-time { color: #b91c1c; }
.sip-timer.is-danger .sip-timer-bar > i { background: #dc2626; }
@keyframes sip-pulse { 50% { transform: scale(1.12); } }

/* beri ruang supaya judul ujian tidak tertutup timer */
.sip-ujian #wrap > .container > .row-fluid:first-child { padding-right: 170px; box-sizing: border-box; }

/* =====================================================================
 * Bacaan / soal panjang: dibungkus kotak yang bisa digulir atas-bawah & kiri-kanan
 * (kelas .sip-longtext dipasang otomatis oleh modern.js)
 * ===================================================================== */
.sip-ujian .pertanyaan, .sip-ujian [id^="pilihan-"] td:last-child { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sip-longtext {
    max-height: 45vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 14px;
    background: #fafbfd;
    border: 1px solid var(--sip-border);
    border-radius: 10px;
    box-shadow: inset 0 -14px 14px -14px rgba(15, 23, 42, .25);
}
.sip-longtext.is-open { max-height: none; box-shadow: none; }
.sip-longtext::-webkit-scrollbar { width: 8px; height: 8px; }
.sip-longtext::-webkit-scrollbar-thumb { background: #c7cfdc; border-radius: 8px; }
.sip-longtext-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 6px 0 10px; font-size: 12.5px; color: var(--sip-muted);
}
.sip-ujian .sip-longtext-q { font-weight: 700; color: #111827; margin: 0 0 4px; overflow: visible; }
.sip-ujian .sip-longtext-q p:last-child { margin-bottom: 4px; }
.sip-longtext-bar button {
    border: 1px solid var(--sip-border); background: #fff; color: var(--sip-primary);
    font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}

@media (max-width: 767px) {
    .sip-timer { top: 8px; right: 8px; padding: 4px 4px 4px 5px; gap: 6px; }
    .sip-timer-ic, .sip-timer-toggle { width: 28px; height: 28px; font-size: 14px; }
    .sip-timer-body { min-width: 54px; }
    .sip-timer-body small { font-size: 9px; }
    .sip-timer-time { font-size: 17px; }
    .sip-ujian #wrap > .container > .row-fluid:first-child { padding-right: 140px; }
    .sip-longtext { max-height: 50vh; padding: 10px 12px; }
}
@media print { .sip-timer, .sip-longtext-bar { display: none !important; } .sip-longtext { max-height: none; overflow: visible; } }

/* =====================================================================
 * Navigasi nomor soal (kolom kanan halaman ujian)
 * Kotak persegi ukuran tetap; judul, hitungan & keterangan ditambah modern.js
 * ===================================================================== */
.sip-ujian .nomor-navigasi {
    background: #fff;
    border: 1px solid var(--sip-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--sip-shadow);
    margin: 0;
    box-sizing: border-box;
}
.sip-ujian .nomor-navigasi.affix { position: static; }
.sip-nav-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.sip-nav-head b { font-size: 13px; color: #111827; }
.sip-nav-head span { font-size: 12px; font-weight: 600; color: var(--sip-muted); white-space: nowrap; }
.sip-nav-head span strong { color: var(--sip-success); }

.sip-ujian .nomor-navigasi ul.no-list {
    display: grid;
    grid-template-columns: repeat(5, 36px);
    grid-auto-rows: 36px;
    gap: 6px;
    justify-content: start;
    width: auto;
    height: auto;
    max-height: calc(100vh - 230px);
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
}
.sip-ujian .nomor-navigasi ul.no-list::before,
.sip-ujian .nomor-navigasi ul.no-list::after { display: none; }
.sip-ujian .nomor-navigasi ul.no-list li {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #d5dce6;
    border-radius: 8px;
    background: #fff;
    font-size: 13.5px;
    line-height: 1;
    text-align: center;
    transition: background .15s, border-color .15s;
}
.sip-ujian .nomor-navigasi ul.no-list li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
}
.sip-ujian .nomor-navigasi ul.no-list li:hover { border-color: var(--sip-primary); background: var(--sip-primary-soft); }
.sip-ujian .nomor-navigasi ul.no-list li.success { background: var(--sip-success); border-color: var(--sip-success); }
.sip-ujian .nomor-navigasi ul.no-list li.ragu { background: var(--sip-warning); border-color: var(--sip-warning); }
.sip-ujian .nomor-navigasi ul.no-list li.success > a,
.sip-ujian .nomor-navigasi ul.no-list li.ragu > a { color: #fff; }
.sip-ujian .nomor-navigasi ul.no-list li.is-current { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sip-primary); }

.sip-nav-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--sip-border); font-size: 11.5px; color: var(--sip-muted); }
.sip-nav-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sip-nav-legend i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid #d5dce6; background: #fff; }
.sip-nav-legend i.l-ok { background: var(--sip-success); border-color: var(--sip-success); }
.sip-nav-legend i.l-ragu { background: var(--sip-warning); border-color: var(--sip-warning); }
.sip-nav-legend i.l-here { box-shadow: 0 0 0 2px var(--sip-primary); border-color: #fff; }

/* desktop/tablet: kolom kanan selebar panel (5 x 36 + 4 x 6 + padding = 238px), menempel saat digulir */
@media (min-width: 768px) {
    .sip-ujian .row-fluid:has(> .span2 > .nomor-navigasi) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 238px;
        gap: 24px;
        align-items: start;
    }
    .sip-ujian .row-fluid:has(> .span2 > .nomor-navigasi)::before,
    .sip-ujian .row-fluid:has(> .span2 > .nomor-navigasi)::after { display: none; }
    .sip-ujian .row-fluid:has(> .span2 > .nomor-navigasi) > [class*="span"] { float: none; width: auto; min-width: 0; margin: 0; }
    .sip-ujian .span2:has(> .nomor-navigasi) { position: sticky; top: 64px; }
}

/* HP: panel selebar layar, kotak tetap persegi dan rata kiri-kanan */
@media (max-width: 767px) {
    .sip-ujian .nomor-navigasi { margin-top: 12px; }
    .sip-ujian .nomor-navigasi ul.no-list {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
        grid-auto-rows: auto;
        max-height: none;
        overflow: visible;
    }
    .sip-ujian .nomor-navigasi ul.no-list li { aspect-ratio: 1 / 1; font-size: 14px; }
}

/* =====================================================================
 * Ujian: padding lebih rapat, teks panjang bisa digeser 2 arah, navigasi bisa disembunyikan
 * ===================================================================== */

/* tombol keluar pada tugas upload */
.sip-exit { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 0 16px; }
.sip-exit .btn { display: inline-flex; align-items: center; gap: 6px; }
.sip-exit small { color: var(--sip-muted); font-size: 12.5px; }

/* tombol sembunyikan / tampilkan panel nomor soal */
.sip-nav-toggle {
    margin-left: 6px;
    border: 1px solid var(--sip-border);
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}
.sip-nav-toggle:hover { border-color: var(--sip-primary); color: var(--sip-primary); }
.sip-nav-head { flex-wrap: wrap; }
.sip-nav-head .sip-nav-right { display: inline-flex; align-items: center; margin-left: auto; }
.sip-ujian .nomor-navigasi.is-collapsed ul.no-list,
.sip-ujian .nomor-navigasi.is-collapsed .sip-nav-legend { display: none; }
.sip-ujian .nomor-navigasi.is-collapsed .sip-nav-head { margin-bottom: 0; }

/* desktop: saat disembunyikan kolom kanan menyusut, soal mendapat ruang lebih lebar */
@media (min-width: 768px) {
    .sip-ujian .row-fluid:has(> .span2 > .nomor-navigasi.is-collapsed) { grid-template-columns: minmax(0, 1fr) auto; }
    .sip-ujian .nomor-navigasi.is-collapsed { padding: 8px 10px; }
    .sip-ujian .nomor-navigasi.is-collapsed .sip-nav-head b { display: none; }
}

/* teks panjang di HP & tablet: lebar baris tetap seperti di komputer, digeser kanan-kiri & atas-bawah */
@media (max-width: 1024px) {
    .sip-longtext { touch-action: pan-x pan-y; }
    .sip-longtext-inner { min-width: 600px; }
    .sip-longtext-inner img { max-width: none; }
}

/* padding kiri-kanan halaman ujian */
@media (max-width: 1024px) {
    .sip-ujian .container, .sip-read .container { padding: 0 10px; }
    .sip-ujian .wrap-content { padding-left: 0; padding-right: 0; }
    .sip-ujian .wrap-content .content { padding: 14px; }
}
@media (max-width: 767px) {
    .sip-ujian .container, .sip-read .container { padding: 0 6px; }
    .sip-ujian .wrap-content .content { padding: 10px; border-radius: 10px; }
    .sip-ujian table.datatable > tbody > tr { padding: 8px 0; }
    .sip-ujian [id^="pilihan-"] > .table > tbody > tr:not(.warning) > td:first-child { padding-left: 8px; }
    .sip-ujian [id^="pilihan-"] > .table > tbody > tr:not(.warning) > td:last-child { padding-right: 8px; }
    .sip-longtext { padding: 8px 10px; }
}

/* =====================================================================
 * Halaman tugas upload (plugins/views/ujian-online.html, type_id 1)
 * ===================================================================== */
/* tanpa timer, judul tidak perlu memberi ruang di kanan */
.sip-ujian:has(.sip-upload) #wrap > .container > .row-fluid:first-child { padding-right: 0; }
.sip-ujian .wrap-content .content:has(> .row-fluid > .sip-upload) { background: transparent; border: 0; box-shadow: none; padding: 0; }

.sip-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.sip-up-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.sip-up-card {
    background: #fff;
    border: 1px solid var(--sip-border);
    border-radius: var(--sip-radius);
    box-shadow: var(--sip-shadow);
    padding: 16px 18px;
    min-width: 0;
}
.sip-up-h {
    display: flex; align-items: center; gap: 10px;
    font-size: 15.5px; font-weight: 800; color: #111827;
    margin: 0 0 12px; line-height: 1.3;
}
.sip-up-ic {
    width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sip-primary-soft); color: var(--sip-primary); font-size: 15px;
}
.sip-up-kirim .sip-up-ic { background: #e7f8ee; color: #15803d; }
.sip-up-petunjuk .sip-up-ic { background: #fff4e5; color: #c2410c; }

/* isi soal dari guru */
.sip-up-body { font-size: 15px; line-height: 1.7; color: var(--sip-text); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sip-up-body > :last-child { margin-bottom: 0; }
.sip-up-body img { max-width: 100%; height: auto !important; border-radius: 8px; }
.sip-up-body table { max-width: none; }
.sip-up-body a { overflow-wrap: anywhere; word-break: break-word; }
.sip-up-body a.sip-file-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 14px; margin: 4px 0;
    border: 1px solid #d2defb; border-radius: 10px;
    background: var(--sip-primary-soft); color: var(--sip-primary-dark);
    font-weight: 700; text-decoration: none; max-width: 100%; box-sizing: border-box;
}
.sip-up-body a.sip-file-link:hover { background: #dbe6ff; }
.sip-up-body a.sip-file-link i { font-size: 18px; }
.sip-up-body a.sip-file-link small { display: block; font-weight: 500; color: var(--sip-muted); font-size: 12px; overflow-wrap: anywhere; }

/* kotak pilih file */
.sip-up-form { margin: 0; }
.sip-drop {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    border: 2px dashed #b9c6db; border-radius: 12px;
    background: #f8fafd;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin: 0;
}
.sip-drop:hover, .sip-drop.is-drag { border-color: var(--sip-primary); background: var(--sip-primary-soft); }
.sip-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sip-drop-ic {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--sip-primary); font-size: 18px; box-shadow: var(--sip-shadow);
}
.sip-drop-txt { display: flex; flex-direction: column; min-width: 0; font-weight: 400; }
.sip-drop-txt b { font-size: 14.5px; color: #111827; overflow-wrap: anywhere; }
.sip-drop-txt small { font-size: 12.5px; color: var(--sip-muted); }
.sip-drop.has-file { border-style: solid; border-color: var(--sip-success); background: #effaf3; }
.sip-drop.has-file .sip-drop-ic { color: var(--sip-success); }
.sip-up-types { font-size: 12.5px; color: var(--sip-muted); margin: 10px 0 12px; line-height: 1.5; }
.sip-up-btn { width: 100%; min-height: 44px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sip-up-error { margin: 0 0 12px; font-size: 13.5px; }
.sip-up-error p { margin: 0; display: inline; }
.sip-up-error .text-error { color: inherit; }

/* petunjuk */
.sip-up-petunjuk ol { margin: 0; padding: 0; list-style: none; counter-reset: up; }
.sip-up-petunjuk li {
    position: relative; counter-increment: up;
    padding: 0 0 10px 32px; margin: 0 0 10px;
    font-size: 13.5px; line-height: 1.55; color: #374151;
    border-bottom: 1px dashed var(--sip-border);
}
.sip-up-petunjuk li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sip-up-petunjuk li::before {
    content: counter(up);
    position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff4e5; color: #c2410c;
    font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
}
.sip-up-petunjuk code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: #f1f4f9; border: 0; color: #475569; }
.sip-upload .sip-exit { margin: 0; align-items: stretch; }
.sip-upload .sip-exit .btn { justify-content: center; min-height: 42px; }
.sip-upload .sip-exit small { text-align: center; }

@media (max-width: 900px) {
    .sip-upload { grid-template-columns: 1fr; gap: 12px; }
    .sip-up-side { position: static; gap: 12px; }
}
@media (max-width: 767px) {
    .sip-up-card { padding: 14px; }
    .sip-up-h { font-size: 15px; margin-bottom: 10px; }
    .sip-up-ic { width: 28px; height: 28px; font-size: 14px; }
    .sip-up-body { font-size: 14px; line-height: 1.6; }
    .sip-drop { padding: 14px; }
    .sip-up-btn { min-height: 48px; }
    .sip-up-petunjuk li { font-size: 13px; }
}

/* judul halaman ujian/tugas: memakai lebar penuh, nama siswa di kanan */
.sip-ujian #wrap > .container > .row-fluid:first-child { display: flex; align-items: center; gap: 12px; }
.sip-ujian #wrap > .container > .row-fluid:first-child::before,
.sip-ujian #wrap > .container > .row-fluid:first-child::after { display: none; }
.sip-ujian #wrap > .container > .row-fluid:first-child > [class*="span"] { float: none; margin: 0; width: auto; min-height: 0; }
.sip-ujian #wrap > .container > .row-fluid:first-child > [class*="span"]:first-child { flex: 1 1 auto; min-width: 0; }
.sip-ujian #wrap > .container > .row-fluid:first-child > [class*="span"] + [class*="span"] { flex: 0 0 auto; }
.sip-ujian #wrap > .container > .row-fluid:first-child .user-info { margin: 0; display: flex; align-items: center; gap: 8px; }
.sip-ujian #wrap > .container > .row-fluid:first-child .user-info li { padding: 0; }
.sip-ujian h1.title { line-height: 1.3; overflow-wrap: anywhere; }
.sip-ujian:has(.sip-upload) h1.title { font-size: 20px; }
.sip-ujian:has(.sip-upload) h1.title::before {
    content: "Tugas Upload";
    display: block;
    width: max-content;
    margin-bottom: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fff4e5;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
@media (max-width: 767px) {
    .sip-ujian:has(.sip-upload) h1.title { font-size: 16.5px; }
    .sip-ujian #wrap > .container > .row-fluid:first-child .user-info b { display: none; }
}

/* =====================================================================
 * Koreksi / Nilai / Pantau Ujian (views/default/tugas-kepala.html,
 * plugins/views/list-peserta.html, list-nilai.html, pantau-ujian.html)
 * ===================================================================== */
.sip-crumb { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--sip-muted); text-decoration: none; }
.sip-crumb:hover { color: var(--sip-primary); text-decoration: none; }

.sip-task-head {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid var(--sip-border); border-radius: var(--sip-radius);
    box-shadow: var(--sip-shadow); padding: 16px 18px; margin-bottom: 12px;
}
.sip-task-main { flex: 1 1 auto; min-width: 0; }
.sip-task-main h2 { font-size: 19px; font-weight: 800; margin: 2px 0 8px; line-height: 1.3; overflow-wrap: anywhere; }
.sip-task-main .sip-tags { margin: 0; }
.sip-task-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.sip-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sip-tabs a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--sip-border); background: #fff;
    color: #374151; font-weight: 700; font-size: 13.5px; text-decoration: none; cursor: pointer;
}
.sip-tabs a:hover { border-color: var(--sip-primary); color: var(--sip-primary); text-decoration: none; }
.sip-tabs a.active { background: var(--sip-primary); border-color: var(--sip-primary); color: #fff; }
.sip-tabs .sip-tab-more { margin-left: auto; }

.sip-panel {
    background: #fff; border: 1px solid var(--sip-border); border-radius: var(--sip-radius);
    box-shadow: var(--sip-shadow); padding: 14px 16px; margin-bottom: 14px;
}
.sip-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sip-panel-top .sip-panel-h { margin: 0; }
.sip-panel-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #111827; margin: 0 0 12px; }
.sip-panel-h > i { color: var(--sip-success); }
.sip-panel-h.is-warn > i { color: #c2410c; }
.sip-count { display: inline-block; min-width: 22px; padding: 1px 8px; border-radius: 999px; background: #f1f4f9; color: #475569; font-size: 12.5px; text-align: center; }

/* detail tugas: pakai tabel info-tugas.html, tanpa judul & tombol lamanya */
.sip-task-detail > b:first-child { display: none; }
.sip-task-detail #detail-tugas { display: block !important; height: auto !important; margin: 0 !important; }
.sip-task-detail .table { margin: 0; font-size: 13.5px; }
.sip-task-detail .table th { width: 34%; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* cetak / export */
.sip-export { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
.sip-export-label { font-weight: 800; font-size: 13.5px; color: #111827; display: inline-flex; gap: 6px; align-items: center; }
.sip-export select { width: auto; min-width: 170px; margin: 0; }
.sip-export .sip-chip { font-size: 13px; }
.sip-export-btns { display: inline-flex; gap: 6px; margin-left: auto; }
.sip-export-btns .btn { display: inline-flex; align-items: center; gap: 6px; }

/* ringkasan angka */
.sip-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sip-stat {
    background: #fff; border: 1px solid var(--sip-border); border-radius: var(--sip-radius);
    box-shadow: var(--sip-shadow); padding: 12px 14px; border-top: 3px solid var(--sip-primary);
    display: flex; flex-direction: column; gap: 2px;
}
.sip-stat b { font-size: 24px; font-weight: 800; color: #111827; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sip-stat b small { font-size: 14px; color: var(--sip-muted); font-weight: 700; }
.sip-stat span { font-size: 12.5px; color: var(--sip-muted); font-weight: 600; }
.sip-stat.is-warn { border-top-color: var(--sip-warning); }
.sip-stat.is-ok { border-top-color: var(--sip-success); }
.sip-stat.is-info { border-top-color: var(--sip-info); }

/* orang + avatar inisial */
.sip-person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sip-person > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sip-person a { color: #111827; }
.sip-person a:hover { color: var(--sip-primary); }
.sip-person small { color: var(--sip-muted); font-size: 12.5px; }
.sip-ava {
    position: relative; flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sip-primary-soft); color: var(--sip-primary); font-weight: 800; font-size: 14px;
}
.sip-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* nilai */
.sip-score { display: inline-block; min-width: 44px; padding: 3px 10px; border-radius: 8px; font-weight: 800; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.sip-score.s-ok { background: #e7f8ee; color: #15803d; }
.sip-score.s-warn { background: #fff4e5; color: #b45309; }
.sip-score.s-bad { background: #fdecec; color: #b91c1c; }
.sip-score.s-none { background: #f1f4f9; color: #64748b; font-weight: 600; font-size: 12.5px; white-space: nowrap; }

/* tabel hasil */
.sip-rtable { margin-bottom: 8px; }
.sip-rtable td { vertical-align: middle; }
.sip-rtable .sip-col-check { width: 28px; text-align: center; }
.sip-rtable .sip-col-check input { margin: 0; width: 16px; height: 16px; }
.sip-rtable .sip-col-time { white-space: nowrap; font-size: 13px; color: #475569; font-variant-numeric: tabular-nums; }
.sip-rtable .sip-col-aksi { text-align: right; white-space: nowrap; }
.sip-rtable .sip-actions { justify-content: flex-end; flex-wrap: nowrap; }
.sip-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--sip-border); }
.sip-bulk-label { font-size: 13px; font-weight: 700; color: var(--sip-muted); }
.sip-bulk .btn { display: inline-flex; align-items: center; gap: 6px; }

/* kontrol DataTables (Tampilkan / Cari / halaman) */
.sip-panel .dataTables_wrapper .row-fluid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.sip-panel .dataTables_wrapper .row-fluid::before, .sip-panel .dataTables_wrapper .row-fluid::after { display: none; }
.sip-panel .dataTables_wrapper .row-fluid > [class*="span"] { float: none; width: auto; margin: 0; min-height: 0; }
.sip-panel .dataTables_wrapper label { font-weight: 600; font-size: 13px; color: var(--sip-muted); margin: 0; }
.sip-panel .dataTables_wrapper select { width: auto; min-height: 34px; padding: 4px 8px; margin: 0 4px; }
.sip-panel .dataTables_wrapper .dataTables_filter input { width: 220px; min-height: 34px; margin-left: 6px; }
.sip-panel .dataTables_info { font-size: 13px; color: var(--sip-muted); }
.sip-panel .dataTables_paginate { margin: 0; }
.sip-panel .dataTables_paginate ul { margin: 0; }

/* pantau ujian */
.sip-pantau-cari { width: 280px; max-width: 100%; margin: 0; }
.sip-pantau { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sip-pantau-item { border: 1px solid var(--sip-border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #fafbfd; }
.sip-pantau-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.sip-pantau-info div { min-width: 0; }
.sip-pantau-info dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sip-muted); }
.sip-pantau-info dd { margin: 0; font-size: 13.5px; font-weight: 600; color: #111827; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sip-pantau-info .is-sisa dd { color: #c2410c; }
.sip-pantau-item .sip-actions { justify-content: flex-start; }
.sip-pantau-kosong { margin: 12px 0 0; color: var(--sip-muted); font-size: 13.5px; }

@media (max-width: 767px) {
    .sip-task-head { flex-wrap: wrap; padding: 14px; gap: 12px; }
    .sip-task-main { flex: 1 1 calc(100% - 60px); }
    .sip-task-main h2 { font-size: 16.5px; }
    .sip-task-side { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--sip-border); padding-top: 10px; }
    .sip-task-side .sip-actions { display: flex; flex-wrap: nowrap; }
    .sip-task-side .sip-actions .btn { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; white-space: nowrap; }
    .sip-tabs a { flex: 1 1 auto; justify-content: center; padding: 9px 10px; font-size: 13px; }
    .sip-tabs .sip-tab-more { margin-left: 0; }
    .sip-export { padding: 12px; }
    .sip-export select { flex: 1 1 100%; min-width: 0; width: 100%; }
    .sip-export-btns { width: 100%; margin: 0; }
    .sip-export-btns .btn { flex: 1 1 0; justify-content: center; min-height: 40px; }
    .sip-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .sip-stat { padding: 10px 12px; }
    .sip-stat b { font-size: 20px; }
    .sip-panel { padding: 12px; }

    /* tabel jadi kartu */
    .sip-rtable, .sip-rtable tbody, .sip-rtable tr, .sip-rtable td { display: block; width: auto; }
    .sip-rtable thead { display: none; }
    .sip-rtable { background: transparent; border: 0; }
    .sip-rtable tbody tr { position: relative; border: 1px solid var(--sip-border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
    .sip-rtable tbody tr > td { border: 0; padding: 4px 0; background: transparent !important; text-align: left; white-space: normal; }
    .sip-rtable tbody tr > td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 72px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sip-muted); }
    .sip-rtable tbody tr > td.sip-col-siswa::before, .sip-rtable tbody tr > td.sip-col-check::before, .sip-rtable tbody tr > td.sip-col-aksi::before { display: none; }
    .sip-rtable tbody tr > td.sip-col-check { position: absolute; top: 12px; right: 12px; padding: 0; }
    .sip-rtable tbody tr > td.sip-col-siswa { padding: 2px 34px 8px 0; margin-bottom: 4px; border-bottom: 1px dashed var(--sip-border); }
    .sip-rtable tbody tr > td.sip-col-aksi { padding-top: 8px; }
    .sip-rtable .sip-actions { display: flex; flex-wrap: wrap; justify-content: stretch; }
    .sip-rtable .sip-actions .btn { flex: 1 1 90px; min-height: 40px; justify-content: center; }
    .sip-rtable tbody tr > td.dataTables_empty { text-align: center; }
    .sip-rtable tbody tr > td.dataTables_empty::before { display: none; }
    .sip-panel .dataTables_wrapper .row-fluid > [class*="span"] { width: 100%; }
    .sip-panel .dataTables_wrapper .dataTables_filter input { width: 100%; margin: 4px 0 0; }
    .sip-panel .dataTables_wrapper .dataTables_filter label { display: block; }
    .sip-bulk .btn { flex: 1 1 auto; justify-content: center; min-height: 40px; }

    .sip-pantau { grid-template-columns: 1fr; }
    .sip-pantau-cari { width: 100%; }
    .sip-pantau-item .sip-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 40px; }
}
