/*
 * Tema tampilan mahasiswa SIAKA UM Palopo.
 * Semua aturan dibatasi body.theme-mhs agar tampilan role lain tidak terpengaruh.
 * Menimpa gaya Bootstrap 3 (+ bootstrap-theme) yang dipakai halaman-halaman lama.
 */
.theme-mhs {
    --navy-900: #0b1d36;
    --navy-800: #102846;
    --navy-700: #17365c;
    --navy-100: #e7edf5;
    --gold: #c89b2c;
    --gold-soft: #f6efdc;
    --ink: #1c2430;
    --ink-2: #4a5566;
    --ink-3: #7a8494;
    --line: #e1e5eb;
    --line-2: #eef1f5;
    --bg: #f3f5f8;
    --card: #ffffff;
    --blue: #1f5fa8;
    --green: #1e7a4c;
    --green-soft: #e7f4ec;
    --amber: #9a6400;
    --amber-soft: #fdf3e0;
    --red: #b3261e;
    --red-soft: #fbeceb;
    --sidebar-bg: #2c368b;
    --radius: 10px;
    --sidebar: 256px;
    --topbar: 60px;
}

body.theme-mhs {
    background: var(--bg);
    color: var(--ink);
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}
.theme-mhs h1, .theme-mhs h2, .theme-mhs h3, .theme-mhs h4, .theme-mhs h5, .theme-mhs h6 {
    font-family: inherit;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.theme-mhs h1 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.theme-mhs h2 { font-size: 20px; font-weight: 600; }
.theme-mhs h3 { font-size: 17px; font-weight: 600; }
.theme-mhs a { color: var(--blue); }
.theme-mhs a:hover, .theme-mhs a:focus { color: var(--navy-700); }
.theme-mhs hr { border-top-color: var(--line); }

/* ---------------------------------------------------------------- sidebar */
.theme-mhs .mhs-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1040;
    width: var(--sidebar);
    background: var(--sidebar-bg);
    color: #fff;
    display: flex; flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
}
.theme-mhs .mhs-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
}
.theme-mhs .mhs-brand img { width: 38px; height: 38px; }
.theme-mhs .mhs-brand strong { display: block; color: #fff; font-size: 17px; letter-spacing: .14em; font-weight: 700; }
.theme-mhs .mhs-brand small { display: block; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.3; }
.theme-mhs .mhs-nav { padding: 8px 12px 28px; }
.theme-mhs .mhs-nav ul { list-style: none; margin: 0; padding: 0; }
.theme-mhs .mhs-nav-label {
    margin: 18px 10px 6px;
    font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255,255,255,.55);
}
.theme-mhs .mhs-nav a,
.theme-mhs .mhs-nav-toggle {
    position: relative;
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 8px 10px;
    border: 0; border-radius: 7px; background: transparent;
    color: #fff; font-size: 13.5px; font-weight: 500; text-align: left; text-decoration: none;
    transition: background .12s, color .12s;
}
.theme-mhs .mhs-nav a .fa, .theme-mhs .mhs-nav-toggle .fa-fw { color: rgba(255,255,255,.75); font-size: 14px; }
.theme-mhs .mhs-nav a:hover, .theme-mhs .mhs-nav-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.theme-mhs .mhs-nav a.is-active { background: #fff; color: #2c368b; font-weight: 600; box-shadow: 0 1px 3px rgba(10,15,60,.25); }
.theme-mhs .mhs-nav a.is-active::before {
    content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
    border-radius: 0 3px 3px 0; background: #fff;
}
.theme-mhs .mhs-nav a.is-active .fa { color: #2c368b; }
.theme-mhs .mhs-nav-badge {
    margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px;
    background: #e34948; color: #fff; font-size: 11px; font-weight: 600; text-align: center;
}
.theme-mhs .mhs-nav a.is-active .mhs-nav-badge { background: #e34948; color: #fff; }
.theme-mhs .mhs-caret { margin-left: auto; transition: transform .15s; }
.theme-mhs .mhs-nav-toggle[aria-expanded="true"] .mhs-caret { transform: rotate(180deg); }
.theme-mhs .mhs-nav-sub ul a { padding-left: 38px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.85); }

/* ---------------------------------------------------------------- topbar */
.theme-mhs .mhs-topbar {
    position: fixed; top: 0; right: 0; left: var(--sidebar); z-index: 1030;
    height: var(--topbar);
    display: flex; align-items: center; gap: 12px;
    padding: 0 28px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
}
.theme-mhs .mhs-topbar-title { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-mhs .mhs-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.theme-mhs .mhs-menu-btn { display: none; }
.theme-mhs .mhs-icon-btn, .theme-mhs .mhs-menu-btn {
    position: relative;
    width: 38px; height: 38px; border: 0; border-radius: 8px;
    background: transparent; color: var(--ink-2); font-size: 17px;
}
.theme-mhs .mhs-icon-btn:hover, .theme-mhs .mhs-menu-btn:hover { background: var(--line-2); color: var(--ink); }
.theme-mhs .mhs-dot {
    position: absolute; top: 4px; right: 3px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: var(--red); color: #fff;
    font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}
.theme-mhs .mhs-user {
    display: flex; align-items: center; gap: 10px;
    margin-left: 6px; padding: 4px 8px 4px 4px;
    border: 1px solid var(--line); border-radius: 22px; background: #fff;
    color: var(--ink-2);
}
.theme-mhs .mhs-user:hover { border-color: #cfd6df; }
.theme-mhs .mhs-user img, .theme-mhs .mhs-avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
}
.theme-mhs .mhs-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy-700); color: #fff; font-weight: 600;
}
.theme-mhs .mhs-user-text { text-align: left; line-height: 1.2; }
.theme-mhs .mhs-user-text strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-mhs .mhs-user-text small { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.theme-mhs .mhs-lang-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
    font-size: 13px; font-weight: 500;
}
.theme-mhs .mhs-lang-btn:hover { border-color: #cfd6df; background: #fafbfc; }
.theme-mhs .mhs-lang-btn .fa-angle-down { color: var(--ink-3); }
.theme-mhs .mhs-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }
.theme-mhs .mhs-lang-menu { min-width: 250px; }
.theme-mhs .mhs-lang-menu > li > a.lang-select {
    display: flex !important; align-items: center; gap: 10px; padding: 8px 10px;
    color: var(--ink) !important; font-size: 13.5px;
}
.theme-mhs .mhs-lang-menu > li > a.lang-select:hover { background: var(--line-2); }
.theme-mhs .mhs-lang-check { margin-left: auto; color: var(--green); visibility: hidden; }
.theme-mhs .mhs-lang-menu > li.is-active > a.lang-select { background: #eef4fb; font-weight: 600; }
.theme-mhs .mhs-lang-menu > li.is-active .mhs-lang-check { visibility: visible; }
.theme-mhs .mhs-lang-note { padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-3); }

.theme-mhs .dropdown-menu {
    border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16,40,70,.12);
    padding: 6px; margin-top: 6px; min-width: 200px;
}
.theme-mhs .dropdown-menu > li > a { border-radius: 6px; padding: 7px 10px; color: var(--ink-2); }
.theme-mhs .dropdown-menu > li > a:hover { background: var(--line-2); color: var(--ink); background-image: none; }
.theme-mhs .mhs-dd-head { padding: 6px 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.theme-mhs .mhs-dd-empty { padding: 10px; color: var(--ink-3); font-size: 13px; }
.theme-mhs .mhs-notif { width: 320px; max-height: 420px; overflow-y: auto; }
.theme-mhs .mhs-notif a { white-space: normal !important; }
.theme-mhs .mhs-notif small { display: block; color: var(--ink-3); font-size: 11.5px; }

/* ---------------------------------------------------------------- konten */
.theme-mhs .mhs-main {
    margin-left: var(--sidebar);
    padding: calc(var(--topbar) + 24px) 28px 40px;
    min-height: 100vh;
}
.theme-mhs .mhs-main .container,
.theme-mhs .mhs-main .container-fluid { width: auto; max-width: 1180px; margin: 0; padding: 0; }
.theme-mhs .mhs-main > div > .container > .row:first-child .breadcrumb { display: none; }
.theme-mhs .mhs-footer {
    margin-left: var(--sidebar);
    padding: 16px 28px 24px;
    color: var(--ink-3); font-size: 12px;
    border-top: 1px solid var(--line);
}

/* breadcrumb lama: dipakai sebagai sub-judul kecil */
.theme-mhs .breadcrumb {
    background: transparent; padding: 0; margin: 0 0 14px;
    font-size: 12.5px; color: var(--ink-3);
}
.theme-mhs .breadcrumb > li + li::before { content: "/"; color: #b6bec9; padding: 0 6px; }
.theme-mhs .breadcrumb > .active { color: var(--ink-3); }

/* panel -> kartu */
.theme-mhs .panel {
    background: var(--card);
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(16,40,70,.04);
    margin-bottom: 20px;
}
.theme-mhs .panel > .panel-heading,
.theme-mhs .panel-primary > .panel-heading,
.theme-mhs .panel-default > .panel-heading,
.theme-mhs .panel-info > .panel-heading,
.theme-mhs .panel-success > .panel-heading,
.theme-mhs .panel-warning > .panel-heading,
.theme-mhs .panel-danger > .panel-heading {
    background: #fff !important; background-image: none !important;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line-2) !important;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 14px 18px;
}
.theme-mhs .panel-title,
.theme-mhs .panel-heading h3,
.theme-mhs .panel-heading h4 {
    font-size: 15px; font-weight: 600; color: var(--ink) !important; margin: 0; text-transform: none;
}
.theme-mhs .panel-heading .label { font-weight: 500; }
.theme-mhs .panel-body { padding: 18px; }
.theme-mhs .panel-footer { background: #fafbfc; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius); }
.theme-mhs .panel > .table, .theme-mhs .panel > .table-responsive > .table { margin-bottom: 0; }
.theme-mhs .well { background: #fafbfc; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }

/* tabel */
.theme-mhs .table { color: var(--ink); }
.theme-mhs .table > thead > tr > th {
    border-bottom: 1px solid var(--line) !important;
    background: #f8f9fb; color: var(--ink-2);
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    padding: 10px 12px;
}
.theme-mhs .table > tbody > tr > td, .theme-mhs .table > tbody > tr > th, .theme-mhs .table > tfoot > tr > td, .theme-mhs .table > tfoot > tr > th {
    border-top: 1px solid var(--line-2); padding: 10px 12px; vertical-align: middle;
}
.theme-mhs .table-condensed > tbody > tr > td, .theme-mhs .table-condensed > thead > tr > th { padding: 7px 10px; }
.theme-mhs .table-striped > tbody > tr:nth-of-type(odd) { background: #fbfcfd; }
.theme-mhs .table-hover > tbody > tr:hover { background: #f3f6fa; }
.theme-mhs .table-bordered, .theme-mhs .table-bordered > thead > tr > th, .theme-mhs .table-bordered > tbody > tr > td { border-color: var(--line); }
.theme-mhs td, .theme-mhs th { font-variant-numeric: tabular-nums; }

/* tombol */
.theme-mhs .btn {
    border-radius: 8px; font-weight: 500; font-size: 13.5px;
    padding: 7px 14px; text-shadow: none; box-shadow: none;
    background-image: none !important; filter: none;
    transition: background .12s, border-color .12s;
}
.theme-mhs .btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 6px; }
.theme-mhs .btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.theme-mhs .btn-lg { padding: 10px 18px; font-size: 15px; }
.theme-mhs .btn-default { background: #fff; border: 1px solid #cfd6df; color: var(--ink); }
.theme-mhs .btn-default:hover { background: #f5f7fa; border-color: #bfc8d3; }
.theme-mhs .btn-primary, .theme-mhs .btn-info { background: var(--navy-700); border: 1px solid var(--navy-700); color: #fff; }
.theme-mhs .btn-primary:hover, .theme-mhs .btn-primary:focus, .theme-mhs .btn-info:hover, .theme-mhs .btn-info:focus { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.theme-mhs .btn-success { background: var(--green); border: 1px solid var(--green); color: #fff; }
.theme-mhs .btn-success:hover, .theme-mhs .btn-success:focus { background: #176340; border-color: #176340; color: #fff; }
.theme-mhs .btn-warning { background: #fff; border: 1px solid #e0b654; color: var(--amber); }
.theme-mhs .btn-warning:hover { background: var(--amber-soft); color: var(--amber); }
.theme-mhs .btn-danger { background: #fff; border: 1px solid #e3a19c; color: var(--red); }
.theme-mhs .btn-danger:hover, .theme-mhs .btn-danger:focus { background: var(--red-soft); color: var(--red); border-color: #d98a84; }
.theme-mhs .btn:focus { outline: 2px solid rgba(31,95,168,.35); outline-offset: 1px; }
.theme-mhs .btn[disabled] { opacity: .55; }

/* form */
.theme-mhs label { font-weight: 500; color: var(--ink-2); font-size: 13px; margin-bottom: 5px; }
.theme-mhs .form-control {
    height: 38px; border-radius: 8px; border: 1px solid #cfd6df;
    box-shadow: none; color: var(--ink); font-size: 14px;
}
.theme-mhs textarea.form-control { height: auto; }
.theme-mhs .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,168,.14); }
.theme-mhs .form-control[disabled], .theme-mhs .form-control[readonly] { background: #f5f7fa; }
.theme-mhs .help-block { color: var(--ink-3); font-size: 12.5px; }
.theme-mhs input[type=file] { font-size: 13px; }
.theme-mhs .checkbox label, .theme-mhs .radio label { font-weight: 400; color: var(--ink); }

/* label/badge status */
.theme-mhs .label {
    display: inline-block; padding: 3px 8px; border-radius: 12px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
}
.theme-mhs .label-success { background: var(--green-soft); color: var(--green); }
.theme-mhs .label-warning { background: var(--amber-soft); color: var(--amber); }
.theme-mhs .label-danger { background: var(--red-soft); color: var(--red); }
.theme-mhs .label-info, .theme-mhs .label-primary { background: var(--navy-100); color: var(--navy-700); }
.theme-mhs .label-default { background: #eef0f3; color: var(--ink-2); }
.theme-mhs .badge { background: var(--navy-700); }

/* alert */
.theme-mhs .alert {
    border-radius: var(--radius); border: 1px solid transparent; box-shadow: none;
    background-image: none; text-shadow: none; padding: 12px 16px; font-size: 13.5px;
}
.theme-mhs .alert-info { background: #eef4fb; border-color: #d3e2f3; color: #214a78; }
.theme-mhs .alert-success { background: var(--green-soft); border-color: #c6e5d2; color: #185f3c; }
.theme-mhs .alert-warning { background: var(--amber-soft); border-color: #f0dcae; color: #7a5000; }
.theme-mhs .alert-danger { background: var(--red-soft); border-color: #f1c9c5; color: #8f1f18; }
.theme-mhs .alert h3 { font-size: 15px; margin: 0 0 4px; text-align: left !important; }

/* notifikasi flash di atas konten */
.theme-mhs .mhs-flash { max-width: 1180px; }
.theme-mhs .mhs-flash .alert { margin-bottom: 18px; }
.theme-mhs .mhs-main > div:last-child { max-width: 1180px; }

/* tab & pagination & modal */
.theme-mhs .nav-tabs { border-bottom: 1px solid var(--line); }
.theme-mhs .nav-tabs > li > a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--ink-3); font-weight: 500; }
.theme-mhs .nav-tabs > li.active > a, .theme-mhs .nav-tabs > li.active > a:hover { border: 0; border-bottom: 2px solid var(--navy-700); color: var(--ink); background: transparent; }
.theme-mhs .list-group-item { border-color: var(--line-2); }
.theme-mhs .pagination > li > a { color: var(--ink-2); border-color: var(--line); }
.theme-mhs .pagination > .active > a { background: var(--navy-700); border-color: var(--navy-700); }
.theme-mhs .modal-content { border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(11,29,54,.25); }
.theme-mhs .modal-header { border-bottom: 1px solid var(--line-2); border-radius: 12px 12px 0 0; }
.theme-mhs .modal-header.bg-primary, .theme-mhs .modal-header.bg-warning { background: #fff; color: var(--ink); }
.theme-mhs .modal-header.bg-primary .modal-title { color: var(--ink) !important; }
.theme-mhs .modal-footer { border-top: 1px solid var(--line-2); }

/* DataTables */
.theme-mhs .dataTables_wrapper .dataTables_filter input,
.theme-mhs .dataTables_wrapper .dataTables_length select {
    border: 1px solid #cfd6df; border-radius: 8px; padding: 5px 9px; margin-left: 6px;
}
.theme-mhs table.dataTable thead th { border-bottom: 1px solid var(--line) !important; }
.theme-mhs table.dataTable.no-footer { border-bottom: 1px solid var(--line); }
.theme-mhs .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--navy-700) !important; color: #fff !important; border: 1px solid var(--navy-700); border-radius: 6px;
}
.theme-mhs .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--line-2) !important; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 6px; }

/* FullCalendar (jadwal kuliah) */
.theme-mhs .fc-toolbar h2 { font-size: 17px; font-weight: 600; }
.theme-mhs .fc-toolbar { flex-wrap: wrap; gap: 8px; }
.theme-mhs .fc-button-primary { background: #fff; border: 1px solid #cfd6df; color: var(--ink); text-transform: none; box-shadow: none !important; }
.theme-mhs .fc-button-primary:hover { background: #f5f7fa; color: var(--ink); border-color: #bfc8d3; }
.theme-mhs .fc-button-primary:not(:disabled).fc-button-active,
.theme-mhs .fc-button-primary:not(:disabled):active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.theme-mhs .fc-button-primary:disabled { background: #f5f7fa; color: var(--ink-3); border-color: var(--line); }
.theme-mhs .fc-list-heading td { background: #f8f9fb; }
.theme-mhs .fc-unthemed td, .theme-mhs .fc-unthemed th, .theme-mhs .fc-list-view { border-color: var(--line); }

/* ---------------------------------------------------------------- kartu profil (halaman detail mahasiswa) */
.theme-mhs .mhs-profile {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 20px; margin-bottom: 20px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.theme-mhs .mhs-profile img, .theme-mhs .mhs-profile .mhs-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; font-size: 22px; flex-shrink: 0; }
.theme-mhs .mhs-profile-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.theme-mhs .mhs-profile-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 3px; color: var(--ink-3); font-size: 13px; }
.theme-mhs .mhs-profile-meta b { color: var(--ink-2); font-weight: 500; }
.theme-mhs .mhs-profile-side { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-3); }
.theme-mhs .mhs-profile-side b { display: block; color: var(--ink); font-weight: 500; font-size: 13px; }

/* ---------------------------------------------------------------- beranda */
.theme-mhs .mhs-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.theme-mhs .mhs-hello h1 { margin: 0; font-size: 22px; }
.theme-mhs .mhs-hello p { margin: 2px 0 0; color: var(--ink-3); }
.theme-mhs .mhs-period {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 8px; background: var(--gold-soft); color: #6d5210; font-size: 13px; font-weight: 500;
}
.theme-mhs .mhs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.theme-mhs .mhs-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.theme-mhs .mhs-stat-label { font-size: 12px; color: var(--ink-3); }
.theme-mhs .mhs-stat-value { font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.25; font-variant-numeric: tabular-nums; }
.theme-mhs .mhs-stat-sub { font-size: 12px; color: var(--ink-3); }
.theme-mhs .mhs-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; }
.theme-mhs .mhs-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.theme-mhs .mhs-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.theme-mhs .mhs-card-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.theme-mhs .mhs-card-head a { margin-left: auto; font-size: 13px; }
.theme-mhs .mhs-card-body { padding: 16px 18px; }
.theme-mhs .mhs-card .table { margin: 0; }
.theme-mhs .mhs-krs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme-mhs .mhs-krs-state { font-size: 15px; font-weight: 600; }
.theme-mhs .mhs-krs-note { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.theme-mhs .mhs-krs .btn { margin-left: auto; }
.theme-mhs .mhs-dl { margin: 0; }
.theme-mhs .mhs-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.theme-mhs .mhs-dl div:first-child { border-top: 0; padding-top: 0; }
.theme-mhs .mhs-dl dt { font-weight: 400; color: var(--ink-3); }
.theme-mhs .mhs-dl dd { text-align: right; color: var(--ink); font-weight: 500; }
.theme-mhs .mhs-links { list-style: none; margin: 0; padding: 0; }
.theme-mhs .mhs-links li + li { border-top: 1px solid var(--line-2); }
.theme-mhs .mhs-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.theme-mhs .mhs-links a:hover { color: var(--blue); }
.theme-mhs .mhs-links .fa-fw { color: var(--ink-3); }
.theme-mhs .mhs-links .fa-angle-right { margin-left: auto; color: #b6bec9; }
.theme-mhs .mhs-ips-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--navy-700); vertical-align: middle; }
.theme-mhs .mhs-muted { color: var(--ink-3); }

/* beranda: keuangan */
.theme-mhs .mhs-section-title { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 12px; }
.theme-mhs .mhs-section-title h2 { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.theme-mhs .mhs-section-title a { margin-left: auto; font-size: 13px; }
.theme-mhs .mhs-money { font-size: 21px; }
.theme-mhs .mhs-stat-alert { border-color: #f1c9c5; background: #fffafa; }
.theme-mhs .mhs-stat-alert .mhs-stat-value { color: var(--red); }
.theme-mhs .mhs-stat-ok .mhs-stat-value { color: var(--green); }
.theme-mhs .mhs-neg { color: var(--red); font-weight: 500; }
.theme-mhs .mhs-pos { color: var(--green); font-weight: 500; }
.theme-mhs .mhs-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--navy-100); color: var(--navy-700); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.theme-mhs .mhs-bill { margin: 0 0 14px; }
.theme-mhs .mhs-bill > thead > tr > th, .theme-mhs .mhs-bill > tbody > tr > td, .theme-mhs .mhs-bill > tfoot > tr > th { padding-left: 0; }
.theme-mhs .mhs-bill > tfoot > tr > th { border-top: 1px solid var(--line); font-weight: 600; }
.theme-mhs .mhs-bill > thead > tr > th { background: transparent; }
.theme-mhs .mhs-pay { margin: 2px 0 22px; }
.theme-mhs .mhs-pay-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.theme-mhs .mhs-pay-head b { color: var(--ink); font-variant-numeric: tabular-nums; }
.theme-mhs .mhs-pay-track { position: relative; height: 8px; border-radius: 4px; background: var(--line-2); }
.theme-mhs .mhs-pay-fill { display: block; height: 100%; border-radius: 4px; background: var(--navy-700); }
.theme-mhs .mhs-pay-fill.is-full { background: var(--green); }
.theme-mhs .mhs-pay-track i { position: absolute; top: -3px; width: 2px; height: 14px; background: #fff; border-left: 1px solid #b6bec9; }
.theme-mhs .mhs-pay-marks { position: relative; height: 18px; margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.theme-mhs .mhs-pay-marks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.theme-mhs .mhs-pay-marks span[style*="100%"] { transform: translateX(-100%); }
.theme-mhs .mhs-pay-marks .is-on { color: var(--green); font-weight: 600; }
.theme-mhs .mhs-trx { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.theme-mhs .mhs-trx:first-child { border-top: 0; }
.theme-mhs .mhs-trx-item { font-size: 13.5px; color: var(--ink); }
.theme-mhs .mhs-trx-meta { font-size: 12px; color: var(--ink-3); }
.theme-mhs .mhs-trx-amount { margin-left: auto; font-weight: 600; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.theme-mhs .mhs-skel { height: 10px; margin: 6px 0; border-radius: 4px; background: linear-gradient(90deg, #eef1f5 25%, #f6f8fa 50%, #eef1f5 75%); background-size: 200% 100%; animation: mhsSkel 1.2s infinite; }
.theme-mhs .mhs-skel-lg { height: 22px; width: 70%; }
@keyframes mhsSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- responsif */
@media (max-width: 1100px) {
    .theme-mhs .mhs-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
    .theme-mhs .mhs-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
    .theme-mhs.mhs-nav-open .mhs-sidebar { transform: none; box-shadow: 12px 0 40px rgba(0,0,0,.25); }
    .theme-mhs .mhs-backdrop { display: none; position: fixed; inset: 0; z-index: 1035; background: rgba(11,29,54,.45); }
    .theme-mhs.mhs-nav-open .mhs-backdrop { display: block; }
    .theme-mhs .mhs-topbar { left: 0; padding: 0 12px; }
    .theme-mhs .mhs-menu-btn { display: inline-block; }
    .theme-mhs .mhs-main, .theme-mhs .mhs-footer { margin-left: 0; }
    .theme-mhs .mhs-main { padding: calc(var(--topbar) + 16px) 16px 32px; }
    .theme-mhs .mhs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    /* Tabel lama yang tidak dibungkus .table-responsive: gulir di dalam kartu */
    .theme-mhs .panel-body > .table,
    .theme-mhs .panel > .table,
    .theme-mhs .panel-body > form > .table {
        display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    .theme-mhs .panel-body > .table td, .theme-mhs .panel > .table td { white-space: nowrap; }
    .theme-mhs .panel-body { padding: 14px; }
}
@media (max-width: 600px) {
    .theme-mhs .mhs-profile { flex-wrap: wrap; }
    .theme-mhs .mhs-profile-side { margin-left: 0; text-align: left; width: 100%; }
    .theme-mhs .mhs-stat-value { font-size: 22px; }
    .theme-mhs .mhs-krs .btn { margin-left: 0; }
}
@media print {
    .theme-mhs .mhs-sidebar, .theme-mhs .mhs-topbar, .theme-mhs .mhs-footer { display: none; }
    .theme-mhs .mhs-main { margin: 0; padding: 0; }
}

/* ================================================================
 * Sidebar collapsible (mahasiswa & dosen)
 *  - body.mhs-sidebar-mini : desktop, sidebar diperkecil jadi rail ikon
 *  - .mhs-nav-group.is-collapsed : grup menu dilipat
 *  - body.mhs-no-anim : matikan transisi saat halaman pertama dimuat
 * ================================================================ */
.theme-mhs { --sidebar-mini: 72px; --ease-nav: cubic-bezier(.4, 0, .2, 1); }

.theme-mhs .mhs-sidebar { overflow-x: hidden; transition: width .28s var(--ease-nav), transform .25s var(--ease-nav); }
.theme-mhs .mhs-topbar { transition: left .28s var(--ease-nav); }
.theme-mhs .mhs-main, .theme-mhs .mhs-footer { transition: margin-left .28s var(--ease-nav); }
.theme-mhs.mhs-no-anim *, .theme-mhs.mhs-no-anim *::before, .theme-mhs.mhs-no-anim *::after { transition: none !important; }

/* --- tombol burger beranimasi --- */
.theme-mhs .mhs-menu-btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.theme-mhs .mhs-burger { position: relative; display: block; width: 20px; height: 14px; }
.theme-mhs .mhs-burger span {
    position: absolute; left: 0; height: 2px; width: 100%;
    border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease-nav), width .3s var(--ease-nav), opacity .2s, top .3s var(--ease-nav);
}
.theme-mhs .mhs-burger span:nth-child(1) { top: 0; }
.theme-mhs .mhs-burger span:nth-child(2) { top: 6px; }
.theme-mhs .mhs-burger span:nth-child(3) { top: 12px; }
/* desktop, sidebar terbuka: burger berubah jadi panah "ciutkan" ke kiri */
@media (min-width: 992px) {
    .theme-mhs:not(.mhs-sidebar-mini) .mhs-burger span:nth-child(1) { width: 55%; transform: translate(-1px, 3px) rotate(-40deg); }
    .theme-mhs:not(.mhs-sidebar-mini) .mhs-burger span:nth-child(3) { width: 55%; transform: translate(-1px, -3px) rotate(40deg); }
    .theme-mhs .mhs-menu-btn:hover .mhs-burger span:nth-child(2) { transform: scaleX(.85); }
}
/* mobile, drawer terbuka: burger berubah jadi silang */
@media (max-width: 991px) {
    .theme-mhs.mhs-nav-open .mhs-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
    .theme-mhs.mhs-nav-open .mhs-burger span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
    .theme-mhs.mhs-nav-open .mhs-burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
}

/* --- label grup sebagai tombol lipat --- */
.theme-mhs .mhs-nav-label {
    display: flex; align-items: center; gap: 8px; width: calc(100% - 4px);
    margin: 14px 2px 4px; padding: 6px 8px;
    border: 0; border-radius: 6px; background: transparent;
    font-family: inherit; text-align: left; cursor: pointer;
    transition: background .15s, color .15s;
}
.theme-mhs .mhs-nav-label:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }
.theme-mhs .mhs-nav-label:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 1px; }
.theme-mhs .mhs-nav-label-badge {
    min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e34948; color: #fff;
    font-size: 10px; line-height: 16px; text-align: center; letter-spacing: 0;
    opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease-nav);
}
.theme-mhs .mhs-nav-group.is-collapsed .mhs-nav-label-badge { opacity: 1; transform: scale(1); }
/* chevron dari dua garis: "v" saat terbuka, ">" saat terlipat */
.theme-mhs .mhs-chevron {
    position: relative; margin-left: auto; width: 14px; height: 14px; flex: 0 0 14px;
    transition: transform .3s var(--ease-nav);
}
.theme-mhs .mhs-chevron::before, .theme-mhs .mhs-chevron::after {
    content: ""; position: absolute; top: 6px; width: 7px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease-nav);
}
.theme-mhs .mhs-chevron::before { left: 1px; transform: rotate(45deg); }
.theme-mhs .mhs-chevron::after { right: 1px; transform: rotate(-45deg); }
.theme-mhs .mhs-nav-group.is-collapsed .mhs-chevron { transform: rotate(-90deg); }
.theme-mhs .mhs-nav-group.is-collapsed .mhs-chevron::before { transform: rotate(35deg); }
.theme-mhs .mhs-nav-group.is-collapsed .mhs-chevron::after { transform: rotate(-35deg); }

/* animasi buka/tutup grup: grid-rows 1fr <-> 0fr */
.theme-mhs .mhs-nav-collapse {
    display: grid; grid-template-rows: 1fr;
    transition: grid-template-rows .3s var(--ease-nav), opacity .25s;
}
.theme-mhs .mhs-nav-collapse > ul { min-height: 0; overflow: hidden; padding-left: 12px; margin-left: -12px; }
.theme-mhs .mhs-nav-group.is-collapsed .mhs-nav-collapse { grid-template-rows: 0fr; opacity: 0; }
.theme-mhs .mhs-nav-collapse li { transition: transform .3s var(--ease-nav); }
.theme-mhs .mhs-nav-group.is-collapsed .mhs-nav-collapse li { transform: translateY(-6px); }
.theme-mhs .mhs-nav a .fa { transition: transform .2s var(--ease-nav), color .12s; }
.theme-mhs .mhs-nav a:hover .fa { transform: scale(1.12); }

/* --- brand & teks menu --- */
.theme-mhs .mhs-brand > span, .theme-mhs .mhs-nav-text { white-space: nowrap; transition: opacity .2s; }
.theme-mhs .mhs-brand img { flex: 0 0 38px; transition: transform .3s var(--ease-nav); }

/* --- desktop: mode rail ikon --- */
@media (min-width: 992px) {
    .theme-mhs.mhs-sidebar-mini .mhs-sidebar { width: var(--sidebar-mini); }
    .theme-mhs.mhs-sidebar-mini .mhs-topbar { left: var(--sidebar-mini); }
    .theme-mhs.mhs-sidebar-mini .mhs-main, .theme-mhs.mhs-sidebar-mini .mhs-footer { margin-left: var(--sidebar-mini); }

    .theme-mhs.mhs-sidebar-mini .mhs-brand { padding-left: 17px; padding-right: 17px; }
    .theme-mhs.mhs-sidebar-mini .mhs-brand img { transform: rotate(-360deg); }
    .theme-mhs.mhs-sidebar-mini .mhs-brand > span,
    .theme-mhs.mhs-sidebar-mini .mhs-nav-text,
    .theme-mhs.mhs-sidebar-mini .mhs-caret { opacity: 0; pointer-events: none; }
    .theme-mhs.mhs-sidebar-mini .mhs-nav { padding-left: 10px; padding-right: 10px; }
    .theme-mhs.mhs-sidebar-mini .mhs-nav a, .theme-mhs.mhs-sidebar-mini .mhs-nav-toggle { padding-left: 16px; padding-right: 0; }
    .theme-mhs.mhs-sidebar-mini .mhs-nav a .fa, .theme-mhs.mhs-sidebar-mini .mhs-nav-toggle .fa-fw { font-size: 16px; }
    .theme-mhs.mhs-sidebar-mini .mhs-nav a.is-active::before { left: -10px; }
    /* label grup menjadi garis pemisah tipis; semua grup tampil terbuka */
    .theme-mhs.mhs-sidebar-mini .mhs-nav-label { height: 1px; margin: 10px 8px; padding: 0; background: rgba(255,255,255,.15); overflow: hidden; pointer-events: none; }
    .theme-mhs.mhs-sidebar-mini .mhs-nav-label > * { display: none; }
    .theme-mhs.mhs-sidebar-mini .mhs-nav-group.is-collapsed .mhs-nav-collapse { grid-template-rows: 1fr; opacity: 1; }
    .theme-mhs.mhs-sidebar-mini .mhs-nav-group.is-collapsed .mhs-nav-collapse li { transform: none; }
    .theme-mhs.mhs-sidebar-mini #navFormulir { display: none !important; }
    /* badge jadi titik di pojok ikon */
    .theme-mhs.mhs-sidebar-mini .mhs-nav-badge {
        position: absolute; top: 4px; left: 30px; min-width: 0; width: 9px; height: 9px; padding: 0;
        font-size: 0; box-shadow: 0 0 0 2px var(--sidebar-bg);
    }
}

/* tooltip saat mode rail ikon (dibuat via JS, position: fixed agar tidak terpotong sidebar) */
.mhs-nav-tip {
    position: fixed; z-index: 1060; pointer-events: none;
    padding: 6px 10px; border-radius: 6px;
    background: #111a33; color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    opacity: 0; transform: translate(-6px, -50%); transition: opacity .15s, transform .15s var(--ease-nav, ease);
}
.mhs-nav-tip::before {
    content: ""; position: absolute; left: -4px; top: 50%; margin-top: -4px;
    border: 4px solid transparent; border-left: 0; border-right-color: #111a33;
}
.mhs-nav-tip.is-visible { opacity: 1; transform: translate(0, -50%); }

@media (prefers-reduced-motion: reduce) {
    .theme-mhs .mhs-sidebar, .theme-mhs .mhs-sidebar *, .theme-mhs .mhs-burger span,
    .theme-mhs .mhs-topbar, .theme-mhs .mhs-main, .theme-mhs .mhs-footer { transition: none !important; }
}

/* Tombol ciutkan (desktop): bulat, mengapung tepat di garis batas sidebar | topbar */
@media (min-width: 992px) {
    .theme-mhs { --toggle-size: 34px; }
    .theme-mhs .mhs-menu-btn {
        position: fixed; z-index: 1045;
        top: calc((var(--topbar) - var(--toggle-size)) / 2);
        left: calc(var(--sidebar) - var(--toggle-size) / 2);
        width: var(--toggle-size); height: var(--toggle-size);
        border-radius: 50%;
        background: #fff; color: var(--sidebar-bg);
        border: 1px solid var(--line);
        box-shadow: 0 2px 8px rgba(16, 24, 64, .18);
        transition: left .28s var(--ease-nav), background .15s, color .15s, box-shadow .15s, transform .15s;
    }
    .theme-mhs .mhs-menu-btn:hover { background: var(--sidebar-bg); color: #fff; box-shadow: 0 4px 14px rgba(16, 24, 64, .3); transform: scale(1.06); }
    .theme-mhs .mhs-menu-btn:focus-visible { outline: 2px solid var(--sidebar-bg); outline-offset: 2px; }
    .theme-mhs.mhs-sidebar-mini .mhs-menu-btn { left: calc(var(--sidebar-mini) - var(--toggle-size) / 2); }
    .theme-mhs .mhs-menu-btn .mhs-burger { width: 14px; height: 10px; }
    .theme-mhs .mhs-menu-btn .mhs-burger span:nth-child(2) { top: 4px; }
    .theme-mhs .mhs-menu-btn .mhs-burger span:nth-child(3) { top: 8px; }
    .theme-mhs:not(.mhs-sidebar-mini) .mhs-menu-btn .mhs-burger span:nth-child(1) { transform: translate(-1px, 2px) rotate(-40deg); }
    .theme-mhs:not(.mhs-sidebar-mini) .mhs-menu-btn .mhs-burger span:nth-child(3) { transform: translate(-1px, -2px) rotate(40deg); }
    /* judul topbar bergeser agar tidak tertutup separuh tombol */
    /* topbar (wadah tombol) di atas sidebar agar separuh tombol tidak tertutup; topbar tidak menimpa sidebar di desktop */
    .theme-mhs .mhs-topbar { z-index: 1041; padding-left: calc(var(--toggle-size) / 2 + 20px); }
}
