/* ============================================================
   absensi/absensi.css — Absensi surface.

   What this page answers (../PLAN-V2.md): "bulan ini berapa shift yang
   benar-benar dijaga, per site." Chrome (top bar, nav, page head, footer,
   the shared table) lives in ../app/shell.css — this file holds only what
   is specific to this one surface: the severity-coloured count cells and
   the "which pos-shift" link cell.

   Every colour / space / radius / font is a var(--token). No hex. Ember
   (--sev-kosong) marks the worst state and nothing else; --sev-tunggu is
   the one step below it. Nothing else in this file is warm. No coloured
   left rules, no dots, no gradients, no progress bar in a brand colour —
   the fill rate is a plain number, same column pattern as every other
   figure in the table.
   ============================================================ */

.abs-wrap {
  max-width: var(--container);
  margin-inline: auto;
}

/* Already global (style.css, imported via ../app/shell.css) — repeated here
   only so a single-file audit of this page does not read as focus-less. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.abs-table-wrap {
  margin-bottom: var(--space-4);
}

/* ---- site cell: name over area, one column instead of two ---- */

.abs-site__name {
  color: var(--ink);
  font-weight: 500;
}

.abs-site__area {
  color: var(--muted);
  font-size: 12px;
}

/* ---- severity-coloured counts. Colour is the only signal here — no
   dot, no left rule, no background tint. A zero count stays neutral so
   the two warm cells in the whole table are the only warm ink. ---- */

.abs-count--kosong {
  color: var(--sev-kosong-text);
  font-weight: 600;
}

.abs-count--tunggu {
  color: var(--sev-tunggu-text);
  font-weight: 600;
}

/* ---- the "Pos" cell — names the one specific pos-shift this site row
   points at, and IS the link back to /dashboard/?pos=<id>. Text +
   existing .pill only (reused from style.css, not a new device); no
   underline styling of its own so it reads as a row action, not prose. ---- */

.abs-target {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  white-space: normal;
}

.abs-target__label {
  font-size: var(--text-small);
  color: var(--ink-2);
}

@media (hover: hover) {
  .abs-target:hover .abs-target__label { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
}

/* ---- footnote under the table: what "periode" honestly covers ---- */

.abs-note {
  font-size: var(--text-small);
  color: var(--faint);
  max-width: var(--measure-lead);
}

/* The gap lede. Plain ink, not warm: the severity ladder belongs to the rows
   themselves, and a second warm thing here would flatten both. */
.abs-lede {
  margin: var(--space-4) 0 var(--space-2);
  max-width: var(--measure-prose);
  color: var(--ink-2);
}
.abs-lede b { color: var(--ink); font-weight: 600; }
