/*
 * Tema CV Duta Setia untuk panel admin dan portal karyawan (Filament).
 * Warna dari logo: biru tua #1a0e65, merah #ec0507.
 * Berkas ini tidak di-build; Filament memuatnya lewat render hook (App\Support\Tema).
 */
:root {
    --ds-biru: #1a0e65;
    --ds-biru-2: #2d2185;
    --ds-merah: #ec0507;
    --ds-latar: #f5f6fa;
    --ds-garis: #e6e8f0;
    --ds-radius: 14px;
    --ds-bayang: 0 1px 2px rgb(16 8 68 / .04), 0 4px 16px -6px rgb(16 8 68 / .08);
}

/* ---------- Merek (logo + nama) ---------- */
.ds-merek { display: inline-flex; align-items: center; gap: .65rem; height: 100%; }
.ds-merek img { height: 100%; aspect-ratio: 1; border-radius: 999px; background: #fff; flex: none; }
.ds-merek-teks { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.ds-merek-teks strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--ds-biru); }
.ds-merek-teks small { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b6f85; margin-top: .15rem; }
.dark .ds-merek-teks strong { color: #fff; }
.dark .ds-merek-teks small { color: #a5a8c0; }

/* ---------- Kerangka ---------- */
html:not(.dark) .fi-body { background: var(--ds-latar); }

html:not(.dark) .fi-topbar { background: rgb(255 255 255 / .85); backdrop-filter: blur(10px); box-shadow: none; border-bottom: 1px solid var(--ds-garis); }
html:not(.dark) .fi-sidebar { background: #fff; border-inline-end: 1px solid var(--ds-garis); }
.fi-sidebar-header { box-shadow: none !important; }
html:not(.dark) .fi-sidebar-header { background: #fff; border-bottom: 1px solid var(--ds-garis); }

/* Menu samping: item aktif biru muda + garis merah khas logo */
.fi-sidebar-group-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.fi-sidebar-item-btn { border-radius: 10px; position: relative; transition: background-color .15s; }
html:not(.dark) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: #eceaf8; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
    content: ""; position: absolute; inset-inline-start: -.55rem; top: 22%; bottom: 22%;
    width: 3px; border-radius: 3px; background: var(--ds-merah);
}
html:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--ds-biru); font-weight: 700; }
html:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--ds-biru); }

/* Navigasi atas (portal) */
.fi-topbar-item-btn { border-radius: 10px; }
html:not(.dark) .fi-topbar-item.fi-active .fi-topbar-item-btn { background: #eceaf8; }
html:not(.dark) .fi-topbar-item.fi-active .fi-topbar-item-label,
html:not(.dark) .fi-topbar-item.fi-active .fi-topbar-item-icon { color: var(--ds-biru); }

/* ---------- Isi halaman ---------- */
.fi-header-heading { font-weight: 800; letter-spacing: -.02em; }
html:not(.dark) .fi-header-heading { color: #13104a; }

.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-modal-window { border-radius: var(--ds-radius) !important; }
html:not(.dark) .fi-section:not(.fi-section-not-contained),
html:not(.dark) .fi-ta-ctn,
html:not(.dark) .fi-wi-stats-overview-stat { box-shadow: var(--ds-bayang); --tw-ring-color: var(--ds-garis); }

html:not(.dark) .fi-ta-header-cell { background: #fafbfd; }
.fi-ta-header-cell { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }

/* Kartu statistik: garis tipis biru-merah di atas */
.fi-wi-stats-overview-stat { position: relative; overflow: hidden; }
.fi-wi-stats-overview-stat::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--ds-biru) 0 70%, var(--ds-merah) 70% 100%);
}
.fi-wi-stats-overview-stat-value { letter-spacing: -.02em; }

.fi-btn { border-radius: 10px; font-weight: 600; }
.fi-input-wrp { border-radius: 10px; }

