/* ============================================================
   Smartbill — style khusus aplikasi (di luar tema Zentic).
   Dimuat setelah zentic.css di layouts/includes/style.blade.php.
   ============================================================ */

/* Penanda invoice overdue (lingkaran merah "!") di samping periode.
   Dipakai di: tab Invoice detail kontrak, daftar invoice. */
.invoice-overdue-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--zc-danger, #ef4444);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    margin-right: 6px;
    vertical-align: middle;
    cursor: help;
    flex-shrink: 0;
}

/* Avatar inisial bulat (mis. inisial klien).
   Dipakai di: detail klien, detail kontrak. */
.profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #d1fae5;
    color: rgb(6, 95, 70);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Kartu ringkasan invoice per status (komponen <x-invoice-summary>).
   Dipakai di: tab Invoice detail kontrak, daftar invoice. */
.zentic-bg-gray-soft {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.invoice-summary .stat-card {
    height: 100%;
}

.invoice-summary .stat-nominal {
    font-size: 13px;
    font-weight: 600;
    color: var(--zc-text-primary);
    margin-top: 8px;
}

/* ============================================================
   Pencarian global di header (global-search.js)
   ============================================================ */
.global-search-wrap {
    position: relative;
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 340px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--zc-card-bg, #fff);
    border: 1px solid var(--zc-border-color);
    border-radius: var(--zc-radius-lg, 12px);
    box-shadow: var(--zc-shadow-md, 0 10px 30px rgba(0, 0, 0, 0.12));
    z-index: 1040;
    padding: 6px;
}

.global-search-dropdown[hidden] {
    display: none;
}

.gs-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--zc-text-muted);
    padding: 10px 10px 4px;
}

.gs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--zc-radius-md, 8px);
    color: var(--zc-text-primary);
    text-decoration: none;
}

.gs-item:hover,
.gs-item.active {
    background: var(--zc-primary-xlight, #eef2ff);
    color: var(--zc-text-primary);
}

.gs-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zc-body-bg);
    color: var(--zc-primary);
    flex-shrink: 0;
}

.gs-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gs-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-sub {
    font-size: 11px;
    color: var(--zc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-item mark {
    background: var(--zc-warning-light, #fef3c7);
    color: inherit;
    padding: 0;
    border-radius: 2px;
}

.gs-badge {
    flex-shrink: 0;
    font-size: 10px;
}

.gs-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    font-size: 13px;
    color: var(--zc-text-muted);
}

.gs-footer {
    border-top: 1px solid var(--zc-border-light);
    margin-top: 6px;
    padding: 8px 10px 4px;
    font-size: 11px;
    color: var(--zc-text-muted);
}

.gs-footer kbd {
    background: var(--zc-border-light);
    border: 1px solid var(--zc-border-color);
    border-radius: 4px;
    font-size: 10px;
    padding: 0 4px;
    color: var(--zc-text-muted);
}

.gs-spin {
    display: inline-block;
    animation: gs-putar 0.8s linear infinite;
}

@keyframes gs-putar {
    to {
        transform: rotate(360deg);
    }
}

/* Logo utama: logo_color.svg di mode terang, logo_white.svg di mode gelap.
   Dipakai di: sidebar, header (tampilan HP). */
.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: inline-block;
}

/* Sidebar diciutkan (72px): tampilkan ikon logo saja, bukan logo lengkap. */
.zentic-sidebar .logo-icon {
    display: none;
}

.zentic-sidebar.collapsed .logo-light,
.zentic-sidebar.collapsed .logo-dark {
    display: none;
}

.zentic-sidebar.collapsed .logo-icon {
    display: block;
}

/* tinggi area logo tetap 57px agar menu di bawahnya tidak bergeser */
.zentic-sidebar.collapsed .brand-icon {
    height: 57px;
    display: flex;
    align-items: center;
}

.zentic-sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

/* ============================================================
   Toast global (public/assets/js/toast.js, di atas Toastify)
   ============================================================ */
.toastify.sb-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 14px 12px 16px 14px;
    background: var(--zc-card-bg, #fff);
    color: var(--zc-text-primary, #1f2937);
    border: 1px solid var(--zc-border-color, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    font-family: var(--zc-font-sans, inherit);
    overflow: hidden;
    cursor: default;
}

.sb-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.sb-toast-success .sb-toast-icon {
    background: rgba(16, 185, 129, 0.14);
    color: var(--zc-success, #10b981);
}

.sb-toast-error .sb-toast-icon {
    background: rgba(239, 68, 68, 0.14);
    color: var(--zc-danger, #ef4444);
}

.sb-toast-body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.sb-toast-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.sb-toast-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--zc-text-secondary, #4b5563);
    overflow-wrap: anywhere;
}

.sb-toast .toast-close {
    align-self: flex-start;
    color: var(--zc-text-secondary);
    opacity: 0.7;
    font-size: 12px;
    padding: 2px 4px;
    margin-left: 4px;
    line-height: 1;
}

.sb-toast .toast-close:hover {
    opacity: 1;
}

/* garis waktu di bawah toast; berhenti saat kursor di atas toast */
.sb-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    transform-origin: left center;
    animation-name: sb-toast-waktu;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.sb-toast-success .sb-toast-progress {
    background: var(--zc-success, #10b981);
}

.sb-toast-error .sb-toast-progress {
    background: var(--zc-danger, #ef4444);
}

.toastify.sb-toast:hover .sb-toast-progress {
    animation-play-state: paused;
}

@keyframes sb-toast-waktu {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* ============================================================
   Pemilih entitas di sidebar (.lang-switcher.entitas-switcher)
   Daftar terbuka ke bawah di dalam sidebar (bukan melayang), karena
   sidebar memakai overflow:hidden sehingga dropdown melayang akan terpotong.
   ============================================================ */
.entitas-switcher {
    display: block;
    margin: 4px 0 12px;
}

.entitas-switcher .entitas-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    text-align: left;
    white-space: normal;
    border-radius: var(--zc-radius-lg, 10px);
}

.entitas-btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--zc-primary-xlight, #eef2ff);
    color: var(--zc-primary, #5046e5);
    font-size: 16px;
}

.entitas-btn-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.entitas-btn-caption {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--zc-text-muted);
}

.entitas-switcher .lang-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--zc-text-primary);
}

.entitas-btn-company {
    font-size: 11px;
    color: var(--zc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entitas-switcher .lang-arrow {
    font-size: 13px;
    margin-left: 0;
    flex-shrink: 0;
}

.entitas-switcher.open .lang-arrow {
    transform: none;
    color: var(--zc-primary);
}

/* daftar entitas: mengalir di bawah tombol, selebar tombol */
.entitas-switcher .lang-dropdown {
    position: static;
    width: auto;
    margin-top: 6px;
    max-height: 0;
    border-width: 0;
    border-radius: var(--zc-radius-lg, 10px);
    box-shadow: none;
    transform: none;
    transition:
        max-height 0.25s ease,
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.entitas-switcher.open .lang-dropdown {
    max-height: 340px;
    border-width: 1px;
    transform: none;
}

.entitas-dropdown-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--zc-text-muted);
    padding: 10px 12px 4px;
}

.entitas-switcher .lang-list {
    max-height: 290px;
    padding: 2px 6px 6px;
}

/* item: tombol submit form, tampil seperti baris daftar */
.entitas-switcher .lang-item {
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
}

.entitas-switcher .lang-item:hover {
    background: var(--zc-body-bg);
}

.entitas-switcher .lang-item.active {
    background: var(--zc-primary-xxlight, #f5f3ff);
}

.entitas-switcher .lang-region {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* sidebar diciutkan (72px): hanya ikon gedung */
.zentic-sidebar.collapsed .entitas-switcher .entitas-btn {
    justify-content: center;
    padding: 6px;
}

.zentic-sidebar.collapsed .entitas-btn-text,
.zentic-sidebar.collapsed .entitas-switcher .lang-arrow,
.zentic-sidebar.collapsed .entitas-switcher .lang-dropdown {
    display: none;
}

/* Log catatan kontrak (tab Catatan di detail kontrak). */
.catatan-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.catatan-isi {
    font-size: 13px;
    color: var(--zc-text-primary);
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Rincian biaya per jabatan (tab Rincian Biaya di detail kontrak). */

/* --- Rekap --- */
.rincian-rekap tbody td {
    padding-top: 11px;
    padding-bottom: 11px;
}

.rincian-rekap-total {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--zc-border-light);
}

.rincian-rekap-item {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: var(--zc-radius-lg);
    background: var(--zc-body-bg);
}

.rincian-rekap-item:first-child {
    background: var(--zc-success-light);
}

.rincian-rekap-item .label {
    font-size: 12px;
    color: var(--zc-text-muted);
}

.rincian-rekap-item .label small {
    font-size: 11px;
}

.rincian-rekap-item .nilai {
    font-size: 18px;
    font-weight: 700;
    color: var(--zc-text-primary);
}

.rincian-rekap-item .nilai.utama {
    color: var(--zc-success);
}

/* --- Kartu jabatan --- */
.rincian-jabatan {
    scroll-margin-top: calc(var(--zc-topbar-height, 64px) + 16px);
    overflow: hidden;
}

.rincian-jabatan-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
}

.rincian-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 240px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.rincian-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--zc-primary-xxlight);
    color: var(--zc-primary);
    transition: transform .2s ease;
}

.rincian-jabatan.tertutup .rincian-chevron {
    transform: rotate(-90deg);
}

.rincian-jabatan.tertutup .rincian-jabatan-body {
    display: none;
}

.rincian-jabatan-body {
    border-top: 1px solid var(--zc-border-light);
}

/* --- Tabel komponen --- */
.rincian-table thead th {
    padding-top: 9px;
    padding-bottom: 9px;
}

.rincian-table .col-rumus { width: 34%; }
.rincian-table .col-nilai { width: 20%; }
.rincian-table .col-aksi { width: 78px; }

.rincian-table tbody td {
    padding: 8px 16px;
    font-size: 13px;
}

.rincian-table tbody tr.rincian-baris td.rincian-uraian {
    padding-left: 28px;
}

.rincian-table .rincian-angka {
    font-variant-numeric: tabular-nums;
}

.rincian-table tbody tr.rincian-bagian,
.rincian-table tbody tr.rincian-bagian:hover {
    background: var(--zc-primary-xxlight);
}

.rincian-table tbody tr.rincian-bagian td {
    padding-top: 7px;
    padding-bottom: 7px;
    color: var(--zc-primary-dark);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rincian-table tbody tr.rincian-subtotal,
.rincian-table tbody tr.rincian-subtotal:hover {
    background: var(--zc-body-bg);
    border-bottom: 1px solid var(--zc-border-light);
}

.rincian-table tbody tr.rincian-subtotal td {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rincian-rumus {
    display: inline-block;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: var(--zc-radius-pill);
    background: var(--zc-body-bg);
    border: 1px solid var(--zc-border-light);
    color: var(--zc-text-secondary);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.rincian-btn-tambah {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px dashed var(--zc-primary-light);
    border-radius: var(--zc-radius-pill);
    background: var(--zc-card-bg);
    color: var(--zc-primary);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}

.rincian-btn-tambah:hover {
    background: var(--zc-primary);
    border-color: var(--zc-primary);
    color: #fff;
}

.rincian-btn-aksi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: var(--zc-radius-sm);
    background: none;
    color: var(--zc-text-muted);
    font-size: 13px;
    cursor: pointer;
    opacity: .55;
    transition: opacity .15s, background .15s, color .15s;
}

.rincian-baris:hover .rincian-btn-aksi,
.rincian-btn-aksi:focus-visible {
    opacity: 1;
}

.rincian-btn-aksi:hover {
    background: var(--zc-primary-xxlight);
    color: var(--zc-primary);
}

.rincian-btn-aksi.hapus:hover {
    background: var(--zc-danger-light);
    color: var(--zc-danger);
}

/* --- Ringkasan per jabatan --- */
.rincian-kolom-ringkasan {
    border-left: 1px solid var(--zc-border-light);
    background: var(--zc-body-bg);
}

@media (max-width: 1199.98px) {
    .rincian-kolom-ringkasan {
        border-left: 0;
        border-top: 1px solid var(--zc-border-light);
    }
}

.rincian-ringkasan {
    position: sticky;
    top: calc(var(--zc-topbar-height, 64px) + 12px);
    padding: 16px 20px 20px;
}

.rincian-ringkasan-judul {
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--zc-text-muted);
}

.rincian-ringkasan-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--zc-text-secondary);
    font-variant-numeric: tabular-nums;
}

.rincian-ringkasan-item span:last-child {
    color: var(--zc-text-primary);
    white-space: nowrap;
}

.rincian-ringkasan-item small {
    font-size: 11px;
    color: var(--zc-text-muted);
}

.rincian-ringkasan-item.tebal span {
    font-weight: 700;
    color: var(--zc-text-primary);
}

.rincian-ringkasan-item.garis {
    margin-top: 4px;
    padding-top: 9px;
    border-top: 1px dashed var(--zc-border-color);
}

.rincian-ringkasan-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--zc-radius-lg);
    background: var(--zc-success-light);
    color: var(--zc-success);
}

