/* FilterTanggal — gaya. Warna mengikuti tempatnya: --ft-bg/--ft-tx/--ft-ac diisi otomatis dari elemen induk
   (latar, warna teks, variabel aksen proyek --accent/--primary/...). Bisa ditimpa: .ft-pop{--ft-ac:#d97757} */
.ft { display: inline-block; max-width: 100%; }
.ft-pemicu {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 10px; padding: 8px 12px; line-height: 1.3;
}
.ft-pemicu:hover, .ft-pemicu[aria-expanded="true"] { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.ft-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-panah { opacity: .6; font-size: .85em; }

.ft-pop {
  --ft-bg: #fff; --ft-tx: #1d2330; --ft-ac: #2563eb;
  --ft-ln: color-mix(in srgb, var(--ft-tx) 14%, transparent);
  --ft-mut: color-mix(in srgb, var(--ft-tx) 58%, transparent);
  --ft-rg: color-mix(in srgb, var(--ft-ac) 18%, var(--ft-bg));
  --ft-acs: color-mix(in srgb, var(--ft-ac) 12%, var(--ft-bg));
  position: fixed; z-index: 2147483000; display: none; overflow: auto;
  background: var(--ft-bg); color: var(--ft-tx); font-size: 14px; line-height: 1.4;
  border: 1px solid var(--ft-ln); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.ft-pop.ft-gelap { box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
.ft-pop.buka { display: block; }
.ft-pop *, .ft-pop *::before { box-sizing: border-box; }
.ft-pop button { font: inherit; color: inherit; cursor: pointer; }
.ft-isi { display: flex; }
.ft-kiri { display: flex; flex-direction: column; gap: 2px; padding: 8px; min-width: 150px; border-right: 1px solid var(--ft-ln); }
.ft-kiri button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.ft-kiri button:hover { background: var(--ft-acs); }
.ft-kiri button.on { background: var(--ft-acs); color: var(--ft-ac); font-weight: 600; }
.ft-kanan { display: flex; gap: 18px; padding: 12px; }
.ft-kal { width: 252px; user-select: none; }
.ft-kp { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 600; }
.ft-nav { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; font-size: 18px; }
button.ft-nav:hover { background: var(--ft-acs); }
.ft-g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
.ft-h { font-size: 11px; color: var(--ft-mut); padding: 4px 0; }
.ft-d { border: 0; background: none; height: 34px; border-radius: 0; font-size: 13.5px; }
.ft-d:hover:not(.awal):not(.akhir):not(:disabled) { background: var(--ft-acs); border-radius: 8px; }
.ft-d.lain { color: var(--ft-mut); opacity: .5; }
.ft-d.kini { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ft-d.dlm { background: var(--ft-rg); }
.ft-d.awal, .ft-d.akhir { background: var(--ft-ac); color: #fff; }
.ft-d.awal { border-radius: 10px 0 0 10px; }
.ft-d.akhir { border-radius: 0 10px 10px 0; }
.ft-d.awal.akhir { border-radius: 10px; }
.ft-d:disabled { opacity: .28; cursor: default; }
.ft-bawah { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-top: 1px solid var(--ft-ln); color: var(--ft-mut); font-size: 13px; }
.ft-aksi { display: flex; gap: 8px; margin-left: auto; }
.ft-btn { border: 1px solid var(--ft-ln); background: var(--ft-bg); border-radius: 9px; padding: 7px 14px; }
.ft-ok { background: var(--ft-ac); border-color: var(--ft-ac); color: #fff !important; }
.ft-ok:disabled { opacity: .45; cursor: default; }

.ft-gagang, .ft-judul { display: none; }
.ft-tirai { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 2147482999; display: none; }
.ft-tirai.buka { display: block; }

/* HP: panel dari bawah layar (pilihan no. 3) — daftar preset besar + tanggal, kalender 1 bulan saat "Pilih tanggal…" */
.ft-pop.ft-hp { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; max-width: 520px; margin: 0 auto;
  max-height: 88vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 6px 16px calc(14px + env(safe-area-inset-bottom));
  font-size: 15px; animation: ft-naik .22s ease-out; }
@keyframes ft-naik { from { transform: translateY(100%); } to { transform: none; } }
.ft-pop.ft-hp .ft-gagang { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--ft-ln); margin: 4px auto 10px; }
.ft-pop.ft-hp .ft-judul { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.ft-pop.ft-hp .ft-isi { flex-direction: column; }
.ft-pop.ft-hp .ft-kiri { padding: 0; border-right: 0; min-width: 0; gap: 0; }
.ft-pop.ft-hp .ft-kiri button { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--ft-ln); }
.ft-pop.ft-hp .ft-kiri button:hover { background: none; }
.ft-pop.ft-hp .ft-kiri button small { color: var(--ft-mut); font-size: 13px; font-weight: 400; }
.ft-pop.ft-hp .ft-kiri button.on { background: none; color: var(--ft-ac); }
.ft-pop.ft-hp .ft-kiri button.on small::after { content: " ✓"; color: var(--ft-ac); font-weight: 700; }
.ft-pop.ft-hp .ft-kanan { justify-content: center; padding: 10px 0 0; }
.ft-pop.ft-hp .ft-kal { width: 100%; max-width: 360px; }
.ft-pop.ft-hp .ft-d { height: 40px; font-size: 15px; }
.ft-pop.ft-hp .ft-bawah { padding: 12px 0 0; border-top: 0; }
.ft-pop.ft-hp .ft-draf { width: 100%; text-align: center; }
.ft-pop.ft-hp .ft-aksi { width: 100%; margin: 0; }
.ft-pop.ft-hp .ft-btn { flex: 1; padding: 12px; font-size: 15px; }