/* Lencana paket di topbar admin */
.ds-paket {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
    background: #eceaf8; color: var(--ds-biru);
}
.ds-paket::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ds-merah); }
.dark .ds-paket { background: rgb(255 255 255 / .08); color: #d9d6f5; }

.ds-footer { padding: 1.5rem 1rem 2rem; text-align: center; font-size: .75rem; color: #8a8da3; }

/* ---------- Halaman login ---------- */
html:not(.dark) .fi-simple-layout {
    background:
        radial-gradient(60rem 30rem at 110% -10%, rgb(236 5 7 / .16), transparent 60%),
        radial-gradient(50rem 35rem at -10% 110%, rgb(26 14 101 / .22), transparent 60%),
        var(--ds-latar);
}
.dark .fi-simple-layout {
    background:
        radial-gradient(60rem 30rem at 110% -10%, rgb(236 5 7 / .12), transparent 60%),
        radial-gradient(50rem 35rem at -10% 110%, rgb(84 70 180 / .25), transparent 60%);
}
.fi-simple-main {
    border-radius: 22px !important;
    position: relative; overflow: hidden;
}
html:not(.dark) .fi-simple-main { box-shadow: 0 20px 50px -20px rgb(16 8 68 / .25), 0 0 0 1px var(--ds-garis) !important; }
.fi-simple-main::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--ds-biru) 0 70%, var(--ds-merah) 70% 100%);
}
/* Logo besar bertumpuk di atas form login */
.fi-simple-main .fi-logo { height: auto !important; margin-bottom: 1.25rem; }
.fi-simple-main .ds-merek { flex-direction: column; gap: .75rem; text-align: center; height: auto; }
.fi-simple-main .ds-merek img { height: 5.5rem; width: 5.5rem; box-shadow: 0 8px 24px -10px rgb(26 14 101 / .45); }
.fi-simple-main .ds-merek-teks { align-items: center; }
.fi-simple-main .ds-merek-teks strong { font-size: 1.5rem; }
.fi-simple-main .ds-merek-teks small { font-size: .75rem; }

