/* Dasbor admin LabaJelas: tambahan di atas /app/styles.css (gaya datar, warna merek, tanpa gradasi). */

.adm-filter { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 28px; background: var(--bg, var(--cream)); border-bottom: 2px solid var(--line); }
.adm-filter[hidden] { display: none; }
.adm-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-custom[hidden] { display: none; }
.adm-custom input { height: 34px; }
.adm-range { font-size: 12.5px; }
.adm-test { font-weight: 600; font-size: 13px; }
.adm-search { width: 320px; max-width: 100%; }
.adm-note { margin: 8px 0 0; }
.adm-slim { padding: 12px 16px; }
.adm-stack { display: grid; gap: 12px; }
.adm-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content .kpis { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.adm-kpis-sm .kpi-value { font-size: 20px; }
.adm-pager { margin-top: 14px; justify-content: center; }
.seg-wrap { flex-wrap: wrap; }
.chip.delta { font-size: 10.5px; padding: 1px 6px; vertical-align: 1px; }
.neg { color: var(--bad); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 700; }

/* peringkat batang: label lebih lebar dari bawaan aplikasi */
.adm-bars .usage-row { grid-template-columns: minmax(110px, 190px) minmax(60px, 1fr) auto; }
.adm-bars .usage-month { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bars .usage-num { white-space: nowrap; text-align: right; }

/* kohort retensi: makin pekat makin bertahan */
.adm-cohort td, .adm-cohort th { text-align: center; }
.adm-cohort td:first-child, .adm-cohort th:first-child { text-align: left; white-space: nowrap; }
.adm-r { font-weight: 700; border-radius: 6px; }
.adm-r.r1 { background: #fff8d6; color: #6b5a00; }
.adm-r.r2 { background: #ffeb99; color: #5a4a00; }
.adm-r.r3 { background: #ffdd4d; color: #3d3200; }
.adm-r.r4 { background: #ffd403; color: #1d1a19; }
.adm-r.r5 { background: #1d1a19; color: #ffd403; }
.adm-legend { margin-top: 12px; gap: 6px; }
.adm-legend-chip { padding: 3px 10px; font-size: 12px; }

/* peta hari aktif */
.adm-heatwrap { display: grid; gap: 8px; }
.adm-heatgrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.adm-heat { width: 13px; height: 13px; border-radius: 3px; background: var(--surface-3, #f1ece5); border: 1px solid var(--line); }
.adm-heat.on { background: var(--yellow); border-color: var(--outline); }
.adm-heat.future { background: transparent; border-color: transparent; }

/* follow-up */
.adm-fu { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-fu-cats { display: grid; gap: 6px; position: sticky; top: 70px; }
.adm-fu-cat { display: flex; align-items: center; gap: 10px; justify-content: space-between; text-align: left; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.adm-fu-cat:hover { border-color: var(--outline); }
.adm-fu-cat.on { border-color: var(--outline); background: var(--yellow); color: #1d1a19; box-shadow: 3px 3px 0 var(--outline); }
.adm-fu-count { min-width: 26px; text-align: center; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.adm-fu-count.zero { background: var(--line); color: var(--muted); }
.adm-fu-main { min-width: 0; }
.adm-tpl { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.adm-tpl summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.adm-tpl[open] summary { margin-bottom: 10px; }
.adm-textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); resize: vertical; }
.adm-textarea:focus { outline: none; border-color: var(--outline); box-shadow: 0 0 0 3px var(--yellow); }
.adm-var { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; background: var(--surface-3, #f1ece5); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; margin: 2px 4px 2px 0; word-break: break-all; }

/* kreator */
.adm-plat { display: grid; grid-template-columns: 150px 1fr 1.4fr; gap: 8px; margin-top: 6px; }
.adm-plat select, .adm-plat input { width: 100%; }
.adm-payout { margin-top: 14px; padding: 12px; border: 2px solid var(--outline); border-radius: var(--radius-sm); background: var(--yellow); color: #1d1a19; }
.adm-payout input { min-width: 220px; background: #fff; }

.side-foot .foot-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.side-foot button.side-out { font: inherit; font-size: 12px; }

@media (max-width: 1100px) { .adm-fu { grid-template-columns: 1fr; } .adm-fu-cats { position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-width: 960px) { .adm-filter { padding: 10px 16px; } .adm-kpis-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .adm-plat { grid-template-columns: 1fr; } .adm-range { width: 100%; } .adm-bars .usage-row { grid-template-columns: 92px minmax(40px, 1fr) auto; } }

:root[data-theme="dark"] .adm-r.r1 { background: #2f2706; color: #ffe680; }
:root[data-theme="dark"] .adm-r.r2 { background: #4a3d07; color: #ffe680; }
:root[data-theme="dark"] .adm-r.r3 { background: #7a6400; color: #fff4c7; }
:root[data-theme="dark"] .adm-r.r5 { background: #ffd403; color: #1d1a19; }
