/**
 * TSU HRIS — Global Design System
 * Diambil dari Logo_TSU_Transparan.png
 *
 * Design Tokens:
 *   Primary Dark  : #094b54
 *   Primary Mid   : #1d7a87
 *   Primary Light : #d0eef2
 *   Surface       : #f4fbfc
 *   Gold          : #f8c12a
 *   Gold Dark     : #d4991e
 *   Text Light    : #e8f8fa
 */

/* ============================================================
   0. DESIGN TOKENS (CSS Variables)
   ============================================================ */
:root {
    --tsu-primary:         #1d7a87;
    --tsu-primary-dark:    #094b54;
    --tsu-primary-darker:  #063940;
    --tsu-primary-light:   #d0eef2;
    --tsu-primary-faint:   #f4fbfc;
    --tsu-gold:            #f8c12a;
    --tsu-gold-dark:       #d4991e;
    --tsu-gold-pale:       #fef9e7;
    --tsu-text-on-dark:    #e8f8fa;
    --tsu-text-primary:    #063940;
    --tsu-success:         #16a34a;
    --tsu-success-light:   #dcfce7;
    --tsu-warning:         #d97706;
    --tsu-warning-light:   #fef3c7;
    --tsu-danger:          #dc2626;
    --tsu-danger-light:    #fee2e2;
    --tsu-info:            #0891b2;
    --tsu-info-light:      #e0f2fe;
    --tsu-radius:          0.5rem;
    --tsu-radius-lg:       0.75rem;
    --tsu-shadow:          0 2px 8px rgba(9, 75, 84, 0.12);
    --tsu-shadow-md:       0 4px 16px rgba(9, 75, 84, 0.16);
}

/* ============================================================
   1. CONTENT AREA GLOBAL
   ============================================================ */
.app-main {
    background-color: var(--tsu-primary-faint) !important;
}

/* Bootstrap 5 menggarisbawahi semua link; gaya TSU: garis bawah hanya saat hover pada link teks biasa
   (link berkelas seperti .btn, .nav-link, .dropdown-item tetap tanpa garis bawah) */
a {
    text-decoration: none;
}
a:not([class]):hover {
    text-decoration: underline;
}

/* Bootstrap 5 mewarnai hover & baris belang lewat variabel tabel (lapisan di atas sel) */
.table {
    --bs-table-hover-bg: rgba(29, 122, 135, 0.06);
    --bs-table-striped-bg: rgba(29, 122, 135, 0.04);
}
body.dark-mode .table {
    --bs-table-hover-bg: rgba(29, 122, 135, 0.22);
    --bs-table-hover-color: #ffffff;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   2. PAGE HEADER (.tsu-page-header)
   Menggantikan/override .app-content-header AdminLTE 4
   Sticky Header Layout di bawah Top Navbar AdminLTE
   ============================================================ */
.app-content-header,
.tsu-page-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #ffffff !important;
    border-bottom: 2px solid var(--tsu-primary-light);
    padding: 0.85rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 3px 10px rgba(9, 75, 84, 0.07);
    /* Tanpa transisi padding: tsu-page-header.js mengukur tinggi header seketika saat berganti mode */
    transition: box-shadow 0.25s ease;
}

/* Di semua ukuran layar halaman (body) yang menggulir, jadi header ditempel tepat di bawah navbar.
   AdminLTE (layout-fixed) memberi .app-main overflow:auto tanpa membatasi tingginya: .app-main jadi
   kontainer sticky yang tidak pernah menggulir sehingga header ikut hilang di desktop. overflow-x: clip
   tetap memotong konten yang melebar tanpa membuat kontainer gulir, jadi sticky kembali bekerja. */
body.layout-fixed .app-main {
    overflow: visible !important;
    overflow-x: clip !important;
}

body.fixed-header .app-content-header,
body.fixed-header .tsu-page-header {
    top: calc(3.5rem + 1px);
}

.tsu-page-header.is-stuck {
    box-shadow: 0 4px 16px rgba(9, 75, 84, 0.13) !important;
}

/* Mode ringkas saat header menempel (class dipasang tsu-page-header.js).
   Berlaku di semua ukuran layar: satu baris, breadcrumb disembunyikan, judul dipotong. */
.tsu-page-header-sentinel {
    height: 1px;
    margin-bottom: -1px;
}

.tsu-page-header.is-stuck {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.tsu-page-header.is-stuck nav[aria-label="breadcrumb"] {
    display: none;
}

.tsu-page-header.is-stuck > .container-fluid > .d-flex {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.75rem;
}

.tsu-page-header.is-stuck > .container-fluid > .d-flex > :first-child {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0 !important;
}

.tsu-page-header.is-stuck .tsu-page-header__title {
    display: block;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tsu-page-header.is-stuck .tsu-page-header__title i {
    margin-right: 0.4rem;
}

.tsu-page-header.is-stuck .tsu-page-header__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
}

.tsu-page-header.is-stuck .tsu-compact-hidden {
    display: none !important;
}

/* HP: tombol aksi ringkas (ikon saja, tombol non-utama masuk menu ⋮) */
@media (max-width: 767.98px) {
    .tsu-page-header.is-stuck .tsu-page-header__actions {
        width: auto !important;
        margin-top: 0 !important;
        gap: 0.4rem !important;
    }

    .tsu-page-header.is-stuck .tsu-page-header__actions .btn,
    .tsu-page-header.is-stuck .tsu-page-header__actions form,
    .tsu-page-header.is-stuck .tsu-page-header__actions a {
        margin: 0 !important;
    }

    .tsu-page-header.is-stuck .tsu-page-header__actions .btn.tsu-icon-only {
        font-size: 0 !important;
        min-width: 38px;
        min-height: 38px;
        padding: 0.35rem 0.6rem !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tsu-page-header.is-stuck .tsu-page-header__actions .btn.tsu-icon-only i {
        font-size: 0.95rem;
        margin: 0 !important;
    }

    .tsu-page-header.is-stuck .tsu-page-header__more .btn {
        min-width: 38px;
        min-height: 38px;
    }
}

@media (max-width: 575.98px) {
    .app-content-header,
    .tsu-page-header {
        padding: 0.75rem 1rem !important;
    }
}

.tsu-page-header__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tsu-primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.tsu-page-header__title i {
    color: var(--tsu-primary);
    font-size: 1.1rem;
}

.tsu-page-header__subtitle {
    font-size: 0.78rem;
    color: #6c757d;
    margin: 0.15rem 0 0 0;
}

/* Breadcrumb TSU */
.tsu-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.78rem;
}

.tsu-breadcrumb .breadcrumb-item a {
    color: var(--tsu-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.tsu-breadcrumb .breadcrumb-item a:hover {
    color: var(--tsu-primary-dark);
    text-decoration: underline;
}

.tsu-breadcrumb .breadcrumb-item.active {
    color: var(--tsu-primary-dark);
    font-weight: 600;
}

.tsu-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
    content: "/";
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0 0.1rem;
}

/* Override AdminLTE default breadcrumb (AdminLTE 4: .app-main .app-content-header .breadcrumb { line-height: 2.5rem }) */
.app-content-header .breadcrumb,
.app-main .app-content-header .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.78rem;
    line-height: 1.5;
}

.app-content-header .breadcrumb .breadcrumb-item a {
    color: var(--tsu-primary);
    text-decoration: none;
}

.app-content-header .breadcrumb .breadcrumb-item.active {
    color: var(--tsu-primary-dark);
    font-weight: 600;
}

.app-content-header .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
    content: "/";
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0 0.1rem;
}

.app-content-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tsu-primary-dark);
    margin: 0;
}

/* ============================================================
   3. STAT CARDS (.tsu-stat-card)
   ============================================================ */
.tsu-stat-card {
    border: none;
    border-radius: var(--tsu-radius-lg);
    box-shadow: var(--tsu-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.tsu-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tsu-shadow-md);
}

.tsu-stat-card .card-body {
    padding: 1.1rem 1.25rem;
}

.tsu-stat-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}

.tsu-stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.tsu-stat-card__sublabel {
    font-size: 0.75rem;
    opacity: 0.7;
}

.tsu-stat-card__icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.15;
}

/* Varian: Primary (Dark Teal) */
.tsu-stat-primary {
    background: linear-gradient(135deg, var(--tsu-primary-dark), var(--tsu-primary));
    border-left: 4px solid var(--tsu-gold) !important;
    color: #ffffff;
}