.rincian-ringkasan-total span {
    font-size: 12px;
    font-weight: 600;
}

.rincian-ringkasan-total strong {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

/* Ringkasan di bawah tabel (layar < xl): bagi 2 kolom agar tidak terlalu panjang */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .rincian-ringkasan-list {
        column-count: 2;
        column-gap: 40px;
    }

    .rincian-ringkasan-item {
        break-inside: avoid;
    }

    .rincian-ringkasan-item.garis {
        margin-top: 0;
        padding-top: 5px;
        border-top: 0;
    }
}

/* Modal ekspor PDF rincian biaya */
.ekspor-pilihan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 575.98px) {
    .ekspor-pilihan { grid-template-columns: 1fr; }
}

.ekspor-opsi {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--zc-border-color);
    border-radius: var(--zc-radius-lg);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.ekspor-opsi input {
    margin-top: 3px;
    accent-color: var(--zc-primary);
}

.ekspor-opsi b {
    display: block;
    font-size: 13px;
    color: var(--zc-text-primary);
}

.ekspor-opsi small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--zc-text-muted);
}

.ekspor-opsi:has(input:checked) {
    border-color: var(--zc-primary);
    background: var(--zc-primary-xxlight);
}

.ekspor-jabatan {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--zc-border-light);
    border-radius: var(--zc-radius-lg);
}

.ekspor-jabatan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--zc-border-light);
}

.ekspor-jabatan-item:last-child {
    border-bottom: 0;
}

.ekspor-jabatan-item:hover {
    background: var(--zc-body-bg);
}

.ekspor-jabatan-item input {
    accent-color: var(--zc-primary);
}

/* Drag & drop urutan komponen (SortableJS) */
.rincian-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    margin: 0 6px 0 -16px;
    color: var(--zc-text-muted);
    opacity: .35;
    cursor: grab;
    touch-action: none;
    transition: opacity .15s, color .15s;
}

.rincian-baris:hover .rincian-drag {
    opacity: 1;
}

.rincian-drag:hover {
    color: var(--zc-primary);
}

.rincian-geser.sortable-chosen,
.rincian-geser.sortable-chosen .rincian-drag {
    cursor: grabbing;
}

/* posisi tujuan saat digeser */
.rincian-geser.sortable-ghost td {
    background: var(--zc-primary-xxlight) !important;
    color: var(--zc-primary);
}

.rincian-geser.sortable-ghost td * {
    visibility: hidden;
}

.rincian-geser.sortable-ghost td.rincian-uraian {
    box-shadow: inset 3px 0 0 var(--zc-primary);
}

/* baris yang sedang dibawa */
.rincian-geser.sortable-drag {
    background: var(--zc-card-bg);
    box-shadow: var(--zc-shadow-lg);
    opacity: .95;
}

.rincian-grup.menyimpan {
    opacity: .6;
    pointer-events: none;
}

/* ===== Detail kontrak: bagian Invoice per jabatan ===== */
.list-group-item.invoice-rincian-item {
    display: block;
    padding: 12px 16px;
    cursor: default;
}
.list-group-item.invoice-rincian-item:hover {
    background: var(--zc-card-bg);
}
.invoice-rincian {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border: 1px solid var(--zc-border-light);
    border-radius: 10px;
    overflow: hidden;
}
.invoice-rincian th,
.invoice-rincian td {
    padding: 8px;
    border-bottom: 1px solid var(--zc-border-light);
    vertical-align: top;
    white-space: nowrap;
}
.invoice-rincian tbody tr:last-child td {
    border-bottom: none;
}
.invoice-rincian thead th {
    white-space: normal;
    background: var(--zc-body-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--zc-text-secondary);
}
.invoice-rincian small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--zc-text-secondary);
    margin-top: 1px;
}
.invoice-rincian small.rumus-ket {
    white-space: normal;
}
.invoice-rincian td.komponen {
    font-weight: 500;
    white-space: normal;
    min-width: 96px;
}
.invoice-rincian td {
    font-variant-numeric: tabular-nums;
}
.invoice-rincian td.kosong {
    color: var(--zc-text-secondary);
}
.invoice-rincian .kolom-total {
    background: var(--zc-primary-xlight);
    color: var(--zc-primary);
    font-weight: 700;
}
.invoice-rincian thead .kolom-total {
    color: var(--zc-primary);
}
.invoice-rincian-catatan {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}

