/* Bismillaah - Dashboard Proyek */
:root {
    --navy-950: #071533;
    --navy-900: #0b1f4b;
    --navy-800: #12306b;
    --navy-700: #1b4391;
    --biru: #2a78d6;
    --oranye: #eb6834;
    --aqua: #1baf7a;
    --kuning: #eda100;
    --magenta: #e87ba4;
    --hijau: #008300;
    --ungu: #6250d6;
    --merah: #e34948;
    --latar: #f1f4fa;
    --permukaan: #ffffff;
    --teks: #0f1b33;
    --teks-2: #475569;
    --redup: #7a8699;
    --garis: #e4e9f2;
    --radius: 18px;
    --bayang: 0 1px 2px rgba(15, 27, 51, .04), 0 10px 30px -12px rgba(15, 27, 51, .12);
    --lebar-sidebar: 268px;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-primary: #2a78d6;
    --bs-primary-rgb: 42, 120, 214;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }
body { background: var(--latar); color: var(--teks); font-family: var(--bs-body-font-family); font-size: .92rem; }
a { color: var(--biru); }
.text-muted { color: var(--redup) !important; }
.angka { font-variant-numeric: tabular-nums; }

.btn { border-radius: 11px; font-weight: 600; }
.btn-primary { background: var(--biru); border-color: var(--biru); }
.btn-primary:hover { background: #1f66bd; border-color: #1f66bd; }
.form-control, .form-select { border-radius: 11px; border-color: #d8dfeb; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--biru); box-shadow: 0 0 0 .2rem rgba(42, 120, 214, .15); }
.form-label { font-weight: 600; font-size: .8rem; color: var(--teks-2); margin-bottom: .3rem; }
.modal-content { border: 0; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(7, 21, 51, .45); }
.modal-header { border-bottom: 1px solid var(--garis); padding: 1.1rem 1.4rem; }
.modal-footer { border-top: 1px solid var(--garis); }
.modal-title { font-weight: 700; font-size: 1.05rem; }
.dropdown-menu { border-radius: 14px; padding: .4rem; }
.dropdown-item { border-radius: 9px; padding: .5rem .8rem; }

/* ===== Layout ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--lebar-sidebar); z-index: 1040;
    background: radial-gradient(120% 60% at 0% 0%, #1b4391 0%, transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: #dbe5ff; display: flex; flex-direction: column; transition: transform .28s ease;
}
.brand { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.1rem 1rem; }
.brand-logo {
    width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; flex: none;
    background: linear-gradient(135deg, #3b8cf0, #1baf7a); box-shadow: 0 8px 20px -6px rgba(59, 140, 240, .7);
}
.brand-nama { font-weight: 800; color: #fff; letter-spacing: .2px; line-height: 1.15; }
.brand-sub { font-size: .7rem; opacity: .7; }
.btn-tutup-sidebar { margin-left: auto; background: rgba(255, 255, 255, .08); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; }
.menu { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.menu-grup { font-size: .66rem; text-transform: uppercase; letter-spacing: 1.2px; color: #8ea3cf; margin: 1rem .6rem .35rem; font-weight: 700; }
.menu-item {
    display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 12px; color: #c7d4f2; text-decoration: none;
    font-weight: 500; position: relative; transition: background .15s, color .15s;
}
.menu-item i { font-size: 1.05rem; width: 20px; text-align: center; }
.menu-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu-item.aktif { background: linear-gradient(90deg, rgba(59, 140, 240, .35), rgba(59, 140, 240, .08)); color: #fff; font-weight: 600; }
.menu-item.aktif::before { content: ''; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #5ea3ff; }
.sidebar-kaki { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; margin: .5rem .75rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font-size: .85rem; }
.btn-keluar { color: #ffb4b4; font-size: 1.15rem; }
.avatar {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: .85rem;
    background: linear-gradient(135deg, #6250d6, #2a78d6);
}
.avatar.kecil { width: 34px; height: 34px; border-radius: 10px; font-size: .78rem; }
.sidebar-latar { display: none; }

.utama { flex: 1; margin-left: var(--lebar-sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; height: 66px; padding: 0 1.5rem;
    background: rgba(241, 244, 250, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(228, 233, 242, .8);
}
.topbar-judul { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-menu { border: 0; background: #fff; width: 40px; height: 40px; border-radius: 12px; font-size: 1.35rem; box-shadow: var(--bayang); flex: none; }
.chip-jam { align-items: center; gap: .45rem; background: #fff; border-radius: 999px; padding: .4rem .85rem; font-weight: 600; font-size: .8rem; box-shadow: var(--bayang); font-variant-numeric: tabular-nums; }
.btn-pengguna { display: flex; align-items: center; gap: .55rem; background: #fff; border: 0; border-radius: 14px; padding: .3rem .6rem .3rem .3rem; box-shadow: var(--bayang); }
.konten { padding: 1.5rem; flex: 1; }
.kaki { padding: 1rem 1.5rem 1.5rem; color: var(--redup); font-size: .78rem; text-align: center; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); box-shadow: 20px 0 50px rgba(7, 21, 51, .35); }
    .sidebar.buka { transform: none; }
    .sidebar-latar.buka { display: block; position: fixed; inset: 0; background: rgba(7, 21, 51, .45); z-index: 1035; backdrop-filter: blur(2px); }
    .utama { margin-left: 0; }
    .topbar { padding: 0 1rem; height: 60px; }
    .konten { padding: 1rem; }
}

/* ===== Kartu & judul halaman ===== */
.kepala-hal { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.kepala-hal h1 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.kepala-hal p { margin: .25rem 0 0; color: var(--redup); max-width: 720px; }
.ikon-hal { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--biru), var(--ungu)); box-shadow: 0 10px 24px -10px rgba(42, 120, 214, .8); flex: none; }

.kartu { background: var(--permukaan); border-radius: var(--radius); box-shadow: var(--bayang); border: 1px solid rgba(228, 233, 242, .7); }
.kartu-kepala { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem .4rem; flex-wrap: wrap; }
.kartu-judul { font-weight: 700; font-size: .98rem; margin: 0; }
.kartu-sub { font-size: .76rem; color: var(--redup); margin: 0; }
.kartu-isi { padding: .75rem 1.25rem 1.25rem; }
.grafik-wadah { position: relative; height: 300px; }
.grafik-wadah.pendek { height: 240px; }
.grafik-wadah.tinggi { height: 360px; }

.badge-status { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; font-weight: 600; font-size: .72rem; white-space: nowrap; }
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-biru { background: #e6f0fc; color: #1f62b3; }
.st-hijau { background: #e3f6ee; color: #0f7a53; }
.st-kuning { background: #fdf3dc; color: #946300; }
.st-merah { background: #fde8e8; color: #b42828; }
.st-abu { background: #eef1f6; color: #556175; }
.st-ungu { background: #ecebfb; color: #4b3cb3; }

/* ===== Tabel data (berubah jadi kartu di HP) ===== */
.alat { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--garis); }
.alat .form-select, .alat .form-control { width: auto; min-width: 150px; }
.alat .kotak-cari { position: relative; flex: 1 1 220px; max-width: 340px; }
.alat .kotak-cari i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--redup); }
.alat .kotak-cari input { padding-left: 2.2rem; width: 100%; }
.pilih-proyek { min-width: 260px !important; max-width: 100%; font-weight: 600; }
.tbl-data { margin: 0; }
.tbl-data thead th { background: #f7f9fc; color: var(--teks-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; border-bottom: 1px solid var(--garis); padding: .8rem .9rem; white-space: nowrap; }
.tbl-data td { padding: .75rem .9rem; vertical-align: middle; border-color: #eef1f6; }
.tbl-data tbody tr { transition: background .12s; }
.tbl-data tbody tr:hover { background: #f8fafe; }
.tbl-data tfoot td { background: #f7f9fc; font-weight: 700; border-top: 2px solid var(--garis); }
.tbl-data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl-data .aksi { white-space: nowrap; text-align: right; }
.btn-ikon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--garis); background: #fff; color: var(--teks-2); }
.btn-ikon:hover { background: #f1f5fb; color: var(--biru); }
.btn-ikon.bahaya:hover { color: var(--merah); background: #fff3f3; }
.btn-ikon.sukses:hover { color: var(--aqua); background: #effaf5; }
.thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1px solid var(--garis); }
.kosong { text-align: center; padding: 3rem 1rem; color: var(--redup); }
.kosong i { font-size: 2.4rem; display: block; margin-bottom: .5rem; opacity: .5; }
.paging { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1.25rem; flex-wrap: wrap; color: var(--redup); font-size: .82rem; }
.paging .pagination { margin: 0; }
.page-link { border-radius: 9px !important; margin: 0 2px; border: 0; color: var(--teks-2); font-weight: 600; }
.page-item.active .page-link { background: var(--biru); }
.ringkas-total { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: .9rem 1.25rem; background: linear-gradient(90deg, #f3f8ff, #f7fbf9); border-bottom: 1px solid var(--garis); }
.ringkas-total div small { display: block; color: var(--redup); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ringkas-total div b { font-size: 1.1rem; }

@media (max-width: 767.98px) {
    .tbl-kartu thead { display: none; }
    .tbl-kartu, .tbl-kartu tbody, .tbl-kartu tfoot, .tbl-kartu tr, .tbl-kartu td { display: block; width: 100%; }
    .tbl-kartu tbody tr { margin: .75rem; width: auto; border: 1px solid var(--garis); border-radius: 14px; padding: .5rem .25rem; background: #fff; box-shadow: 0 2px 8px rgba(15, 27, 51, .04); }
    .tbl-kartu td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .4rem .85rem; text-align: right !important; }
    .tbl-kartu td::before { content: attr(data-label); font-weight: 600; color: var(--redup); font-size: .76rem; text-align: left; flex: none; max-width: 45%; }
    .tbl-kartu td.utama-sel { font-weight: 700; font-size: .98rem; text-align: left !important; }
    .tbl-kartu td.utama-sel::before { display: none; }
    .tbl-kartu td.aksi { justify-content: flex-end; border-top: 1px dashed var(--garis); margin-top: .35rem; padding-top: .6rem; }
    .tbl-kartu td.aksi::before { display: none; }
    .tbl-kartu tfoot tr { margin: .75rem; width: auto; border-radius: 14px; overflow: hidden; }
    .tbl-kartu tfoot td:empty { display: none; }
    .tbl-kartu tr.baris-grup td::before { display: none; }
    .alat .form-select, .alat .form-control, .alat .kotak-cari { min-width: 0; flex: 1 1 100%; max-width: none; }
    .alat .btn { flex: 1 1 auto; }
    .kepala-hal h1 { font-size: 1.2rem; }
}

/* ===== Dashboard ===== */
.hero {
    position: relative; overflow: hidden; border-radius: 24px; padding: 1.6rem 1.75rem; color: #fff; margin-bottom: 1.25rem;
    background: radial-gradient(80% 120% at 100% 0%, rgba(27, 175, 122, .35), transparent 55%), radial-gradient(70% 120% at 0% 100%, rgba(98, 80, 214, .45), transparent 60%), linear-gradient(135deg, #0b1f4b 0%, #1b4391 100%);
    box-shadow: 0 20px 45px -20px rgba(11, 31, 75, .7);
}
.hero::after {
    content: ''; position: absolute; right: -40px; bottom: -60px; width: 320px; height: 320px; opacity: .08;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 21V9l6-4v4l6-4v4l6-4v16H3zm3-3h2v-3H6v3zm5 0h2v-3h-2v3zm5 0h2v-3h-2v3z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero h1 { font-size: 1.65rem; font-weight: 800; margin: 0; letter-spacing: -.4px; }
.hero .sub { opacity: .8; margin-top: .2rem; }
.hero-jam { text-align: right; }
.hero-jam .jam { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-jam .tgl { opacity: .8; font-size: .85rem; margin-top: .3rem; }
.hero-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; position: relative; z-index: 1; }
.hero-filter .form-select { background-color: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); width: auto; min-width: 170px; backdrop-filter: blur(6px);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.hero-filter .form-select option { color: var(--teks); }
.hero-filter .btn { background: rgba(255, 255, 255, .95); color: var(--navy-900); border: 0; }

.kpi { position: relative; overflow: hidden; border-radius: 20px; padding: 1.15rem 1.2rem; height: 100%; color: #fff; box-shadow: 0 16px 32px -18px rgba(11, 31, 75, .6); }
.kpi.k1 { background: linear-gradient(135deg, #2a78d6, #1b4391); }
.kpi.k2 { background: linear-gradient(135deg, #18a874, #0b7a5a); }
.kpi.k3 { background: linear-gradient(135deg, #6f5ee0, #4733b8); }
.kpi.k4 { background: linear-gradient(135deg, #f0a015, #d9690f); }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.kpi .kpi-ikon { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 1.25rem; }
.kpi .kpi-label { font-size: .78rem; opacity: .85; font-weight: 600; margin-top: .85rem; }
.kpi .kpi-nilai { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .kpi-sub { font-size: .75rem; opacity: .85; margin-top: .25rem; }
.kpi .bar-tipis { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); margin-top: .7rem; overflow: hidden; }
.kpi .bar-tipis span { display: block; height: 100%; background: #fff; border-radius: 6px; transition: width 1s ease; }

.kpi-putih { background: #fff; border-radius: 18px; padding: 1rem 1.1rem; display: flex; gap: .9rem; align-items: center; height: 100%; box-shadow: var(--bayang); border: 1px solid rgba(228, 233, 242, .7); }
.kpi-putih .ik { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.kpi-putih .lbl { font-size: .76rem; color: var(--redup); font-weight: 600; }
.kpi-putih .nil { font-size: 1.35rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-putih .ket { font-size: .72rem; color: var(--redup); }
.ik-biru { background: #e6f0fc; color: var(--biru); }
.ik-hijau { background: #e3f6ee; color: #0f8a5f; }
.ik-merah { background: #fde8e8; color: var(--merah); }
.ik-kuning { background: #fdf3dc; color: #b77b00; }
.ik-ungu { background: #ecebfb; color: var(--ungu); }

.legenda { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .75rem; color: var(--teks-2); }
.legenda span { display: inline-flex; align-items: center; gap: .4rem; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.daftar-progres { max-height: 380px; overflow-y: auto; padding-right: .25rem; }
.item-progres { padding: .7rem 0; border-bottom: 1px dashed var(--garis); }
.item-progres:last-child { border-bottom: 0; }
.item-progres .nm { font-weight: 600; font-size: .85rem; }
.trek { position: relative; height: 10px; border-radius: 10px; background: #eef1f6; overflow: hidden; margin-top: .45rem; }
.trek .real { position: absolute; inset: 0 auto 0 0; border-radius: 10px; background: linear-gradient(90deg, #2a78d6, #4f9bf0); transition: width 1s ease; }
.trek .renc { position: absolute; top: -2px; bottom: -2px; width: 3px; background: var(--teks); border-radius: 2px; }

.perhatian { display: flex; gap: .75rem; padding: .75rem; border-radius: 14px; margin-bottom: .6rem; align-items: flex-start; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border .15s; }
.perhatian:hover { border-color: var(--garis); }
.perhatian .ik { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.perhatian .jd { font-weight: 600; font-size: .84rem; }
.perhatian .dt { font-size: .75rem; color: var(--redup); }

.peta { height: 400px; border-radius: 14px; overflow: hidden; z-index: 0; }
.peta-form { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--garis); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { font-family: var(--bs-body-font-family); margin: 12px 14px; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.pin i { transform: rotate(45deg); color: #fff; font-size: .8rem; }

.skeleton { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 50%, #eef1f6 75%); background-size: 200% 100%; animation: kilau 1.2s infinite; border-radius: 10px; }
@keyframes kilau { to { background-position: -200% 0; } }
.muncul { animation: muncul .5s ease both; }
@keyframes muncul { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 767.98px) {
    .hero { padding: 1.2rem; border-radius: 20px; }
    .hero h1 { font-size: 1.25rem; }
    .hero-jam { text-align: left; margin-top: .75rem; }
    .hero-jam .jam { font-size: 1.5rem; }
    .hero-filter .form-select { min-width: 0; flex: 1 1 45%; }
    .hero-filter .btn { flex: 1 1 100%; }
    .kpi .kpi-nilai { font-size: 1.2rem; }
    .kpi { padding: .95rem; }
    .kpi .kpi-label { margin-top: .6rem; }
    .kpi-putih { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .kpi-putih .nil { font-size: 1.1rem; }
    .grafik-wadah { height: 260px; }
    .peta { height: 320px; }
}

/* ===== Overview ===== */
.ov-hero { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.ov-foto { width: 100%; height: 100%; min-height: 200px; object-fit: cover; border-radius: 16px; }
.cincin { position: relative; width: 150px; height: 150px; }
.cincin canvas { position: absolute; inset: 0; }
.cincin .tengah { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cincin .tengah b { font-size: 1.7rem; font-weight: 800; display: block; line-height: 1; }
.cincin .tengah small { color: var(--redup); font-size: .72rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem 1.25rem; margin-top: 1rem; }
.info-grid div small { display: block; color: var(--redup); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.info-grid div span { font-weight: 600; }
.tim-item { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--garis); }
.tim-item:last-child { border-bottom: 0; }
.linimasa { position: relative; padding-left: 1.4rem; }
.linimasa::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--garis); }
.lm-item { position: relative; padding-bottom: 1.1rem; }
.lm-item::before { content: ''; position: absolute; left: -1.4rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--biru); }
.lm-foto { width: 100%; max-width: 220px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-top: .5rem; }
@media (max-width: 767.98px) {
    .ov-hero { grid-template-columns: 1fr; }
    .cincin { margin: 0 auto; }
}

/* ===== Form progres & RAPP ===== */
.item-input { display: grid; grid-template-columns: 1fr 140px; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--garis); }
.item-input .form-range { margin-top: .3rem; }
.grup-judul { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--biru); margin: 1rem 0 .25rem; }
.lekat-atas { position: sticky; top: -1px; z-index: 5; background: #fff; padding: .75rem 0; border-bottom: 1px solid var(--garis); }
.baris-grup td { background: #f3f7fd !important; font-weight: 700; color: var(--navy-800); }
.input-rapp { max-width: 170px; margin-left: auto; text-align: right; }
.selisih-plus { color: #0f8a5f; font-weight: 600; }
.selisih-minus { color: var(--merah); font-weight: 600; }
.bilah-simpan { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--garis); padding: .8rem 1.25rem; display: flex; gap: .75rem; align-items: center; justify-content: flex-end; border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 575.98px) {
    .item-input { grid-template-columns: 1fr; }
    .input-rapp { max-width: none; }
}

/* ===== Hak akses ===== */
.tbl-hak td, .tbl-hak th { text-align: center; }
.tbl-hak td:first-child, .tbl-hak th:first-child { text-align: left; }
.tbl-hak .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }

/* ===== Login ===== */
.halaman-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-kiri {
    position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(70% 60% at 100% 0%, rgba(27, 175, 122, .45), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(98, 80, 214, .55), transparent 60%), linear-gradient(135deg, #0b1f4b, #1b4391);
}
.login-kiri h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.8px; line-height: 1.15; }
.login-kiri .fitur { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 2rem; max-width: 520px; }
.login-kiri .fitur div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: .9rem 1rem; backdrop-filter: blur(6px); font-size: .85rem; }
.login-kiri .fitur i { font-size: 1.3rem; display: block; margin-bottom: .35rem; color: #8fd3ff; }
.login-kanan { display: grid; place-items: center; padding: 2rem 1.25rem; }
.kotak-login { width: 100%; max-width: 400px; }
.kotak-login h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -.4px; }
.kotak-login .form-control { padding: .8rem 1rem .8rem 2.8rem; border-radius: 14px; background: #f6f8fc; border-color: #e6ebf3; }
.kotak-login .grup-ikon { position: relative; }
.kotak-login .grup-ikon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--redup); }
.kotak-login .btn-primary { padding: .8rem; border-radius: 14px; font-size: 1rem; box-shadow: 0 12px 24px -12px rgba(42, 120, 214, .9); }
@media (max-width: 991.98px) {
    .halaman-login { grid-template-columns: 1fr; }
    .login-kiri { padding: 2rem 1.5rem 3.5rem; }
    .login-kiri h1 { font-size: 1.6rem; }
    .login-kiri .fitur { display: none; }
    .login-kanan { margin-top: -2rem; background: #fff; border-radius: 26px 26px 0 0; position: relative; }
}

@media print {
    .sidebar, .topbar, .kaki, .no-print { display: none !important; }
    .utama { margin: 0; }
    .kartu, .kpi { box-shadow: none; break-inside: avoid; }
}
@media (max-width: 767.98px) {
    .tbl-kartu tfoot { display: none !important; }
}
.spin { display: inline-block; animation: putar .8s linear infinite; }
@keyframes putar { to { transform: rotate(360deg); } }
.flex-none { flex: none; }
.input-rapp.i-vol { min-width: 96px; }
.input-rapp.i-harga { min-width: 130px; }
.tbl-data td.text-nowrap { white-space: nowrap; }