/* ---------- Halaman laporan ---------- */
.ds-laporan { background: #fff; border: 1px solid var(--ds-garis); border-radius: var(--ds-radius); box-shadow: var(--ds-bayang); overflow: hidden; }
.ds-laporan header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ds-garis); }
.ds-laporan h2 { font-size: 1rem; font-weight: 700; color: var(--ds-biru); margin: 0; }
.ds-laporan header span { font-size: .8rem; color: #6b6f85; }
.ds-laporan-gulir { overflow-x: auto; }
.ds-laporan table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ds-laporan th { text-align: left; font-weight: 600; font-size: .75rem; color: #6b6f85; background: #f8f9fc; padding: .6rem .9rem; white-space: nowrap; }
.ds-laporan td { padding: .55rem .9rem; border-top: 1px solid var(--ds-garis); white-space: nowrap; }
.ds-laporan .n { text-align: right; font-variant-numeric: tabular-nums; }
.ds-laporan tfoot td { font-weight: 700; border-top: 2px solid var(--ds-biru); }
.ds-laporan .kosong { text-align: center; color: #6b6f85; padding: 2rem; }
.dark .ds-laporan { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); }
.dark .ds-laporan h2 { color: #fff; }
.dark .ds-laporan th { background: rgb(255 255 255 / .05); color: #a5a8c0; }
.dark .ds-laporan td, .dark .ds-laporan header { border-color: rgb(255 255 255 / .1); }
@media print {
    .fi-sidebar, .fi-topbar, .fi-header-actions, .ds-laporan-filter { display: none !important; }
    .ds-laporan { box-shadow: none; border: 0; }
    .ds-laporan td, .ds-laporan th { white-space: normal; }
}

/* ======================================================================
 * Dasbor utama (App\Filament\Pages\Dasbor)
 * ==================================================================== */
.ds-ikon-4 { width: 1rem; height: 1rem; flex: none; }
.ds-ikon-5 { width: 1.25rem; height: 1.25rem; flex: none; }
.ds-ikon-8 { width: 2rem; height: 2rem; }
.ds-redup { color: #9a9db3; }

/* Banner sambutan */
.ds-sambutan {
    position: relative; overflow: hidden; border-radius: 20px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: 1.75rem 2rem;
    background:
        radial-gradient(28rem 16rem at 100% 0%, rgb(236 5 7 / .55), transparent 65%),
        radial-gradient(22rem 18rem at 0% 120%, rgb(91 74 214 / .55), transparent 60%),
        linear-gradient(120deg, #1a0e65 0%, #2a1c8f 55%, #1a0e65 100%);
    box-shadow: 0 18px 40px -22px rgb(26 14 101 / .7);
}
.ds-sambutan::after {
    content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 999px;
    border: 36px solid rgb(255 255 255 / .05); pointer-events: none;
}
.ds-sambutan-isi { position: relative; z-index: 1; min-width: 0; }
.ds-sambutan-tanggal { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgb(255 255 255 / .7); margin: 0; }
.ds-sambutan-judul { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: .25rem 0 .4rem; color: #fff; }
.ds-sambutan-teks { font-size: .95rem; color: rgb(255 255 255 / .85); margin: 0; max-width: 46rem; }
.ds-pintas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.ds-pintas-tombol {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: #fff; text-decoration: none;
    background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18);
    transition: background-color .15s, transform .15s;
}
.ds-pintas-tombol:hover { background: rgb(255 255 255 / .22); transform: translateY(-1px); }
.ds-pintas-ikon { width: 1rem; height: 1rem; }

/* Cincin persentase kehadiran */
.ds-cincin {
    --persen: 0; position: relative; z-index: 1; flex: none; width: 128px; height: 128px; border-radius: 999px;
    background: conic-gradient(#fff calc(var(--persen) * 1%), rgb(255 255 255 / .18) 0);
    display: grid; place-items: center;
}
.ds-cincin-dalam {
    width: 100px; height: 100px; border-radius: 999px; background: #22157d;
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.ds-cincin-dalam strong { font-size: 1.6rem; font-weight: 800; }
.ds-cincin-dalam span { font-size: .72rem; color: rgb(255 255 255 / .75); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) {
    .ds-sambutan { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
    .ds-cincin { width: 104px; height: 104px; }
    .ds-cincin-dalam { width: 82px; height: 82px; }
}

/* Kartu statistik: ikon dalam kotak berwarna, angka besar */
.fi-wi-stats-overview-stat-label-ctn .fi-icon {
    width: 2.1rem; height: 2.1rem; padding: .45rem; border-radius: 10px; background: #eceaf8; color: var(--ds-biru);
}
.dark .fi-wi-stats-overview-stat-label-ctn .fi-icon { background: rgb(255 255 255 / .08); color: #c9c4f3; }
.fi-wi-stats-overview-stat { transition: transform .15s; }
.fi-wi-stats-overview-stat:hover { transform: translateY(-2px); }
.fi-wi-stats-overview-stat-value { font-size: 2rem !important; font-weight: 800 !important; }

/* Kartu umum dasbor */
.ds-kartu {
    height: 100%; background: #fff; border: 1px solid var(--ds-garis); border-radius: var(--ds-radius);
    box-shadow: var(--ds-bayang); padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column;
}
.dark .ds-kartu { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); box-shadow: none; }
.ds-kartu-kepala { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.ds-kartu-kepala h2 { font-size: 1rem; font-weight: 700; margin: 0; color: #13104a; }
.dark .ds-kartu-kepala h2 { color: #fff; }
.ds-subjudul {
    display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #7a7e96; margin: .25rem 0 .55rem;
}
.ds-tautan { font-size: .82rem; font-weight: 600; color: var(--ds-biru); text-decoration: none; }
.ds-tautan:hover { text-decoration: underline; }
.dark .ds-tautan { color: #b9b3f0; }
.ds-catatan { font-size: .85rem; color: #8a8da3; margin: .25rem 0; }

.ds-lencana {
    display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem;
    border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eceaf8; color: var(--ds-biru);
}
.ds-lencana-merah { background: #fde8e8; color: #c00406; }
.dark .ds-lencana { background: rgb(255 255 255 / .1); color: #ddd9fb; }

/* Perlu tindakan */
.ds-daftar { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ds-tindakan {
    display: flex; align-items: center; gap: .75rem; padding: .6rem .65rem; border-radius: 12px;
    text-decoration: none; color: inherit; transition: background-color .15s;
}
.ds-tindakan:hover { background: #f4f3fb; }
.dark .ds-tindakan:hover { background: rgb(255 255 255 / .06); }
.ds-tindakan-ikon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; flex: none; }
.ds-warna-biru { background: #eceaf8; color: var(--ds-biru); }
.ds-warna-kuning { background: #fff4dc; color: #b45309; }
.ds-warna-merah { background: #fde8e8; color: #c00406; }
.dark .ds-warna-biru, .dark .ds-warna-kuning, .dark .ds-warna-merah { background: rgb(255 255 255 / .08); }
.ds-tindakan-label { flex: 1; font-size: .9rem; font-weight: 600; }
.ds-tindakan-jumlah { font-size: 1rem; font-weight: 800; color: #13104a; font-variant-numeric: tabular-nums; }
.dark .ds-tindakan-jumlah { color: #fff; }

/* Keadaan kosong */
.ds-kosong { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3rem; padding: 1.5rem .5rem; }
.ds-kosong strong { font-size: .95rem; }
.ds-kosong span:last-child { font-size: .85rem; color: #8a8da3; }
.ds-kosong-ikon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: #e8f7ee; color: #15803d; margin-bottom: .35rem; }
.dark .ds-kosong-ikon { background: rgb(21 128 61 / .2); color: #6ee7a0; }

/* Absen hari ini */
.ds-dua-kolom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .ds-dua-kolom { grid-template-columns: 1fr; } }
.ds-orang { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed var(--ds-garis); }
.ds-orang:last-child { border-bottom: 0; }
.dark .ds-orang { border-color: rgb(255 255 255 / .08); }
.ds-avatar {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; flex: none;
    font-size: .78rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2d2189, #1a0e65);
}
.ds-avatar-redup { background: #e7e8ef; color: #5b5f78; }
.dark .ds-avatar-redup { background: rgb(255 255 255 / .1); color: #c9cbe0; }
.ds-orang-nama { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ds-orang-nama strong { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-orang-nama small { font-size: .76rem; color: #8a8da3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-orang-kanan { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.ds-jam { font-size: .9rem; font-variant-numeric: tabular-nums; }
.ds-pil { font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.ds-pil-hijau { background: #e8f7ee; color: #15803d; }
.ds-pil-kuning { background: #fff4dc; color: #b45309; }
.ds-ikon-tombol { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; color: var(--ds-biru); background: #eceaf8; }
.ds-ikon-tombol:hover { background: #dcd8f4; }

/* Agenda */
.ds-agenda { display: grid; gap: 1rem; }
.ds-agenda-baris { display: flex; justify-content: space-between; gap: .75rem; margin: 0; padding: .35rem 0; font-size: .87rem; }
.ds-agenda-baris strong { font-weight: 600; }
.ds-agenda-baris span { color: #8a8da3; text-align: right; }

/* ======================================================================
 * Komponen umum (semua halaman admin & portal)
 * ==================================================================== */

/* ---------- Judul halaman: kartu dengan garis aksen merek ---------- */
.fi-header {
    position: relative; padding: 1.1rem 1.4rem 1.1rem 1.6rem; border-radius: 18px; overflow: hidden;
}
html:not(.dark) .fi-header {
    background:
        radial-gradient(24rem 10rem at 100% 0%, rgb(236 5 7 / .07), transparent 70%),
        linear-gradient(180deg, #fff, #fbfbfe);
    border: 1px solid var(--ds-garis); box-shadow: var(--ds-bayang);
}
.dark .fi-header { background: rgb(255 255 255 / .03); border: 1px solid rgb(255 255 255 / .08); }
.fi-header::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
    background: linear-gradient(180deg, var(--ds-biru) 0 65%, var(--ds-merah) 65% 100%);
}
.fi-header-heading { font-size: clamp(1.35rem, 2vw, 1.7rem) !important; line-height: 1.2; }
.fi-header-subheading { margin-top: .3rem; font-size: .9rem; max-width: 60rem; }
html:not(.dark) .fi-header-subheading { color: #5f637b; }
.fi-breadcrumbs { margin-bottom: .35rem; }
.fi-breadcrumbs, .fi-breadcrumbs a { font-size: .78rem; }
/* Dasbor utama memakai banner sambutan sebagai judul */
.ds-dasbor .fi-header { display: none; }

/* ---------- Tombol ---------- */
.fi-btn { transition: transform .12s, box-shadow .15s, background-color .15s; }
.fi-btn:active { transform: translateY(1px); }
html:not(.dark) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-disabled) {
    background-image: linear-gradient(135deg, #2d2189, #1a0e65);
    box-shadow: 0 6px 16px -8px rgb(26 14 101 / .6);
}
html:not(.dark) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-disabled):hover {
    background-image: linear-gradient(135deg, #3a2ca3, #22157d);
    box-shadow: 0 8px 20px -8px rgb(26 14 101 / .65);
}
html:not(.dark) .fi-btn.fi-color-danger:not(.fi-outlined) { box-shadow: 0 6px 16px -8px rgb(220 7 9 / .55); }
.fi-icon-btn { border-radius: 10px; }

/* ---------- Lencana: bentuk pil ---------- */
.fi-badge { border-radius: 999px !important; padding-inline: .6rem !important; font-weight: 600; }

/* ---------- Tabel ---------- */
.fi-ta-ctn { border-radius: 18px !important; overflow: hidden; }
html:not(.dark) .fi-ta-ctn { border: 1px solid var(--ds-garis); --tw-ring-shadow: 0 0 #0000; }
html:not(.dark) .fi-ta-header-toolbar { background: #fbfbfe; }
.fi-ta-header-cell { font-weight: 700 !important; }
html:not(.dark) .fi-ta-header-cell, html:not(.dark) .fi-ta-header-cell button { color: #6b6f85; }
html:not(.dark) .fi-ta-row { transition: background-color .12s; }
html:not(.dark) .fi-ta-row:nth-child(even) { background: #fcfcfe; }
html:not(.dark) .fi-ta-row:hover { background: #f4f3fb !important; }
.dark .fi-ta-row:hover { background: rgb(255 255 255 / .03); }
html:not(.dark) .fi-ta-row.fi-selected { background: #eceaf8 !important; }
/* Kolom pertama sedikit lebih menonjol */
html:not(.dark) .fi-ta-row > .fi-ta-cell:first-of-type .fi-ta-text-item { color: #13104a; font-weight: 600; }
html:not(.dark) .fi-ta-row > .fi-ta-cell:first-of-type .fi-ta-text-item .fi-ta-text-description,
html:not(.dark) .fi-ta-row > .fi-ta-cell:first-of-type .fi-ta-text-item + * { font-weight: 400; }

/* Kotak pencarian tabel */
.fi-ta-search-field .fi-input-wrp { border-radius: 999px; }

/* Keadaan kosong tabel */
.fi-ta-empty-state-icon-bg {
    background: linear-gradient(135deg, #eceaf8, #fde8e8) !important; width: 4rem !important; height: 4rem !important;
}
.fi-ta-empty-state-icon-bg .fi-icon { color: var(--ds-biru) !important; }
.dark .fi-ta-empty-state-icon-bg { background: rgb(255 255 255 / .06) !important; }
.dark .fi-ta-empty-state-icon-bg .fi-icon { color: #c9c4f3 !important; }

/* Penomoran halaman */
.fi-pagination-item-btn, .fi-pagination-items { border-radius: 10px; }
html:not(.dark) .fi-pagination-item.fi-active .fi-pagination-item-btn { background: var(--ds-biru); }
html:not(.dark) .fi-pagination-item.fi-active .fi-pagination-item-label { color: #fff; }

/* ---------- Section / kartu form ---------- */
.fi-section { border-radius: 18px !important; }
html:not(.dark) .fi-section:not(.fi-section-not-contained) { border: 1px solid var(--ds-garis); --tw-ring-shadow: 0 0 #0000; }
.fi-section-header-heading { font-weight: 700 !important; letter-spacing: -.01em; }
html:not(.dark) .fi-section-header-heading { color: #13104a; }
.fi-section:not(.fi-section-not-contained) > .fi-section-header { position: relative; }
.fi-section:not(.fi-section-not-contained) > .fi-section-header .fi-section-header-heading::before {
    content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .55rem; border-radius: 3px;
    background: linear-gradient(135deg, var(--ds-biru) 0 60%, var(--ds-merah) 60%); vertical-align: middle; transform: translateY(-1px);
}

/* ---------- Isian form ---------- */
.fi-input-wrp { transition: box-shadow .15s, border-color .15s; }
html:not(.dark) .fi-input-wrp { background: #fff; }
html:not(.dark) .fi-input-wrp:focus-within { box-shadow: 0 0 0 4px rgb(45 33 137 / .12); }
.fi-fo-field-label-content { font-weight: 600 !important; }
html:not(.dark) .fi-fo-field-label-content { color: #2a2d45; }
.fi-fo-field-wrp-helper-text, .fi-fo-field-helper-text { font-size: .78rem !important; }
.fi-fo-repeater-item, .fi-fo-builder-item { border-radius: 14px !important; }
.fi-fo-file-upload .filepond--panel-root { border-radius: 14px; }

/* ---------- Tab ---------- */
.fi-tabs { gap: .35rem !important; }
.fi-tabs-item { border-radius: 999px !important; transition: background-color .15s; }
html:not(.dark) .fi-tabs-item.fi-active { background: var(--ds-biru) !important; }
html:not(.dark) .fi-tabs-item.fi-active .fi-tabs-item-label,
html:not(.dark) .fi-tabs-item.fi-active .fi-icon { color: #fff !important; }
.fi-tabs.fi-contained { border-radius: 14px 14px 0 0; }

/* ---------- Infolist (halaman lihat) ---------- */
.fi-in-entry-label { font-size: .75rem !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 700 !important; }
html:not(.dark) .fi-in-entry-label { color: #7a7e96 !important; }

/* ---------- Modal, dropdown, notifikasi ---------- */
.fi-modal-window { border-radius: 22px !important; overflow: hidden; }
html:not(.dark) .fi-modal-window { box-shadow: 0 30px 60px -20px rgb(16 8 68 / .35) !important; }
.fi-modal-window::before {
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, var(--ds-biru) 0 70%, var(--ds-merah) 70% 100%);
}
.fi-modal-heading { font-weight: 800 !important; letter-spacing: -.01em; }
.fi-dropdown-panel { border-radius: 14px !important; }
html:not(.dark) .fi-dropdown-panel { box-shadow: 0 16px 40px -16px rgb(16 8 68 / .3) !important; }
.fi-no-notification { border-radius: 16px !important; }

/* ---------- Menu samping ---------- */
html:not(.dark) .fi-sidebar-item-btn:hover { background: #f4f3fb; }
html:not(.dark) .fi-sidebar-group-label { color: #9a9db3; }
.fi-sidebar-item-badge-ctn .fi-badge { min-width: 1.35rem; }
html:not(.dark) .fi-sidebar-nav { scrollbar-width: thin; scrollbar-color: #d9dbe7 transparent; }

/* ---------- Grafik widget ---------- */
.fi-wi-chart .fi-section { height: 100%; }

/* ======================================================================
 * Beranda portal karyawan
 * ==================================================================== */
.ds-beranda { display: grid; gap: 1.25rem; }
.ds-sambutan-portal { align-items: stretch; }
.ds-absen-kartu {
    position: relative; z-index: 1; flex: none; min-width: 15rem; border-radius: 16px; padding: 1rem 1.2rem;
    background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(6px);
}
.ds-absen-kartu small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgb(255 255 255 / .7); }
.ds-absen-jam { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .4rem 0 .75rem; }
.ds-absen-jam strong { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ds-absen-tombol {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px;
    background: #fff; color: var(--ds-biru); font-weight: 700; font-size: .85rem; text-decoration: none;
}
.ds-absen-tombol:hover { background: #f1efff; }
.ds-absen-catatan { font-size: .8rem; color: rgb(255 255 255 / .8); margin: 0; }

.ds-ubin-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.ds-ubin {
    position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border-radius: 16px;
    text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--ds-garis); box-shadow: var(--ds-bayang);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ds-ubin:hover { transform: translateY(-3px); border-color: #cfcbef; box-shadow: 0 14px 30px -18px rgb(26 14 101 / .45); }
.dark .ds-ubin { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); box-shadow: none; }
.ds-ubin-ikon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.ds-ubin strong { font-size: .9rem; font-weight: 700; }
.ds-ubin small { font-size: .75rem; color: #8a8da3; margin-top: -.4rem; }
.ds-ubin .ds-lencana { position: absolute; top: .75rem; right: .75rem; }

.ds-grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.ds-saldo { display: grid; gap: .85rem; }
.ds-saldo-baris { display: grid; gap: .35rem; }
.ds-saldo-atas { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.ds-saldo-atas strong { font-variant-numeric: tabular-nums; }
.ds-batang { height: 8px; border-radius: 999px; background: #eceaf8; overflow: hidden; }
.dark .ds-batang { background: rgb(255 255 255 / .08); }
.ds-batang > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2d2189, #1a0e65); }
.ds-pengumuman { display: block; padding: .7rem .2rem; border-bottom: 1px dashed var(--ds-garis); text-decoration: none; color: inherit; }
.ds-pengumuman:last-child { border-bottom: 0; }
.ds-pengumuman strong { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.ds-pengumuman small { display: block; font-size: .78rem; color: #8a8da3; margin-top: .15rem; }
.ds-titik-baru { width: 8px; height: 8px; border-radius: 999px; background: var(--ds-merah); flex: none; }

/* ======================================================================
 * Halaman login dua kolom (admin & portal): panel merek + form bersih
 * ==================================================================== */
.ds-login-sapa { margin: -.25rem 0 .25rem; text-align: center; font-size: .9rem; color: #6b6f85; }
.dark .ds-login-sapa { color: #a5a8c0; }

.ds-login-sisi {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: 2.5rem 3rem;
    background:
        radial-gradient(40rem 26rem at 110% -10%, rgb(236 5 7 / .55), transparent 60%),
        radial-gradient(34rem 30rem at -20% 120%, rgb(99 82 230 / .55), transparent 60%),
        linear-gradient(150deg, #120a4d 0%, #1a0e65 45%, #2a1c8f 100%);
}
.ds-login-grid {
    position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.ds-login-bentuk { position: absolute; z-index: -1; border-radius: 999px; pointer-events: none; }
.ds-login-bentuk-1 { width: 420px; height: 420px; right: -140px; bottom: -120px; border: 60px solid rgb(255 255 255 / .05); }
.ds-login-bentuk-2 { width: 160px; height: 160px; right: 18%; top: 14%; background: radial-gradient(circle at 30% 30%, rgb(236 5 7 / .9), rgb(236 5 7 / .2)); filter: blur(2px); opacity: .55; }

.ds-login-atas { display: flex; align-items: center; gap: .85rem; }
.ds-login-atas img { width: 3rem; height: 3rem; border-radius: 999px; background: #fff; padding: 2px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }
.ds-login-atas strong { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.ds-login-atas span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .7); }

.ds-login-tengah { max-width: 30rem; }
.ds-login-tengah h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin: 0 0 1rem; }
.ds-login-tengah h2 em { font-style: normal; background: linear-gradient(90deg, #fff, #ffb3b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-login-tengah p { font-size: 1rem; line-height: 1.6; color: rgb(255 255 255 / .8); margin: 0 0 1.75rem; }
.ds-login-fitur { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ds-login-fitur li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; font-weight: 500; }
.ds-login-fitur span {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; flex: none;
    background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .15);
}
.ds-login-fitur svg { width: 1.15rem; height: 1.15rem; }
.ds-login-bawah { font-size: .75rem; color: rgb(255 255 255 / .55); margin: 0; }

/* Layar lebar: dua kolom penuh tinggi */
@media (min-width: 1024px) {
    .fi-simple-layout:has(.ds-login-sisi) {
        display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        min-height: 100dvh; padding: 0 !important; background: #fff !important;
    }
    .dark .fi-simple-layout:has(.ds-login-sisi) { background: #0b0a1a !important; }
    .fi-simple-layout:has(.ds-login-sisi) .ds-login-sisi { grid-row: 1 / span 3; min-height: 100dvh; }
    .fi-simple-layout:has(.ds-login-sisi) .fi-simple-main-ctn {
        grid-column: 2; display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; min-height: 100dvh;
    }
    .fi-simple-layout:has(.ds-login-sisi) .fi-simple-main {
        width: 100%; max-width: 26rem; margin: 0; padding: 0 !important; background: transparent !important;
        box-shadow: none !important; border-radius: 0 !important; overflow: visible; --tw-ring-shadow: 0 0 #0000;
    }
    .fi-simple-layout:has(.ds-login-sisi) .fi-simple-main::before { display: none; }
    /* Logo sudah ada di panel kiri: di form cukup judul */
    .fi-simple-layout:has(.ds-login-sisi) .fi-simple-main .fi-logo { display: none; }
    .fi-simple-layout:has(.ds-login-sisi) .ds-footer { grid-column: 2; position: absolute; bottom: 0; right: 0; width: 50%; }
}

/* Layar kecil: panel merek jadi pita ringkas di atas form */
@media (max-width: 1023px) {
    .fi-simple-layout:has(.ds-login-sisi) .ds-login-sisi {
        border-radius: 0 0 28px 28px; padding: 1.4rem 1.4rem 1.6rem; margin-bottom: -2.5rem; gap: .9rem; width: 100%;
    }
    .ds-login-tengah h2 { font-size: 1.45rem; margin-bottom: .4rem; }
    .ds-login-tengah p { font-size: .88rem; margin: 0; }
    .ds-login-fitur, .ds-login-bawah, .ds-login-bentuk-2 { display: none; }
    .fi-simple-layout:has(.ds-login-sisi) .fi-simple-main .fi-logo { display: none; }
    .fi-simple-layout:has(.ds-login-sisi) .fi-simple-main { position: relative; z-index: 1; }
}

/* Form login: judul tegas, isian lebih tinggi, tombol penuh */
.fi-simple-layout:has(.ds-login-sisi) .fi-simple-header-heading { font-size: 1.75rem !important; font-weight: 800 !important; letter-spacing: -.02em; }
html:not(.dark) .fi-simple-layout:has(.ds-login-sisi) .fi-simple-header-heading { color: #13104a; }
.fi-simple-layout:has(.ds-login-sisi) .fi-input-wrp { border-radius: 12px; min-height: 2.9rem; }
.fi-simple-layout:has(.ds-login-sisi) .fi-input { padding-block: .7rem !important; }
.fi-simple-layout:has(.ds-login-sisi) .fi-btn.fi-color-primary { min-height: 2.9rem; border-radius: 12px; font-size: .95rem; }
