/* Area B – Absence, vacation balance, holidays (docs/AREAS.md). Only page-specific rules – shared look comes from theme.css / app.css / components.css. */

/* ---------- report ---------- */
.abs-balance:empty { display: none; }
.abs-balance { margin-bottom: var(--gap); }
.abs-emp { flex: 1 1 220px; max-width: 300px; }
.abs-emp .input { height: 38px; }
.abs-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.abs-who b { font-weight: 600; }
.abs-pick { margin-bottom: 0; }

/* ---------- vacation balance block (one card, CSS bar) ---------- */
.bal-card .card-body { display: grid; gap: 12px; }
.bal-bar { display: flex; height: 12px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.bal-bar i { display: block; height: 100%; }
.bal-taken { background: var(--primary); }
.bal-planned { background: color-mix(in srgb, var(--primary) 45%, var(--surface)); }
.bal-requested { background: repeating-linear-gradient(135deg, var(--warning) 0 6px, color-mix(in srgb, var(--warning) 55%, var(--surface)) 6px 12px); }
.bal-free { background: var(--surface-3); border: 1px solid var(--border); }
.bal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bal-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.bal-fig { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.bal-fig b { font-size: 22px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bal-fig.pos b { color: var(--success); }
.bal-fig.neg b { color: var(--danger); }
@media (max-width: 480px) { .bal-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bal-fig b { font-size: 19px; } }
.abs-hol li.off { color: var(--text-3); }

/* ---------- detail ---------- */
.abs-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); align-items: start; margin-bottom: var(--gap); }
@media (max-width: 1000px) { .abs-grid { grid-template-columns: 1fr; } }
.abs-side:empty { display: none; }
.abs-side > div:empty { display: none; }
.abs-grid .stack > div:empty { display: none; }
.muted-off { opacity: .45; pointer-events: none; }
.abs-days { display: flex; align-items: baseline; gap: 8px; }
.abs-days b { font-size: 34px; font-weight: 760; font-variant-numeric: tabular-nums; color: var(--primary); letter-spacing: -.02em; }
.abs-days span { color: var(--text-2); font-weight: 550; }
.abs-calc { margin: 8px 0; }
.abs-calc li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.abs-calc b { font-variant-numeric: tabular-nums; font-weight: 600; }
.abs-hol li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.abs-hol .mini { color: var(--text-3); font-size: 11px; }
.abs-basis { margin: 8px 0 0; }
.abs-calc + .alert, .abs-basis + .alert, .alert + .alert { margin-top: 8px; }
.abs-team ul { margin: 6px 0; }
.abs-team li { padding: 3px 0; border: 0; }
.abs-team a { font-weight: 600; }

/* status card: three steps requested → decided → cancelled */
.abs-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 6px; align-items: center; }
.abs-steps li { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-3); flex: 1 1 0; min-width: 0; }
.abs-steps li + li::before { content: ""; flex: 0 0 14px; height: 2px; background: var(--border); border-radius: 2px; }
.abs-steps .dot { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 12px; font-weight: 700; }
.abs-steps .dot .icon { width: 14px; height: 14px; stroke: currentColor; }
.abs-steps li.done { color: var(--text); font-weight: 600; }
.abs-steps li.done .dot { background: var(--st-done-bg); color: var(--st-done); }
.abs-steps li.done.bad .dot { background: var(--st-cancelled-bg); color: var(--st-cancelled); }
.abs-steps li[data-optional] { opacity: .6; }
.abs-log li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
.abs-remark { display: block; font-style: normal; color: var(--text-2); margin-top: 2px; }
.abs-wf { gap: 8px; margin-top: 12px; }
.abs-wf:empty { display: none; }
.abs-health .card-head .sub { font-size: var(--fs-xs); }
.abs-au { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
@media (max-width: 480px) { .abs-log li { grid-template-columns: 1fr; gap: 2px; } .abs-steps li { font-size: var(--fs-xs); } .abs-steps li + li::before { flex-basis: 6px; } }

/* ---------- holidays ---------- */
.hol-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 1100px) { .hol-grid { grid-template-columns: 1fr; } }
.report-bar .hol-state { flex: 1 1 240px; max-width: 420px; width: auto; }
.hol-info { padding-top: 0; padding-bottom: 12px; }
.hol-info .row { gap: 8px; align-items: center; }
.hol-info .mini { color: var(--text-3); font-size: 11.5px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-3); }
.hol-tbl tr.hol-weekend td { color: var(--text-3); }
.hol-wd { display: flex; flex-wrap: wrap; gap: 6px; }
.hol-wd .chip { min-width: 42px; justify-content: center; }
.hol-details summary { cursor: pointer; color: var(--text-2); padding: 4px 0; }
@media (max-width: 480px) { .report-bar .hol-state { max-width: 100%; } }
@media (max-width: 480px) { .abs-span { white-space: normal; } }   /* phone: the period wraps so Status stays visible */