/* Varian: Teal (Vibrant Teal) */
.tsu-stat-teal {
    background: linear-gradient(135deg, #094b54, #1d7a87);
    border-left: 4px solid #2dd4bf !important;
    color: #ffffff;
}

/* Varian: Success (Hijau) */
.tsu-stat-success {
    background: linear-gradient(135deg, #166534, var(--tsu-success));
    border-left: 4px solid #4ade80 !important;
    color: #ffffff;
}

/* Varian: Warning (Emas/Amber) */
.tsu-stat-warning {
    background: linear-gradient(135deg, #92400e, var(--tsu-warning));
    border-left: 4px solid var(--tsu-gold) !important;
    color: #ffffff;
}

/* Varian: Danger (Merah) */
.tsu-stat-danger {
    background: linear-gradient(135deg, #991b1b, var(--tsu-danger));
    border-left: 4px solid #f87171 !important;
    color: #ffffff;
}

/* Varian: Info (Biru) */
.tsu-stat-info {
    background: linear-gradient(135deg, #164e63, var(--tsu-info));
    border-left: 4px solid #38bdf8 !important;
    color: #ffffff;
}

/* Layout badge (gaya System Management) */
.tsu-stat-card.tsu-stat-card--badge { border-left: none !important; box-shadow: 0 4px 14px rgba(9,75,84,.08); }
.tsu-stat-card--badge:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(9,75,84,.15); }
.tsu-stat-card--badge .card-body { padding: 1.15rem 1.25rem; }
.tsu-stat-card--badge .tsu-stat-card__top { display:flex; align-items:center; justify-content:space-between; margin-bottom:.65rem; }
.tsu-stat-card--badge .tsu-stat-card__label { font-size:.78rem; margin:0; opacity:.95; }
.tsu-stat-card--badge .tsu-stat-card__icon-badge { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; }
.tsu-stat-card--badge .tsu-stat-card__value { font-size:1.85rem; line-height:1.15; letter-spacing:-.02em; margin-bottom:.25rem; display:flex; align-items:baseline; gap:.35rem; }
.tsu-stat-card--badge .tsu-stat-card__unit { font-size:.9rem; font-weight:600; opacity:.85; }
.tsu-stat-card--badge .tsu-stat-card__subtext { font-size:.75rem; font-weight:500; opacity:.85; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Gradien badge disamakan dengan System Management */
.tsu-stat-card--badge.tsu-stat-primary,
.tsu-stat-card--badge.tsu-stat-teal    { background: linear-gradient(135deg,#094b54 0%,#0c6170 100%); }
.tsu-stat-card--badge.tsu-stat-info    { background: linear-gradient(135deg,#0284c7 0%,#0ea5e9 100%); }
.tsu-stat-card--badge.tsu-stat-success { background: linear-gradient(135deg,#047857 0%,#10b981 100%); }
.tsu-stat-card--badge.tsu-stat-warning { background: linear-gradient(135deg,#b45309 0%,#d97706 100%); }
/* danger: pakai gradien .tsu-stat-danger yang sudah ada */

/* ============================================================
   4. TSU CARD (.tsu-card) — Main Content Card
   ============================================================ */
.tsu-card,
.card.card-primary.card-outline,
.card.card-outline.card-primary {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: 3px solid var(--tsu-primary, #094b54) !important;
    border-radius: var(--tsu-radius-lg, 12px) !important;
    box-shadow: 0 4px 16px rgba(9, 75, 84, 0.06) !important;
    margin-bottom: 1.5rem !important;
    background: #ffffff;
    overflow: hidden;
}

.tsu-card .card-header,
.card.card-primary.card-outline > .card-header,
.card.card-outline.card-primary > .card-header {
    background: #ffffff !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 1.25rem !important;
}

/* Fix float clearfix AdminLTE ::after/::before in card-header */
.card-header::after,
.card-header::before {
    display: none !important;
    content: none !important;
}

.tsu-card .card-header.p-0,
.card.card-primary.card-outline > .card-header.p-0,
.card.card-outline.card-primary > .card-header.p-0 {
    padding: 0 !important;
}

.tsu-card .card-title,
.card.card-primary.card-outline > .card-header > .card-title,
.card.card-primary.card-outline > .card-header h3,
.card.card-primary.card-outline > .card-header h5 {
    color: var(--tsu-primary-dark) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

.tsu-card .card-body,
.card.card-primary.card-outline > .card-body {
    background: #ffffff;
    padding: 1.25rem !important;
}

/* === CARD INSIDE MODAL: Hilangkan border-top agar tidak clash dengan modal header === */
.modal .card.card-primary.card-outline > .card-header,
.modal .card.card-primary.card-outline-tabs > .card-header,
.modal .card.card-outline-tabs > .card-header,
.modal .tsu-card .card-header {
    border-top: none !important;
}

/* Card di modal: hapus margin atas tambahan & shadow card agar menyatu dengan modal body */
.modal .card.card-primary.card-outline,
.modal .card.card-outline-tabs {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Khusus card-outline-tabs (form edit/detail karyawan) */
.modal .card.card-outline-tabs {
    border: none !important;
}

/* Tab cards (card-tabs) */
.card.card-primary.card-tabs > .card-header {
    border-top: 3px solid var(--tsu-primary) !important;
    background: #ffffff !important;
}

.card.card-primary.card-tabs .nav-tabs .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.card.card-primary.card-tabs .nav-tabs .nav-link.active {
    color: var(--tsu-primary-dark) !important;
    border-bottom: 3px solid var(--tsu-primary) !important;
    background: transparent !important;
    background-color: transparent !important;
    font-weight: 700;
}

.card.card-primary.card-tabs .nav-tabs .nav-link:hover {
    color: var(--tsu-primary) !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* ============================================================
   5. BUTTONS (.tsu-btn-*)
   ============================================================ */

/* Primary Action & Sync Buttons (Gradient Teal) */
.tsu-btn-primary-action,
.btn.tsu-btn-primary-action,
.tsu-btn-sync,
.btn.tsu-btn-sync {
    background: linear-gradient(135deg, var(--tsu-primary, #094b54) 0%, var(--tsu-secondary, #1d7a87) 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: var(--tsu-radius, 8px) !important;
    padding: 0.45rem 1.1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(9, 75, 84, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.5 !important;
}

.tsu-btn-primary-action:hover,
.btn.tsu-btn-primary-action:hover,
.tsu-btn-sync:hover,
.btn.tsu-btn-sync:hover {
    background: linear-gradient(135deg, var(--tsu-primary-dark, #063940) 0%, var(--tsu-primary, #094b54) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(9, 75, 84, 0.35) !important;
    color: #ffffff !important;
}

.tsu-btn-primary-action:active,
.btn.tsu-btn-primary-action:active,
.tsu-btn-sync:active,
.btn.tsu-btn-sync:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(9, 75, 84, 0.2) !important;
}

/* Reload / Refresh Button */
.tsu-btn-reload,
.btn.tsu-btn-reload {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    border-radius: var(--tsu-radius, 8px) !important;
    padding: 0.45rem 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.5 !important;
}

.tsu-btn-reload:hover,
.btn.tsu-btn-reload:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: var(--tsu-primary, #094b54) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Create / Tambah */
.tsu-btn-create,
.btn.tsu-btn-create {
    background-color: var(--tsu-primary) !important;
    border-color: var(--tsu-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--tsu-radius);
    transition: all 0.2s ease;
}

.tsu-btn-create:hover,
.btn.tsu-btn-create:hover {
    background-color: var(--tsu-primary-dark) !important;
    border-color: var(--tsu-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(9, 75, 84, 0.3);
}

/* Edit */
.tsu-btn-edit,
.btn.tsu-btn-edit {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--tsu-radius);
    transition: all 0.2s ease;
}

.tsu-btn-edit:hover,
.btn.tsu-btn-edit:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px);
}

/* View / Detail */
.tsu-btn-view,
.btn.tsu-btn-view {
    background-color: var(--tsu-info) !important;
    border-color: var(--tsu-info) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--tsu-radius);
    transition: all 0.2s ease;
}

.tsu-btn-view:hover,
.btn.tsu-btn-view:hover {
    background-color: #0e7490 !important;
    border-color: #0e7490 !important;
    transform: translateY(-1px);
}

/* Delete */
.tsu-btn-delete,
.btn.tsu-btn-delete {
    background-color: var(--tsu-danger) !important;
    border-color: var(--tsu-danger) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--tsu-radius);
    transition: all 0.2s ease;
}

.tsu-btn-delete:hover,
.btn.tsu-btn-delete:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    transform: translateY(-1px);
}

/* Export / Download */
.tsu-btn-export,
.btn.tsu-btn-export {
    background-color: var(--tsu-gold) !important;
    border-color: var(--tsu-gold-dark) !important;
    color: var(--tsu-primary-dark) !important;
    font-weight: 700;
    border-radius: var(--tsu-radius);
    transition: all 0.2s ease;
}

.tsu-btn-export:hover,
.btn.tsu-btn-export:hover {
    background-color: var(--tsu-gold-dark) !important;
    border-color: var(--tsu-gold-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Approve */
.tsu-btn-approve,
.btn.tsu-btn-approve {
    background-color: var(--tsu-success) !important;
    border-color: var(--tsu-success) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--tsu-radius);
    transition: all 0.2s ease;
}

.tsu-btn-approve:hover,
.btn.tsu-btn-approve:hover {
    background-color: #15803d !important;
    transform: translateY(-1px);
}

/* Reject */
.tsu-btn-reject,
.btn.tsu-btn-reject {
    background-color: var(--tsu-danger) !important;
    border-color: var(--tsu-danger) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--tsu-radius);
    transition: all 0.2s ease;
}

/* ============================================================
   6. BADGES (.tsu-badge-*)
   ============================================================ */
.tsu-badge {
    padding: 0.35em 0.65em;
    font-size: 0.72em;
    font-weight: 700;
    border-radius: 0.35rem;
    letter-spacing: 0.03em;
}

.tsu-badge-active {
    background-color: var(--tsu-success-light);
    color: #14532d;
    border: 1px solid #86efac;
}

.tsu-badge-pending {
    background-color: var(--tsu-warning-light);
    color: #78350f;
    border: 1px solid #fcd34d;
}

.tsu-badge-inactive {
    background-color: var(--tsu-danger-light);
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

.tsu-badge-pkwtt {
    background-color: var(--tsu-primary-light);
    color: var(--tsu-primary-dark);
    border: 1px solid var(--tsu-primary);
}

.tsu-badge-pkwt {
    background-color: var(--tsu-info-light);
    color: #164e63;
    border: 1px solid #7dd3fc;
}

.tsu-badge-dosen {
    background-color: #ede9fe;
    color: #4c1d95;
    border: 1px solid #c4b5fd;
}

.tsu-badge-tendik {
    background-color: #fce7f3;
    color: #831843;
    border: 1px solid #f9a8d4;
}

/* ============================================================
   7. DATATABLE OVERRIDES
   ============================================================ */
.table-responsive {
    border-radius: var(--tsu-radius, 8px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.dataTable {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

table.dataTable thead th,
table.dataTable thead td {
    background-color: var(--tsu-primary-faint) !important;
    color: var(--tsu-primary-dark) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--tsu-primary-light) !important;
    white-space: nowrap;
}

table.dataTable tbody td {
    vertical-align: middle !important;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

/* Kolom aksi, badge, dan nomor indeks tetap rapi tanpa pecah baris */
table.dataTable th.text-center,
table.dataTable td.text-center,
table.dataTable td .badge,
table.dataTable td .btn {
    white-space: nowrap;
}

table.dataTable tbody tr:hover td {
    background-color: var(--tsu-primary-faint) !important;
}

table.dataTable.table-striped tbody tr:nth-of-type(odd) > * {
    background-color: rgba(29, 122, 135, 0.04) !important;
}

/* Custom scrollbar untuk table-responsive */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--tsu-primary, #094b54);
}

/* DataTable Controls */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_length label {
    font-weight: 500;
    color: #475569;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length select,
div.dataTables_wrapper div.dataTables_length select {
    display: inline-block !important;
    width: auto !important;
    min-width: 80px !important;
    height: 32px !important;
    line-height: 1.5 !important;
    padding: 2px 28px 2px 10px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--tsu-radius, 6px) !important;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath fill='none' stroke='%23094b54' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px 6px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dataTables_wrapper .dataTables_length select:focus,
div.dataTables_wrapper div.dataTables_length select:focus {
    border-color: var(--tsu-primary, #094b54) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(9, 75, 84, 0.15) !important;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    color: #475569;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter input,
div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--tsu-radius, 6px) !important;
    height: 32px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.85rem !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus,
div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: var(--tsu-primary, #094b54) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(9, 75, 84, 0.15) !important;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--tsu-primary) !important;
    border-color: var(--tsu-primary) !important;
    color: #ffffff !important;
    border-radius: var(--tsu-radius);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--tsu-primary-light) !important;
    border-color: var(--tsu-primary-light) !important;
    color: var(--tsu-primary-dark) !important;
    border-radius: var(--tsu-radius);
}

/* Toolbar standar (dom global): Show (length) + Search (filter) selalu satu baris di
   desktop, dan tidak pernah terpotong/tergeser di HP karena berada di luar .table-responsive. */
.tsu-dt-toolbar {
    align-items: center;
    row-gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tsu-dt-toolbar .dataTables_length,
.tsu-dt-toolbar .dataTables_filter {
    margin-bottom: 0 !important;
}

.tsu-dt-toolbar .dataTables_filter {
    text-align: left;
}

@media (min-width: 768px) {
    .tsu-dt-toolbar .dataTables_filter {
        text-align: right;
    }
}

.tsu-dt-toolbar .dataTables_filter input {
    width: 100%;
}

@media (min-width: 768px) {
    .tsu-dt-toolbar .dataTables_filter input {
        width: auto;
    }
}

.tsu-dt-footer {
    align-items: center;
    row-gap: 0.5rem;
    margin-top: 0.75rem;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.82rem;
    color: #64748b;
    padding-top: 0 !important;
}

/* Child row Responsive (mode dtr-inline, tombol ►/▼ di kolom pertama) */
/* Paginasi di HP: rata tengah, tombol lebih ramping, boleh turun baris (tidak pernah meluber) */
@media (max-width: 767.98px) {
    .tsu-dt-footer .dataTables_info,
    .tsu-dt-footer .dataTables_paginate {
        text-align: center !important;
    }

    .tsu-dt-footer .dataTables_paginate .pagination {
        justify-content: center !important;
        flex-wrap: wrap;
        row-gap: 0.25rem;
        margin: 0;
    }

    .tsu-dt-footer .dataTables_paginate .page-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Mode kolom kontrol khusus (responsive.details.type = 'column'): dipakai bila kolom
   pertama berisi elemen interaktif (mis. checkbox) agar klik panah tidak bentrok. */
table.dataTable.dtr-column > tbody > tr > td.dtr-control,
table.dataTable.dtr-column > thead > tr > th.dtr-control {
    width: 2.25rem;
    text-align: center;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control:before {
    box-sizing: border-box;
    margin-right: 0.6em;
    color: #ffffff !important;
    background-color: var(--tsu-primary, #094b54) !important;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    font-size: 0.78em;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control:before {
    margin-right: 0;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent > th.dtr-control:before {
    background-color: var(--tsu-primary-dark, #06333a) !important;
}

table.dataTable > tbody > tr.child {
    background-color: var(--tsu-primary-faint) !important;
}

table.dataTable > tbody > tr.child:hover td {
    background-color: var(--tsu-primary-faint) !important;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom: 1px solid rgba(9, 75, 84, 0.1);
}

table.dataTable > tbody > tr.child span.dtr-title {
    color: var(--tsu-primary-dark);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================================
   8. INFO-BOX OVERRIDES (AdminLTE)
   Digunakan di MPP, tetap konsisten dengan TSU palette
   ============================================================ */
.info-box {
    border-radius: var(--tsu-radius-lg) !important;
    box-shadow: var(--tsu-shadow) !important;
    min-height: 70px;
}

.info-box.bg-info {
    background: linear-gradient(135deg, #164e63, var(--tsu-info)) !important;
}

.info-box.bg-success {
    background: linear-gradient(135deg, #166534, var(--tsu-success)) !important;
}

.info-box.bg-warning {
    background: linear-gradient(135deg, #92400e, var(--tsu-warning)) !important;
}

.info-box.bg-danger {
    background: linear-gradient(135deg, #991b1b, var(--tsu-danger)) !important;
}

/* ============================================================
   9. SELECT2 OVERRIDES
   ============================================================ */
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--tsu-primary) !important;
    box-shadow: 0 0 0 3px rgba(29, 122, 135, 0.15) !important;
}

/* Select2 4.1 (kelas --highlighted / --selected, dipakai tema AdminLTE 4): warna TSU.
   Opsi yang sudah terpilih ditandai halus + centang, agar beda dari opsi yang sedang disorot. */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--tsu-primary) !important;
    color: #ffffff !important;
}
.select2-container--default .select2-results__option--selected {
    background-color: var(--tsu-primary-faint) !important;
    color: var(--tsu-primary-dark) !important;
    font-weight: 600;
    position: relative;
    padding-right: 2rem !important;
}
.select2-container--default .select2-results__option--selected::after {
    content: "\f00c";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.75rem;
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tsu-primary);
}
.select2-container--default .select2-results__option--selected.select2-results__option--highlighted {
    background-color: var(--tsu-primary-light) !important;
    color: var(--tsu-primary-dark) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--tsu-primary-light) !important;
    border-color: rgba(29, 122, 135, 0.35) !important;
    color: var(--tsu-primary-dark) !important;
    font-weight: 600;
}
body.dark-mode .select2-container--default .select2-results__option--selected {
    background-color: rgba(29, 122, 135, 0.18) !important;
    color: #e2f3f5 !important;
}
body.dark-mode .select2-container--default .select2-results__option--selected::after {
    color: #5eead4;
}
body.dark-mode .select2-container--default .select2-results__option--selected.select2-results__option--highlighted {
    background-color: rgba(29, 122, 135, 0.35) !important;
}
body.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(29, 122, 135, 0.28) !important;
    border-color: rgba(94, 234, 212, 0.25) !important;
    color: #e2f3f5 !important;
}

/* ============================================================
   10. ALERT OVERRIDES
   ============================================================ */
.alert {
    border-radius: var(--tsu-radius) !important;
    border-left-width: 4px !important;
}

.alert-success {
    background-color: var(--tsu-success-light) !important;
    border-color: var(--tsu-success) !important;
    color: #14532d !important;
}

.alert-warning {
    background-color: var(--tsu-warning-light) !important;
    border-color: var(--tsu-warning) !important;
    color: #78350f !important;
}

.alert-danger {
    background-color: var(--tsu-danger-light) !important;
    border-color: var(--tsu-danger) !important;
    color: #7f1d1d !important;
}

.alert-info {
    background-color: var(--tsu-info-light) !important;
    border-color: var(--tsu-info) !important;
    color: #164e63 !important;
}

/* Alert TSU selalu berlatar terang (juga di mode gelap): ikon × tetap gelap.
   Bootstrap 5 membalik warna .btn-close menjadi putih di bawah data-bs-theme="dark". */
.alert-success .btn-close,
.alert-warning .btn-close,
.alert-danger .btn-close,
.alert-info .btn-close {
    --bs-btn-close-filter: none;
    filter: none !important;
}

/* ============================================================
   11. MODAL OVERRIDES
   ============================================================ */
.modal-header {
    background: linear-gradient(135deg, var(--tsu-primary-dark), var(--tsu-primary));
    color: var(--tsu-text-on-dark);
    border-radius: calc(var(--tsu-radius) - 1px) calc(var(--tsu-radius) - 1px) 0 0;
}

.modal-header .modal-title {
    font-weight: 700;
    color: #ffffff;
}

/* Bootstrap 5: tombol tutup berupa ikon SVG, warnanya diatur lewat --bs-btn-close-bg (emas, hover putih) */
.modal-header .btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f8c12a'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 1;
    filter: none !important;
}
.modal-header .btn-close:hover {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
}

.modal-content {
    border: none !important;
    border-radius: var(--tsu-radius) !important;
    box-shadow: 0 8px 32px rgba(9, 75, 84, 0.2) !important;
}

.modal-footer {
    border-top: 1px solid var(--tsu-primary-light);
    background: var(--tsu-primary-faint);
}

/* ============================================================
   12. SECTION WRAPPER (untuk section di dalam content)
   ============================================================ */
.app-content {
    padding: 1rem 1.25rem !important;
}

/* ============================================================
   13. FORM CONTROLS
   ============================================================ */
.form-control:focus {
    border-color: var(--tsu-primary) !important;
    box-shadow: 0 0 0 3px rgba(29, 122, 135, 0.15) !important;
}

.form-control {
    border-radius: var(--tsu-radius) !important;
}

/* Label */
label.col-form-label,
label.form-label {
    color: var(--tsu-primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================================
   14. UTILITY HELPERS
   ============================================================ */
.tsu-divider {
    border: none;
    border-top: 2px solid var(--tsu-primary-light);
    margin: 1rem 0;
}

.tsu-text-primary { color: var(--tsu-primary) !important; }
.tsu-text-dark    { color: var(--tsu-primary-dark) !important; }
.tsu-text-gold    { color: var(--tsu-gold-dark) !important; }
.tsu-bg-primary   { background-color: var(--tsu-primary) !important; }
.tsu-bg-faint     { background-color: var(--tsu-primary-faint) !important; }

/* ============================================================
   15. PROFILE DROPDOWN MENU (.tsu-profile-menu)
   ============================================================ */

/* Trigger avatar border glow on open */
#tsu-profile-dropdown.show .tsu-profile-trigger img {
    border-color: var(--tsu-gold) !important;
    box-shadow: 0 0 0 3px rgba(248, 193, 42, 0.3);
}

/* Dropdown container */
.tsu-profile-menu {
    min-width: 290px;
    border-radius: var(--tsu-radius-lg) !important;
    overflow: hidden;
    margin-top: 6px !important;
    box-shadow: 0 8px 32px rgba(9, 75, 84, 0.18), 0 2px 8px rgba(0,0,0,0.1) !important;
    animation: tsuDropIn 0.18s ease;
}

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

/* ── Header Section ── */
.tsu-profile-menu__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, var(--tsu-primary-dark) 0%, var(--tsu-primary) 100%);
    border-bottom: 2px solid rgba(248, 193, 42, 0.35);
}

.tsu-profile-menu__avatar-wrap {
    flex-shrink: 0;
}

.tsu-profile-menu__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(248, 193, 42, 0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.tsu-profile-menu__info {
    flex: 1;
    min-width: 0;
}

.tsu-profile-menu__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.tsu-profile-menu__email {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.tsu-profile-menu__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.tsu-profile-menu__role-badge {
    display: inline-block;
    padding: 0.15em 0.5em;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(248, 193, 42, 0.2);
    color: var(--tsu-gold);
    border: 1px solid rgba(248, 193, 42, 0.4);
    border-radius: 0.25rem;
}

.tsu-profile-menu__unit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
}

/* ── Body: Menu Items ── */
.tsu-profile-menu__body {
    background: #ffffff;
    padding: 0.35rem 0;
}

.tsu-profile-menu__item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    text-decoration: none !important;
    color: var(--tsu-primary-dark) !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}

.tsu-profile-menu__item:hover {
    background: var(--tsu-primary-faint);
    color: var(--tsu-primary) !important;
}

.tsu-profile-menu__item:hover .tsu-profile-menu__item-icon {
    background: var(--tsu-primary);
    color: #ffffff;
}

.tsu-profile-menu__item:hover .tsu-profile-menu__item-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.tsu-profile-menu__item-icon {
    width: 30px;
    height: 30px;
    border-radius: 0.4rem;
    background: var(--tsu-primary-light);
    color: var(--tsu-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-right: 0.7rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.tsu-profile-menu__item-label {
    flex: 1;
}

.tsu-profile-menu__item-arrow {
    font-size: 0.6rem;
    color: #adb5bd;
    opacity: 0.5;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ── Footer: Logout ── */
.tsu-profile-menu__footer {
    padding: 0.5rem 0.75rem 0.65rem;
    border-top: 1px solid var(--tsu-primary-light);
    background: #fafafa;
}

.tsu-profile-menu__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: var(--tsu-radius);
    background: transparent;
    border: 1.5px solid #fca5a5;
    color: var(--tsu-danger) !important;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.tsu-profile-menu__logout:hover {
    background: var(--tsu-danger);
    border-color: var(--tsu-danger);
    color: #ffffff !important;
}

/* ============================================================
   16. NOTIFICATION BELL DROPDOWN (.tsu-notif-*)
   ============================================================ */

/* Badge lonceng — override warna di atas navbar-badge AdminLTE */
.tsu-notif-badge.navbar-badge {
    background-color: var(--tsu-gold) !important;
    color: var(--tsu-primary-dark) !important;
    font-weight: 800;
    border: 1.5px solid rgba(9, 75, 84, 0.5);
}

/* Bell icon pulse saat ada notif */
#tsu-notif-dropdown.show .tsu-notif-trigger .fa-bell,
#tsu-notif-dropdown.show .tsu-notif-trigger .far.fa-bell {
    color: var(--tsu-gold) !important;
}

/* Dropdown container */
.tsu-notif-menu {
    width: 320px;
    border-radius: var(--tsu-radius-lg) !important;
    overflow: hidden;
    margin-top: 6px !important;
    box-shadow: 0 8px 32px rgba(9, 75, 84, 0.18), 0 2px 8px rgba(0,0,0,0.1) !important;
    animation: tsuDropIn 0.18s ease;
}

/* ── Header ── */
.tsu-notif-menu__header {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--tsu-primary-dark) 0%, var(--tsu-primary) 100%);
    border-bottom: 2px solid rgba(248, 193, 42, 0.3);
}

.tsu-notif-menu__header-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tsu-gold);
    font-size: 0.95rem;
    margin-right: 0.7rem;
    flex-shrink: 0;
}

.tsu-notif-menu__header-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.tsu-notif-menu__header-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.1rem;
}

.tsu-notif-menu__header-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tsu-gold) !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(248, 193, 42, 0.35);
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.tsu-notif-menu__header-link:hover {
    background: rgba(248, 193, 42, 0.15);
    color: #ffffff !important;
}

/* ── Scrollable Body ── */
.tsu-notif-menu__body {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
}

.tsu-notif-menu__body::-webkit-scrollbar {
    width: 4px;
}

.tsu-notif-menu__body::-webkit-scrollbar-track {
    background: var(--tsu-primary-faint);
}

.tsu-notif-menu__body::-webkit-scrollbar-thumb {
    background: var(--tsu-primary-light);
    border-radius: 2px;
}

/* ── Empty State ── */
.tsu-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.tsu-notif-empty__icon {
    font-size: 2rem;
    color: var(--tsu-primary);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.tsu-notif-empty__text {
    font-size: 0.82rem;
    color: #adb5bd;
    font-weight: 500;
}

/* ── Notification Item ── */
.tsu-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    position: relative;
}

.tsu-notif-item:last-child {
    border-bottom: none;
}

.tsu-notif-item:hover {
    background: var(--tsu-primary-faint);
}

.tsu-notif-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.tsu-notif-item__content {
    flex: 1;
    min-width: 0;
}

.tsu-notif-item__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tsu-primary-dark);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tsu-notif-item__sub {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.tsu-notif-item__cta {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.15em 0.5em;
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--tsu-primary-light);
    color: var(--tsu-primary-dark);
    border-radius: 0.25rem;
}

/* Unread dot (DB notifications) */
.tsu-notif-item__unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tsu-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

/* ── Badge Variants ── */
.tsu-notif-item__badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
}

.tsu-notif-item__badge--success { background: #dcfce7; color: #15803d; }
.tsu-notif-item__badge--purple  { background: #ede9fe; color: #6d28d9; }
.tsu-notif-item__badge--warning { background: #fef3c7; color: #b45309; }
.tsu-notif-item__badge--info    { background: #e0f2fe; color: #0369a1; }
.tsu-notif-item__badge--teal    { background: var(--tsu-primary-light); color: var(--tsu-primary-dark); }
.tsu-notif-item__badge--danger  { background: var(--tsu-danger-light);  color: #991b1b; }

/* ── Footer ── */
.tsu-notif-menu__footer {
    border-top: 1px solid var(--tsu-primary-light);
    background: #fafafa;
    padding: 0;
}

.tsu-notif-menu__footer-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--tsu-primary) !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.tsu-notif-menu__footer-link:hover {
    background: var(--tsu-primary-faint);
    color: var(--tsu-primary-dark) !important;
}

/* ============================================================
   17. NOTIFICATION INBOX PAGE (.tsu-notif-tabs, .tsu-notif-row)
   ============================================================ */

/* ── Filter Tabs ── */
.tsu-notif-tabs {
    border-bottom: 2px solid var(--tsu-primary-light);
    padding: 0 0.5rem;
    gap: 0;
}

.tsu-notif-tab {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: #6c757d !important;
    text-decoration: none !important;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tsu-notif-tab:hover {
    color: var(--tsu-primary) !important;
    border-bottom-color: var(--tsu-primary-light);
}

.tsu-notif-tab.active {
    color: var(--tsu-primary-dark) !important;
    border-bottom-color: var(--tsu-primary);
}

.tsu-notif-tab__badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--tsu-gold);
    color: var(--tsu-primary-dark);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

/* ── Notification List Container ── */
.tsu-notif-list {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.tsu-notif-list::-webkit-scrollbar { width: 4px; }
.tsu-notif-list::-webkit-scrollbar-track { background: var(--tsu-primary-faint); }
.tsu-notif-list::-webkit-scrollbar-thumb { background: var(--tsu-primary-light); border-radius: 2px; }

/* ── Notification Row ── */
.tsu-notif-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
    border-left: 4px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tsu-notif-row:last-child { border-bottom: none; }
.tsu-notif-row:hover { background: #f8fafc; }

/* Light Mode Unread Highlight (Jelas & Kontras) */
.tsu-notif-row--unread {
    background: #edf8fa;
    border-left: 4px solid var(--tsu-primary, #094b54);
    box-shadow: inset 0 0 0 1px rgba(9, 75, 84, 0.05);
}

.tsu-notif-row--unread:hover {
    background: #e2f4f7;
}

.tsu-notif-row--unread .tsu-notif-row__title {
    color: var(--tsu-primary-dark, #094b54);
    font-weight: 700;
}

.tsu-notif-row--unread .tsu-notif-row__message {
    color: #334155;
    font-weight: 500;
}

.tsu-notif-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tsu-notif-row__content { flex: 1; min-width: 0; }

.tsu-notif-row__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tsu-notif-row__message {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 0.3rem;
}

.tsu-notif-row__error-hint {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.76rem;
    color: var(--tsu-danger);
    font-weight: 600;
}

.tsu-notif-row__time {
    font-size: 0.73rem;
    color: #94a3b8;
}

.tsu-notif-row__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.tsu-notif-row__read-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ── Inbox Empty State ── */
.tsu-notif-inbox-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem;
    text-align: center;
}

.tsu-notif-inbox-empty__icon {
    font-size: 3rem;
    color: var(--tsu-primary-light);
    margin-bottom: 0.75rem;
}

.tsu-notif-inbox-empty__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tsu-primary-dark);
    margin-bottom: 0.35rem;
}

.tsu-notif-inbox-empty__sub {
    font-size: 0.83rem;
    color: #94a3b8;
}

/* ── Dark Mode: Notification Inbox & Dropdown Support ── */
body.dark-mode .tsu-notif-tabs,
.dark-mode .tsu-notif-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .tsu-notif-tab,
.dark-mode .tsu-notif-tab {
    color: #94a3b8 !important;
}

body.dark-mode .tsu-notif-tab:hover,
.dark-mode .tsu-notif-tab:hover {
    color: #38bdf8 !important;
    border-bottom-color: rgba(56, 189, 248, 0.4);
}

body.dark-mode .tsu-notif-tab.active,
.dark-mode .tsu-notif-tab.active {
    color: #38bdf8 !important;
    border-bottom-color: #38bdf8;
}

body.dark-mode .tsu-notif-tab__badge,
.dark-mode .tsu-notif-tab__badge {
    background: #d97706;
    color: #ffffff;
}

body.dark-mode .tsu-notif-list::-webkit-scrollbar-track,
.dark-mode .tsu-notif-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .tsu-notif-list::-webkit-scrollbar-thumb,
.dark-mode .tsu-notif-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
}

body.dark-mode .tsu-notif-row,
.dark-mode .tsu-notif-row {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid transparent;
}

body.dark-mode .tsu-notif-row:hover,
.dark-mode .tsu-notif-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Dark Mode Unread: Elegan, Soft Dark Teal, Anti Silau Putih */
body.dark-mode .tsu-notif-row--unread,
.dark-mode .tsu-notif-row--unread {
    background: rgba(14, 165, 180, 0.14) !important;
    border-left: 4px solid #22d3ee !important;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.1);
}

body.dark-mode .tsu-notif-row--unread:hover,
.dark-mode .tsu-notif-row--unread:hover {
    background: rgba(14, 165, 180, 0.22) !important;
}

body.dark-mode .tsu-notif-row__title,
.dark-mode .tsu-notif-row__title {
    color: #cbd5e1;
}

body.dark-mode .tsu-notif-row--unread .tsu-notif-row__title,
.dark-mode .tsu-notif-row--unread .tsu-notif-row__title {
    color: #38bdf8 !important;
}

body.dark-mode .tsu-notif-row__message,
.dark-mode .tsu-notif-row__message {
    color: #94a3b8;
}

body.dark-mode .tsu-notif-row--unread .tsu-notif-row__message,
.dark-mode .tsu-notif-row--unread .tsu-notif-row__message {
    color: #e2e8f0 !important;
}

body.dark-mode .tsu-notif-row__time,
.dark-mode .tsu-notif-row__time {
    color: #64748b;
}

body.dark-mode .tsu-notif-row__read-badge,
.dark-mode .tsu-notif-row__read-badge {
    color: #64748b;
}

body.dark-mode .tsu-notif-row__actions .btn-outline-secondary,
.dark-mode .tsu-notif-row__actions .btn-outline-secondary {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .tsu-notif-row__actions .btn-outline-secondary:hover,
.dark-mode .tsu-notif-row__actions .btn-outline-secondary:hover {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.2);
    border-color: #22d3ee;
}

body.dark-mode .tsu-notif-row--unread .tsu-badge-active,
.dark-mode .tsu-notif-row--unread .tsu-badge-active {
    background-color: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
}

body.dark-mode .tsu-notif-inbox-empty__title,
.dark-mode .tsu-notif-inbox-empty__title {
    color: #e2e8f0;
}

body.dark-mode .tsu-notif-inbox-empty__sub,
.dark-mode .tsu-notif-inbox-empty__sub {
    color: #64748b;
}

/* Dark Mode Dropdown Navbar */
body.dark-mode .tsu-notif-item,
.dark-mode .tsu-notif-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-mode .tsu-notif-item:hover,
.dark-mode .tsu-notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .tsu-notif-item__title,
.dark-mode .tsu-notif-item__title {
    color: #e2e8f0;
}

body.dark-mode .tsu-notif-menu__footer,
.dark-mode .tsu-notif-menu__footer {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .tsu-notif-menu__footer-link,
.dark-mode .tsu-notif-menu__footer-link {
    color: #38bdf8 !important;
}

body.dark-mode .tsu-notif-menu__footer-link:hover,
.dark-mode .tsu-notif-menu__footer-link:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc !important;
}

/* ============================================================
   18. PROFILE PAGE & IDENTITY CARD (.tsu-profile-card)
   ============================================================ */

/* Container Card for User Identity */
.tsu-profile-card {
    border: none !important;
    border-radius: var(--tsu-radius-lg) !important;
    box-shadow: var(--tsu-shadow) !important;
    overflow: hidden;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.tsu-profile-card:hover {
    box-shadow: var(--tsu-shadow-md) !important;
}

/* Header Banner - Elegant TSU Teal Gradient with Gold accent */
.tsu-profile-card__header {
    height: 85px;
    background: linear-gradient(135deg, var(--tsu-primary-dark) 0%, var(--tsu-primary) 100%);
    position: relative;
    border-bottom: 2px solid rgba(248, 193, 42, 0.4);
}

/* Avatar Wrap - Perfectly positioned overlapping banner and body with natural flow */
.tsu-profile-card__avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -46px;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.tsu-profile-card__avatar,
.tsu-profile-card .profile-user-img {
    width: 92px !important;
    height: 92px !important;
    border-radius: 50% !important;
    border: 3.5px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(9, 75, 84, 0.22);
    object-fit: cover;
    background: #ffffff;
    padding: 0 !important;
    display: block;
}

/* User Name & Role */
.tsu-profile-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tsu-primary-dark);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.tsu-profile-card__role-badge {
    display: inline-block;
    padding: 0.2em 0.7em;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(29, 122, 135, 0.1);
    color: var(--tsu-primary-dark);
    border: 1px solid var(--tsu-primary-light);
    border-radius: 9999px;
}

.tsu-profile-card__role-badge--muted {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

/* Info List */
.tsu-profile-info-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0.5rem 0;
}

.tsu-profile-info-list__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.tsu-profile-info-list__item:last-child {
    border-bottom: none;
}

.tsu-profile-info-list__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.88rem;
}

.tsu-profile-info-list__content {
    flex: 1;
    min-width: 0;
}

.tsu-profile-info-list__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.tsu-profile-info-list__value {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Account Status Indicator */
.tsu-profile-card__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: var(--tsu-radius);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.tsu-profile-card__status--active {
    background: var(--tsu-success-light);
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tsu-profile-card__status--inactive {
    background: var(--tsu-danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ============================================================
   19. CALLOUT BOXES (.tsu-callout)
   ============================================================ */
.tsu-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--tsu-radius);
    background: #ffffff;
    font-size: 0.84rem;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
}

.tsu-callout--info {
    background: var(--tsu-primary-faint);
    border-color: var(--tsu-primary-light);
    border-left-color: var(--tsu-primary);
}

.tsu-callout--info .tsu-callout__icon {
    background: var(--tsu-primary-light);
    color: var(--tsu-primary-dark);
}

.tsu-callout--warning {
    background: var(--tsu-warning-light);
    border-color: #fde68a;
    border-left-color: var(--tsu-warning);
}

.tsu-callout--warning .tsu-callout__icon {
    background: #fde68a;
    color: var(--tsu-warning);
}

.tsu-callout--success {
    background: var(--tsu-success-light);
    border-color: #bbf7d0;
    border-left-color: var(--tsu-success);
}

.tsu-callout--success .tsu-callout__icon {
    background: #bbf7d0;
    color: var(--tsu-success);
}

.tsu-callout--danger {
    background: var(--tsu-danger-light);
    border-color: #fecaca;
    border-left-color: var(--tsu-danger);
}

.tsu-callout--danger .tsu-callout__icon {
    background: #fecaca;
    color: var(--tsu-danger);
}

.tsu-callout__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.tsu-callout__title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--tsu-primary-dark);
    margin-bottom: 0.15rem;
}

.tsu-callout__text {
    color: #475569;
    font-size: 0.82rem;
    margin: 0;
}

/* Banner variant (Compact horizontal strip for top of page) */
.tsu-callout--banner {
    padding: 0.6rem 1.1rem;
    align-items: center;
}

.tsu-callout--banner .tsu-callout__icon {
    margin-top: 0;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

/* ============================================================
   20. REUSABLE TABS, FORMS & SYSTEM CONTROLS
   ============================================================ */

/* Generic Tabs Alias (.tsu-tabs, .tsu-tab) */
.tsu-tabs {
    border-bottom: 2px solid var(--tsu-primary-light);
    padding: 0 0.5rem;
    gap: 0;
}

.tsu-tab {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: #6c757d !important;
    text-decoration: none !important;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tsu-tab:hover {
    color: var(--tsu-primary) !important;
    border-bottom-color: var(--tsu-primary-light);
}

.tsu-tab.active {
    color: var(--tsu-primary-dark) !important;
    border-bottom-color: var(--tsu-primary);
}

/* Form Labels */
.tsu-form-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tsu-primary-dark);
}

/* Form Controls Focus State */
.form-control:focus {
    border-color: var(--tsu-primary) !important;
    box-shadow: 0 0 0 3px rgba(29, 122, 135, 0.18) !important;
}

/* Bootstrap 5: form-check / form-switch */
.form-check-input:checked {
    background-color: var(--tsu-primary) !important;
    border-color: var(--tsu-primary) !important;
}

.form-check-input:focus {
    border-color: var(--tsu-primary) !important;
    box-shadow: 0 0 0 3px rgba(29, 122, 135, 0.2) !important;
}

.form-check-label {
    font-size: 0.85rem;
    color: #475569;
}

.form-select:focus {
    border-color: var(--tsu-primary) !important;
    box-shadow: 0 0 0 3px rgba(29, 122, 135, 0.18) !important;
}

/* Bootstrap 5: input file bawaan (.form-control[type=file]) */
.form-control[type="file"]::file-selector-button {
    background-color: var(--tsu-primary-light) !important;
    color: var(--tsu-primary-dark) !important;
    font-weight: 600;
}

/* ============================================================
   DATATABLES 1.13 (Bootstrap 5): indikator "processing"
   Integrasi BS5 memberi kelas .card dan selalu menambah animasi tiga titik.
   ============================================================ */
div.dataTables_wrapper div.dataTables_processing.card {
    border: 1px solid var(--tsu-primary-light) !important;
    border-radius: var(--tsu-radius) !important;
    box-shadow: var(--tsu-shadow-md) !important;
    color: var(--tsu-primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
}
div.dataTables_processing > div:last-child > div {
    background: var(--tsu-primary) !important;
}
/* Halaman yang sudah memberi spinner sendiri (language.processing) tidak perlu titik ganda */
div.dataTables_processing:has(.spinner-border) > div:last-child {
    display: none;
}
div.dataTables_processing .spinner-border {
    color: var(--tsu-primary) !important;
}

/* Password Eye Toggle */
.toggle-password {
    cursor: pointer;
    background: #f8fafc;
    border-color: #ced4da;
    color: #64748b;
    transition: all 0.15s ease;
}

.toggle-password:hover {
    color: var(--tsu-primary);
    background: var(--tsu-primary-faint);
    border-color: var(--tsu-primary-light);
}

/* Disabled State for Buttons */
.tsu-btn-create:disabled,
.btn.tsu-btn-create:disabled,
.btn.tsu-btn-create[disabled] {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Universal Modal Styling */
.modal-content {
    border: none !important;
    border-radius: var(--tsu-radius-lg) !important;
    box-shadow: 0 10px 35px rgba(9, 75, 84, 0.22) !important;
    overflow: hidden;
}

.modal-header {
    background: #ffffff !important;
    border-bottom: 2px solid var(--tsu-primary-light) !important;
    border-top: 3px solid var(--tsu-primary) !important;
    padding: 0.9rem 1.25rem !important;
}

.modal-title {
    color: var(--tsu-primary-dark) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.modal-footer {
    border-top: 1px solid #f1f5f9 !important;
    padding: 0.75rem 1.25rem !important;
}

/* SweetAlert2 Brand Alignment */
.swal2-styled.swal2-confirm {
    background-color: var(--tsu-primary) !important;
    border-color: var(--tsu-primary) !important;
    box-shadow: none !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(29, 122, 135, 0.3) !important;
}

/* SweetAlert2 Modal Custom Styling (Scoped to dialog modals, excluding toasts) */
.swal2-popup:not(.swal2-toast) {
    border-radius: var(--tsu-radius-lg, 14px) !important;
    position: relative !important;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
    position: relative !important;
    padding-top: 1.25rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 3.75rem !important;
    padding-right: 3.75rem !important;
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--tsu-primary-dark) !important;
    line-height: 1.45 !important;
    text-align: center !important;
    word-break: break-word !important;
}

/* SweetAlert2 Close Button Guard: ALWAYS respect hidden state */
.swal2-popup .swal2-close[style*="display: none"],
.swal2-popup.swal2-toast .swal2-close[style*="display: none"] {
    display: none !important;
}

/* Modal Close Button: Only displayed when explicitly enabled by SweetAlert */
.swal2-popup:not(.swal2-toast) .swal2-close:not([style*="display: none"]) {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    font-size: 22px !important;
    font-family: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    z-index: 10 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-close:not([style*="display: none"]):hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    transform: scale(1.05) !important;
}

.swal2-popup:not(.swal2-toast) .swal2-close:focus {
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 576px) {
    .swal2-popup:not(.swal2-toast) .swal2-title {
        padding-left: 2.75rem !important;
        padding-right: 2.75rem !important;
        font-size: 1.1rem !important;
    }
    .swal2-popup:not(.swal2-toast) .swal2-close:not([style*="display: none"]) {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 18px !important;
    }
}

/* ============================================================
   TSU SWEETALERT2 TOAST GLOBAL STYLING
   ============================================================ */
.swal2-popup.swal2-toast {
    padding: 0.75rem 1.15rem !important;
    border-radius: var(--tsu-radius, 10px) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    max-width: 440px !important;
    width: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    margin: 0 !important;
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    flex-shrink: 0 !important;
}

.swal2-popup.swal2-toast .swal2-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.925rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    color: inherit !important;
    word-break: break-word !important;
    flex: 1 1 auto !important;
}

.swal2-popup.swal2-toast .swal2-html-container {
    margin: 0.2rem 0 0 0 !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    text-align: left !important;
    color: inherit !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
}

/* Progress Bar Timer / Loading SweetAlert2 & Toast (Light & Dark) */
.swal2-timer-progress-bar,
.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    background: var(--tsu-gold, #f8c12a) !important;
    height: 3px !important;
}

/* SweetAlert2 Loader Spinner */
.swal2-loader {
    border-color: var(--tsu-gold, #f8c12a) transparent var(--tsu-gold, #f8c12a) transparent !important;
}

/* Toast Close Button: Only when explicitly enabled (compact & nicely aligned) */
.swal2-popup.swal2-toast .swal2-close:not([style*="display: none"]) {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 0 0 0 0.5rem !important;
    padding: 0 !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 16px !important;
    line-height: 22px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.15) !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
}

.swal2-popup.swal2-toast .swal2-close:not([style*="display: none"]):hover {
    background: rgba(0, 0, 0, 0.3) !important;
    color: inherit !important;
    transform: scale(1.1) !important;
}

/* Modal HTML Container & Badge Wrapping Rules */
.swal2-html-container {
    overflow-x: hidden !important;
}
/* Pesan panjang: tinggi modal mengikuti layar dan hanya isi yang di-scroll, supaya
   judul dan tombol tetap terlihat. Hanya berlaku saat modal tampil: SweetAlert2
   menyembunyikan popup lewat style display. */
.swal2-popup:not(.swal2-toast)[style*="display: grid"] {
    display: flex !important;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
}
.swal2-popup:not(.swal2-toast)[style*="display: grid"] > * {
    flex-shrink: 0;
}
.swal2-popup:not(.swal2-toast)[style*="display: grid"] > .swal2-html-container {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto !important;
}
/* Layar pendek: sisakan ruang baca, ikon dan footer saja sudah hampir memenuhi layar. */
@media (max-height: 600px) {
    .swal2-popup:not(.swal2-toast)[style*="display: grid"] > .swal2-html-container {
        min-height: 5rem;
    }
}
.swal2-popup .badge,
.tsu-badge-jabatan {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
}
.tsu-badge-jabatan {
    display: inline-block !important;
    text-align: left !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

/* ============================================================
   TSU QUICK SEARCH MENU (COMMAND PALETTE - CTRL + K)
   ============================================================ */

/* 1. Trigger Button di Top Navbar */
.tsu-quick-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 32px;
    padding: 0 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    color: #e0f4f6;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
}

.tsu-quick-search-trigger:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #f8c12a;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(248, 193, 42, 0.25);
}

.tsu-quick-search-trigger .search-icon {
    color: #f8c12a;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.tsu-quick-search-trigger:hover .search-icon {
    transform: scale(1.1);
}

.tsu-quick-search-trigger .search-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tsu-quick-search-trigger .search-shortcut kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.68rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    color: #f8c12a;
    background: rgba(6, 57, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile & Tablet Responsive untuk Trigger Button */
@media (max-width: 767.98px) {
    .tsu-quick-search-trigger {
        width: 32px;
        height: 32px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .tsu-quick-search-trigger .search-text,
    .tsu-quick-search-trigger .search-shortcut {
        display: none !important;
    }
}

/* 2. Modal & Backdrop Container */
body.tsu-search-modal-open {
    overflow: hidden !important;
}

.tsu-quick-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1065; /* Di atas sticky page header (1020) & navbar (1034) */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    padding-left: 1rem;
    padding-right: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.2s ease;
}

.tsu-quick-search-modal.is-active {
    visibility: visible;
    opacity: 1;
}

.tsu-quick-search-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 57, 64, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 3. Modal Box */
.tsu-quick-search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(29, 122, 135, 0.25);
    box-shadow: 0 20px 45px -10px rgba(9, 75, 84, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(-15px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.tsu-quick-search-modal.is-active .tsu-quick-search-box {
    transform: translateY(0) scale(1);
}

/* 4. Search Header / Input Bar */
.tsu-search-header {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #e5eef0;
    background: #fdfefe;
    gap: 0.75rem;
}

.tsu-search-header .tsu-search-icon {
    font-size: 1.15rem;
    color: #1d7a87;
    flex-shrink: 0;
}

.tsu-search-header .tsu-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #063940;
    font-weight: 500;
}

.tsu-search-header .tsu-search-input::placeholder {
    color: #8da4a8;
    font-size: 0.92rem;
}

.tsu-search-header .tsu-search-clear-btn {
    border: none;
    background: transparent;
    color: #8da4a8;
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.95rem;
    transition: color 0.15s ease;
    outline: none !important;
}

.tsu-search-header .tsu-search-clear-btn:hover {
    color: #dc2626;
}

.tsu-search-header .tsu-search-esc-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #5d7578;
    background: #eef4f5;
    border: 1px solid #d0dee0;
    border-radius: 4px;
}

/* 5. Search Body & Results */
.tsu-search-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.6rem;
    max-height: 380px;
    scrollbar-width: thin;
    scrollbar-color: #8bbec6 #f4fbfc;
}

.tsu-search-body::-webkit-scrollbar {
    width: 6px;
}
.tsu-search-body::-webkit-scrollbar-track {
    background: #f4fbfc;
}
.tsu-search-body::-webkit-scrollbar-thumb {
    background: #8bbec6;
    border-radius: 3px;
}

.tsu-search-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #617b7f;
    padding: 0.35rem 0.65rem 0.45rem;
}

.tsu-search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.65rem 0.45rem;
}

.tsu-search-section-header .tsu-search-section-label {
    padding: 0;
}

.tsu-search-clear-history-btn {
    background: transparent;
    border: none;
    color: #8da4a8;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
    outline: none !important;
}

.tsu-search-clear-history-btn:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Result Items */
.tsu-search-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    margin-bottom: 3px;
    border-radius: 8px;
    color: #063940;
    text-decoration: none !important;
    transition: background 0.12s ease, transform 0.12s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.tsu-search-item:hover,
.tsu-search-item.is-selected {
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%) !important;
    color: #ffffff !important;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(9, 75, 84, 0.2);
}

.tsu-search-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(29, 122, 135, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d7a87;
    font-size: 0.95rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.tsu-search-item:hover .tsu-search-item-icon,
.tsu-search-item.is-selected .tsu-search-item-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #f8c12a;
}

.tsu-search-item-info {
    flex: 1;
    min-width: 0;
}

.tsu-search-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.tsu-item-active-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    background: #dcfce7;
    color: #15803d;
    text-transform: uppercase;
}

.tsu-search-item:hover .tsu-item-active-badge,
.tsu-search-item.is-selected .tsu-item-active-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #f8c12a;
}

.tsu-item-recent-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
}

.tsu-search-item:hover .tsu-item-recent-badge,
.tsu-search-item.is-selected .tsu-item-recent-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #f8c12a;
}

.tsu-search-item-category {
    font-size: 0.74rem;
    color: #718a8e;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tsu-search-item:hover .tsu-search-item-category,
.tsu-search-item.is-selected .tsu-search-item-category {
    color: #d0eef2;
}

.tsu-search-item-action {
    margin-left: 0.5rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tsu-search-item:hover .tsu-search-item-action,
.tsu-search-item.is-selected .tsu-search-item-action {
    opacity: 1;
}

.tsu-item-enter-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #094b54;
    background: #f8c12a;
    border: none;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Highlight Match */
/* Tanpa padding horizontal: sorotan menempel pada huruf, jadi kata tidak terlihat terpotong spasi */
mark.tsu-highlight {
    background: #fef08a;
    color: #063940;
    font-weight: 700;
    padding: 0;
    border-radius: 2px;
}

.tsu-search-item:hover mark.tsu-highlight,
.tsu-search-item.is-selected mark.tsu-highlight {
    background: #f8c12a;
    color: #094b54;
}

/* Empty State */
.tsu-search-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #718a8e;
}

.tsu-empty-icon {
    font-size: 2.4rem;
    color: #a0bec3;
    margin-bottom: 0.75rem;
}

.tsu-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #063940;
    margin-bottom: 0.35rem;
}

.tsu-empty-desc {
    font-size: 0.84rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.4;
}

/* 6. Footer / Navigation Hints */
.tsu-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.15rem;
    background: #f6fbfc;
    border-top: 1px solid #e5eef0;
    font-size: 0.74rem;
    color: #617b7f;
}

.tsu-search-shortcut-hints {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tsu-search-shortcut-hints kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #063940;
    background: #ffffff;
    border: 1px solid #c9dada;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-right: 3px;
}

.tsu-search-branding {
    font-weight: 600;
    color: #094b54;
}

@media (max-width: 576px) {
    .tsu-quick-search-modal {
        padding-top: 5vh;
    }
    .tsu-search-footer {
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }
}

/* Quick Search Dark Mode Adaptation */
body.dark-mode .tsu-quick-search-backdrop {
    background: rgba(15, 23, 42, 0.8) !important;
}

body.dark-mode .tsu-quick-search-box {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-top: 3px solid var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(248, 193, 42, 0.15) !important;
}

body.dark-mode .tsu-search-header {
    background: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
}

body.dark-mode .tsu-search-header .tsu-search-icon {
    color: var(--tsu-gold, #f8c12a) !important;
}

body.dark-mode .tsu-search-header .tsu-search-input {
    color: #f8fafc !important;
}

body.dark-mode .tsu-search-header .tsu-search-input::placeholder {
    color: #64748b !important;
}

body.dark-mode .tsu-search-header .tsu-search-clear-btn {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-search-header .tsu-search-clear-btn:hover {
    color: #f87171 !important;
}

body.dark-mode .tsu-search-header .tsu-search-esc-hint kbd {
    color: #94a3b8 !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .tsu-search-body {
    scrollbar-color: #334155 #0f172a !important;
}
body.dark-mode .tsu-search-body::-webkit-scrollbar-track {
    background: #0f172a !important;
}
body.dark-mode .tsu-search-body::-webkit-scrollbar-thumb {
    background: #334155 !important;
}

body.dark-mode .tsu-search-section-label {
    color: var(--tsu-gold, #f8c12a) !important;
    opacity: 0.95;
}

body.dark-mode .tsu-search-clear-history-btn {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-search-clear-history-btn:hover {
    color: #f87171 !important;
}

body.dark-mode .tsu-search-item {
    color: #cbd5e1 !important;
    border-color: transparent;
}
body.dark-mode .tsu-search-item:hover,
body.dark-mode .tsu-search-item.is-selected {
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%) !important;
    color: #ffffff !important;
    border-color: rgba(248, 193, 42, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .tsu-search-item-icon {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border: 1px solid #334155;
}
body.dark-mode .tsu-search-item:hover .tsu-search-item-icon,
body.dark-mode .tsu-search-item.is-selected .tsu-search-item-icon {
    background: rgba(255, 255, 255, 0.18) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    border-color: transparent;
}

body.dark-mode .tsu-search-item-title {
    color: #f8fafc !important;
}

body.dark-mode .tsu-search-item-category {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-search-item:hover .tsu-search-item-category,
body.dark-mode .tsu-search-item.is-selected .tsu-search-item-category {
    color: #e2e8f0 !important;
}

body.dark-mode .tsu-item-recent-badge {
    background: rgba(248, 193, 42, 0.15) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    border: 1px solid rgba(248, 193, 42, 0.3) !important;
}

body.dark-mode .tsu-item-active-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

body.dark-mode .tsu-search-empty {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-empty-icon {
    color: #475569 !important;
}
body.dark-mode .tsu-empty-title {
    color: #f8fafc !important;
}

body.dark-mode .tsu-search-footer {
    background: #0f172a !important;
    border-top: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode .tsu-search-shortcut-hints kbd {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .tsu-search-branding {
    color: var(--tsu-gold, #f8c12a) !important;
}

/* ============================================================
   10. TSU THEME TOGGLE BUTTON (NAVBAR)
   ============================================================ */
.tsu-theme-toggle-btn {
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    color: #e8f8fa !important;
    padding: 0 !important;
    margin: 0 4px !important;
}
.tsu-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    transform: scale(1.05);
}
.tsu-theme-toggle-btn:active {
    transform: scale(0.92);
}

.tsu-theme-menu {
    min-width: 175px !important;
    border-radius: 10px !important;
    padding: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}
.tsu-theme-menu .dropdown-item {
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    color: #334155 !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}
.tsu-theme-menu .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #094b54 !important;
}
.tsu-theme-menu .dropdown-item.active {
    background: rgba(9, 75, 84, 0.08) !important;
    color: #094b54 !important;
    font-weight: 600 !important;
}

body.dark-mode .tsu-theme-menu {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .tsu-theme-menu .dropdown-header {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-theme-menu .dropdown-item {
    color: #cbd5e1 !important;
    background: transparent;
}
body.dark-mode .tsu-theme-menu .dropdown-item span {
    color: inherit !important;
    background: transparent !important;
}
body.dark-mode .tsu-theme-menu .dropdown-item:hover {
    background: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .tsu-theme-menu .dropdown-item:hover span {
    color: #f8fafc !important;
    background: transparent !important;
}
body.dark-mode .tsu-theme-menu .dropdown-item.active {
    background: rgba(248, 193, 42, 0.12) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    font-weight: 600 !important;
}
body.dark-mode .tsu-theme-menu .dropdown-item.active span {
    color: var(--tsu-gold, #f8c12a) !important;
    background: transparent !important;
}
body.dark-mode .tsu-theme-menu .dropdown-divider {
    border-top-color: #334155 !important;
}

/* Universal Dark Mode Dropdown Support */
body.dark-mode .dropdown-menu {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .dropdown-menu .dropdown-item {
    color: #cbd5e1 !important;
    background: transparent;
}
body.dark-mode .dropdown-menu .dropdown-item span {
    color: inherit !important;
    background: transparent !important;
}
body.dark-mode .dropdown-menu .dropdown-item:hover,
body.dark-mode .dropdown-menu .dropdown-item:focus {
    background-color: #334155 !important;
    color: #ffffff !important;
}
body.dark-mode .dropdown-menu .dropdown-item:hover span,
body.dark-mode .dropdown-menu .dropdown-item:focus span {
    color: #ffffff !important;
    background: transparent !important;
}
body.dark-mode .dropdown-menu .dropdown-item.active {
    background: rgba(248, 193, 42, 0.12) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    font-weight: 600 !important;
}
body.dark-mode .dropdown-menu .dropdown-item.active span {
    color: var(--tsu-gold, #f8c12a) !important;
    background: transparent !important;
}
body.dark-mode .dropdown-menu .dropdown-divider {
    border-top-color: #334155 !important;
}

/* ============================================================
   11. TSU COMPREHENSIVE DARK MODE SYSTEM
   Midnight Slate (#0f172a / #1e293b) + TSU Teal & Gold
   ============================================================ */
body.dark-mode,
html.dark-mode {
    --tsu-primary-faint:   #0f172a;
    --tsu-surface:         #1e293b;
    --tsu-surface-card:    #1e293b;
    --tsu-border:          #334155;
    --tsu-text-primary:    #f8fafc;
    --tsu-text-muted:      #94a3b8;
    background-color: #0f172a !important;
    color: #cbd5e1;
}

/* Layout Canvas */
body.dark-mode .app-main,
body.dark-mode .app-wrapper {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

/* Aggressive Bootstrap Utility Overrides for Dark Mode */
body.dark-mode .bg-white,
body.dark-mode .card-header.bg-white,
body.dark-mode .card-body.bg-white,
body.dark-mode .card-footer.bg-white,
body.dark-mode .modal-content.bg-white,
body.dark-mode .dropdown-menu.bg-white {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-mode .bg-light,
body.dark-mode .card-header.bg-light,
body.dark-mode .card-body.bg-light,
body.dark-mode .card-footer.bg-light {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

/* Page Header */
body.dark-mode .app-content-header,
body.dark-mode .tsu-page-header {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode .tsu-page-header__title {
    color: #f8fafc !important;
}
body.dark-mode .tsu-page-header__title i,
body.dark-mode .app-content-header h1 i,
body.dark-mode .app-content-header h2 i,
body.dark-mode .app-content-header h3 i,
body.dark-mode .app-content-header .tsu-page-header__title i {
    color: var(--tsu-gold, #f8c12a) !important;
}

/* Proteksi ikon pada tombol agar selalu mewarisi warna teks tombol */
.tsu-page-header__actions .btn i,
.btn.tsu-btn-export i,
.btn.tsu-btn-create i,
.btn.tsu-btn-reload i,
.btn.tsu-btn-view i,
.btn.tsu-btn-edit i,
.btn.tsu-btn-delete i {
    color: inherit !important;
}
/* Breadcrumb Full Gold di Dark Mode */
body.dark-mode .breadcrumb,
body.dark-mode .tsu-breadcrumb {
    background: transparent !important;
}

body.dark-mode .breadcrumb-item,
body.dark-mode .tsu-breadcrumb .breadcrumb-item,
body.dark-mode .app-content-header .breadcrumb .breadcrumb-item,
body.dark-mode .tsu-page-header .breadcrumb-item {
    color: var(--tsu-gold, #f8c12a) !important;
}

body.dark-mode .breadcrumb-item a,
body.dark-mode .tsu-breadcrumb .breadcrumb-item a,
body.dark-mode .app-content-header .breadcrumb .breadcrumb-item a,
body.dark-mode .tsu-page-header .breadcrumb-item a {
    color: #fde047 !important; /* Kuning Cerah */
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
}

body.dark-mode .breadcrumb-item a:hover,
body.dark-mode .tsu-breadcrumb .breadcrumb-item a:hover,
body.dark-mode .app-content-header .breadcrumb .breadcrumb-item a:hover,
body.dark-mode .tsu-page-header .breadcrumb-item a:hover {
    color: #ffffff !important;
    opacity: 1;
    text-decoration: underline;
}

body.dark-mode .breadcrumb-item.active,
body.dark-mode .tsu-breadcrumb .breadcrumb-item.active,
body.dark-mode .app-content-header .breadcrumb .breadcrumb-item.active,
body.dark-mode .tsu-page-header .breadcrumb-item.active {
    color: var(--tsu-gold, #f8c12a) !important;
    font-weight: 700 !important;
    opacity: 1;
}

body.dark-mode .breadcrumb-item + .breadcrumb-item::before,
body.dark-mode .tsu-breadcrumb .breadcrumb-item + .breadcrumb-item::before,
body.dark-mode .app-content-header .breadcrumb-item + .breadcrumb-item::before,
body.dark-mode .tsu-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(248, 193, 42, 0.55) !important;
}

/* Cards & Containers */
body.dark-mode .tsu-card,
body.dark-mode .card:not(.tsu-stat-card),
body.dark-mode .card.card-outline,
body.dark-mode .card.card-primary {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    border-top: 3px solid var(--tsu-gold, #f8c12a) !important; /* Aksen Kuning/Gold di atas semua card */
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 -2px 14px rgba(248, 193, 42, 0.22) !important;
    color: #cbd5e1;
}

body.dark-mode .card.card-primary.card-outline > .card-header,
body.dark-mode .card.card-outline > .card-header,
body.dark-mode .tsu-card .card-header,
body.dark-mode .card-header {
    background-color: #1e293b !important;
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .card-header h1,
body.dark-mode .card-header h2,
body.dark-mode .card-header h3,
body.dark-mode .card-header h4,
body.dark-mode .card-header h5,
body.dark-mode .card-header h6,
body.dark-mode .card-title,
body.dark-mode .card.card-primary.card-outline > .card-header > .card-title {
    color: #f8fafc !important;
}
body.dark-mode .card-header h6[style*="color"],
body.dark-mode .card-title[style*="color"] {
    color: #f8fafc !important;
}
body.dark-mode .card-title i,
body.dark-mode .card-header i,
body.dark-mode .card.card-primary.card-outline > .card-header > .card-title i {
    color: var(--tsu-gold, #f8c12a) !important;
}

body.dark-mode .card:not(.tsu-stat-card) > .card-body,
body.dark-mode .card-body:not(.tsu-stat-card *) {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

body.dark-mode .card-footer {
    background-color: #1e293b !important;
    border-top: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

/* Quick Link Cards (Dashboard) */
body.dark-mode .tsu-quick-link-card {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-quick-link-card:hover {
    background-color: #1a273a !important;
    border-color: var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(248, 193, 42, 0.25) !important;
    transform: translateY(-2px);
}
body.dark-mode .tsu-quick-link-card h6,
body.dark-mode .tsu-quick-link-card .text-dark {
    color: #f8fafc !important;
}
body.dark-mode .tsu-quick-link-card p,
body.dark-mode .tsu-quick-link-card .text-muted {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-quick-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Step Items & Tutorial (Dashboard) */
body.dark-mode .tsu-step-item {
    border-bottom: 1px solid #334155 !important;
}
body.dark-mode .tsu-step-item b.text-dark,
body.dark-mode .tsu-step-item .text-dark {
    color: #f8fafc !important;
}
body.dark-mode .tsu-step-num {
    background: rgba(29, 122, 135, 0.3) !important;
    color: #38bdf8 !important;
}

/* Guardrails & Notice Box */
body.dark-mode .tsu-guardrail-box,
body.dark-mode div[style*="background: #f8fbfb"],
body.dark-mode div[style*="background:#f8fbfb"] {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    border-left: 4px solid var(--tsu-primary, #1d7a87) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-guardrail-box h6,
body.dark-mode div[style*="background: #f8fbfb"] h6 {
    color: #38bdf8 !important;
}

/* Borders in cards */
body.dark-mode .border-bottom,
body.dark-mode .border-top,
body.dark-mode .border-left,
body.dark-mode .border-right,
body.dark-mode .border {
    border-color: #334155 !important;
}

/* Stat Cards: Pertahankan Warna Asli & Gradient di Dark Mode */
body.dark-mode .card.tsu-stat-card,
body.dark-mode .tsu-stat-card,
body.dark-mode .tsu-stat-grid-dash .tsu-stat-card {
    background-color: initial !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .card.tsu-stat-card .card-body,
body.dark-mode .tsu-stat-card .card-body {
    background: transparent !important;
    background-color: transparent !important;
}
body.dark-mode .tsu-stat-card.tsu-stat-primary,
body.dark-mode .card.tsu-stat-card.tsu-stat-primary {
    background: linear-gradient(135deg, var(--tsu-primary-dark, #063940), var(--tsu-primary, #094b54)) !important;
    border-left: 4px solid var(--tsu-gold, #f8c12a) !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card.tsu-stat-teal,
body.dark-mode .card.tsu-stat-card.tsu-stat-teal {
    background: linear-gradient(135deg, #065f46, #0d9488) !important;
    border-left: 4px solid #34d399 !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card.tsu-stat-info,
body.dark-mode .card.tsu-stat-card.tsu-stat-info {
    background: linear-gradient(135deg, #164e63, var(--tsu-info, #0ea5e9)) !important;
    border-left: 4px solid #38bdf8 !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card.tsu-stat-warning,
body.dark-mode .card.tsu-stat-card.tsu-stat-warning {
    background: linear-gradient(135deg, #92400e, var(--tsu-warning, #f59e0b)) !important;
    border-left: 4px solid var(--tsu-gold, #f8c12a) !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card.tsu-stat-success,
body.dark-mode .card.tsu-stat-card.tsu-stat-success {
    background: linear-gradient(135deg, #166534, var(--tsu-success, #22c55e)) !important;
    border-left: 4px solid #4ade80 !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card.tsu-stat-danger,
body.dark-mode .card.tsu-stat-card.tsu-stat-danger {
    background: linear-gradient(135deg, #991b1b, var(--tsu-danger, #ef4444)) !important;
    border-left: 4px solid #f87171 !important;
    color: #ffffff !important;
}

/* Layout badge (gaya System Management) — dark mode */
body.dark-mode .card.tsu-stat-card.tsu-stat-card--badge { border-left: none !important; }
body.dark-mode .card.tsu-stat-card.tsu-stat-card--badge.tsu-stat-primary,
body.dark-mode .card.tsu-stat-card.tsu-stat-card--badge.tsu-stat-teal    { background: linear-gradient(135deg,#094b54 0%,#0c6170 100%) !important; }
body.dark-mode .card.tsu-stat-card.tsu-stat-card--badge.tsu-stat-info    { background: linear-gradient(135deg,#0284c7 0%,#0ea5e9 100%) !important; }
body.dark-mode .card.tsu-stat-card.tsu-stat-card--badge.tsu-stat-success { background: linear-gradient(135deg,#047857 0%,#10b981 100%) !important; }
body.dark-mode .card.tsu-stat-card.tsu-stat-card--badge.tsu-stat-warning { background: linear-gradient(135deg,#b45309 0%,#d97706 100%) !important; }

/* Named Stat Cards (Dashboard, Users, Roles, Menus, dsb.) */
body.dark-mode .tsu-stat-card--total {
    background: linear-gradient(135deg, #094b54 0%, #0c6170 100%) !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card--users,
body.dark-mode .tsu-stat-card--tendik {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card--roles,
body.dark-mode .tsu-stat-card--permissions {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card--menus,
body.dark-mode .tsu-stat-card--active,
body.dark-mode .tsu-stat-card--core {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%) !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card__value {
    color: #ffffff !important;
}
body.dark-mode .tsu-stat-card__label {
    color: rgba(255, 255, 255, 0.9) !important;
}
body.dark-mode .tsu-stat-card__subtext,
body.dark-mode .tsu-stat-card__sublabel {
    color: rgba(255, 255, 255, 0.75) !important;
}
body.dark-mode .tsu-stat-card__unit {
    color: rgba(255, 255, 255, 0.95) !important;
}
body.dark-mode .tsu-stat-card__icon,
body.dark-mode .tsu-stat-card__icon-badge {
    color: #ffffff !important;
}

/* Tables & DataTables - Full Dark Theme */
body.dark-mode .table,
body.dark-mode .tsu-table-modern,
body.dark-mode table.dataTable {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

/* Header Datatable Mewah dengan Aksen Kuning TSU */
body.dark-mode .table thead th,
body.dark-mode .tsu-table-modern thead th,
body.dark-mode table.dataTable thead th,
body.dark-mode table thead th {
    background: linear-gradient(180deg, #162638 0%, #0f1d2b 100%) !important;
    background-color: #0f1d2b !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-bottom: 2px solid var(--tsu-gold, #f8c12a) !important; /* Garis Bawah Kuning Emas */
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}
body.dark-mode .table thead th:last-child,
body.dark-mode .tsu-table-modern thead th:last-child,
body.dark-mode table.dataTable thead th:last-child {
    border-right: none !important;
}

/* Sorting Icons Datatables */
body.dark-mode table.dataTable thead .sorting:before,
body.dark-mode table.dataTable thead .sorting:after,
body.dark-mode table.dataTable thead .sorting_asc:before,
body.dark-mode table.dataTable thead .sorting_asc:after,
body.dark-mode table.dataTable thead .sorting_desc:before,
body.dark-mode table.dataTable thead .sorting_desc:after {
    color: #94a3b8 !important;
    opacity: 0.35 !important;
}
body.dark-mode table.dataTable thead .sorting_asc:before,
body.dark-mode table.dataTable thead .sorting_desc:after {
    color: var(--tsu-gold, #f8c12a) !important;
    opacity: 1 !important;
    text-shadow: 0 0 6px rgba(248, 193, 42, 0.4);
}

body.dark-mode .table tbody tr,
body.dark-mode .tsu-table-modern tbody tr,
body.dark-mode table.dataTable tbody tr {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

body.dark-mode .table tbody td,
body.dark-mode .tsu-table-modern tbody td,
body.dark-mode table.dataTable tbody td {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-top: 1px solid #334155 !important;
    border-color: #334155 !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd),
body.dark-mode .tsu-table-modern.table-striped tbody tr:nth-of-type(odd),
body.dark-mode table.dataTable.stripe tbody tr.odd,
body.dark-mode table.dataTable.display tbody tr.odd {
    background-color: #182234 !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) td,
body.dark-mode table.dataTable.stripe tbody tr.odd td,
body.dark-mode table.dataTable.display tbody tr.odd td {
    background-color: #182234 !important;
}

body.dark-mode .table-hover tbody tr:hover,
body.dark-mode .tsu-table-modern tbody tr:hover,
body.dark-mode table.dataTable.table-hover tbody tr:hover,
body.dark-mode table.dataTable tbody tr:hover td {
    background-color: rgba(29, 122, 135, 0.22) !important;
    color: #ffffff !important;
}

body.dark-mode .table-bordered,
body.dark-mode .table-bordered th,
body.dark-mode .table-bordered td,
body.dark-mode table.dataTable.table-bordered th,
body.dark-mode table.dataTable.table-bordered td {
    border-color: #334155 !important;
}

body.dark-mode .dataTables_empty {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_info,
body.dark-mode .dataTables_wrapper .dataTables_length,
body.dark-mode .dataTables_wrapper .dataTables_length label,
body.dark-mode .dataTables_wrapper .dataTables_filter,
body.dark-mode .dataTables_wrapper .dataTables_filter label {
    color: #94a3b8 !important;
}

body.dark-mode .dataTables_filter input,
body.dark-mode .dataTables_length select,
body.dark-mode div.dataTables_wrapper div.dataTables_filter input,
body.dark-mode div.dataTables_wrapper div.dataTables_length select {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    border-radius: 6px;
}
body.dark-mode .dataTables_filter input:focus,
body.dark-mode .dataTables_length select:focus {
    border-color: var(--tsu-primary, #1d7a87) !important;
    box-shadow: 0 0 0 2px rgba(29, 122, 135, 0.25) !important;
}

/* Child row Responsive (mode gelap) */
body.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
body.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
body.dark-mode table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
body.dark-mode table.dataTable.dtr-column > tbody > tr > th.dtr-control:before {
    color: #042f2e !important;
    background-color: #2dd4bf !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

body.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
body.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before,
body.dark-mode table.dataTable.dtr-column > tbody > tr.parent > td.dtr-control:before,
body.dark-mode table.dataTable.dtr-column > tbody > tr.parent > th.dtr-control:before {
    background-color: #5eead4 !important;
}

body.dark-mode table.dataTable > tbody > tr.child {
    background-color: #1e293b !important;
}

body.dark-mode table.dataTable > tbody > tr.child:hover td {
    background-color: #1e293b !important;
}

body.dark-mode table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom: 1px solid #334155;
}

body.dark-mode table.dataTable > tbody > tr.child span.dtr-title {
    color: #5eead4;
}

body.dark-mode .pagination .page-link,
body.dark-mode .page-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .pagination .page-item.active .page-link,
body.dark-mode .page-item.active .page-link {
    background-color: var(--tsu-primary, #094b54) !important;
    border-color: var(--tsu-primary, #094b54) !important;
    color: #ffffff !important;
}
body.dark-mode .pagination .page-item.disabled .page-link,
body.dark-mode .page-item.disabled .page-link {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

/* Buttons */
body.dark-mode .tsu-btn-reload {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-btn-reload:hover {
    background-color: #334155 !important;
    border-color: var(--tsu-gold, #f8c12a) !important;
    color: var(--tsu-gold, #f8c12a) !important;
}

/* Forms & Selects */
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}
body.dark-mode .form-control::placeholder {
    color: #64748b !important;
}
body.dark-mode .input-group-text {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
body.dark-mode label {
    color: #cbd5e1 !important;
}

/* Modals */
body.dark-mode .modal-content {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .modal-header {
    background: linear-gradient(135deg, #063940 0%, #094b54 100%) !important;
    border-bottom: 1px solid #334155 !important;
    border-top: 3px solid var(--tsu-gold, #f8c12a) !important;
    color: #ffffff !important;
}
body.dark-mode .modal-header .modal-title,
body.dark-mode .modal-title {
    color: #f8fafc !important;
}
body.dark-mode .modal-header .modal-title i,
body.dark-mode .modal-title i {
    color: var(--tsu-gold, #f8c12a) !important;
}

body.dark-mode .modal-content .btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cbd5e1'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 0.8;
    filter: none !important;
}
body.dark-mode .modal-content .btn-close:hover {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f8c12a'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
    opacity: 1;
}
body.dark-mode .modal-body {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}
body.dark-mode .modal-footer {
    border-top: 1px solid #334155 !important;
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

/* SweetAlert2 Modal Pop Up - Judul Kuning & Dark Theme */
body.dark-mode .swal2-popup:not(.swal2-toast),
body.dark-mode .swal2-popup {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
    border-top: 3px solid var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .swal2-popup:not(.swal2-toast) .swal2-title,
body.dark-mode .swal2-title {
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .swal2-html-container {
    color: #cbd5e1 !important;
}
body.dark-mode .swal2-footer {
    border-top-color: #334155 !important;
    color: #94a3b8;
}
body.dark-mode .swal2-html-container b,
body.dark-mode .swal2-html-container strong {
    color: #f8fafc !important;
}
body.dark-mode .swal2-icon.swal2-question {
    border-color: var(--tsu-gold, #f8c12a) !important;
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}
body.dark-mode .swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}
body.dark-mode .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
body.dark-mode .swal2-icon.swal2-info {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}
body.dark-mode .swal2-styled.swal2-cancel {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
    border: 1px solid #475569 !important;
}
body.dark-mode .swal2-styled.swal2-cancel:hover {
    background-color: #475569 !important;
    color: #ffffff !important;
}

/* SweetAlert2 Toast & Loading Bar di Dark Mode */
body.dark-mode .swal2-timer-progress-bar,
body.dark-mode .swal2-popup.swal2-toast .swal2-timer-progress-bar {
    background: var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 0 10px rgba(248, 193, 42, 0.8) !important;
    height: 3px !important;
}

body.dark-mode .swal2-loader {
    border-color: var(--tsu-gold, #f8c12a) transparent var(--tsu-gold, #f8c12a) transparent !important;
    box-shadow: 0 0 12px rgba(248, 193, 42, 0.3) !important;
}

/* Universal Loading Spinners di Dark Mode */
.spinner-border.text-teal,
.text-teal {
    color: #2dd4bf !important;
}

body.dark-mode .spinner-border.text-teal,
body.dark-mode .text-teal {
    color: #2dd4bf !important;
}

body.dark-mode .spinner-border:not([class*="text-"]) {
    border-color: var(--tsu-gold, #f8c12a) transparent var(--tsu-gold, #f8c12a) transparent !important;
}

/* Modal Role: Split Sidebar & Permission Checkboxes */
body.dark-mode #modal-edit .bg-light,
body.dark-mode #v-pills-tab,
body.dark-mode #v-pills-create-tab {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}
body.dark-mode #modal-edit .bg-white,
body.dark-mode #v-pills-tabContent,
body.dark-mode #v-pills-create-tabContent {
    background-color: #1e293b !important;
}
body.dark-mode .nav-module-item,
body.dark-mode .nav-module-create,
body.dark-mode #v-pills-tab .nav-link,
body.dark-mode #v-pills-create-tab .nav-link {
    color: #cbd5e1 !important;
}
body.dark-mode .nav-module-item .module-name,
body.dark-mode .nav-module-create .module-name {
    color: #cbd5e1 !important;
}
body.dark-mode .nav-module-item:hover,
body.dark-mode .nav-module-create:hover,
body.dark-mode #v-pills-tab .nav-link:hover,
body.dark-mode #v-pills-create-tab .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}
body.dark-mode .nav-module-item:hover .module-name,
body.dark-mode .nav-module-create:hover .module-name {
    color: #ffffff !important;
}
body.dark-mode .nav-module-item.active,
body.dark-mode .nav-module-create.active,
body.dark-mode #v-pills-tab .nav-link.active,
body.dark-mode #v-pills-create-tab .nav-link.active {
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(9, 75, 84, 0.4) !important;
}
body.dark-mode .nav-module-item.active .module-name,
body.dark-mode .nav-module-create.active .module-name {
    color: #ffffff !important;
}
body.dark-mode .nav-module-item .icon-folder,
body.dark-mode .nav-module-create .icon-create-folder {
    color: #94a3b8 !important;
}
body.dark-mode .nav-module-item.active .icon-folder,
body.dark-mode .nav-module-create.active .icon-create-folder {
    color: var(--tsu-gold, #f8c12a) !important;
}

/* Hilangkan Lingkaran Putih di Sekitar Ikon Ceklis */
.nav-pills .nav-link .icon-group-check,
.nav-pills .nav-link .icon-create-check,
.nav-pills .nav-link.active .icon-group-check,
.nav-pills .nav-link.active .icon-create-check,
body.dark-mode .icon-group-check,
body.dark-mode .icon-create-check {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    color: #4ade80 !important;
}
body.dark-mode .badge-perm-counter.text-bg-light,
body.dark-mode .badge-create-counter.text-bg-light {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}
body.dark-mode .badge-perm-counter.text-bg-success,
body.dark-mode .badge-create-counter.text-bg-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}
body.dark-mode .sticky-top.bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Permission Card Highlight di Dark Mode (Tidak Silau) */
body.dark-mode .permission-card {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    transition: all 0.2s ease;
}
body.dark-mode .permission-card:hover {
    background-color: #162438 !important;
    border-color: var(--tsu-primary, #1d7a87) !important;
}
body.dark-mode .permission-card span,
body.dark-mode .permission-card label {
    color: #cbd5e1 !important;
}
body.dark-mode .permission-card.bg-green-light,
body.dark-mode .permission-card.bg-purple-light,
body.dark-mode .permission-card.border-green {
    background-color: rgba(29, 122, 135, 0.28) !important;
    border-color: var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 0 10px rgba(248, 193, 42, 0.2) !important;
}
body.dark-mode .permission-card.bg-green-light span,
body.dark-mode .permission-card.bg-purple-light span,
body.dark-mode .permission-card.border-green span {
    color: #f8fafc !important;
    font-weight: 700 !important;
}
body.dark-mode .form-check-input:checked {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

/* Tabs */
body.dark-mode .nav-tabs {
    border-bottom-color: #334155 !important;
}
body.dark-mode .nav-tabs .nav-link {
    color: #94a3b8 !important;
    border-color: transparent !important;
}
body.dark-mode .nav-tabs .nav-link:hover {
    color: #f8fafc !important;
    border-color: #334155 #334155 transparent !important;
}
body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
    border-color: #334155 #334155 #1e293b !important;
}

/* Alerts & Callouts */
body.dark-mode .alert-light {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .alert-light b {
    color: #f8fafc !important;
}

/* Dropdowns (Notifications & Profile) */
/* ============================================================
   DROPDOWNS (NOTIFICATIONS & PROFILE) - DARK MODE
   ============================================================ */
body.dark-mode .tsu-notif-menu,
body.dark-mode .tsu-profile-menu,
body.dark-mode .dropdown-menu {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .tsu-notif-menu__body,
body.dark-mode .tsu-notif-menu__footer,
body.dark-mode .tsu-profile-menu__body,
body.dark-mode .tsu-profile-menu__footer {
    background-color: #1e293b !important;
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .tsu-notif-empty__title {
    color: #f8fafc !important;
}
body.dark-mode .tsu-notif-empty__sub,
body.dark-mode .tsu-notif-empty__text {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-notif-empty__icon {
    color: var(--tsu-primary-light, #38bdf8) !important;
    opacity: 0.85;
}
body.dark-mode .tsu-notif-menu__footer-link {
    color: #38bdf8 !important;
}
body.dark-mode .tsu-notif-menu__footer-link:hover {
    background-color: rgba(29, 122, 135, 0.22) !important;
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .tsu-notif-item {
    background: transparent !important;
    border-bottom: 1px solid #334155 !important;
}
body.dark-mode .tsu-notif-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .tsu-notif-item__icon {
    background: rgba(29, 122, 135, 0.25) !important;
    color: #38bdf8 !important;
}
body.dark-mode .tsu-notif-item__title {
    color: #f8fafc !important;
}
body.dark-mode .tsu-notif-item__sub {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-notif-item__cta {
    background: rgba(248, 193, 42, 0.15) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    border-color: rgba(248, 193, 42, 0.3) !important;
}

/* Profile Dropdown Items */
body.dark-mode .tsu-profile-menu__item {
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-profile-menu__item-label {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}
body.dark-mode .tsu-profile-menu__item:hover {
    background-color: rgba(29, 122, 135, 0.22) !important;
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .tsu-profile-menu__item:hover .tsu-profile-menu__item-label {
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .tsu-profile-menu__item-icon {
    background-color: rgba(29, 122, 135, 0.25) !important;
    color: #38bdf8 !important;
}
body.dark-mode .tsu-profile-menu__item-arrow {
    color: #64748b !important;
}
body.dark-mode .tsu-profile-menu__logout {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
}
body.dark-mode .tsu-profile-menu__logout:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}
body.dark-mode .tsu-profile-menu__name {
    color: #f8fafc !important;
}
body.dark-mode .tsu-profile-menu__email {
    color: #94a3b8 !important;
}

/* ============================================================
   PROFILE PAGE (.tsu-profile-card & TAB SETTINGS) - DARK MODE
   ============================================================ */
body.dark-mode .tsu-profile-card {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
}
body.dark-mode .tsu-profile-card__name {
    color: #f8fafc !important;
}
body.dark-mode .tsu-profile-card__role-badge {
    background: rgba(248, 193, 42, 0.15) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    border: 1px solid rgba(248, 193, 42, 0.35) !important;
}
body.dark-mode .tsu-profile-card__role-badge--muted {
    background: #334155 !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}
body.dark-mode .tsu-profile-info-list__item {
    border-bottom: 1px solid #334155 !important;
}
body.dark-mode .tsu-profile-info-list__label {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-profile-info-list__value {
    color: #f8fafc !important;
    font-weight: 600 !important;
}
body.dark-mode .tsu-profile-info-list__icon {
    border: 1px solid #334155 !important;
}
body.dark-mode .tsu-profile-card__status--active {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.4) !important;
}

/* Profile Tabs & Form Settings in Dark Mode */
body.dark-mode .tsu-notif-tab {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-notif-tab:hover {
    color: #f8fafc !important;
    border-bottom-color: #475569 !important;
}
body.dark-mode .tsu-notif-tab.active {
    color: var(--tsu-gold, #f8c12a) !important;
    border-bottom-color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .tsu-callout--banner strong,
body.dark-mode .tsu-callout--banner strong[style*="color"] {
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .tsu-callout--banner span,
body.dark-mode .tsu-callout--banner span[style*="color"] {
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-form-label,
body.dark-mode .form-check-label,
body.dark-mode label[for="ceklis"] {
    color: #cbd5e1 !important;
}

body.dark-mode .form-control[type="file"]::file-selector-button {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
body.dark-mode div.dataTables_wrapper div.dataTables_processing.card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    border-top-color: #334155 !important;
    color: #cbd5e1;
}
body.dark-mode #status-text {
    color: #94a3b8 !important;
}

/* Quick Search Dialog */
body.dark-mode .tsu-quick-search-backdrop {
    background: rgba(15, 23, 42, 0.75) !important;
}
body.dark-mode .tsu-search-box {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .tsu-search-input {
    color: #f8fafc !important;
}
body.dark-mode .tsu-search-result-item {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-search-result-item:hover,
body.dark-mode .tsu-search-result-item.active {
    background: rgba(29, 122, 135, 0.22) !important;
    border-color: var(--tsu-primary) !important;
    color: #ffffff !important;
}
body.dark-mode .tsu-search-result-item__title {
    color: #f8fafc !important;
}
body.dark-mode .tsu-search-footer {
    background: #0f172a !important;
    border-top: 1px solid #334155 !important;
}
body.dark-mode .tsu-search-branding {
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .tsu-search-shortcut-hints kbd {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

/* Manual Book Web in Dark Mode */
body.dark-mode .tsu-doc-sticky-header {
    background: rgba(30, 41, 59, 0.96) !important;
    border-bottom: 1px solid #334155 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode .tsu-doc-header-title {
    color: #f8fafc !important;
}
body.dark-mode .tsu-doc-header-icon {
    background: linear-gradient(135deg, rgba(29, 122, 135, 0.3) 0%, rgba(9, 75, 84, 0.4) 100%) !important;
    color: #38bdf8 !important;
}
body.dark-mode .tsu-doc-nav-pills {
    background: #0f172a !important;
    border-color: #334155 !important;
}
body.dark-mode .tsu-doc-nav-pills .nav-link {
    color: #94a3b8 !important;
}
body.dark-mode .tsu-doc-nav-pills .nav-link:hover {
    color: #f8fafc !important;
    background: #334155 !important;
}
body.dark-mode .tsu-doc-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(9, 75, 84, 0.4) !important;
}
body.dark-mode .tsu-doc-sidebar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .tsu-doc-sidebar h6 {
    color: #f8fafc !important;
}
body.dark-mode .tsu-doc-nav-item {
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-doc-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--tsu-gold, #f8c12a) !important;
}
body.dark-mode .tsu-doc-nav-item.active {
    background-color: rgba(29, 122, 135, 0.25) !important;
    color: #38bdf8 !important;
    border-left-color: #38bdf8 !important;
}
body.dark-mode .tsu-doc-section {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-doc-title {
    color: #f8fafc !important;
    border-bottom: 2px solid #334155 !important;
}
body.dark-mode .tsu-code-box {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}
body.dark-mode .tsu-callout-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

/* Text Overrides */
body.dark-mode b.text-dark,
body.dark-mode strong.text-dark,
body.dark-mode .text-dark {
    color: #f8fafc !important;
}
body.dark-mode .text-muted {
    color: #94a3b8 !important;
}
body.dark-mode .text-bg-light {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}
body.dark-mode .list-group-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode code {
    background-color: #0f172a !important;
    color: #38bdf8 !important;
    border: 1px solid #334155 !important;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

/* ============================================================
   GUIDELINE BOX & CALLOUT ADAPTIVE (LIGHT & DARK MODE)
   ============================================================ */
.tsu-guideline-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 8px;
}
body.dark-mode .tsu-guideline-box,
body.dark-mode div[style*="background: #f8fafc"],
body.dark-mode div[style*="background:#f8fafc"] {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-guideline-box .text-dark,
body.dark-mode div[style*="background: #f8fafc"] .text-dark {
    color: #f8fafc !important;
}
body.dark-mode .tsu-guideline-box .text-muted,
body.dark-mode div[style*="background: #f8fafc"] .text-muted {
    color: #94a3b8 !important;
}

/* Callout Info */
.tsu-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-radius: 8px;
    background-color: #f4fbfc;
    border: 1px solid #d0eef2;
    border-left: 4px solid var(--tsu-primary, #1d7a87);
    color: #063940;
    font-size: 0.85rem;
    line-height: 1.5;
}
body.dark-mode .tsu-callout,
body.dark-mode .tsu-callout.tsu-callout--info {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    border-left: 4px solid var(--tsu-gold, #f8c12a) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tsu-callout strong,
body.dark-mode .tsu-callout b {
    color: #f8fafc !important;
}
body.dark-mode .tsu-callout__title {
    color: var(--tsu-gold, #f8c12a) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}
body.dark-mode .tsu-callout__text {
    color: #cbd5e1 !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
}
body.dark-mode .tsu-callout__icon {
    background: rgba(248, 193, 42, 0.16) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    border: 1px solid rgba(248, 193, 42, 0.35) !important;
}

/* ============================================================
   MENU MANAGEMENT & DATATABLES COMPONENT ENHANCEMENTS
   ============================================================ */
/* Tree Title */
.tsu-menu-tree-title.depth-0 {
    font-weight: 700;
    color: var(--tsu-primary-dark, #094b54);
    font-size: 0.88rem;
}
.tsu-menu-tree-title.depth-1 {
    font-weight: 600;
    color: var(--tsu-primary, #1d7a87);
    font-size: 0.84rem;
}
.tsu-menu-tree-title.depth-sub {
    font-weight: 500;
    color: #475569;
    font-size: 0.82rem;
}

body.dark-mode .tsu-menu-tree-title.depth-0,
body.dark-mode .tsu-menu-tree-title.depth-0 span {
    color: #f8fafc !important;
    font-weight: 700 !important;
}
body.dark-mode .tsu-menu-tree-title.depth-1,
body.dark-mode .tsu-menu-tree-title.depth-1 span {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
}
body.dark-mode .tsu-menu-tree-title.depth-sub,
body.dark-mode .tsu-menu-tree-title.depth-sub span {
    color: #cbd5e1 !important;
}
body.dark-mode #table-menu td span.badge-menu-folder,
body.dark-mode .badge-menu-folder {
    background: rgba(248, 193, 42, 0.15) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    border: 1px solid rgba(248, 193, 42, 0.3) !important;
}

/* Icon Box in Datatables */
.tsu-menu-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(9, 75, 84, 0.08);
    color: var(--tsu-primary-dark, #094b54);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
body.dark-mode .tsu-menu-icon-box {
    background: rgba(248, 193, 42, 0.14) !important;
    color: var(--tsu-gold, #f8c12a) !important;
    border: 1px solid rgba(248, 193, 42, 0.28) !important;
    box-shadow: 0 0 8px rgba(248, 193, 42, 0.15);
}

/* Route Code Box */
.tsu-route-code {
    background: #f8fafc;
    color: #0f172a;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid #e2e8f0;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    /* BS5 memberi code word-wrap: break-word; nama route harus utuh */
    white-space: nowrap;
    overflow-wrap: normal;
}
body.dark-mode .tsu-route-code,
body.dark-mode #table-menu code {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border: 1px solid #334155 !important;
}

/* Semantics High Contrast Badges */
.badge-success-tsu {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
body.dark-mode .badge-success-tsu {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
}

.badge-info-tsu {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.25);
}
body.dark-mode .badge-info-tsu {
    background: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

.badge-warning-tsu {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.25);
}
body.dark-mode .badge-warning-tsu {
    background: rgba(248, 193, 42, 0.2) !important;
    color: #fde047 !important;
    border-color: rgba(248, 193, 42, 0.4) !important;
}

.badge-secondary-tsu {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.25);
}
body.dark-mode .badge-secondary-tsu {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #94a3b8 !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

/* ============================================================
   OUTLINE ACTION BUTTONS IN DATATABLES (CONSISTENT)
   ============================================================ */
.btn-outline-warning {
    color: #d97706;
    border-color: #f59e0b;
    background-color: transparent;
    transition: all 0.2s ease;
}
.btn-outline-warning:hover {
    color: #ffffff;
    background-color: #d97706;
    border-color: #d97706;
}
body.dark-mode .btn-outline-warning {
    color: var(--tsu-gold, #f8c12a) !important;
    border-color: var(--tsu-gold, #f8c12a) !important;
    background-color: rgba(248, 193, 42, 0.08) !important;
}
body.dark-mode .btn-outline-warning:hover {
    color: #0f172a !important;
    background-color: var(--tsu-gold, #f8c12a) !important;
    border-color: var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 0 10px rgba(248, 193, 42, 0.4) !important;
}

.btn-outline-danger {
    color: #dc2626;
    border-color: #ef4444;
    background-color: transparent;
    transition: all 0.2s ease;
}
.btn-outline-danger:hover {
    color: #ffffff;
    background-color: #dc2626;
    border-color: #dc2626;
}
body.dark-mode .btn-outline-danger {
    color: #f87171 !important;
    border-color: #f87171 !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
}
body.dark-mode .btn-outline-danger:hover {
    color: #ffffff !important;
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}

body.dark-mode .btn-outline-primary {
    color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    background-color: rgba(56, 189, 248, 0.08) !important;
}
body.dark-mode .btn-outline-primary:hover {
    color: #ffffff !important;
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

body.dark-mode .btn-outline-secondary {
    color: #94a3b8 !important;
    border-color: #475569 !important;
    background-color: rgba(148, 163, 184, 0.05) !important;
}
body.dark-mode .btn-outline-secondary:hover:not(:disabled) {
    color: #f8fafc !important;
    background-color: #334155 !important;
    border-color: #64748b !important;
}

body.dark-mode .btn-outline-dark {
    color: #e2e8f0 !important;
    border-color: #64748b !important;
    background-color: rgba(226, 232, 240, 0.06) !important;
}
body.dark-mode .btn-outline-dark:hover {
    color: #f8fafc !important;
    background-color: #334155 !important;
    border-color: #94a3b8 !important;
}

/* ============================================================
   12. TSU AUTH & LOGIN SYSTEM (SPLIT-SCREEN & PARALLAX)
   ============================================================ */
.tsu-auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f0f7f8 0%, #e2eff1 50%, #d8eaec 100%);
    padding: 1.5rem 1.5rem;
    font-family: var(--tsu-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    transition: background 0.3s ease;
}

body.dark-mode .tsu-auth-wrapper {
    background: linear-gradient(135deg, #09131f 0%, #0f172a 50%, #092329 100%) !important;
}

/* Parallax Ambient Orbs */
.tsu-auth-ambient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tsu-auth-orb,
.tsu-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
}

.tsu-orb-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(9, 75, 84, 0.8) 0%, rgba(29, 122, 135, 0.2) 70%);
}

.tsu-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(248, 193, 42, 0.6) 0%, rgba(29, 122, 135, 0.15) 70%);
}

.tsu-orb-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    right: 35%;
    background: radial-gradient(circle, rgba(29, 122, 135, 0.4) 0%, rgba(9, 75, 84, 0) 70%);
}

body.dark-mode .tsu-orb-1 {
    opacity: 0.35;
    background: radial-gradient(circle, rgba(29, 122, 135, 0.6) 0%, rgba(9, 75, 84, 0.1) 70%);
}
body.dark-mode .tsu-orb-2 {
    opacity: 0.25;
    background: radial-gradient(circle, rgba(248, 193, 42, 0.5) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Top Bar on Auth (Back Link + Theme Switcher) */
.tsu-auth-top-bar {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    position: relative;
    padding: 0.5rem 0;
}

.tsu-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 0.42rem 0.95rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.tsu-auth-back-link:hover {
    color: #094b54;
    background: #ffffff;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(9, 75, 84, 0.12);
}

body.dark-mode .tsu-auth-back-link {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tsu-auth-back-link:hover {
    color: var(--tsu-gold, #f8c12a);
    background: #1e293b;
    border-color: #475569;
}

.tsu-auth-theme-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    padding: 0.42rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.tsu-auth-theme-btn:hover {
    background: #ffffff;
    color: #094b54;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 75, 84, 0.12);
}

body.dark-mode .tsu-auth-theme-btn {
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
    color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
body.dark-mode .tsu-auth-theme-btn:hover {
    background: #1e293b;
    color: var(--tsu-gold, #f8c12a);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Auth Center Content Container */
.tsu-auth-content-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    z-index: 2;
    position: relative;
    padding: 1rem 0;
}

/* Auth Clean Footer */
.tsu-auth-footer-bar {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    position: relative;
    z-index: 2;
}

body.dark-mode .tsu-auth-footer-bar {
    color: #94a3b8;
}

/* Main Split-Screen Container */
.tsu-auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(9, 75, 84, 0.18), 0 0 0 1px rgba(9, 75, 84, 0.04);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.dark-mode .tsu-auth-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-top: 3px solid var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(248, 193, 42, 0.1) !important;
}

/* SISI KIRI: Brand Showcase Area */
.tsu-auth-brand-side {
    background: linear-gradient(145deg, #094b54 0%, #0c6170 50%, #1d7a87 100%);
    padding: 3rem 2.5rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.tsu-auth-brand-side::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.tsu-auth-brand-side::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(248, 193, 42, 0.08);
    bottom: -40px;
    left: -40px;
    pointer-events: none;
}

.tsu-auth-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tsu-auth-logo,
.tsu-auth-brand-logo,
.tsu-auth-brand-header img,
.tsu-auth-brand-side img {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    display: inline-block !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.tsu-auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: rgba(248, 193, 42, 0.18);
    border: 1px solid rgba(248, 193, 42, 0.4);
    color: var(--tsu-gold, #f8c12a);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tsu-auth-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff !important;
    line-height: 1.25;
    margin: 0 0 0.85rem 0;
    display: block;
    text-decoration: none !important;
}

.tsu-auth-brand-desc {
    font-size: 0.88rem;
    color: #e2f4f6;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.92;
}

/* Feature bullets on brand side */
.tsu-auth-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tsu-auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.tsu-auth-feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--tsu-gold, #f8c12a);
    margin-top: 2px;
}

.tsu-auth-feature-text h6 {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.tsu-auth-feature-text p {
    font-size: 0.76rem;
    color: #c3e6eb;
    margin: 0;
    line-height: 1.35;
}

.tsu-auth-brand-footer {
    display: flex;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    color: #a8dce3;
}

/* SISI KANAN: Form Action Area */
.tsu-auth-form-side {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    transition: background 0.3s ease;
}

body.dark-mode .tsu-auth-form-side {
    background: #1e293b !important;
}

.tsu-auth-form-header {
    margin-bottom: 1.5rem;
}

.tsu-auth-form-header .badge-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #094b54;
    background: rgba(9, 75, 84, 0.08);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.6rem;
}

body.dark-mode .tsu-auth-form-header .badge-tag {
    color: var(--tsu-gold, #f8c12a);
    background: rgba(248, 193, 42, 0.12);
}

.tsu-auth-form-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

body.dark-mode .tsu-auth-form-title {
    color: #f8fafc !important;
}

.tsu-auth-form-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0;
}

body.dark-mode .tsu-auth-form-subtitle {
    color: #94a3b8 !important;
}

/* Primary SSO Action Button */
.tsu-auth-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%);
    color: #ffffff !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(9, 75, 84, 0.25);
    transition: all 0.2s ease;
    border: none;
}
.tsu-auth-sso-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(9, 75, 84, 0.35);
    color: #ffffff !important;
}
.tsu-auth-sso-btn:active {
    transform: translateY(0);
}

.tsu-auth-sso-icon {
    font-size: 1.2rem;
    color: var(--tsu-gold, #f8c12a);
}

.tsu-auth-sso-subtext {
    font-size: 0.76rem;
    color: #64748b;
    text-align: center;
    margin: 0.65rem 0 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 500;
}
body.dark-mode .tsu-auth-sso-subtext {
    color: #94a3b8;
}

/* Homebase Forgot Password Card & Button */
.tsu-auth-forgot-box {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

body.dark-mode .tsu-auth-forgot-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

.tsu-auth-forgot-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: rgba(9, 75, 84, 0.08);
    color: #094b54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
body.dark-mode .tsu-auth-forgot-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.tsu-auth-forgot-title {
    font-weight: 700;
    font-size: 0.84rem;
    color: #094b54;
    line-height: 1.2;
    margin-bottom: 2px;
}
body.dark-mode .tsu-auth-forgot-title {
    color: #38bdf8;
}

.tsu-auth-forgot-desc {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
}
body.dark-mode .tsu-auth-forgot-desc {
    color: #94a3b8;
}

.tsu-auth-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #094b54;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}
.tsu-auth-reset-btn:hover {
    background: #094b54;
    border-color: #094b54;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(9, 75, 84, 0.2);
}

body.dark-mode .tsu-auth-reset-btn {
    background: #1e293b;
    border-color: #334155;
    color: var(--tsu-gold, #f8c12a);
    box-shadow: none;
}
body.dark-mode .tsu-auth-reset-btn:hover {
    background: var(--tsu-gold, #f8c12a);
    border-color: var(--tsu-gold, #f8c12a);
    color: #0f172a !important;
}

/* Modern Auth Divider */
.tsu-auth-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0 1.25rem 0;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.tsu-auth-divider::before,
.tsu-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
body.dark-mode .tsu-auth-divider::before,
body.dark-mode .tsu-auth-divider::after {
    background: #334155;
}
.tsu-auth-divider span {
    padding: 0 0.85rem;
}

/* Input Fields inside Auth */
.tsu-auth-input-group {
    position: relative;
    margin-bottom: 1.15rem;
}
.tsu-auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    outline: none !important;
}
.tsu-auth-input:focus {
    border-color: #1d7a87;
    box-shadow: 0 0 0 3px rgba(29, 122, 135, 0.15);
}

body.dark-mode .tsu-auth-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .tsu-auth-input:focus {
    border-color: var(--tsu-gold, #f8c12a) !important;
    box-shadow: 0 0 0 3px rgba(248, 193, 42, 0.15) !important;
}

.tsu-auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}
body.dark-mode .tsu-auth-input-icon {
    color: #64748b;
}

.tsu-auth-input-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
}
.tsu-auth-input-toggle:hover {
    color: #094b54;
}
body.dark-mode .tsu-auth-input-toggle:hover {
    color: var(--tsu-gold, #f8c12a);
}

/* Local Dev / Emergency Box */
.tsu-auth-dev-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}
body.dark-mode .tsu-auth-dev-badge {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

/* Emergency Access Badge (Production) */
.tsu-auth-emergency-badge {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}
.tsu-emergency-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(217, 119, 6, 0.15);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.3);
    letter-spacing: 0.5px;
    font-weight: 700;
}
body.dark-mode .tsu-auth-emergency-badge {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
}
body.dark-mode .tsu-emergency-tag {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fde68a !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .tsu-auth-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .tsu-auth-brand-side {
        padding: 2.25rem 2rem;
    }
    .tsu-auth-form-side {
        padding: 2.25rem 2rem;
    }
    .tsu-auth-features-list,
    .tsu-auth-brand-footer {
        display: none;
    }
    .tsu-auth-brand-desc {
        margin-bottom: 0.5rem;
    }
}

/* ============================================================
   13. TSU LANDING PAGE SYSTEM (MINIMALIST & INFORMATIVE)
   ============================================================ */
/* Smooth Scroll & Scroll Padding for Sticky Navbar */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section[id] {
    scroll-margin-top: 80px;
}

.tsu-landing-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: clip;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .tsu-landing-wrapper {
    background-color: #0b1120;
    color: #f1f5f9;
}

/* Landing Top Navigation - Modern Sticky Header */
.tsu-landing-navbar {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    padding: 0.85rem 0;
}

.tsu-landing-navbar.tsu-navbar-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px -2px rgba(9, 75, 84, 0.12);
    padding: 0.65rem 0;
    border-bottom-color: rgba(9, 75, 84, 0.15);
}

body.dark-mode .tsu-landing-navbar {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(51, 65, 85, 0.6);
}

body.dark-mode .tsu-landing-navbar.tsu-navbar-scrolled {
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(51, 65, 85, 0.9);
}

.tsu-landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
}

.tsu-landing-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.tsu-landing-brand-text {
    display: flex;
    flex-direction: column;
}

.tsu-landing-brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #094b54;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

body.dark-mode .tsu-landing-brand-title {
    color: #38bdf8;
}

.tsu-landing-brand-sub {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

body.dark-mode .tsu-landing-brand-sub {
    color: #94a3b8;
}

.tsu-landing-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tsu-landing-nav-link {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.35rem 0;
}

.tsu-landing-nav-link:hover {
    color: #094b54;
}

body.dark-mode .tsu-landing-nav-link {
    color: #cbd5e1;
}

body.dark-mode .tsu-landing-nav-link:hover {
    color: #38bdf8;
}

.tsu-landing-nav-link.active {
    color: #094b54 !important;
    font-weight: 600;
}

.tsu-landing-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #094b54;
    border-radius: 99px;
}

body.dark-mode .tsu-landing-nav-link.active {
    color: #38bdf8 !important;
}

body.dark-mode .tsu-landing-nav-link.active::after {
    background: #38bdf8;
}

.tsu-landing-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(9, 75, 84, 0.25);
    transition: all 0.25s ease;
}

.tsu-landing-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(9, 75, 84, 0.35);
    color: #ffffff !important;
}

body.dark-mode .tsu-landing-btn-login {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.tsu-landing-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tsu-landing-theme-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #094b54;
    transform: translateY(-1px);
}

body.dark-mode .tsu-landing-theme-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .tsu-landing-theme-btn:hover {
    background: #334155 !important;
    border-color: #475569 !important;
    color: var(--tsu-gold, #f8c12a) !important;
}

/* Landing Hero Section */
.tsu-landing-hero {
    position: relative;
    padding: 5.5rem 0 4.5rem 0;
    overflow: hidden;
}

.tsu-landing-ambient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    /* Glow (orb) masih terang di tepi bawah hero dan terpotong lurus oleh overflow: hidden.
       Pudarkan lapisan ini ke transparan di bagian bawah agar tidak ada garis potong. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
}

.tsu-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
    will-change: transform;
}

.tsu-hero-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(29, 122, 135, 0.35) 0%, rgba(9, 75, 84, 0) 70%);
    top: -100px;
    left: -100px;
}

.tsu-hero-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(248, 193, 42, 0.25) 0%, rgba(248, 193, 42, 0) 70%);
    bottom: -120px;
    right: -80px;
}

.tsu-hero-orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
    top: 30%;
    right: 25%;
}

body.dark-mode .tsu-hero-orb-1 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
}
body.dark-mode .tsu-hero-orb-2 {
    background: radial-gradient(circle, rgba(248, 193, 42, 0.15) 0%, rgba(248, 193, 42, 0) 70%);
}
body.dark-mode .tsu-hero-orb-3 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%);
}

.tsu-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.tsu-landing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(29, 122, 135, 0.1);
    color: #094b54;
    border: 1px solid rgba(29, 122, 135, 0.25);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

body.dark-mode .tsu-landing-pill {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.tsu-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: tsuPulse 2s infinite;
}

@keyframes tsuPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.tsu-hero-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 1.25rem;
    color: #0f172a;
}

body.dark-mode .tsu-hero-heading {
    color: #f8fafc;
}

.tsu-hero-heading span.highlight {
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .tsu-hero-heading span.highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tsu-hero-desc {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 2.25rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .tsu-hero-desc {
    color: #94a3b8;
}

.tsu-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.tsu-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.85rem;
    background: linear-gradient(135deg, #094b54 0%, #1d7a87 100%);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(9, 75, 84, 0.25);
    transition: all 0.25s ease;
}

.tsu-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(9, 75, 84, 0.35);
    color: #ffffff !important;
}

body.dark-mode .tsu-hero-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

.tsu-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.tsu-hero-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-2px);
}

body.dark-mode .tsu-hero-btn-secondary {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9 !important;
    box-shadow: none;
}

body.dark-mode .tsu-hero-btn-secondary:hover {
    background: #334155;
    border-color: #475569;
}

/* Hero Status Bar / Ribbon */
.tsu-hero-ribbon {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 1.15rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

body.dark-mode .tsu-hero-ribbon {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(51, 65, 85, 0.7);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tsu-ribbon-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.tsu-ribbon-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(29, 122, 135, 0.1);
    color: #094b54;
}

body.dark-mode .tsu-ribbon-icon {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.tsu-ribbon-text {
    display: flex;
    flex-direction: column;
}

.tsu-ribbon-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

body.dark-mode .tsu-ribbon-label {
    color: #94a3b8;
}

.tsu-ribbon-val {
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f172a;
}

body.dark-mode .tsu-ribbon-val {
    color: #f8fafc;
}

/* Section Common Styles */
.tsu-landing-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.tsu-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem auto;
}

.tsu-section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #094b54;
    margin-bottom: 0.5rem;
    display: inline-block;
}

body.dark-mode .tsu-section-badge {
    color: #38bdf8;
}

.tsu-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

body.dark-mode .tsu-section-title {
    color: #f8fafc;
}

.tsu-section-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

body.dark-mode .tsu-section-desc {
    color: #94a3b8;
}

/* Feature Cards Grid */
.tsu-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.tsu-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

body.dark-mode .tsu-feature-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: none;
}

body.dark-mode .tsu-feature-card:hover {
    border-color: #374151;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.tsu-feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    background: rgba(29, 122, 135, 0.1);
    color: #094b54;
    transition: all 0.2s ease;
}

body.dark-mode .tsu-feature-card-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.tsu-feature-card:hover .tsu-feature-card-icon {
    background: #094b54;
    color: #ffffff;
}

body.dark-mode .tsu-feature-card:hover .tsu-feature-card-icon {
    background: #0284c7;
    color: #ffffff;
}

.tsu-feature-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

body.dark-mode .tsu-feature-card-title {
    color: #f8fafc;
}

.tsu-feature-card-text {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

body.dark-mode .tsu-feature-card-text {
    color: #94a3b8;
}

/* Homebase Assistance Callout (Informatif & Minimalis) */
.tsu-landing-helpbox {
    background: linear-gradient(135deg, rgba(9, 75, 84, 0.04) 0%, rgba(29, 122, 135, 0.08) 100%);
    border: 1px solid rgba(29, 122, 135, 0.2);
    border-radius: 16px;
    padding: 2.75rem 2.5rem;
    position: relative;
    overflow: hidden;
}

body.dark-mode .tsu-landing-helpbox {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-color: rgba(56, 189, 248, 0.25);
}

.tsu-helpbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.tsu-helpbox-info {
    max-width: 620px;
}

.tsu-helpbox-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #094b54;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

body.dark-mode .tsu-helpbox-title {
    color: #38bdf8;
}

.tsu-helpbox-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 0;
}

body.dark-mode .tsu-helpbox-desc {
    color: #94a3b8;
}

.tsu-helpbox-action {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Landing Modern Footer */
.tsu-landing-footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 3.5rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

body.dark-mode .tsu-landing-footer {
    background: #0f172a;
    border-top-color: #1e293b;
}

.tsu-footer-brand-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-top: 0.75rem;
    max-width: 320px;
}

body.dark-mode .tsu-footer-brand-desc {
    color: #94a3b8;
}

.tsu-footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .tsu-footer-heading {
    color: #f8fafc;
}

.tsu-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tsu-footer-links li {
    margin-bottom: 0.6rem;
}

.tsu-footer-links a {
    color: #64748b;
    font-size: 0.86rem;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.tsu-footer-links a:hover {
    color: #094b54;
}

body.dark-mode .tsu-footer-links a {
    color: #94a3b8;
}

body.dark-mode .tsu-footer-links a:hover {
    color: #38bdf8;
}

.tsu-footer-bottom {
    border-top: 1px solid #f1f5f9;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 1rem;
}

body.dark-mode .tsu-footer-bottom {
    border-top-color: #1e293b;
    color: #64748b;
}

/* Blank Landing Canvas Dev Box */
.tsu-landing-dev-box {
    background: rgba(9, 75, 84, 0.04);
    border: 1px dashed rgba(9, 75, 84, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}
.tsu-landing-dev-code {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: SFMono-Regular, Consolas, monospace;
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.05);
    color: #094b54;
    word-break: break-all;
}
body.dark-mode .tsu-landing-dev-box {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
body.dark-mode .tsu-landing-dev-code {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #38bdf8 !important;
}

/* Responsive Landing Breakpoints */
@media (max-width: 991px) {
    .tsu-landing-nav-links {
        display: none;
    }
    .tsu-hero-heading {
        font-size: 2.25rem;
    }
    .tsu-hero-ribbon {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .tsu-helpbox-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   14. TSU MODERN SKELETON & PROCESS LOADING SYSTEM
   ============================================================ */
.tsu-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: tsu-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    display: block;
}

body.dark-mode .tsu-skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%) !important;
    background-size: 200% 100% !important;
}

@keyframes tsu-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tsu-skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.tsu-skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 14px;
    border-radius: 6px;
}

.tsu-skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tsu-skeleton-card {
    height: 130px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.tsu-skeleton-btn {
    height: 36px;
    width: 110px;
    border-radius: 8px;
}

/* Card / Container Loading Overlay */
.tsu-loading-relative {
    position: relative !important;
    min-height: 100px;
}

.tsu-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: inherit;
    transition: opacity 0.25s ease;
}

body.dark-mode .tsu-loading-overlay {
    background: rgba(15, 23, 42, 0.85) !important;
}

.tsu-loading-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid rgba(9, 75, 84, 0.15);
    border-top-color: var(--tsu-primary, #094b54);
    border-radius: 50%;
    animation: tsu-spin 0.75s linear infinite;
}

body.dark-mode .tsu-loading-spinner {
    border-color: rgba(56, 189, 248, 0.2);
    border-top-color: var(--tsu-gold, #f8c12a);
}

@keyframes tsu-spin {
    to { transform: rotate(360deg); }
}

.tsu-loading-text {
    margin-top: 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tsu-primary-dark, #094b54);
}

body.dark-mode .tsu-loading-text {
    color: #cbd5e1;
}