/* ===== Form kontrak: mekanisme THR ===== */
.thr-pilihan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.thr-opsi {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--zc-border-light);
    border-radius: 10px;
    cursor: pointer;
    margin: 0;
    transition: border-color .15s, background .15s;
}
.thr-opsi input {
    margin-top: 3px;
    accent-color: var(--zc-primary);
    flex-shrink: 0;
}
.thr-opsi b {
    display: block;
    font-size: 13px;
}
.thr-opsi small {
    display: block;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.thr-opsi:has(input:checked) {
    border-color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.thr-jadwal {
    margin-top: 12px;
    border: 1px solid var(--zc-border-light);
    border-radius: 10px;
    padding: 4px 10px 10px;
}
.thr-tabel {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
}
.thr-tabel th {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--zc-text-secondary);
    border-bottom: 1px solid var(--zc-border-light);
    white-space: nowrap;
}
.thr-tabel td {
    padding: 6px;
    vertical-align: middle;
}
.thr-tabel td.thr-no {
    color: var(--zc-text-secondary);
    text-align: center;
}
.thr-tabel tfoot td {
    padding-top: 10px;
    border-top: 1px solid var(--zc-border-light);
}
.thr-tabel .thr-total {
    text-align: right;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .thr-pilihan { grid-template-columns: 1fr; }
}

/* ===== Detail kontrak: jadwal THR terpisah ===== */
.thr-kepala {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 10px;
}
.thr-kepala .thr-judul {
    font-weight: 600;
}
.thr-kepala .thr-ringkas {
    margin-left: auto;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.invoice-rincian tfoot tr.kolom-total td {
    border-top: 1px solid var(--zc-border-light);
    border-bottom: none;
}

/* ===== Rincian biaya: jadwal personel per bulan (jumlah SDM berubah) ===== */
.jadwal-personel {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.jadwal-personel th,
.jadwal-personel td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--zc-border-light);
    white-space: nowrap;
    vertical-align: middle;
}
.jadwal-personel thead th {
    background: var(--zc-body-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--zc-text-secondary);
}
.jadwal-personel thead th small {
    display: block;
    font-size: 10.5px;
    font-weight: 400;
}
.jadwal-personel .kolom-jabatan {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 170px;
    max-width: 210px;
    padding-left: 16px;
    background: var(--zc-card-bg);
    border-right: 1px solid var(--zc-border-light);
}
.jadwal-personel thead .kolom-jabatan {
    background: var(--zc-body-bg);
}
.jadwal-personel .kolom-jabatan small {
    font-size: 11px;
    color: var(--zc-text-secondary);
}
.jadwal-personel .jadwal-samakan {
    border: 0;
    background: none;
    padding: 0 0 0 6px;
    font-size: 11px;
    color: var(--zc-primary);
    cursor: pointer;
}
.jadwal-personel .jadwal-samakan:hover {
    text-decoration: underline;
}
.jadwal-personel .jadwal-input {
    width: 64px;
    min-width: 64px;
    padding: 6px 4px;
    text-align: center;
    border: 1px solid var(--zc-border-light);
    border-radius: 8px;
    background: var(--zc-card-bg);
    color: inherit;
    font-variant-numeric: tabular-nums;
}
.jadwal-personel .jadwal-input:focus {
    outline: none;
    border-color: var(--zc-primary);
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.jadwal-personel tfoot td {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background: var(--zc-body-bg);
}
.jadwal-personel tfoot .kolom-jabatan {
    background: var(--zc-body-bg);
}
.jadwal-personel tfoot tr.baris-invoice td {
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
    border-bottom: none;
    font-size: 12px;
}
.jadwal-personel tfoot tr.baris-invoice .kolom-jabatan small {
    color: inherit;
}
.jadwal-catatan {
    margin: 0;
    padding: 10px 16px 14px;
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.jadwal-belum-simpan {
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
}
.jadwal-personel .jadwal-input::-webkit-outer-spin-button,
.jadwal-personel .jadwal-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.jadwal-personel .jadwal-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* =====================================================================
   Form tambah / ubah kontrak (kf-*)
   ===================================================================== */
.kf-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--zc-text-secondary);
}
.kf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}
.kf-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* --- section --- */
.kf-section {
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    padding: 22px 24px 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .2s, box-shadow .2s;
}
.kf-section:focus-within {
    border-color: color-mix(in srgb, var(--zc-primary) 45%, var(--zc-border-light));
    box-shadow: 0 0 0 4px var(--zc-primary-xlight), 0 1px 2px rgba(16, 24, 40, .04);
}
.kf-section-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.kf-section-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--zc-text-primary);
}
.kf-section-head p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.kf-step {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
    transition: background .2s, color .2s;
}
.kf-section.selesai .kf-step {
    color: #fff;
    background: #16a34a;
    font-size: 0;
}
.kf-section.selesai .kf-step::before {
    content: "\2713";
    font-size: 14px;
}

/* --- grid & field --- */
.kf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}
.kf-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kf-grid-tight {
    gap: 10px;
}
.kf-span-2 {
    grid-column: 1 / -1;
}
.kf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.kf-field > label,
.kf-field > .kf-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-text-primary);
    margin: 0;
}
.kf-wajib {
    color: #ef4444;
}
.kf-opsional {
    font-weight: 400;
    font-size: 11px;
    color: var(--zc-text-secondary);
    margin-left: 4px;
}
.kf-hint {
    font-size: 11.5px;
    color: var(--zc-text-secondary);
    line-height: 1.45;
}
.kf-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--zc-text-primary);
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.kf-input::placeholder {
    color: color-mix(in srgb, var(--zc-text-secondary) 70%, transparent);
}
.kf-input:hover {
    border-color: color-mix(in srgb, var(--zc-text-secondary) 40%, var(--zc-border-light));
}
.kf-input:focus {
    border-color: var(--zc-primary);
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.kf-input-lg {
    height: 48px;
    font-size: 17px;
    font-weight: 600;
}
.kf-mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
}
.kf-select {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.kf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.kf-input-wrap > i {
    position: absolute;
    left: 12px;
    font-size: 15px;
    color: var(--zc-text-secondary);
    pointer-events: none;
}
.kf-input-wrap > i + .kf-input {
    padding-left: 36px;
}
.kf-prefix,
.kf-suffix {
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: var(--zc-text-secondary);
    pointer-events: none;
}
.kf-prefix {
    left: 12px;
}
.kf-prefix + .kf-input {
    padding-left: 40px;
}
.kf-suffix {
    right: 12px;
}
.kf-input-wrap:has(.kf-suffix) .kf-input {
    padding-right: 76px;
}
.kf-field.invalid .kf-input,
.kf-field.invalid .kf-segmen,
.kf-field.invalid .kf-choices {
    border-color: #ef4444;
}
.kf-field.invalid .kf-input:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
.kf-error {
    font-size: 11.5px;
    font-weight: 500;
    color: #dc2626;
}
.kf-link {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-primary);
    cursor: pointer;
}
.kf-link:hover {
    text-decoration: underline;
}

/* --- pilihan kartu (tipe kontrak) --- */
.kf-choices {
    display: grid;
    gap: 10px;
}
.kf-choices-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kf-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    margin: 0;
    border: 1px solid var(--zc-border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.kf-choice:hover {
    border-color: color-mix(in srgb, var(--zc-primary) 40%, var(--zc-border-light));
}
.kf-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.kf-choice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
    transition: background .15s, color .15s;
}
.kf-choice-text b {
    display: block;
    font-size: 13.5px;
    color: var(--zc-text-primary);
}
.kf-choice-text small {
    display: block;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--zc-text-secondary);
}
.kf-choice:has(input:checked) {
    border-color: var(--zc-primary);
    background: color-mix(in srgb, var(--zc-primary-xlight) 60%, var(--zc-card-bg));
    box-shadow: 0 0 0 1px var(--zc-primary);
}
.kf-choice:has(input:checked) .kf-choice-icon {
    color: #fff;
    background: var(--zc-primary);
}
.kf-choice:has(input:focus-visible) {
    box-shadow: 0 0 0 4px var(--zc-primary-xlight);
}

/* --- segmen (status, SDM) --- */
.kf-segmen {
    display: flex;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--zc-border-light);
    border-radius: 12px;
    background: var(--zc-body-bg);
}
.kf-segmen-item {
    flex: 1;
    margin: 0;
    cursor: pointer;
}
.kf-segmen-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.kf-segmen-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--zc-text-secondary);
    transition: background .15s, color .15s, box-shadow .15s;
}
.kf-segmen-item:hover span {
    color: var(--zc-text-primary);
}
.kf-segmen-item input:checked + span {
    color: var(--zc-text-primary);
    background: var(--zc-card-bg);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}
.kf-segmen-item input:focus-visible + span {
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.kf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
}
.kf-hijau input:checked + span .kf-dot { background: #16a34a; opacity: 1; }
.kf-kuning input:checked + span .kf-dot { background: #f59e0b; opacity: 1; }
.kf-merah input:checked + span .kf-dot { background: #ef4444; opacity: 1; }

/* --- jangka waktu --- */
.kf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.kf-chip {
    border: 1px solid var(--zc-border-light);
    background: var(--zc-card-bg);
    color: var(--zc-text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}
.kf-chip:hover {
    color: var(--zc-primary);
    border-color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.kf-timeline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--zc-body-bg);
}
.kf-timeline-titik small {
    display: block;
    font-size: 11px;
    color: var(--zc-text-secondary);
}
.kf-timeline-titik b {
    font-size: 13.5px;
    color: var(--zc-text-primary);
    white-space: nowrap;
}
.kf-timeline-garis {
    position: relative;
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--zc-primary), color-mix(in srgb, var(--zc-primary) 35%, transparent));
    border-radius: 2px;
}
.kf-timeline-garis span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 2px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--zc-primary);
    background: var(--zc-card-bg);
    border: 1px solid color-mix(in srgb, var(--zc-primary) 35%, transparent);
    border-radius: 999px;
    white-space: nowrap;
}

