:root {
  --bg: #f4f5f8; --surface: #fff; --surface2: #f8f9fb; --line: #e3e6ec; --text: #1b1f29; --muted: #687083;
  --brand: #1f3a93; --brand-2: #e3e9fb; --accent: #c8102e;
  --ok: #157f47; --ok-bg: #e5f5ec; --warn: #9a5b00; --warn-bg: #fdf1dc; --err: #b42318; --err-bg: #fde8e7; --info: #1f5fa8; --info-bg: #e5effb;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11141b; --surface: #191d26; --surface2: #1f2430; --line: #2c3240; --text: #e6e8ee; --muted: #9aa1b2;
    --brand: #8aa6ff; --brand-2: #243055; --ok: #5fd08f; --ok-bg: #173327; --warn: #f0b44c; --warn-bg: #3a2c12; --err: #ff8a80; --err-bg: #3b1a1a; --info: #7db4ff; --info-bg: #172a45; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; } h3 { font-size: 15px; margin: 0 0 12px; }
small { font-size: 12px; } .muted { color: var(--muted); } .block { display: block; } .nowrap { white-space: nowrap; }
.r { text-align: right; } .c { text-align: center; } .num { font-variant-numeric: tabular-nums; }
.loading { padding: 40px; color: var(--muted); text-align: center; }

/* layout */
#app { display: flex; min-height: 100vh; }
.side { width: 236px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; }
.brand b { display: block; } .brand small { color: var(--muted); }
.logo { width: 36px; height: 36px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (prefers-color-scheme: dark) { .logo { color: #11141b; } }
.side nav { flex: 1; overflow: auto; padding: 4px 8px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); margin-bottom: 2px; }
.side nav a:hover { background: var(--surface2); text-decoration: none; }
.side nav a.on { background: var(--brand-2); color: var(--brand); font-weight: 600; }
.side nav a em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; }
.ni { width: 18px; text-align: center; opacity: .8; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 10px 6px; }
.side-foot { padding: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.crumb { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { text-align: right; line-height: 1.2; } .who small { display: block; color: var(--muted); }
.menu-btn { display: none; }
.view { padding: 24px; max-width: 1280px; width: 100%; }
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; } .actions.col { flex-direction: column; align-items: stretch; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; } .pad { padding: 14px 18px; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card-h h3 { margin: 0; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.dash .card { margin: 0; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi small { color: var(--muted); display: block; } .kpi b { font-size: 24px; display: block; margin: 4px 0; font-variant-numeric: tabular-nums; } .kpi span { font-size: 12px; color: var(--muted); }
.kpi.warn { border-color: var(--warn); }

/* forms */
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .fld > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.fld.chk { flex-direction: row; align-items: center; gap: 8px; grid-column: span 2; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); border-color: var(--brand); }
input:disabled, input[readonly] { background: var(--surface2); color: var(--muted); }
input[type=checkbox] { width: auto; }
.invalid { border-color: var(--err) !important; background: var(--err-bg); }
.form-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
form.card h3:not(:first-child) { margin-top: 22px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.note { background: var(--info-bg); color: var(--info); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; padding: 12px; }

/* buttons */
.btn { font: inherit; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--surface2); text-decoration: none; } .btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #11141b; } }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger-ghost { color: var(--err); } .btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 13px; } .btn.xs { padding: 3px 8px; font-size: 12px; } .btn.block { width: 100%; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--surface2); color: var(--text); } .icon-btn.sm { font-size: 12px; padding: 2px 6px; }
.link { border: 0; background: none; color: var(--brand); cursor: pointer; font: inherit; padding: 0; margin-top: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; cursor: pointer; font: inherit; color: var(--text); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--brand-2); color: var(--brand); font-weight: 600; }

/* tags */
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.err { background: var(--err-bg); color: var(--err); } .tag.info { background: var(--info-bg); color: var(--info); }

/* tables */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface2); }
.tbl .empty, .empty { color: var(--muted); text-align: center; padding: 24px; }
.form-tbl td { padding: 6px; } .form-tbl input, .form-tbl select { padding: 6px 8px; min-width: 110px; }
.tbl-foot { padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.matrix td { font-size: 13px; } .docs th { vertical-align: bottom; } .vt { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 170px; overflow: hidden; display: inline-block; font-weight: 500; }
.ok-mark { color: var(--ok); font-weight: 700; } .no-mark { color: var(--err); font-weight: 700; }
.prog { width: 80px; height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--ok); }

/* people */
.person { display: flex; gap: 10px; align-items: center; } .person small { color: var(--muted); display: block; }
.av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--brand-2); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.av.lg { width: 60px; height: 60px; font-size: 20px; }
.ficha-h { display: flex; gap: 16px; align-items: center; } .ficha-h .grow { flex: 1; min-width: 0; } .ficha-h h1 { margin-bottom: 4px; }
.meta { color: var(--muted); margin-top: 3px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; } .tabs a:hover { text-decoration: none; color: var(--text); }

/* dashboard */
.bars { display: grid; gap: 10px; } .bar-row { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 10px; background: var(--surface2); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 2px 8px; }
.list li small { grid-column: 1; color: var(--muted); } .list li .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.list li:last-child { border-bottom: 0; } .more { display: inline-block; margin-top: 10px; font-size: 13px; }

/* documents */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.doc { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.doc-h { display: flex; gap: 8px; align-items: center; } .doc-h small { margin-left: auto; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.doc.has .dot { background: var(--ok); } .doc.miss .dot { background: var(--err); } .doc.miss { border-color: var(--err-bg); }
.doc-f { display: grid; grid-template-columns: 1fr auto; margin-top: 6px; font-size: 13px; padding-left: 16px; }
.doc-f a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc-f small { color: var(--muted); grid-column: 1; } .doc-f button { grid-row: 1 / span 2; grid-column: 2; }

/* timeline, dl, diff */
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--muted); font-size: 12px; grid-row: span 3; } .timeline span, .timeline small { color: var(--muted); }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; }
.diff { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 10px; }
.diff th, .diff td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; } .diff thead th { background: var(--surface2); color: var(--muted); font-weight: 600; }
.diff tr.chg td:last-child { background: var(--ok-bg); font-weight: 600; } .diff tr.chg td:nth-child(2) { text-decoration: line-through; color: var(--muted); }
.sol.pendiente { border-left: 3px solid var(--warn); }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(10,14,22,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); } .modal-h h3 { margin: 0; }
.modal-b { padding: 18px; overflow: auto; } .modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 8px; z-index: 60; transition: .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: var(--err); color: #fff; }

