/* ============================================================
   Panel admin Clinqoo — gaya selaras dengan situs utama
   ============================================================ */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: var(--paper, #f7f4ee); }
.side { border-right: 1px solid var(--line, #e4ded2); background: #fbf9f4; padding: 24px 16px 20px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.side__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink, #1b1a16); padding: 0 6px; }
.side__brand b { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; display: block; line-height: 1.1; }
.side__tag { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted, #9a968a); margin-top: 4px; }
.side__nav { display: grid; gap: 2px; }
.side__link { display: flex; align-items: center; padding: 9px 12px; border-radius: 5px; color: #55524a; text-decoration: none; font-size: 13.5px; line-height: 1.3; transition: background .15s ease, color .15s ease; }
.side__link:hover { background: #f1ece1; color: var(--ink, #1b1a16); }
.side__link.is-on { background: #1b1a16; color: #f8f5ee; }
.side__foot { margin-top: auto; padding: 0 6px; font-size: 11.5px; color: var(--muted, #9a968a); display: grid; gap: 7px; line-height: 1.45; }
.side__foot a { color: #55524a; text-decoration: none; border-bottom: 1px solid #d8d1c3; padding-bottom: 1px; }
.side__foot a:hover { color: var(--ink, #1b1a16); border-color: #1b1a16; }

.main { padding: 38px 40px 80px; max-width: 1200px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 33px; font-weight: 500; margin: 0 0 7px; letter-spacing: -0.015em; line-height: 1.1; }
.topbar p { margin: 0; color: var(--muted, #9a968a); font-size: 13px; max-width: 46ch; line-height: 1.55; }

/* --- pemilih rentang --- */
.head-actions { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line, #e4ded2); border-radius: 999px; background: #fffdf9; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font: inherit; font-size: 12.5px; color: #77736a; cursor: pointer; transition: background .15s ease, color .15s ease; line-height: 1.2; }
.seg button:hover { color: var(--ink, #1b1a16); background: #f4efe4; }
.seg button.is-on { background: #1b1a16; color: #faf7f0; }
.seg button:focus-visible { outline: 2px solid #8a5a2b; outline-offset: 1px; }

/* --- kartu angka --- */
.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi__card { border: 1px solid var(--line, #e4ded2); background: #fffdf9; border-radius: 9px; padding: 18px 20px 17px; display: flex; flex-direction: column; gap: 0; transition: border-color .16s ease, transform .16s ease; }
.kpi__card:hover { border-color: #cfc6b4; }
.kpi__card span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #9a968a); margin-bottom: 12px; line-height: 1.3; }
.kpi__card b { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 28px; font-variant-numeric: normal; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink, #1b1a16); }
.kpi__card i { font-style: normal; font-size: 11.5px; color: var(--muted, #9a968a); margin-top: 10px; line-height: 1.45; }

/* --- panel --- */
.panel { border: 1px solid var(--line, #e4ded2); background: #fffdf9; border-radius: 9px; padding: 22px 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 500; margin: 0 0 5px; letter-spacing: -0.01em; }
.panel p.sub { margin: 0 0 18px; color: var(--muted, #9a968a); font-size: 12.5px; line-height: 1.5; }

/* --- tabel --- */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted, #9a968a); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; padding: 0 10px 10px; border-bottom: 1px solid var(--line, #e4ded2); white-space: nowrap; }
table.t td { padding: 12px 10px; border-bottom: 1px solid #f2ede3; vertical-align: middle; line-height: 1.45; }
table.t tr:last-child td { border-bottom: 0; }

/* --- label status tanpa kapsul --- */
.tag { font-size: 12px; color: var(--muted, #9a968a); }
.tag--ok { color: #35566b; }
.tag--wait { color: #8a5a2b; }
.tag--bad { color: #7d3b3b; }
.tag + .tag { margin-left: 8px; }

/* --- aksi --- */
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acts .btn { padding: 5px 11px; font-size: 12px; border-radius: 999px; }

/* --- filter --- */
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { padding: 9px 13px; border: 1px solid var(--line, #e4ded2); border-radius: 999px; font: inherit; font-size: 13px; background: #fffdf9; color: var(--ink, #1b1a16); min-height: 38px; }
.filters input { min-width: 240px; flex: 1 1 240px; max-width: 340px; }
.filters input:focus, .filters select:focus { outline: none; border-color: #b9ae99; box-shadow: 0 0 0 3px rgba(138, 90, 43, .08); }
.filters .btn { border-radius: 999px; padding: 8px 16px; font-size: 12.5px; }

/* --- grafik --- */
.chart { position: relative; margin-top: 4px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: #22211c; transition: fill .15s ease; }
.chart .bar--today { fill: #8a5a2b; }
.chart .bar:hover { fill: #8a5a2b; }
.chart .axis { fill: #a9a496; font-size: 10.5px; font-family: Inter, system-ui, sans-serif; letter-spacing: .02em; }
.chart .grid { stroke: #f0ebe0; stroke-width: 1; }
.chart .area { fill: rgba(27, 26, 22, .06); }
.chart .line { stroke: #22211c; stroke-width: 1.6; fill: none; }
.chart .dot { fill: #22211c; }
.chart-empty { padding: 30px 0; text-align: center; color: var(--muted, #9a968a); font-size: 13px; line-height: 1.6; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.donut { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut svg { width: 128px; height: 128px; flex: none; }
.donut__legend { display: grid; gap: 11px; font-size: 13px; flex: 1 1 150px; }
.donut__legend div { display: flex; align-items: baseline; gap: 8px; color: var(--ink, #1b1a16); flex-wrap: wrap; line-height: 1.4; }
.donut__legend i { width: 9px; height: 9px; border-radius: 2px; display: block; flex: none; transform: translateY(-1px); }
.donut__legend span { color: var(--muted, #9a968a); font-size: 11.5px; }

.rank { display: grid; gap: 15px; }
.rank__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13.5px; align-items: baseline; }
.rank__row .num { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 14px; color: var(--ink, #1b1a16); }
.rank__row .val { font-variant-numeric: tabular-nums; color: var(--ink, #1b1a16); }
.rank__bar { grid-column: 1 / -1; height: 4px; background: #f1ece1; border-radius: 3px; overflow: hidden; }
.rank__bar i { display: block; height: 100%; background: #22211c; border-radius: 3px; }
.rank__row .tag { grid-column: 1 / -1; font-size: 11.5px; }
.muted-note { font-size: 11.5px; color: var(--muted, #9a968a); margin-top: 18px; text-align: center; line-height: 1.6; }

/* --- masuk --- */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 0H0v44' fill='none' stroke='%23efe9df' stroke-width='1'/%3E%3C/svg%3E") var(--paper, #f7f4ee); }
.authcard { width: 100%; max-width: 384px; border: 1px solid var(--line, #e4ded2); background: #fffdf9; border-radius: 10px; padding: 30px; }
.authcard h1 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 500; margin: 16px 0 7px; letter-spacing: -0.015em; }
.authcard p { color: var(--muted, #9a968a); font-size: 13px; margin: 0 0 22px; line-height: 1.55; }

@media (max-width: 1080px) { .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line, #e4ded2); padding: 12px 16px; }
  .side__brand { padding: 0; flex: none; }
  .side__nav { display: flex; gap: 4px; }
  .side__link { padding: 7px 11px; white-space: nowrap; font-size: 13px; }
  .side__foot { margin: 0 0 0 auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
  .main { padding: 24px 18px 64px; }
  .topbar h1 { font-size: 27px; }
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi__card { padding: 15px 16px; }
  .kpi__card b { font-size: 23px; }
  .panel { padding: 18px 16px; }
  .filters input { min-width: 0; max-width: none; }
}

/* penyesuaian akhir */
.kpi__card b { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }
.rank__row .num, .rank__row .val { font-size: 13.5px; }
.rank__row .val { font-family: 'Fraunces', Georgia, serif; }