/* --- cutoff s/d --- */
.kf-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kf-range .kf-input-wrap {
    flex: 1;
}
.kf-range-sep {
    font-size: 12px;
    color: var(--zc-text-secondary);
}

/* --- switch --- */
.kf-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 0;
    cursor: pointer;
}
.kf-switch input[type=checkbox] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.kf-switch-track {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zc-text-secondary) 35%, transparent);
    transition: background .2s;
}
.kf-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform .2s;
}
.kf-switch input:checked + .kf-switch-track {
    background: var(--zc-primary);
}
.kf-switch input:checked + .kf-switch-track .kf-switch-thumb {
    transform: translateX(18px);
}
.kf-switch input:focus-visible + .kf-switch-track {
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.kf-switch-text b {
    display: block;
    font-size: 13px;
    color: var(--zc-text-primary);
}
.kf-switch-text small {
    display: block;
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}

/* THR di dalam section: judul bawaan partial tidak perlu */
.kf-section[data-bagian=thr] .thr-form > .form-label,
.kf-section[data-bagian=thr] .thr-form > p {
    display: none;
}

/* --- kolom samping --- */
.kf-aside-inner {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.kf-summary {
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .06);
}
.kf-summary-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zc-border-light);
}
.kf-summary-head small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--zc-text-secondary);
}
.kf-summary-head b {
    font-size: 14.5px;
    color: var(--zc-text-primary);
}
.kf-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--zc-primary), color-mix(in srgb, var(--zc-primary) 55%, #ec4899));
}
.kf-summary-list {
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.kf-summary-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
}
.kf-summary-list dt {
    font-weight: 400;
    color: var(--zc-text-secondary);
    flex-shrink: 0;
}
.kf-summary-list dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: var(--zc-text-primary);
    min-width: 0;
    overflow-wrap: anywhere;
}
.kf-badge {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    background: var(--zc-body-bg);
}
.kf-badge-accept { color: #15803d; background: #dcfce7; }
.kf-badge-pending { color: #b45309; background: #fef3c7; }
.kf-badge-decline { color: #b91c1c; background: #fee2e2; }
.kf-progress {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--zc-border-light);
}
.kf-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.kf-progress-head b {
    color: var(--zc-text-primary);
}
.kf-progress-bar {
    height: 6px;
    margin: 8px 0 12px;
    border-radius: 999px;
    background: var(--zc-body-bg);
    overflow: hidden;
}
.kf-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--zc-primary), #16a34a);
    transition: width .35s ease;
}
.kf-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
.kf-checklist li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.kf-checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--zc-text-secondary) 45%, transparent);
}
.kf-checklist li.selesai {
    color: var(--zc-text-primary);
}
.kf-checklist li.selesai::before {
    border-color: #16a34a;
    background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.kf-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}
.kf-actions .btn-zentic {
    justify-content: center;
}
.kf-actions .btn-primary {
    flex: 1;
}
.kf-note {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--zc-text-secondary);
    background: var(--zc-primary-xlight);
}
.kf-note i {
    color: var(--zc-primary);
    font-size: 15px;
    margin-top: 1px;
}
.kf-note p {
    margin: 0;
}
.kf-mobile-bar {
    display: none;
}

@media (max-width: 1199.98px) {
    .kf-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .kf-aside-inner {
        position: static;
    }
    .kf-actions {
        display: none;
    }
    .kf-mobile-bar {
        position: sticky;
        bottom: 12px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 20px;
        padding: 10px 10px 10px 16px;
        border-radius: 14px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--zc-text-secondary);
        background: color-mix(in srgb, var(--zc-card-bg) 92%, transparent);
        border: 1px solid var(--zc-border-light);
        box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
        backdrop-filter: blur(8px);
    }
}
@media (max-width: 767.98px) {
    .kf-section {
        padding: 18px 16px 20px;
    }
    .kf-grid,
    .kf-grid-3,
    .kf-choices-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .kf-segmen {
        flex-wrap: wrap;
    }
}
.kf-field > label.kf-switch {
    font-weight: 400;
}
.kf-switch-text small {
    font-weight: 400;
}
.kf .kf-input[type=number]::-webkit-outer-spin-button,
.kf .kf-input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.kf .kf-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
/* jadwal THR di dalam form kontrak: lebih ringkas */
.kf .thr-tabel {
    min-width: 560px;
}
.kf .thr-tabel th:first-child,
.kf .thr-tabel td.thr-no {
    width: 36px !important;
}
.kf .thr-tabel th:last-child {
    width: 44px !important;
}
.kf .thr-tabel .form-control-zentic {
    min-width: 0;
}
/* grid field menyesuaikan lebar: turun ke 1 kolom bila ruang sempit */
.kf .kf-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.kf .kf-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.kf .kf-choices-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.kf .kf-range .kf-input-wrap {
    min-width: 92px;
}

/* =====================================================================
   Daftar kontrak (ki-*)
   ===================================================================== */
