/* ============================================================
   TAMPILAN v2 — laut Maluku (biru-teal) + kuning buah pala
   Rangka: menu samping, filter tahun di atas, kartu infografis
   ============================================================ */
:root {
  --bg: #EEF3F4; --surface: #FFFFFF; --ink: #10283A; --muted: #587080; --line: #DAE4E7;
  --deep: #0B3A4D; --deep2: #0F5560; --teal: #0F7C80; --teal-pudar: #B9D9DA; --pala: #E0A526;
  --cuti: #9B7FD0; --kosong: #D8573C;
  --l0: #F0F4F5; --l1: #CFE8E6; --l2: #98CFCB; --l3: #5BB0AC; --l4: #208D8C; --l5: #0B5F66;
  --radius: 16px; --bayang: 0 1px 2px rgba(11,58,77,.05), 0 6px 18px -8px rgba(11,58,77,.14);
  --sisi-w: 244px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A1A22; --surface: #12262F; --ink: #E6EEF1; --muted: #92A7B1; --line: #223F4A;
  --deep: #071318; --deep2: #0C3039; --teal: #3FB7B2; --teal-pudar: #24504F; --pala: #F0BB45;
  --l0: #16303A; --l1: #1C4447; --l2: #1F5E5E; --l3: #268380; --l4: #36A8A2; --l5: #6ED4CB;
  --bayang: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px -8px rgba(0,0,0,.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1A22; --surface: #12262F; --ink: #E6EEF1; --muted: #92A7B1; --line: #223F4A;
    --deep: #071318; --deep2: #0C3039; --teal: #3FB7B2; --teal-pudar: #24504F; --pala: #F0BB45;
    --l0: #16303A; --l1: #1C4447; --l2: #1F5E5E; --l3: #268380; --l4: #36A8A2; --l5: #6ED4CB;
    --bayang: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px -8px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Figtree, system-ui, sans-serif; }
a { color: var(--teal); }
h1, h2, h3 { font-family: "Bricolage Grotesque", Figtree, sans-serif; margin: 0; line-height: 1.12; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3.sub { font-size: .92rem; margin: 18px 0 6px; color: var(--muted); font-family: Figtree, sans-serif; font-weight: 600; }
code { background: var(--l0); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
kbd { font: 600 .7rem Figtree, sans-serif; background: var(--l0); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--muted); }
:focus-visible { outline: 3px solid var(--pala); outline-offset: 2px; border-radius: 6px; }
.redup { color: var(--muted); }
.ik { flex: none; display: block; }
[hidden] { display: none !important; }

/* ---------- Rangka ---------- */
.app { display: grid; grid-template-columns: var(--sisi-w) minmax(0, 1fr); min-height: 100vh; }
.sisi { background: linear-gradient(180deg, var(--deep) 0%, var(--deep2) 100%); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 0 8px; }
.brand-mark svg { fill: var(--pala); display: block; }
.brand strong { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 1.2rem; }
.brand small { display: block; opacity: .7; font-size: .76rem; margin-top: -2px; }
.menu { display: flex; flex-direction: column; gap: 3px; }
.menu a { display: flex; gap: 11px; align-items: center; color: #CFE2E6; text-decoration: none; padding: 10px 12px; border-radius: 11px; font-weight: 500; }
.menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu a.aktif { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--pala); }
.sisi-bawah { margin-top: auto; display: grid; gap: 10px; }
.sisi-btn { display: flex; gap: 9px; align-items: center; justify-content: center; color: var(--deep); background: var(--pala); text-decoration: none; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .88rem; }
.sisi-btn:hover { filter: brightness(1.07); }
.sisi-info { margin: 0; font-size: .75rem; opacity: .65; text-align: center; line-height: 1.4; }
.sisi-tirai { display: none; }

.utama { min-width: 0; display: flex; flex-direction: column; }
.atas { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.burger { display: none; }
.ikon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ikon-btn:hover { border-color: var(--teal); color: var(--teal); }
.ik-gelap { display: none; }
:root[data-theme="dark"] .ik-terang { display: none; } :root[data-theme="dark"] .ik-gelap { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ik-terang { display: none; } :root:not([data-theme="light"]) .ik-gelap { display: block; } }
.tahun-pilih { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tahun-pilih a { padding: 6px 13px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tahun-pilih a:hover { background: var(--l0); }
.tahun-pilih a.aktif { background: var(--deep); color: #fff; }
:root[data-theme="dark"] .tahun-pilih a.aktif { background: var(--teal); color: #06222A; }
.tahun-pilih a.segera { color: var(--muted); font-weight: 500; border: 1px dashed var(--line); }
.tahun-pilih a.segera.aktif { background: var(--l0); color: var(--ink); }
.atas-kanan { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cari-btn { display: inline-flex; gap: 8px; align-items: center; height: 38px; padding: 0 10px 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 .88rem Figtree, sans-serif; cursor: pointer; }
.cari-btn:hover { border-color: var(--teal); color: var(--ink); }
.isi { padding: 8px 28px 24px; flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; }
.kaki { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 28px 22px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.notice { background: color-mix(in srgb, var(--pala) 20%, var(--surface)); border: 1px solid var(--pala); padding: 10px 14px; border-radius: 12px; margin: 14px 0 0; font-size: .9rem; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 0; cursor: pointer; text-decoration: none; background: var(--pala); color: #3B2A00;
  padding: 10px 18px; border-radius: 12px; font: 700 .9rem Figtree, sans-serif; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.panel .btn.ghost, .modal .btn.ghost { background: var(--l0); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.kecil { padding: 6px 12px; font-size: .82rem; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin: 22px 0 18px; padding: 34px 36px 70px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, #17808A 0%, rgba(23,128,138,0) 55%), linear-gradient(135deg, var(--deep) 0%, var(--deep2) 100%); }
.hero-kecil { padding: 28px 36px 30px; }
.hero-teks, .hero-ring, .profil { position: relative; z-index: 2; }
.hero-sub { margin: 0 0 8px; font-size: .88rem; opacity: .75; font-weight: 500; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: #CFE2E6; max-width: 58ch; }
.hero .lead b { color: #fff; }
.lead { color: var(--muted); max-width: 62ch; margin: 12px 0 0; font-size: 1.02rem; }
.lead b { color: var(--ink); }
.hero-aksi { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-ring { display: grid; justify-items: center; gap: 8px; font-size: .84rem; color: #CFE2E6; }
.hero-tide { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; z-index: 1; }
.hero-tide .area { width: 100%; height: 100%; display: block; }
.area-isi { fill: rgba(224,165,38,.28); } .area-garis { fill: none; stroke: var(--pala); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero-pegawai { padding-bottom: 34px; }
.profil { display: flex; gap: 20px; align-items: center; }

.cincin { --u: 64px; position: relative; display: inline-grid; place-items: center; width: var(--u); height: var(--u); }
.cincin svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cincin circle { fill: none; stroke-width: 3.4; }
.c-dasar { stroke: var(--l0); } .c-isi { stroke: var(--pala); stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.hero .c-dasar { stroke: rgba(255,255,255,.16); }
.cincin b { font: 800 calc(var(--u) * .27) "Bricolage Grotesque", system-ui, sans-serif; }

/* ---------- Avatar ---------- */
.avatar { --av: var(--teal); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--av); color: #fff; font: 700 .7rem Figtree, sans-serif; flex: none; }
.avatar.kecil { width: 24px; height: 24px; font-size: .62rem; }
.avatar.besar { width: 78px; height: 78px; font-size: 1.6rem; font-family: "Bricolage Grotesque", system-ui, sans-serif; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }

/* ---------- Pemilih ---------- */
.pilih-bulan { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); padding: 5px; border-radius: 13px; border: 1px solid var(--line); margin-bottom: 18px; width: fit-content; max-width: 100%; }
.pilih-bulan a, .pilih-bulan span { padding: 6px 11px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .86rem; }
.pilih-bulan a.sepi { color: var(--muted); font-weight: 500; }
.pilih-bulan a:hover { background: var(--l0); }
.pilih-bulan a.aktif { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .pilih-bulan a.aktif { color: #06222A; }
.pilih-bulan .tidak-ada { color: var(--line); cursor: not-allowed; }
.pilih-bulan .setahun { border-left: 1px solid var(--line); border-radius: 0 9px 9px 0; margin-left: 2px; }
.baris-pilih { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 4px; }
.baris-pilih .pilih-bulan { margin-bottom: 0; }
.pilih-select { display: grid; gap: 3px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.pilih-select select, .form-cari select, .form-cari input { font: 500 .95rem Figtree, sans-serif; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.pilih-orang { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 16px; scrollbar-width: thin; }
.pilih-orang a { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; }
.pilih-orang a:hover { border-color: var(--teal); }
.pilih-orang a.aktif { background: var(--deep); color: #fff; border-color: var(--deep); }
:root[data-theme="dark"] .pilih-orang a.aktif { background: var(--teal); color: #06222A; border-color: var(--teal); }

/* ---------- Kartu angka ---------- */
.kartu-angka { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kartu { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--bayang); display: grid; gap: 2px; align-content: start; text-decoration: none; color: var(--ink); }
.kartu-ik { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--teal) 14%, var(--surface)); color: var(--teal); margin-bottom: 10px; }
.kartu b { font: 800 2.15rem/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; }
.kartu-judul { font-weight: 600; margin-top: 6px; }
.kartu small { color: var(--muted); font-size: .8rem; }
.kartu-tahun:hover { border-color: var(--teal); transform: translateY(-2px); transition: transform .15s; }
.kartu-tahun .kartu-judul { font: 700 1.15rem "Bricolage Grotesque", sans-serif; margin: 0 0 8px; }
.delta { font-size: .78rem; font-weight: 700; margin: 4px 0; } .delta.naik { color: #1E8F5A; } .delta.turun { color: var(--kosong); }
.meter { display: block; height: 6px; background: var(--l0); border-radius: 9px; margin: 8px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--pala); border-radius: 9px; }

.temuan { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.temuan article { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--pala) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pala) 35%, var(--line)); }
.temuan-ik { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pala); color: #3B2A00; flex: none; }
.temuan small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.temuan b { display: block; font: 700 1.1rem "Bricolage Grotesque", sans-serif; line-height: 1.2; }
.temuan span:not(.temuan-ik) { color: var(--muted); font-size: .82rem; }

/* ---------- Panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; min-width: 0; box-shadow: var(--bayang); }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.panel-alat { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 > .panel, .grid-2 > div > .panel { margin-bottom: 18px; }
.grid-2.lebar-kiri { grid-template-columns: 1.55fr 1fr; }
.grid-2.lebar-kanan { grid-template-columns: 330px 1fr; align-items: start; }
.chart-box { position: relative; width: 100%; }
.saring-kecil { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--muted); }
.saring-kecil input { border: 0; background: transparent; font: 500 .9rem Figtree, sans-serif; color: var(--ink); padding: 9px 0; width: 170px; outline: none; }
.saring-kecil:focus-within { border-color: var(--teal); }
.saring-kecil.lebar { flex: 1; min-width: 240px; } .saring-kecil.lebar input { width: 100%; }

/* ---------- Papan kegiatan ---------- */
.legenda { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; font-size: .8rem; color: var(--muted); align-items: center; flex-wrap: wrap; }
.legenda li { display: flex; gap: 5px; align-items: center; }
.legenda .sel { width: 16px; height: 16px; cursor: default; }
.papan-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px 6px; }
.papan { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: calc(170px + var(--kolom) * 30px); }
.papan th { font-weight: 600; font-size: .74rem; color: var(--muted); text-align: center; padding: 0 0 4px; }
.papan th.akhir-pekan { color: var(--kosong); opacity: .75; }
.papan .nama-kol { text-align: left; white-space: nowrap; padding-right: 10px; width: 160px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.papan tbody .nama-kol a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.papan tbody .nama-kol a:hover { color: var(--teal); }
.papan td { padding: 0; }
.papan .jml { font: 700 .95rem "Bricolage Grotesque", system-ui, sans-serif; text-align: right; padding-left: 8px; color: var(--ink); }
.sel { display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-width: 24px; border: 0; border-radius: 6px; font: 600 .72rem Figtree, sans-serif; cursor: pointer; text-decoration: none; padding: 0; color: transparent; transition: transform .12s; }
.sel:hover { transform: scale(1.18); position: relative; z-index: 2; }
.sel.l0 { background: var(--l0); } .sel.l1 { background: var(--l1); } .sel.l2 { background: var(--l2); }
.sel.l3 { background: var(--l3); } .sel.l4 { background: var(--l4); } .sel.l5 { background: var(--l5); }
.papan .sel.l1, .papan .sel.l2 { color: #0B4A50; } .papan .sel.l3, .papan .sel.l4, .papan .sel.l5 { color: #fff; }
:root[data-theme="dark"] .papan .sel.l1, :root[data-theme="dark"] .papan .sel.l2 { color: #D9F3F0; }
.sel.libur { background: repeating-linear-gradient(135deg, var(--l0) 0 4px, transparent 4px 7px); cursor: default; }
.sel.nanti { background: transparent; border: 1px dashed var(--line); cursor: default; }
.sel.cuti { background: var(--cuti); }
.sel.kosong { background: transparent; box-shadow: inset 0 0 0 2px var(--kosong); }
.sel.tak { background: transparent; cursor: default; }

/* ---------- Kalender tahunan (profil pegawai) ---------- */
.kal-scroll { overflow-x: auto; padding-bottom: 6px; }
.kal { --kol: 53; --k: 17px; width: max-content; }
.kal-bln { display: grid; grid-template-columns: repeat(var(--kol), var(--k)); gap: 3px; font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.kal-bln span { white-space: nowrap; }
.kal-sel { display: grid; grid-template-columns: repeat(var(--kol), var(--k)); grid-template-rows: repeat(7, var(--k)); gap: 3px; }
.kal-k { width: var(--k); height: var(--k); min-width: 0; aspect-ratio: auto; border-radius: 4px; }
.kal-k.redam { opacity: .3; } .kal-k:disabled { cursor: default; }
.kal-k.l0, .kal-k.tak { background: var(--l0); }
.kal-k.tak { opacity: .55; }

/* ---------- Daftar kategori, peringkat ---------- */
.donut-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; }
.chart-box.donut { height: 190px; }
.kat-list { list-style: none; margin: 0; padding: 0; }
.kat-list li { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kat-list li:last-child { border-bottom: 0; }
.kat-list li > i, .kat-list a > i { width: 12px; height: 12px; border-radius: 4px; }
.kat-list small { color: var(--muted); width: 38px; text-align: right; }
.kat-list .bar { grid-column: 2 / -1; display: block; height: 4px; background: var(--l0); border-radius: 4px; overflow: hidden; }
.kat-list .bar em { display: block; height: 100%; border-radius: 4px; }
.kat-list .avatar.kecil { margin: 0; }
.kat-list.bisa-klik li { display: block; padding: 0; }
.kat-list.bisa-klik a { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px 8px; align-items: center; padding: 8px 6px; color: var(--ink); text-decoration: none; border-radius: 9px; }
.kat-list.bisa-klik a:hover { background: var(--l0); }
.kat-list.bisa-klik li.aktif a { background: var(--l1); }
.peringkat { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.peringkat a { display: grid; grid-template-columns: 28px minmax(70px, 120px) 1fr 40px 46px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.peringkat li { display: grid; grid-template-columns: 26px 1fr; align-items: center; }
.peringkat a:hover { background: var(--l0); }
.peringkat .no { font: 700 .86rem "Bricolage Grotesque", sans-serif; color: var(--muted); text-align: center; }
.peringkat .r1 .no, .peringkat .r2 .no, .peringkat .r3 .no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; }
.peringkat .r1 .no { background: #D9A21B; } .peringkat .r2 .no { background: #8FA3AD; } .peringkat .r3 .no { background: #B87444; }
.pr-nama { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peringkat .bar { display: block; height: 8px; background: var(--l0); border-radius: 9px; overflow: hidden; }
.peringkat .bar em { display: block; height: 100%; border-radius: 9px; }
.peringkat b { text-align: right; font-family: "Bricolage Grotesque", sans-serif; }
.peringkat .kep { text-align: right; color: var(--muted); font-weight: 600; font-size: .8rem; }

.awan { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.awan a { color: var(--ink); text-decoration: none; font: 600 1rem "Bricolage Grotesque", system-ui, sans-serif; line-height: 1.3; }
.awan a:hover { color: var(--teal); }
.awan sup { font: 500 .62rem Figtree, system-ui, sans-serif; color: var(--muted); margin-left: 2px; }
.chip-saran { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-saran a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip-saran a:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Catatan harian ---------- */
.linimasa { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hari { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); }
.tgl { text-align: center; line-height: 1.1; }
.tgl b { display: block; font: 800 1.7rem "Bricolage Grotesque", sans-serif; }
.tgl span { display: block; font-weight: 700; font-size: .8rem; color: var(--teal); }
.tgl small { color: var(--muted); font-size: .72rem; }
.isi-hari ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.isi-hari li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; }
.isi-hari li > i { width: 10px; height: 10px; border-radius: 3px; margin-top: 7px; }
.pill-cuti, .pill-kosong { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.pill-cuti { background: color-mix(in srgb, var(--cuti) 22%, var(--surface)); color: var(--cuti); }
.pill-kosong { background: color-mix(in srgb, var(--kosong) 16%, var(--surface)); color: var(--kosong); }
.link-file { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .88rem; }

/* ---------- Pencarian ---------- */
.form-cari { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.form-cari label { display: grid; gap: 4px; font-size: .78rem; color: var(--muted); font-weight: 600; min-width: 0; }
.form-cari .btn { height: 42px; }
.hasil { list-style: none; margin: 0; padding: 0; }
.hasil li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hasil li:last-child { border-bottom: 0; }
.hasil p { margin: 0 0 3px; }
.hasil small { color: var(--muted); }
.tag { font-style: normal; font-weight: 600; font-size: .74rem; padding: 2px 9px; border-radius: 999px; margin-left: 6px; color: var(--tag); background: color-mix(in srgb, var(--tag) 14%, var(--surface)); }
mark { background: color-mix(in srgb, var(--pala) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Tabel ---------- */
.tabel-scroll { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabel th { text-align: left; background: var(--l0); font-weight: 700; padding: 0; white-space: nowrap; }
.tabel th:first-child { border-radius: 10px 0 0 10px; } .tabel th:last-child { border-radius: 0 10px 10px 0; }
.tabel .urut { all: unset; cursor: pointer; display: block; padding: 10px 14px; font-weight: 700; }
.tabel th:not(:has(.urut)) { padding: 10px 14px; }
.tabel .urut:hover { color: var(--teal); }
.tabel td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabel tbody tr:hover td { background: var(--l0); }

/* ---------- Keadaan kosong ---------- */
.kosong-besar { max-width: 640px; margin: 60px auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.kosong-besar h1 { font-size: 2rem; }
.kosong-besar ol { text-align: left; color: var(--muted); }
.kosong-ik { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: color-mix(in srgb, var(--pala) 22%, var(--surface)); color: var(--pala); }
.err { background: color-mix(in srgb, var(--kosong) 12%, var(--surface)); border: 1px solid var(--kosong); border-radius: 12px; padding: 10px 14px; margin: 0; }
.kosong-panel { text-align: center; padding: 36px; }
.ajak { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border-color: var(--pala); }
.ajak p { margin: 4px 0 0; max-width: 60ch; }

/* ---------- Jendela ---------- */
.modal { border: 0; border-radius: 20px; padding: 26px; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(7,19,24,.55); backdrop-filter: blur(3px); }
.modal-tutup { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--l0); color: var(--ink); cursor: pointer; }
.modal-sub { margin: 0 0 4px; color: var(--muted); font-size: .86rem; }
.modal h3 { font-size: 1.5rem; margin-bottom: 12px; }
.modal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 50vh; overflow: auto; }
.modal-list li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.modal-list li > i { width: 10px; height: 10px; border-radius: 3px; margin-top: 7px; }
.modal-list small { display: block; color: var(--muted); font-size: .76rem; }
.modal-aksi { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.modal-aksi .link-file { margin: 0; }
.palet { padding: 0; top: 12vh; margin-top: 0; overflow: hidden; }
.palet-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palet-input input { flex: 1; border: 0; background: transparent; font: 500 1.05rem Figtree, sans-serif; color: var(--ink); outline: none; }
#paletList { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow: auto; }
#paletList li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
#paletList li.aktif, #paletList li:hover { background: var(--l1); }
#paletList li.kosong { cursor: default; color: var(--muted); background: transparent; }
#paletList small { color: var(--muted); font-size: .76rem; }
.palet-info { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

/* ---------- Layar kecil ---------- */
@media (max-width: 1100px) {
  .grid-2, .grid-2.lebar-kiri, .grid-2.lebar-kanan { grid-template-columns: 1fr; }
  .form-cari { grid-template-columns: 1fr 1fr; } .form-cari .kolom-q { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sisi { position: fixed; inset: 0 auto 0 0; width: min(280px, 84vw); transform: translateX(-102%); transition: transform .22s; box-shadow: 10px 0 40px rgba(0,0,0,.35); }
  .sisi.buka { transform: none; }
  .sisi.buka + .sisi-tirai { display: block; position: fixed; inset: 0; background: rgba(7,19,24,.5); z-index: 35; }
  .burger { display: grid; }
  .atas { padding: 10px 14px; } .isi { padding: 4px 14px 20px; } .kaki { padding: 14px; }
  .cari-btn span, .cari-btn kbd { display: none; } .cari-btn { width: 38px; padding: 0; justify-content: center; }
  .hero { padding: 24px 20px 64px; border-radius: 20px; } .hero-pegawai, .hero-kecil { padding-bottom: 24px; }
  .donut-wrap { grid-template-columns: 1fr; } .chart-box.donut { height: 180px; }
  .peringkat a { grid-template-columns: 28px 1fr 40px; } .peringkat .bar, .peringkat .kep { display: none; }
  .hari { grid-template-columns: 56px 1fr; gap: 10px; }
  .profil { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .form-cari { grid-template-columns: 1fr; } .kartu b { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Cetak ---------- */
@media print {
  .sisi, .atas, .hero-aksi, .pilih-bulan, .pilih-orang, .baris-pilih, .kaki, .saring-kecil, .btn, .panel-alat .legenda { display: none !important; }
  .app { display: block; } body { background: #fff; color: #000; }
  .hero { background: #fff !important; color: #000; padding: 0 0 12px; } .hero .lead, .hero .lead b, .hero-sub { color: #000; }
  .hero-tide { display: none; } .panel, .kartu { box-shadow: none; break-inside: avoid; }
  .isi { padding: 0; max-width: none; }
}

/* ---------- Link spreadsheet sumber ---------- */
.sisi-sheet { display: grid; gap: 2px; padding: 0 4px; }
.sisi-sheet p { margin: 0 8px 6px; font-size: .74rem; opacity: .6; font-weight: 600; }
.sisi-sheet a, .sisi-sheet .belum { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: .86rem; color: #CFE2E6; text-decoration: none; }
.sisi-sheet a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sisi-sheet a.aktif { color: var(--pala); font-weight: 600; }
.sisi-sheet .belum { opacity: .5; } .sisi-sheet .belum small { font-size: .72rem; }
.tabel td a { display: inline-flex; gap: 5px; align-items: center; }
.kaki a { color: var(--teal); }
@media print { .sisi-sheet { display: none !important; } }
