/* Tambahan khusus OpenADM di atas app.css (hasil build Tailwind milik OpenOLT).
 * Ditulis CSS biasa karena build Tailwind tidak bisa dijalankan ulang di mesin
 * ini; memakai var tema yang sama (--color-brand-*, --shadow-*) supaya serasi.
 */

/* ---------------------------------------------------- Tab status pelanggan */
/* Petak berisi jumlah per status sekaligus menjadi penyaring daftar. */
.stat-tab {
  display: block;
  width: 100%;
  cursor: pointer;
  border-radius: 1rem;
  background: var(--color-white);
  padding: 0.75rem 1rem;
  text-align: left;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgb(15 23 42 / 0.06);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.stat-tab:hover {
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgb(15 23 42 / 0.06);
}
.stat-tab-aktif,
.stat-tab-aktif:hover {
  background: var(--color-brand-50);
  box-shadow: var(--shadow-card), inset 0 0 0 2px var(--color-brand-500);
}

/* ------------------------------------------------------------- Grafik */
.chart-grid {
  stroke: rgb(15 23 42 / 0.06);
  stroke-width: 1;
}
.chart-base {
  stroke: rgb(15 23 42 / 0.18);
}
.chart-axis {
  fill: var(--color-slate-400);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.chart-label {
  fill: var(--color-slate-900);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chart-hit {
  fill: transparent;
}
.chart-bar {
  fill: #dfa3e5; /* brand-300, tidak ikut ter-build di app.css */
  transition: fill 0.15s;
}
.chart-bar-now {
  fill: var(--color-brand-600);
}
.chart-col {
  cursor: default;
}
.chart-col-aktif .chart-hit {
  fill: rgb(124 31 135 / 0.05);
}
.chart-col-aktif .chart-bar {
  fill: var(--color-brand-500);
}
.chart-col-aktif .chart-bar-now {
  fill: var(--color-brand-700);
}
.chart-tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  border-radius: 0.75rem;
  background: var(--color-white);
  padding: 0.45rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.4;
  box-shadow: var(--shadow-pop), inset 0 0 0 1px rgb(15 23 42 / 0.08);
}

/* ------------------------------------------------- Ikon kategori aktivitas */
.akt-ikon {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  color: var(--tint);
  background-color: color-mix(in oklab, var(--tint) 10%, var(--color-white));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tint) 20%, transparent);
}
.akt-sky { --tint: var(--color-sky-700); }
.akt-emerald { --tint: var(--color-emerald-700); }
.akt-amber { --tint: var(--color-amber-700); }
.akt-rose { --tint: var(--color-rose-700); }
.akt-brand { --tint: var(--color-brand-600); }
.akt-slate { --tint: var(--color-slate-500); }

/* -------------------------------------------------------- Popup detail */
.popup-detail {
  border-radius: 1rem;
}
.popup-detail .swal2-title {
  font-size: 1rem;
  text-align: left;
  padding: 1.1rem 1.25rem 0;
}
.popup-detail .swal2-html-container {
  margin: 0.5rem 1.25rem 0;
}

/* ------------------------------------------- Utility yang belum ter-build */
/* Padanan persis utility Tailwind yang belum pernah dipakai OpenOLT, jadi tidak
   ada di app.css. Bila kelak build dijalankan ulang, blok ini boleh dibuang. */
.h-56 { height: 14rem; }
.h-full { height: 100%; }
.w-12 { width: 3rem; }
.w-48 { width: 12rem; }
.w-52 { width: 13rem; }
.w-\[34\%\] { width: 34%; }
.mb-1 { margin-bottom: 0.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.min-w-\[30rem\] { min-width: 30rem; }
.min-w-\[48rem\] { min-width: 48rem; }
.min-w-\[60rem\] { min-width: 60rem; }
.break-all { word-break: break-all; }
.text-\[1\.75rem\] { font-size: 1.75rem; }
.text-amber-800 { color: #92400e; }
.ring-amber-600\/15 { --tw-ring-color: rgb(217 119 6 / 0.15); }
@media (min-width: 40rem) {
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 80rem) {
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