.ki-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.ki-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ki-stat:hover {
    color: inherit;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .08);
}
.ki-stat.aktif {
    border-color: var(--zc-primary);
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.ki-stat-icon,
.kd-kpi-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
}
.ki-stat-icon.ungu, .kd-kpi-icon.ungu { color: #6d28d9; background: #ede9fe; }
.ki-stat-icon.hijau, .kd-kpi-icon.hijau { color: #15803d; background: #dcfce7; }
.ki-stat-icon.oranye, .kd-kpi-icon.oranye { color: #c2410c; background: #ffedd5; }
.ki-stat-icon.merah, .kd-kpi-icon.merah { color: #b91c1c; background: #fee2e2; }
.ki-stat-icon.biru, .kd-kpi-icon.biru { color: #1d4ed8; background: #dbeafe; }
.ki-stat-teks {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ki-stat-teks small {
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.ki-stat-teks b {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--zc-text-primary);
    font-variant-numeric: tabular-nums;
}
.ki-stat-teks span {
    font-size: 11.5px;
    color: var(--zc-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ki-panel {
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    overflow: hidden;
}
.ki-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
}
.ki-search {
    position: relative;
    flex: 1 1 320px;
    display: flex;
    align-items: center;
}
.ki-search i {
    position: absolute;
    left: 13px;
    color: var(--zc-text-secondary);
    pointer-events: none;
}
.ki-search input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 38px;
    font-size: 13.5px;
    color: var(--zc-text-primary);
    background: var(--zc-body-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ki-search input:focus {
    background: var(--zc-card-bg);
    border-color: var(--zc-primary);
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.ki-search kbd {
    position: absolute;
    right: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-family: inherit;
    color: var(--zc-text-secondary);
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 6px;
    box-shadow: none;
}
.ki-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ki-select {
    height: 40px;
    padding: 0 34px 0 12px;
    font-size: 13px;
    color: var(--zc-text-primary);
    background: var(--zc-card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--zc-border-light);
    border-radius: 10px;
    appearance: none;
    outline: none;
    max-width: 220px;
}
.ki-select:focus {
    border-color: var(--zc-primary);
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.ki-reset {
    height: 40px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-text-secondary);
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.ki-reset:hover {
    color: #dc2626;
    background: #fef2f2;
}
.ki-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 0 18px 14px;
    border-bottom: 1px solid var(--zc-border-light);
}
.ki-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    background: var(--zc-body-bg);
    border-radius: 10px;
}
.ki-seg button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-text-secondary);
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.ki-seg button:hover {
    color: var(--zc-text-primary);
}
.ki-seg button.aktif {
    color: var(--zc-text-primary);
    background: var(--zc-card-bg);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}
.ki-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.ki-dot.hijau { background: #16a34a; }
.ki-dot.kuning { background: #f59e0b; }
.ki-dot.merah { background: #ef4444; }

.ki-table-wrap {
    overflow-x: auto;
}
.ki-table {
    border-collapse: collapse;
    font-size: 13px;
}
.ki-table thead th {
    padding: 11px 14px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
    border-bottom: 1px solid var(--zc-border-light);
    white-space: nowrap;
}
.ki-table tbody td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--zc-border-light);
}
.ki-table tbody tr {
    transition: background .12s;
}
.ki-table tbody tr:hover {
    background: color-mix(in srgb, var(--zc-primary-xlight) 45%, transparent);
}
.ki-table tbody tr:last-child td {
    border-bottom: 0;
}
.ki-kontrak {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    color: inherit;
    text-decoration: none;
}
.ki-kontrak:hover b {
    color: var(--zc-primary);
}
.ki-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.ki-kontrak-teks {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ki-kontrak-teks b {
    font-size: 13.5px;
    color: var(--zc-text-primary);
    transition: color .12s;
}
.ki-kontrak-teks > span {
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.ki-mono {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.ki-dua {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}
.ki-dua b {
    font-weight: 600;
    color: var(--zc-text-primary);
    font-variant-numeric: tabular-nums;
}
.ki-dua b em {
    font-style: normal;
    font-weight: 400;
    color: var(--zc-text-secondary);
}
.ki-dua span {
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.ki-col-periode {
    min-width: 170px;
}
.ki-periode-atas {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.ki-periode-atas b {
    font-weight: 600;
    color: var(--zc-text-primary);
}
.ki-bar,
.kd-mini-bar {
    height: 6px;
    margin: 5px 0 4px;
    border-radius: 999px;
    background: var(--zc-body-bg);
    overflow: hidden;
}
.ki-bar span,
.kd-mini-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--zc-primary);
}
.ki-periode.segera .ki-bar span { background: #f59e0b; }
.ki-periode.segera .ki-periode-atas b { color: #c2410c; }
.ki-periode.selesai .ki-bar span { background: color-mix(in srgb, var(--zc-text-secondary) 50%, transparent); }
.ki-periode small {
    font-size: 11px;
    color: var(--zc-text-secondary);
}
.ki-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}
.ki-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.ki-hijau { color: #15803d; background: #dcfce7; }
.ki-kuning { color: #b45309; background: #fef3c7; }
.ki-merah { color: #b91c1c; background: #fee2e2; }
.ki-abu { color: var(--zc-text-secondary); background: var(--zc-body-bg); }
.ki-aksi {
    display: inline-flex;
    gap: 4px;
}
.ki-aksi-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--zc-text-secondary);
    background: none;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: all .12s;
}
.ki-aksi-btn:hover {
    color: var(--zc-primary);
    background: var(--zc-card-bg);
    border-color: var(--zc-border-light);
}
.ki-aksi-btn.bahaya:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}
.ki-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid var(--zc-border-light);
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.ki-footer-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ki-footer .dataTables_length select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--zc-border-light);
    border-radius: 8px;
    background: var(--zc-card-bg);
    color: var(--zc-text-primary);
}
.ki-footer .dataTables_paginate .pagination {
    margin: 0;
}
.ki-panel .dataTables_processing {
    top: 120px !important;
    padding: 10px 16px !important;
    width: auto !important;
    margin-left: -60px !important;
    border-radius: 10px;
    background: var(--zc-card-bg) !important;
    border: 1px solid var(--zc-border-light);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .1);
}
.ki-kosong {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 40px 16px;
    color: var(--zc-text-secondary);
}
.ki-kosong i {
    font-size: 28px;
    margin-bottom: 6px;
}
.ki-kosong b {
    color: var(--zc-text-primary);
}
@media (max-width: 1199.98px) {
    .ki-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ki-stats { grid-template-columns: minmax(0, 1fr); }
    .ki-select { max-width: none; flex: 1; }
}

/* =====================================================================
   Detail kontrak (kd-*)
   ===================================================================== */
.kd-hero {
    position: relative;
    margin-bottom: 18px;
    padding: 22px 24px 20px;
    background:
        radial-gradient(1200px 200px at 0% 0%, var(--zc-primary-xlight), transparent 60%),
        var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.kd-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.kd-back {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--zc-text-secondary);
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 10px;
    text-decoration: none;
}
.kd-back:hover {
    color: var(--zc-primary);
    border-color: var(--zc-primary);
}
.kd-hero-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--zc-primary), color-mix(in srgb, var(--zc-primary) 55%, #ec4899));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--zc-primary) 30%, transparent);
}
.kd-hero-title {
    flex: 1;
    min-width: 0;
}
.kd-hero-title h1 {
    margin: 6px 0 4px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--zc-text-primary);
}
.kd-hero-title p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    font-size: 13px;
    color: var(--zc-text-secondary);
}
.kd-hero-title p span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.kd-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.kd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}
.kd-pill .kd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.kd-pill-hijau { color: #15803d; background: #dcfce7; }
.kd-pill-kuning { color: #b45309; background: #fef3c7; }
.kd-pill-merah { color: #b91c1c; background: #fee2e2; }
.kd-pill-biru { color: #1d4ed8; background: #dbeafe; }
.kd-pill-abu { color: var(--zc-text-secondary); background: var(--zc-body-bg); border: 1px solid var(--zc-border-light); }
.kd-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kd-menu {
    min-width: 220px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--zc-border-light);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
}
.kd-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
}

.kd-kpi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.kd-kpi-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 14px;
    min-width: 0;
}
.kd-kpi-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-radius: 11px;
}
.kd-kpi-item small {
    display: block;
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.kd-kpi-item b {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--zc-text-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kd-kpi-item b em {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--zc-text-secondary);
}
.kd-kpi-item span:not(.kd-kpi-icon) {
    display: block;
    font-size: 11px;
    color: var(--zc-text-secondary);
}
.kd-mini-bar {
    margin: 4px 0 3px;
    height: 5px;
}
.kd-mini-bar span {
    background: #16a34a;
}
.kd-periode {
    margin-top: 18px;
}
.kd-periode-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.kd-periode-label span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.kd-periode-label b {
    font-weight: 600;
    color: var(--zc-text-primary);
    text-align: center;
}
.kd-periode-bar {
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--zc-body-bg);
    overflow: hidden;
}
.kd-periode-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--zc-primary), color-mix(in srgb, var(--zc-primary) 50%, #22c55e));
}

/* tab bar */
.kd-tabs.settings-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 12px;
}
.kd-tabs .settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.kd-tab-count {
    min-width: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
}
.kd-tabs .settings-tab.active .kd-tab-count {
    color: var(--zc-primary);
    background: #fff;
}

/* isi tab detail */
.kd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}
.kd-main,
.kd-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.kd-card {
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.kd-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.kd-card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--zc-text-primary);
}
.kd-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.kd-card-link {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.kd-card-link:hover {
    text-decoration: underline;
}
.kd-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
}
.kd-info dt,
.kd-tile small {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--zc-text-secondary);
    margin-bottom: 3px;
}
.kd-info dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--zc-text-primary);
}
.kd-info dd small {
    display: block;
    font-weight: 400;
    color: var(--zc-text-secondary);
}
.kd-info .kd-besar {
    font-size: 17px;
}
.kd-span-2 {
    grid-column: 1 / -1;
}
.kd-mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}
.kd-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.kd-tile {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--zc-body-bg);
}
.kd-tile small {
    display: block;
}
.kd-tile b {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--zc-text-primary);
}
/* partial lama (list-group) di dalam kartu baru */
.kd-list.list-group-zentic {
    margin: 0 -20px -20px;
    border-top: 1px solid var(--zc-border-light);
}
.kd-list .list-group-item {
    padding-left: 20px !important;
    padding-right: 20px;
    cursor: default;
}
.kd-list .list-group-item:hover {
    background: transparent;
}
.kd-list .list-group-item:last-child {
    border-radius: 0 0 16px 16px;
}

.kd-klien {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.kd-klien-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.kd-klien b {
    font-size: 14px;
    color: var(--zc-text-primary);
    margin-bottom: 3px;
}
.kd-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kd-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
}
.kd-meta dt {
    font-weight: 400;
    color: var(--zc-text-secondary);
}
.kd-meta dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: var(--zc-text-primary);
}
.kd-card-bahaya {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2, var(--zc-card-bg) 60%);
}
.kd-card-bahaya .kd-card-icon {
    color: #b91c1c;
    background: #fee2e2;
}
.kd-alasan {
    margin: 10px 0 0;
    padding: 10px 12px;
    font-size: 12.5px;
    font-style: italic;
    color: #b91c1c;
    background: #fff;
    border: 1px dashed #fecaca;
    border-radius: 10px;
}
.kd-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.kd-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: var(--zc-text-primary);
    text-decoration: none;
    border: 1px solid var(--zc-border-light);
    border-radius: 10px;
    transition: border-color .12s, background .12s;
}
.kd-file:hover {
    color: var(--zc-primary);
    border-color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.kd-file-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.kd-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kd-upload.file-upload-zone {
    padding: 18px 12px;
    border-radius: 12px;
}
.kd-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--zc-border-light);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.kd-timeline li {
    position: relative;
    font-size: 12.5px;
}
.kd-timeline li::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zc-card-bg);
    border: 2px solid var(--zc-primary);
}
.kd-timeline b {
    display: block;
    font-weight: 600;
    color: var(--zc-text-primary);
}
.kd-timeline span {
    color: var(--zc-text-secondary);
}

@media (max-width: 1199.98px) {
    .kd-layout { grid-template-columns: minmax(0, 1fr); }
    .kd-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .kd-hero { padding: 18px 16px; }
    .kd-hero-top { flex-wrap: wrap; }
    .kd-hero-avatar { width: 46px; height: 46px; font-size: 16px; }
    .kd-hero-title { flex-basis: calc(100% - 120px); }
    .kd-hero-title h1 { font-size: 20px; }
    .kd-hero-actions { width: 100%; }
    .kd-hero-actions .btn-primary { flex: 1; justify-content: center; }
    .kd-kpi { grid-template-columns: minmax(0, 1fr); }
    .kd-info { grid-template-columns: minmax(0, 1fr); }
    .kd-card { padding: 16px; }
    .kd-list.list-group-zentic { margin: 0 -16px -16px; }
}
.kd-kpi-item b {
    white-space: normal;
    overflow: visible;
    line-height: 1.25;
}
.kd-tiles {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* =====================================================================
   Daftar invoice (ii-*) — panel tabel memakai gaya ki-*
   ===================================================================== */
.ii-bulan {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    gap: 2px;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.ii-bulan > button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--zc-text-secondary);
    background: none;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}
