/* HR-Management. Layout: one working column under a header with an imigongo band; cards only for forms and decisions, reports as plain tables. */
:root {
  --bg: #F2F3EE; --surface: #FFFFFF; --sunk: #E8EAE3; --ink: #1A2220; --muted: #5B6763; --line: #D6DAD1;
  --accent: #1E5A87; --accent-soft: #DCE7F0; --on-accent: #FFFFFF; --ochre: #B07A22; --earth: #2B2420;
  --ok: #2B7749; --ok-soft: #DCEEE2; --warn: #935E00; --warn-soft: #F5E8CF; --bad: #AB382D; --bad-soft: #F5DEDA; --off: #6A7370; --off-soft: #E4E7E2;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111614; --surface: #18201D; --sunk: #0D1110; --ink: #E4EAE6; --muted: #96A29D; --line: #2A3330;
    --accent: #78B2DD; --accent-soft: #1A3246; --on-accent: #0A1520; --ochre: #D6A14A; --earth: #3A2F27;
    --ok: #66BF8B; --ok-soft: #173424; --warn: #E2A94E; --warn-soft: #382A11; --bad: #E7776B; --bad-soft: #3B1D19; --off: #8D9793; --off-soft: #222927;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.02rem; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); text-decoration: none; }
.brand b { font: 700 1.35rem var(--f-display); letter-spacing: -.01em; }
.brand .org { color: var(--muted); font-size: .92rem; }
.who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.imigongo { height: 10px; background:
  linear-gradient(135deg, var(--earth) 25%, transparent 25%) 0 0 / 20px 20px,
  linear-gradient(225deg, var(--earth) 25%, transparent 25%) 0 0 / 20px 20px,
  var(--ochre); }
nav.tabs { display: flex; gap: 2px; overflow-x: auto; padding-top: 10px; border-bottom: 1px solid var(--line); }
.tab { font-weight: 600; font-size: .94rem; color: var(--muted); padding: 10px 14px; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab:hover { color: var(--ink); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font: 600 .75rem/20px var(--f-mono); text-align: center; }
main { padding-block: 24px 64px; display: flex; flex-direction: column; gap: 28px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
form.inline { display: inline; margin: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.narrow { max-width: 460px; width: 100%; margin: 32px auto 0; }
.section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); } .small { font-size: .84rem; }
.eyebrow { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
label.f { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .88rem; min-width: 0; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; min-width: 0; }
input[type="checkbox"] { width: auto; }
input[disabled] { opacity: .7; }
textarea { resize: vertical; min-height: 70px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { display: inline-block; border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font: 600 .92rem var(--f-body); padding: 9px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ok { background: var(--ok); color: var(--surface); }
.btn.bad { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: .82rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.err { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
.note { background: var(--sunk); padding: 10px 12px; border-radius: 8px; font-size: .86rem; color: var(--muted); }
.note b { color: var(--ink); }
.warnbox { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 8px; font-size: .86rem; }
.flash { padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem var(--f-body); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-warn { background: var(--warn-soft); color: var(--warn); } .p-ok { background: var(--ok-soft); color: var(--ok); }
.p-bad { background: var(--bad-soft); color: var(--bad); } .p-off { background: var(--off-soft); color: var(--off); }
.tag { font: 500 .72rem var(--f-mono); padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.balance { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.balance > div { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.balance .big { font: 700 2.4rem/1 var(--f-display); }
.balance .mid { font: 700 1.5rem/1.1 var(--f-display); }
@media (max-width: 700px) { .balance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .balance > div:first-child { grid-column: 1 / -1; } }
.bar-meter { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--sunk); min-width: 60px; }
.bar-meter i { display: block; height: 100%; }
.b-taken { background: var(--accent); } .b-pend { background: var(--ochre); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.apps { display: flex; flex-direction: column; gap: 12px; }
.app { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: start; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: .88rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.track { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.track li { flex: 1 1 150px; display: flex; gap: 8px; padding: 6px 10px 6px 0; font-size: .85rem; min-width: 0; }
.track .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--line); background: var(--surface); }
.t-done .dot, .t-approved .dot { background: var(--ok); border-color: var(--ok); }
.t-rejected .dot { background: var(--bad); border-color: var(--bad); }
.t-current .dot { border-color: var(--warn); background: var(--warn-soft); }
.quote { margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--line); color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sunk); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub { color: var(--muted); font-size: .8rem; }
tr.inactive { opacity: .6; }
.nowrap { white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpis > div { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpis b { font: 700 1.7rem/1.1 var(--f-display); }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 28px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty h3 { color: var(--ink); }
.secret { font: 500 1.25rem var(--f-mono); background: var(--sunk); padding: 10px 14px; border-radius: 8px; letter-spacing: .04em; user-select: all; overflow-wrap: anywhere; }
.orgs { display: flex; flex-direction: column; gap: 8px; }
.orgs button { text-align: left; width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font: inherit; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.orgs button:hover { border-color: var(--accent); }

/* ---------- version 2: workflow, settings, users ---------- */
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.lvl { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 .78rem var(--f-mono); }
.track .lvl { width: 18px; height: 18px; font-size: .68rem; vertical-align: 1px; }
.t-skipped .dot { background: var(--off-soft); border-color: var(--off); border-style: dashed; }
.t-upcoming .dot { border-color: var(--line); }
.warnbox ul, .note ul { margin: 6px 0 0; padding-left: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile b { font-family: var(--f-display); font-size: 1.05rem; }
.levels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.levels li { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 180px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.wf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-step { position: relative; }
.wf-start { display: flex; gap: 10px; align-items: center; padding: 6px 4px; }
.wf-head { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.wf-head .lvl { width: 32px; height: 32px; font-size: .9rem; align-self: center; }
.dept-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 60px auto; gap: 10px; align-items: center; padding: 8px 12px; }
@media (max-width: 700px) { .dept-row { grid-template-columns: minmax(0, 1fr); } }
fieldset.reports { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0; min-width: 0; }
fieldset.reports legend { font-weight: 600; font-size: .88rem; padding: 0 6px; }
fieldset.reports legend .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px 14px; max-height: 260px; overflow-y: auto; }
ul.roles { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- setup steps ---------- */
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; }
.step.on { border-color: var(--accent); color: var(--ink); }
.step.on .lvl { background: var(--accent); color: var(--on-accent); }
details summary { cursor: pointer; }
.secret.small { font-size: .82rem; }

.sendlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sendlist li { padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.sendlist li.ok { background: var(--ok-soft); color: var(--ok); }
.sendlist li.no { background: var(--off-soft); color: var(--muted); }
.sendlist li.ok::before { content: "✓ "; } .sendlist li.no::before { content: "– "; }