/* login */
.login-wrap { flex: 1; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 28px; }
.brand.big { padding: 0 0 8px; } .demo-users { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.err-msg { color: var(--err); background: var(--err-bg); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.err-card { border-color: var(--err); color: var(--err); }

/* impresos */
.paper { background: #fff; color: #111; max-width: 800px; margin: 0 auto; padding: 56px 64px; border: 1px solid var(--line); border-radius: 4px; line-height: 1.6; font-size: 14.5px; }
.paper h2 { font-size: 17px; margin: 18px 0; } .paper .right { text-align: right; }
.paper .kv { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; }
.paper .kv th, .paper .kv td { border: 1px solid #ccc; padding: 5px 8px; text-align: left; } .paper .kv th { width: 34%; background: #f4f4f4; }
.clausulas li { margin-bottom: 8px; text-align: justify; }
.firma { margin-top: 70px; } .firma .line { width: 260px; border-top: 1px solid #111; margin-bottom: 4px; }
.firmas { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
@media print {
  .side, .top, .noprint { display: none !important; } body, .view { background: #fff; padding: 0; }
  .paper { border: 0; padding: 0; max-width: none; }
}

/* responsive */
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .span3 { grid-column: span 2; } }
@media (max-width: 760px) {
  .side { position: fixed; left: -260px; z-index: 20; transition: left .2s; box-shadow: 0 0 30px rgba(0,0,0,.2); } .side.open { left: 0; }
  .menu-btn { display: inline-block; } .who { display: none; } .top { padding: 10px 16px; } .view { padding: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; } .fld.chk { grid-column: auto; }
  .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: span 2; }
  .ficha-h { flex-wrap: wrap; } .ficha-h .actions.col { flex-direction: row; width: 100%; }
  .paper { padding: 24px; } .timeline li { grid-template-columns: 1fr; } .timeline time { grid-row: auto; } .dl { grid-template-columns: 1fr; }
}

/* ---------- Fase 2: novedades ---------- */
:root { --vac: #1f5fa8; --vac-bg: #e5effb; --per: #7a4bc2; --per-bg: #efe8fb; --inc: #b42318; --inc-bg: #fde8e7; }
@media (prefers-color-scheme: dark) { :root { --vac: #7db4ff; --vac-bg: #172a45; --per: #c3a4ff; --per-bg: #2b2145; --inc: #ff8a80; --inc-bg: #3b1a1a; } }
.filters.f2 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.filters.f2 .fld.chk { grid-column: auto; }
.steps { display: inline-flex; gap: 3px; }
.steps i { font-style: normal; font-size: 10px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.steps i.done { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.steps i.cur { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.steps i.no { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.steps i.skip { opacity: .4; text-decoration: line-through; }
.saldo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.saldo div { background: var(--surface2); border-radius: 8px; padding: 8px 10px; } .saldo small { display: block; color: var(--muted); } .saldo b { font-size: 18px; font-variant-numeric: tabular-nums; }
.saldo .hl { background: var(--brand-2); color: var(--brand); }
.calc-box { margin-top: 12px; background: var(--surface2); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.calc-box:empty { display: none; }
.calc-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.bar-row.wide { grid-template-columns: minmax(90px, 160px) 1fr 44px; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; padding: 4px 0; }
.day { min-height: 86px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day b { font-size: 12px; } .day small { font-size: 10px; color: var(--err); line-height: 1.1; }
.day.out { border: 0; } .day.hol { background: var(--surface2); } .day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ev { font-size: 11px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.legend .ev { display: inline-block; }
.ev.vac { background: var(--vac-bg); color: var(--vac); } .ev.per { background: var(--per-bg); color: var(--per); } .ev.inc { background: var(--inc-bg); color: var(--inc); }
.ev.pend { background: transparent; border: 1px dashed currentColor; }
@media (max-width: 760px) { .saldo { grid-template-columns: repeat(2, 1fr); } .day { min-height: 60px; } .day small { display: none; } .ev { font-size: 9px; padding: 0 3px; } }
.tbl td.num { white-space: nowrap; }
.page-h .actions input[type=month] { width: auto; }

/* ---------- Fase 3: nómina ---------- */
.warn-t { color: var(--warn); }
.warn-note { background: var(--warn-bg); color: var(--warn); margin: 12px 0; }
.tbl.nom td, .tbl.nom th { padding: 8px 10px; }
.tbl tfoot th { background: var(--surface2); border-top: 1px solid var(--line); text-align: right; }
.tbl tfoot th:first-child { text-align: left; }
.mini h4, .desp h4 { margin: 4px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-t td, .mini-t th { padding: 6px 8px; font-size: 13px; }
.neto-box { display: flex; justify-content: space-between; align-items: center; background: var(--brand-2); color: var(--brand); border-radius: 8px; padding: 10px 14px; margin: 12px 0 6px; }
.neto-box b { font-size: 20px; font-variant-numeric: tabular-nums; }
.desp-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.paper.desprendible { font-size: 13px; line-height: 1.4; } .paper .tbl th { background: #f4f4f4; color: #333; } .paper .tbl td, .paper .tbl th { border-color: #ddd; }
.paper .neto-box { background: #eef1fb; color: #1f3a93; }
.paper .kv th { width: auto; }
.liq-res { margin-top: 14px; }
.page-h .actions input[type=month] { width: auto; }
@media print { .paper .neto-box { border: 1px solid #999; } }

/* ---------- Fase 4: SG-SST ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ind-grid div { background: var(--surface2); border-radius: 8px; padding: 10px 12px; }
.ind-grid small, .ind-grid span { display: block; color: var(--muted); font-size: 12px; } .ind-grid b { font-size: 20px; font-variant-numeric: tabular-nums; }
.minibar { position: relative; height: 18px; background: var(--surface2); border-radius: 4px; min-width: 120px; }
.minibar i { position: absolute; inset: 0 auto 0 0; background: var(--warn-bg); border-right: 2px solid var(--warn); border-radius: 4px; }
.minibar span { position: relative; padding-left: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.kpi.ok-k { border-color: var(--ok); } .kpi.warn-k { border-color: var(--warn); } .kpi.err-k { border-color: var(--err); }
.score-card b { font-size: 40px; display: block; font-variant-numeric: tabular-nums; } .prog.big { width: 100%; height: 10px; margin: 10px 0 6px; }
.gantt td, .gantt th { padding: 6px 4px; } .gantt td:first-child { min-width: 220px; padding-left: 12px; }
.gcell { width: 26px; height: 26px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 700; display: inline-grid; place-items: center; cursor: default; }
.gcell.prog { background: var(--info-bg); color: var(--info); border-color: var(--info); cursor: pointer; }
.gcell.ej { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); cursor: pointer; }
.gcell.venc { background: var(--err-bg); color: var(--err); border-color: var(--err); cursor: pointer; }
.hint .gcell { width: 20px; height: 20px; vertical-align: middle; }
.mes-check, .asist { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 220px; overflow: auto; padding: 6px 0; }
.mes-check label, .asist label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.step-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.step-row b { flex: 1; min-width: 180px; }
.rep-tipos { margin-bottom: 16px; } .card.rep { text-align: left; cursor: pointer; font: inherit; color: var(--text); display: flex; flex-direction: column; gap: 6px; margin: 0; }
.card.rep:hover { border-color: var(--brand); } .card.rep small { color: var(--muted); }
.page-h .actions .tag { align-self: center; }

/* ---------- Fase 5: Academia e inventario ---------- */
.prog-card h3 { margin: 0; } .prog-card .bars { margin: 10px 0 6px; }
.grid.g3 > .card { margin: 0; }
.grid.mb { margin-bottom: 16px; }