.ii-bulan > button:hover {
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.ii-bulan-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    margin: 0;
    padding: 0 14px;
    min-width: 170px;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--zc-text-primary);
    border-radius: 9px;
    cursor: pointer;
}
.ii-bulan-label:hover {
    background: var(--zc-body-bg);
}
.ii-bulan-label i {
    color: var(--zc-primary);
}
.ii-bulan-label input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    cursor: pointer;
}

.ii-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 14px;
    background: linear-gradient(90deg, #fef2f2, var(--zc-card-bg));
}
.ii-alert-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #b91c1c;
    background: #fee2e2;
}
.ii-alert-teks {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--zc-text-secondary);
}
.ii-alert-teks > b {
    display: block;
    color: #991b1b;
}
.ii-alert-teks span b {
    color: var(--zc-text-primary);
}
.ii-alert-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.ii-alert-btn:hover {
    background: #b91c1c;
}

.ii-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: 14px;
    margin-bottom: 20px;
}
.ii-stat {
    --warna: var(--zc-text-secondary);
    --latar: var(--zc-body-bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 16px;
    text-align: left;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ii-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .08);
}
.ii-stat.aktif {
    border-color: var(--warna);
    box-shadow: 0 0 0 3px var(--latar);
}
.ii-stat-pending { --warna: #64748b; --latar: #f1f5f9; }
.ii-stat-terbit { --warna: #1d4ed8; --latar: #dbeafe; }
.ii-stat-overdue { --warna: #b91c1c; --latar: #fee2e2; }
.ii-stat-dibayar { --warna: #15803d; --latar: #dcfce7; }
.ii-stat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ii-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--warna);
    background: var(--latar);
}
.ii-stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-text-secondary);
}
.ii-stat > b {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--zc-text-primary);
    font-variant-numeric: tabular-nums;
}
.ii-stat-nominal {
    font-size: 13px;
    font-weight: 600;
    color: var(--warna);
    font-variant-numeric: tabular-nums;
}
.ii-stat small {
    font-size: 11px;
    color: var(--zc-text-secondary);
}
.ii-progress-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--zc-primary), color-mix(in srgb, var(--zc-primary) 60%, #0ea5e9));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--zc-primary) 28%, transparent);
}
.ii-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12.5px;
    opacity: .95;
}
.ii-progress-head b {
    font-size: 26px;
    letter-spacing: -.02em;
}
.ii-progress-bar {
    height: 8px;
    margin: 10px 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
}
.ii-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transition: width .4s ease;
}
.ii-progress-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    opacity: .95;
    font-variant-numeric: tabular-nums;
}

/* isi tabel */
.ii-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
}
.ii-dot-terbit { background: #2563eb; }
.ii-dot-cetak { background: #7c3aed; }
.ii-dot-diterima { background: #ea580c; }
.ii-dot-overdue { background: #ef4444; }
.ii-dot-dibayar { background: #16a34a; }
.ii-col-invoice {
    min-width: 240px;
}
.ii-invoice {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.ii-invoice:hover b {
    color: var(--zc-primary);
}
.ii-doc {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #64748b;
    background: #f1f5f9;
}
.ii-doc-terbit { color: #1d4ed8; background: #dbeafe; }
.ii-doc-cetak { color: #6d28d9; background: #ede9fe; }
.ii-doc-diterima { color: #c2410c; background: #ffedd5; }
.ii-doc-overdue { color: #b91c1c; background: #fee2e2; }
.ii-doc-dibayar { color: #15803d; background: #dcfce7; }
.ii-teks {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ii-teks b {
    font-weight: 600;
    color: var(--zc-text-primary);
    white-space: nowrap;
    transition: color .12s;
}
.ii-teks > span {
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.ii-mono {
    font-variant-numeric: tabular-nums;
}
.ii-belum {
    font-style: italic;
    color: var(--zc-text-secondary) !important;
    font-weight: 500 !important;
}
.ii-link {
    font-weight: 600;
    color: var(--zc-text-primary);
    text-decoration: none;
    white-space: nowrap;
}
.ii-link:hover {
    color: var(--zc-primary);
    text-decoration: underline;
}
.ii-tempo {
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.ii-tempo-lewat { color: #dc2626; font-weight: 600; }
.ii-tempo-dekat { color: #c2410c; font-weight: 600; }
.ii-tempo-ok { color: #15803d; }
.ii-nominal {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--zc-text-primary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ii-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    color: #475569;
    background: #f1f5f9;
}
.ii-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.ii-status-terbit { color: #1d4ed8; background: #dbeafe; }
.ii-status-cetak { color: #6d28d9; background: #ede9fe; }
.ii-status-diterima { color: #c2410c; background: #ffedd5; }
.ii-status-overdue { color: #b91c1c; background: #fee2e2; }
.ii-status-dibayar { color: #15803d; background: #dcfce7; }
.ii-aksi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ii-btn-bayar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    margin-right: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .12s;
}
.ii-btn-bayar:hover {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a;
}
#myTable tbody tr:has(.ii-status-overdue) td:first-child {
    box-shadow: inset 3px 0 0 #ef4444;
}

@media (max-width: 1399.98px) {
    .ii-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ii-progress-card { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
    .ii-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ii-alert { flex-wrap: wrap; }
    .ii-alert-btn { width: 100%; justify-content: center; }
    .ii-bulan { width: 100%; justify-content: space-between; }
}
.ii-teks > span {
    white-space: nowrap;
}
.ii-invoice .ii-teks > span {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ii-tempo {
    white-space: nowrap;
}

/* ===== Status kontrak: LOI / SPK / MOU / SP ===== */
.ki-biru { color: #1d4ed8; background: #dbeafe; }
.ki-ungu { color: #6d28d9; background: #ede9fe; }
.ki-dot.biru { background: #2563eb; }
.ki-dot.ungu { background: #7c3aed; }
.kd-pill-ungu { color: #6d28d9; background: #ede9fe; }
.kf-biru input:checked + span .kf-dot { background: #2563eb; opacity: 1; }
.kf-ungu input:checked + span .kf-dot { background: #7c3aed; opacity: 1; }
.kf-badge-hijau { color: #15803d; background: #dcfce7; }
.kf-badge-kuning { color: #b45309; background: #fef3c7; }
.kf-badge-biru { color: #1d4ed8; background: #dbeafe; }
.kf-badge-ungu { color: #6d28d9; background: #ede9fe; }

/* =====================================================================
   Modal ubah invoice (ie-*) — field memakai gaya kf-*
   ===================================================================== */
.zentic-modal.ie-modal {
    max-width: 760px;
    max-height: calc(100vh - 32px);
    border-radius: 18px;
    padding: 0;
}
.ie-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--zc-border-light);
}
.ie-head h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--zc-text-primary);
}
.ie-head span {
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.ie-tutup {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--zc-text-secondary);
    background: none;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}
.ie-tutup:hover {
    color: var(--zc-text-primary);
    background: var(--zc-body-bg);
    border-color: var(--zc-border-light);
}
.ie-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px 22px;
}
.ie-memuat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 0;
    font-size: 13px;
    color: var(--zc-text-secondary);
}
.ie-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid var(--zc-border-light);
    background: var(--zc-body-bg);
}
.ie-foot-info {
    margin-right: auto;
    font-size: 12px;
    font-weight: 600;
    color: #c2410c;
}
.ie-identitas {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--zc-border-light);
    border-radius: 14px;
    background: var(--zc-body-bg);
}
.ie-identitas b {
    font-size: 13.5px;
    color: var(--zc-text-primary);
}
.ie-identitas .min-w-0 > span {
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.ie-bagian + .ie-bagian {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--zc-border-light);
}
.ie-bagian h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--zc-text-secondary);
}
.ie-bagian h3 i {
    color: var(--zc-primary);
    font-size: 14px;
}
.kf.ie .kf-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.ie-status {
    flex-wrap: wrap;
}
.ie-status .kf-segmen-item {
    flex: 1 1 auto;
}
.ie-tanggal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.ie-nominal .kf-input {
    height: 50px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}
.ie-nominal .kf-prefix {
    font-size: 14px;
}
.ie-nominal .kf-prefix + .kf-input {
    padding-left: 44px;
}
.ie-cek {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}
.ie-cek.beda {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}
@media (max-width: 575.98px) {
    .zentic-modal.ie-modal {
        margin: 0;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }
    .ie-head, .ie-body, .ie-foot { padding-left: 16px; padding-right: 16px; }
}

/* ===== Detail invoice: rincian per jabatan (iv-*) ===== */
.iv-uraian {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.iv-uraian b {
    font-size: 15px;
    color: var(--zc-text-primary);
}
.iv-uraian span {
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.iv-tabel-wrap {
    overflow-x: auto;
    border: 1px solid var(--zc-border-light);
    border-radius: 12px;
}
.iv-tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.iv-tabel th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
    border-bottom: 1px solid var(--zc-border-light);
    white-space: nowrap;
}
.iv-tabel td {
    padding: 12px 14px;
    vertical-align: top;
    border-bottom: 1px solid var(--zc-border-light);
    color: var(--zc-text-primary);
}
.iv-tabel tbody tr:last-child td {
    border-bottom: 0;
}
.iv-tabel td b {
    display: block;
    font-weight: 600;
}
.iv-tabel td small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.iv-no {
    width: 44px;
    text-align: center;
    color: var(--zc-text-secondary) !important;
}
.iv-total {
    font-variant-numeric: tabular-nums;
}
.iv-total-baris {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px;
    font-size: 13px;
    border-bottom: 1px solid var(--zc-border-light);
}
.iv-total-baris > span:first-child {
    color: var(--zc-text-secondary);
}
.iv-total-baris > span:last-child {
    font-weight: 600;
    white-space: nowrap;
}
.iv-total-baris small {
    font-size: 11px;
}
.iv-total-utama {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--zc-primary-xlight);
}
.iv-total-utama span {
    font-size: 13px;
    font-weight: 700;
    color: var(--zc-text-primary);
}
.iv-total-utama b {
    font-size: 20px;
    font-weight: 800;
    color: var(--zc-primary);
    white-space: nowrap;
}
.iv-sisa > span {
    color: var(--zc-text-primary) !important;
    font-weight: 700 !important;
    border: 0;
}
.iv-ringkas {
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
@media print {
    .iv-total-utama {
        background: none;
        border: 1px solid #ccc;
    }
    .d-print-flex { display: flex !important; }
}

/* =====================================================================
   Master data (mm-*): klien, kategori, entitas, cabang, akun bank
   ===================================================================== */
.zentic-modal.mm-modal {
    max-width: 720px;
}
.ki-stats.mm-stats-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ki-stat-em {
    font-style: normal;
    font-size: 13px;
    font-weight: 500;
    color: var(--zc-text-secondary);
}
.mm-stat-teks {
    font-size: 16px !important;
}
.kf .kf-textarea {
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}
.mm-logo-baris {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.mm-upload {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 128px;
    padding: 10px;
    margin: 0;
    text-align: center;
    border: 1.5px dashed var(--zc-border-light);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.mm-upload:hover {
    border-color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.mm-upload input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.mm-upload-preview {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--zc-body-bg);
    color: var(--zc-text-secondary);
    font-size: 26px;
}
.mm-upload-lebar .mm-upload-preview {
    aspect-ratio: 4 / 3;
}
.mm-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mm-upload-lebar .mm-upload-preview img {
    object-fit: cover;
}
.mm-upload-teks b {
    display: block;
    font-size: 12px;
    color: var(--zc-primary);
}
.mm-upload-teks small {
    display: block;
    font-size: 10.5px;
    line-height: 1.3;
    color: var(--zc-text-secondary);
    word-break: break-all;
}
.ki-avatar.mm-ikon-ungu { color: #6d28d9; background: #ede9fe; font-size: 16px; }
.ki-avatar.mm-ikon-biru { color: #1d4ed8; background: #dbeafe; font-size: 16px; }
.ki-avatar.mm-logo,
.ki-avatar.mm-foto {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--zc-border-light);
}
.ki-avatar.mm-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
.ki-avatar.mm-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mm-deskripsi {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 420px;
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.ki-aksi-btn.mm-nonaktif {
    opacity: .35;
    cursor: not-allowed;
}
.ki-status.mm-mini {
    padding: 0 7px;
    margin-left: 4px;
    font-size: 10.5px;
    vertical-align: 1px;
}
.mm-peta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    color: var(--zc-primary);
    text-decoration: none;
    white-space: nowrap;
}
.mm-peta:hover {
    text-decoration: underline;
}
.mm-rekening {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.mm-rekening b {
    font-size: 14px;
    letter-spacing: .04em;
}
.mm-salin {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--zc-text-secondary);
    background: none;
    border: 1px solid var(--zc-border-light);
    border-radius: 8px;
    cursor: pointer;
}
.mm-salin:hover {
    color: var(--zc-primary);
    border-color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
@media (max-width: 991.98px) {
    .ki-stats.mm-stats-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .mm-logo-baris { flex-direction: column; }
    .mm-upload { width: 100%; flex-direction: row; text-align: left; }
    .mm-upload-preview { width: 64px; flex-shrink: 0; }
}
.ie-foot-info.mm-wajib {
    font-weight: 500;
    color: var(--zc-text-secondary);
}

/* ===== Pengguna sistem ===== */
.ki-avatar.mm-bulat {
    border-radius: 50%;
}
.mm-upload-bulat .mm-upload-preview {
    border-radius: 50%;
}
.mm-upload-bulat .mm-upload-preview img {
    object-fit: cover;
}
.mm-role-pilihan {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mm-role {
    margin: 0;
    cursor: pointer;
}
.mm-role input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mm-role span {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-text-secondary);
    border: 1px solid var(--zc-border-light);
    border-radius: 999px;
    transition: all .15s;
}
.mm-role:hover span {
    color: var(--zc-text-primary);
    border-color: color-mix(in srgb, var(--zc-primary) 40%, var(--zc-border-light));
}
.mm-role input:checked + span {
    color: #fff;
    background: var(--zc-primary);
    border-color: var(--zc-primary);
}
.mm-role input:focus-visible + span {
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.kf-field.invalid .mm-role-pilihan .mm-role span {
    border-color: #fca5a5;
}
.mm-password .kf-input {
    padding-right: 44px;
}
.mm-lihat {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--zc-text-secondary);
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.mm-lihat:hover {
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}

/* ===== Hak akses (ha-*) ===== */
.ha-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.ha-roles {
    position: sticky;
    top: 88px;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    overflow: hidden;
}
.ha-roles-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--zc-border-light);
}
.ha-roles-head span {
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.ha-roles-list {
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
}
.ha-role {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    transition: background .12s;
}
.ha-role:hover {
    color: inherit;
    background: var(--zc-body-bg);
}
.ha-role.aktif {
    background: var(--zc-primary-xlight);
}
.ha-role-ikon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #1d4ed8;
    background: #dbeafe;
}
.ha-role-ikon.super {
    color: #b45309;
    background: #fef3c7;
}
.ha-role-teks {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ha-role-teks b {
    font-size: 13.5px;
    color: var(--zc-text-primary);
}
.ha-role-teks span {
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.ha-role-panah {
    font-size: 14px;
    color: var(--zc-text-secondary);
    opacity: 0;
    transition: opacity .12s;
}
.ha-role:hover .ha-role-panah,
.ha-role.aktif .ha-role-panah {
    opacity: 1;
}
.ha-role.aktif .ha-role-teks b {
    color: var(--zc-primary);
}
.ha-panel {
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    overflow: hidden;
}
.ha-panel-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--zc-border-light);
}
.ha-panel-judul {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ha-panel-judul h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--zc-text-primary);
}
.ha-panel-judul p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.ha-panel-judul p b {
    color: var(--zc-primary);
}
.ha-aksi {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ha-cari {
    flex: 0 1 220px;
}
.ha-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 20px 0;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.ha-info i {
    font-size: 16px;
}
.ha-grup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px;
}
.ha-grup {
    border: 1px solid var(--zc-border-light);
    border-radius: 14px;
    overflow: hidden;
}
.ha-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0;
    cursor: pointer;
    transition: background .12s;
}
.ha-item:hover {
    background: var(--zc-body-bg);
}
.ha-grup.ada-anak .ha-item-induk {
    background: color-mix(in srgb, var(--zc-body-bg) 70%, transparent);
    border-bottom: 1px solid var(--zc-border-light);
}
.ha-item-ikon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.ha-item-ikon.kecil {
    width: 30px;
    height: 30px;
    font-size: 14px;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
}
.ha-item-teks {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ha-item-teks b {
    font-size: 13.5px;
    color: var(--zc-text-primary);
}
.ha-item-teks small {
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.ha-anak {
    padding: 4px 0;
}
.ha-anak .ha-item {
    padding-left: 30px;
}
.ha-badge {
    padding: 1px 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--zc-text-secondary);
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 999px;
}
.ha-item .kf-switch {
    min-height: 0;
    flex-shrink: 0;
}
.ha-item:has(.menu-checkbox:checked) .ha-item-ikon.kecil {
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
.ha-simpan {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--zc-border-light);
    background: color-mix(in srgb, var(--zc-card-bg) 94%, transparent);
    backdrop-filter: blur(6px);
}
#ha-status {
    margin-right: auto;
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
#ha-status.berubah {
    font-weight: 600;
    color: #c2410c;
}
@media (max-width: 991.98px) {
    .ha-layout { grid-template-columns: minmax(0, 1fr); }
    .ha-roles { position: static; }
    .ha-roles-list { flex-direction: row; overflow-x: auto; }
    .ha-role { flex: 0 0 auto; }
    .ha-role-panah { display: none; }
}

/* ===== Profil pengguna (pf-*) ===== */
.pf-hero {
    position: relative;
    margin-bottom: 18px;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 18px;
    overflow: hidden;
}
.pf-cover {
    height: 110px;
    background:
        radial-gradient(600px 160px at 15% 0%, rgba(255, 255, 255, .25), transparent 60%),
        linear-gradient(120deg, var(--zc-primary), color-mix(in srgb, var(--zc-primary) 55%, #ec4899));
}
.pf-hero-isi {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0 24px 20px;
    margin-top: -46px;
}
.pf-avatar {
    position: relative;
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    margin: 0;
    border-radius: 50%;
    border: 4px solid var(--zc-card-bg);
    background: var(--zc-primary-xlight);
    box-shadow: 0 8px 22px rgba(16, 24, 40, .14);
    cursor: pointer;
    overflow: hidden;
}
.pf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pf-inisial {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 700;
    color: var(--zc-primary);
}
.pf-avatar input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.pf-avatar-kamera {
    position: absolute;
    inset: auto 0 0 0;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    background: rgba(17, 24, 39, .55);
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}
.pf-avatar:hover .pf-avatar-kamera {
    opacity: 1;
}
.pf-avatar.memuat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%236366f1' stroke-width='5' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 34px no-repeat;
}
.pf-identitas {
    flex: 1;
    min-width: 220px;
    padding-bottom: 4px;
}
.pf-identitas h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--zc-text-primary);
}
.pf-identitas p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin: 0;
    font-size: 13px;
    color: var(--zc-text-secondary);
}
.pf-identitas p > span:not(.ki-status) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pf-hero-meta {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}
.pf-hero-meta > div {
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--zc-body-bg);
}
.pf-hero-meta small {
    display: block;
    font-size: 11px;
    color: var(--zc-text-secondary);
}
.pf-hero-meta b {
    font-size: 13px;
    color: var(--zc-text-primary);
}
.pf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.pf-form-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 20px -20px -20px;
    padding: 14px 20px;
    border-top: 1px solid var(--zc-border-light);
    background: var(--zc-body-bg);
    border-radius: 0 0 16px 16px;
}
.pf-info {
    margin-right: auto;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.pf-catatan {
    margin: 14px 0 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
    border-radius: 10px;
}
.pf-kekuatan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 2px;
}
.pf-kekuatan span {
    height: 4px;
    border-radius: 999px;
    background: var(--zc-body-bg);
    transition: background .2s;
}
.pf-kekuatan[data-skor="0"] span:nth-child(-n+1) { background: #ef4444; }
.pf-kekuatan[data-skor="1"] span:nth-child(-n+1) { background: #f97316; }
.pf-kekuatan[data-skor="2"] span:nth-child(-n+2) { background: #f59e0b; }
.pf-kekuatan[data-skor="3"] span:nth-child(-n+3) { background: #22c55e; }
.pf-kekuatan[data-skor="4"] span { background: #16a34a; }
#pw-cocok.ok { color: #15803d; font-weight: 600; }
#pw-cocok.beda { color: #c2410c; font-weight: 600; }
.pf-tips {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.pf-notif {
    max-width: 760px;
}
.pf-notif-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--zc-border-light);
    border-radius: 14px;
}
.pf-notif-item b {
    display: block;
    font-size: 13.5px;
    color: var(--zc-text-primary);
}
.pf-notif-item small {
    display: block;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.pf-notif-ikon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--zc-primary);
    background: var(--zc-primary-xlight);
}
@media (max-width: 1199.98px) {
    .pf-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .pf-hero-isi { padding: 0 16px 16px; }
    .pf-hero-meta { width: 100%; }
    .pf-hero-meta > div { flex: 1; }
}
.pf-identitas,
.pf-hero-meta {
    padding-top: 54px;
}
@media (max-width: 767.98px) {
    .pf-identitas { padding-top: 0; }
    .pf-hero-meta { padding-top: 0; }
}

/* ===== Dashboard: perlu perhatian (dp-*) ===== */
.dp-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--zc-card-bg);
    border: 1px solid var(--zc-border-light);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    overflow: hidden;
}
.dp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--zc-border-light);
}
.dp-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--zc-text-primary);
}
.dp-head p {
    margin: 1px 0 0;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.dp-ikon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 17px;
}
.dp-ikon.oranye { color: #c2410c; background: #ffedd5; }
.dp-ikon.ungu { color: #6d28d9; background: #ede9fe; }
.dp-jumlah {
    flex-shrink: 0;
    min-width: 30px;
    height: 26px;
    padding: 0 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
}
.dp-jumlah.ada {
    color: #fff;
    background: var(--zc-primary);
}
.dp-ringkas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 10px 18px;
    font-size: 12.5px;
    color: var(--zc-text-secondary);
    background: var(--zc-body-bg);
    border-bottom: 1px solid var(--zc-border-light);
}
.dp-ringkas b {
    color: var(--zc-text-primary);
}
.dp-list {
    list-style: none;
    margin: 0;
    padding: 6px;
}
.dp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    transition: background .12s;
}
a.dp-item:hover {
    color: inherit;
    background: var(--zc-body-bg);
}
a.dp-item:hover .dp-teks b {
    color: var(--zc-primary);
}
.dp-tanggal {
    flex-shrink: 0;
    width: 46px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    line-height: 1.05;
}
.dp-tanggal b {
    font-size: 17px;
    font-weight: 800;
}
.dp-tanggal small {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dp-tanggal.merah, .dp-sisa.merah { color: #b91c1c; background: #fee2e2; }
.dp-tanggal.oranye, .dp-sisa.oranye { color: #c2410c; background: #ffedd5; }
.dp-tanggal.biru, .dp-sisa.biru { color: #1d4ed8; background: #dbeafe; }
.dp-teks {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.dp-teks b {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--zc-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .12s;
}
.dp-teks > span {
    font-size: 12px;
    color: var(--zc-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dp-sisa {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
}
.dp-kosong {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 32px 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--zc-text-secondary);
}
.dp-kosong i {
    font-size: 26px;
    color: #16a34a;
    margin-bottom: 6px;
}
.dp-kosong b {
    color: var(--zc-text-primary);
}
.dp-lainnya {
    display: block;
    margin-top: auto;
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--zc-primary);
    text-decoration: none;
    border-top: 1px solid var(--zc-border-light);
}
a.dp-lainnya:hover {
    background: var(--zc-primary-xlight);
}
/* tombol tandai THR diproses (dashboard) */
.dp-thr {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity .25s, transform .25s;
}
.dp-thr .dp-item {
    flex: 1;
    min-width: 0;
}
.dp-thr.keluar {
    opacity: 0;
    transform: translateX(16px);
}
.dp-proses {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    margin-right: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .12s;
}
.dp-proses:hover {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a;
}
@media (max-width: 575.98px) {
    .dp-proses span { display: none; }
}
/* status THR di detail kontrak */
.thr-status-sel {
    white-space: nowrap;
}
.thr-diproses {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    border-radius: 999px;
}
.thr-proses-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    cursor: pointer;
}
.thr-proses-btn:hover {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a;
}
.thr-proses-btn.batal {
    margin-left: 6px;
    height: 24px;
    padding: 0 8px;
    color: var(--zc-text-secondary);
    background: none;
    border-color: var(--zc-border-light);
}
.thr-proses-btn.batal:hover {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

/* ===== Modal kirim notifikasi (nt-*) ===== */
.zentic-modal.nt-modal {
    max-width: 680px;
}
.nt-roles-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nt-roles-head label {
    font-size: 12.5px;
    font-weight: 600;
}
.nt-roles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}
.nt-role {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    border: 1px solid var(--zc-border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.nt-role:hover {
    border-color: color-mix(in srgb, var(--zc-primary) 40%, var(--zc-border-light));
}
.nt-role input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nt-cek {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: transparent;
    border: 1.5px solid color-mix(in srgb, var(--zc-text-secondary) 50%, transparent);
    border-radius: 6px;
    transition: all .15s;
}
.nt-role input:checked ~ .nt-cek {
    color: #fff;
    background: var(--zc-primary);
    border-color: var(--zc-primary);
}
.nt-role:has(input:checked) {
    border-color: var(--zc-primary);
    background: color-mix(in srgb, var(--zc-primary-xlight) 60%, var(--zc-card-bg));
}
.nt-role input:focus-visible ~ .nt-cek {
    box-shadow: 0 0 0 3px var(--zc-primary-xlight);
}
.nt-role-teks b {
    display: block;
    font-size: 13px;
    color: var(--zc-text-primary);
}
.nt-role-teks small {
    display: block;
    font-size: 11.5px;
    color: var(--zc-text-secondary);
}
.nt-ok {
    color: #15803d;
    font-weight: 600;
}
.nt-role.kosong .nt-role-teks {
    opacity: .7;
}
.nt-template {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--zc-text-secondary);
}
.nt-preview {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f2937, #374151);
}
.nt-preview > small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
}
.nt-preview > small:first-child {
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.nt-preview > small:last-child {
    margin-top: 8px;
}
.nt-notif {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.nt-notif img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
}
.nt-notif-app {
    font-size: 11px;
    color: #6b7280;
}
.nt-notif b {
    display: block;
    font-size: 13px;
    color: #111827;
    overflow-wrap: anywhere;
}
.nt-notif p {
    margin: 0;
    font-size: 12.5px;
    color: #374151;
    overflow-wrap: anywhere;
}
.nt-info {
    font-weight: 600;
    color: var(--zc-text-secondary);
}
.nt-info.nt-siap { color: #15803d; }
.nt-info.nt-warn { color: #c2410c; }
