/* Gestor de finanzas Arrimetal — interfaz de operaciones */
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #16202c;
  --ink-2: #4a5666;
  --ink-3: #7b8696;
  --line: #e3e6eb;
  --line-2: #eef0f3;
  --brand: #12324f;
  --brand-2: #1d4a72;
  --accent: #0f7b8a;
  --accent-soft: #e3f3f5;
  --red: #c8372d;
  --red-soft: #fbebea;
  --amber: #b7791f;
  --amber-soft: #fdf3e1;
  --green: #2f855a;
  --green-soft: #e6f4ec;
  --gray-soft: #eef0f3;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -.005em; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
small, .muted { color: var(--ink-3); }
code, .mono { font-family: var(--mono); font-size: 12px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand); color: #c9d6e3; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; padding: 4px 8px 18px; letter-spacing: .01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #2bb0bf, #0f7b8a); display: grid; place-items: center; font-size: 13px; color: #fff; }
.brand small { display: block; color: #8fa6bd; font-weight: 500; font-size: 11px; }
.nav-group { margin: 10px 0 4px; padding: 0 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #7f97ae; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #d5e0ea; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.nav .count { background: rgba(255,255,255,.14); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.nav .count.hot { background: var(--red); }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.sidebar-foot button { background: none; border: 0; color: #9fb3c7; padding: 0; cursor: pointer; font: inherit; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar form { flex: 1; max-width: 520px; }
.search { width: 100%; padding: 8px 12px 8px 34px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237b8696' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; font: inherit; }
.search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); background-color: #fff; }
.topbar .who { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-2); }
.topbar .who b { color: var(--ink); display: block; font-size: 13px; }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }
.content { padding: 24px 28px 60px; max-width: 1440px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.panel.flush { padding: 0; }
.panel.flush > h2, .panel-head { padding: 14px 18px 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; }
.panel-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.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)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }

/* ---------- KPI ---------- */
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: block; color: inherit; }
a.kpi:hover { text-decoration: none; border-color: #c9d1db; }
.kpi .label { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .value.sm { font-size: 19px; }
.kpi .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kpi.red { border-left: 4px solid var(--red); }
.kpi.amber { border-left: 4px solid var(--amber); }
.kpi.green { border-left: 4px solid var(--green); }
.kpi.accent { border-left: 4px solid var(--accent); }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; }
.section-title h2 { margin: 0; }
.money-stack div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line-2); font-variant-numeric: tabular-nums; }
.money-stack div:last-child { border: 0; }
.money-stack span:first-child { color: var(--ink-2); }
.money-stack b { font-weight: 600; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; position: sticky; top: 0; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:hover td { background: #fbfcfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
tr.dim td { color: var(--ink-3); }
.table-foot { padding: 10px 14px; color: var(--ink-3); font-size: 12px; }

/* ---------- chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--gray-soft); color: var(--ink-2); white-space: nowrap; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.brand { background: #e6edf5; color: var(--brand-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot.rojo { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dot.amarillo { background: #e0a526; box-shadow: 0 0 0 3px var(--amber-soft); }
.dot.verde { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot.gris { background: #a7b0bc; box-shadow: 0 0 0 3px var(--gray-soft); }
.mig { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: var(--gray-soft); color: var(--ink-2); }
.mig.NEEDS_REVIEW { background: var(--amber-soft); color: var(--amber); }
.mig.INCOMPLETE { background: #eef2ff; color: #4c51bf; }
.mig.DUPLICATE_SUSPECTED, .mig.INVALID { background: var(--red-soft); color: var(--red); }
.mig.VERIFIED { background: var(--green-soft); color: var(--green); }

/* ---------- progress ---------- */
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; min-width: 70px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar.fin > span { background: var(--brand-2); }
.bar.cob > span { background: var(--green); }
.bar-row { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); margin: 3px 0; }
.bar-row b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #d5dae1; border-radius: 7px; background: #fff; color: var(--ink); }
textarea { min-height: 64px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=checkbox] { width: auto; margin-right: 6px; }
.field { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); font-size: 13px; }
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; font-weight: 400; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 7px; border: 1px solid #cdd3db; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f6f7f9; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--red); border-color: #efc3bf; }
.btn.sm { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.btn.ghost { border-color: transparent; background: transparent; }
.inline { display: inline; }
.row-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-form input, .row-form select { width: auto; min-width: 110px; padding: 5px 8px; font-size: 12.5px; }
details.edit > summary { cursor: pointer; list-style: none; color: var(--brand-2); font-weight: 600; font-size: 12.5px; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 6px; }

/* ---------- flashes / notes ---------- */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; border: 1px solid; font-weight: 500; }
.flash.ok { background: var(--green-soft); border-color: #bfe2cd; color: #22543d; }
.flash.warn { background: var(--amber-soft); border-color: #f1d9a9; color: #7b4f10; }
.flash.error { background: var(--red-soft); border-color: #f2c4c0; color: #8a2119; }
.note { background: #f7f9fb; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; color: var(--ink-2); font-size: 13px; margin-bottom: 12px; }
.note.warn { border-left-color: var(--amber); background: #fffaf0; }
.note.red { border-left-color: var(--red); background: #fff7f6; }
.empty { text-align: center; color: var(--ink-3); padding: 26px 10px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 13px; color: var(--ink-2); font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters a { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.filters a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters a:hover { text-decoration: none; }

/* ---------- obra header ---------- */
.obra-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.obra-head .code { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.obra-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.obra-meta b { color: var(--ink); font-weight: 600; }
.flow { display: flex; gap: 0; margin: 14px 0 4px; overflow-x: auto; }
.flow span { flex: 1; min-width: 92px; text-align: center; font-size: 11.5px; padding: 6px 4px; background: var(--line-2); color: var(--ink-3); position: relative; font-weight: 600; }
.flow span:first-child { border-radius: 6px 0 0 6px; }
.flow span:last-child { border-radius: 0 6px 6px 0; }
.flow span.done { background: #d9e6f1; color: var(--brand-2); }
.flow span.now { background: var(--brand); color: #fff; }

/* ---------- alerts list ---------- */
.alert-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); align-items: start; }
.alert-item:last-child { border-bottom: 0; }
.alert-item .t { font-weight: 600; font-size: 13px; }
.alert-item .d { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.alert-item .m { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.sev { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.sev.roja { background: var(--red); }
.sev.amarilla { background: #e0a526; }

/* ---------- inbox ---------- */
.inbox-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.inbox-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.inbox-icon.pago { background: var(--green-soft); color: var(--green); }
.inbox-icon.contrato { background: #e6edf5; color: var(--brand-2); }
.inbox-icon.migracion_pago { background: var(--amber-soft); color: var(--amber); }
.conf { font-size: 11.5px; color: var(--ink-3); }
.conf b { color: var(--ink); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.pdf-frame { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------- staging grid ---------- */
.sheet-grid td, .sheet-grid th { font-family: var(--mono); font-size: 11px; padding: 3px 6px; border: 1px solid var(--line-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-grid td.f { background: #f2f7ff; color: #24476b; }
.sheet-grid th { position: static; text-transform: none; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #12324f 0%, #0f5a69 100%); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card .brand { color: var(--ink); padding: 0 0 18px; }
.login-card .brand small { color: var(--ink-3); }

/* ---------- supervisor mobile ---------- */
.m-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; color: inherit; box-shadow: var(--shadow); }
.m-card:hover { text-decoration: none; border-color: #c5ced8; }
.m-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.big-range { width: 100%; accent-color: var(--accent); height: 34px; }
.pct-out { font-size: 34px; font-weight: 800; text-align: center; color: var(--brand); font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { margin: 0; }
.seg input { display: none; }
.seg span { display: block; text-align: center; padding: 10px 6px; border: 1px solid #d5dae1; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; background: #fff; }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 14px 0 6px; }
.sticky-save .btn { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g6 { grid-template-columns: repeat(3, 1fr); } .split { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; z-index: 20; }
  body.menu-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .menu-btn { display: block; }
  .topbar { padding: 10px 14px; }
  .topbar .who { display: none; }
  .content { padding: 16px 14px 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .g6 { grid-template-columns: repeat(2, 1fr); }
  .span2 { grid-column: auto; }
  h1 { font-size: 19px; }
  .kpi .value { font-size: 22px; }
}

/* ---------- Obras actuales ---------- */
.chip.orange { background: #fdeee0; color: #c05621; }
.chip.yellow { background: #fef7d6; color: #8a6d00; }
.chip.gray { background: var(--gray-soft); color: var(--ink-2); }
.dot-s { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: #a0aab6; }
.dot-s.green { background: var(--green); } .dot-s.orange { background: #dd6b20; } .dot-s.yellow { background: #e0b100; } .dot-s.gray { background: #a0aab6; }
.filters a.active .dot-s { box-shadow: 0 0 0 2px #fff; }
.alerta-doc { margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--red); }
.alerta-doc.rev { color: #8a6d00; }
.alerta-doc.big { font-size: 13px; padding: 8px 10px; border-radius: 7px; background: var(--red-soft); margin-bottom: 10px; }
.falta { margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.oa-table th[data-sort] { cursor: pointer; user-select: none; }
.oa-table th[data-sort]::after { content: " ↕"; color: #b5bdc8; font-size: 10px; }
.oa-table th.asc::after { content: " ↑"; color: var(--ink-2); } .oa-table th.desc::after { content: " ↓"; color: var(--ink-2); }
.oa-table tr.inactiva td { opacity: .55; }
.panel.destacado { border: 2px solid var(--red); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0 0 14px; }
.kv dt { color: var(--ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
.kv dd { margin: 0; }
ul.docs { list-style: none; padding: 0; margin: 0 0 10px; }
ul.docs li { padding: 7px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
ul.docs li.vigente > a { font-weight: 600; }
table.compact td, table.compact th { padding: 6px 8px; font-size: 12.5px; }
ol.pasos { margin: 0; padding-left: 0; list-style: none; counter-reset: p; }
ol.pasos li { counter-increment: p; padding: 6px 0 6px 30px; position: relative; color: var(--ink-3); }
ol.pasos li::before { content: counter(p); position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gray-soft); font-size: 11px; display: grid; place-items: center; font-weight: 700; }
ol.pasos li.ok { color: var(--ink); } ol.pasos li.ok::before { content: "✓"; background: var(--green); color: #fff; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.review-pdf { position: sticky; top: 70px; height: calc(100vh - 90px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review-pdf iframe { width: 100%; height: 100%; border: 0; }
.campo { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.campo.baja { border-left: 4px solid var(--red); }
.campo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.campo-head h3 { margin: 0; }
.form-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fuente { font-size: 12px; color: var(--ink-2); background: #f7f9fb; border-radius: 7px; padding: 7px 10px; margin: 6px 0; }
.fuente blockquote { margin: 4px 0 0; font-style: italic; color: var(--ink-3); }
.anterior { font-size: 12px; color: #c05621; margin: 4px 0; }
.decision { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 8px; font-size: 13px; }
.decision label { display: flex; gap: 5px; align-items: center; cursor: pointer; }
.garantia { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.garantia.nueva { border-style: dashed; background: #fafbfc; }
.garantia.baja { border-left: 4px solid var(--red); }
.confirm-bar { position: sticky; bottom: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 -4px 14px rgba(15, 30, 50, .06); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.confirm-bar p { margin: 0; font-size: 12.5px; color: var(--ink-2); max-width: 420px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 1100px) { .review { grid-template-columns: 1fr; } .review-pdf { position: static; height: 70vh; } }
.oa-table td:nth-child(2) { min-width: 170px; }
.oa-table td:nth-child(9) { min-width: 170px; } .oa-table td:nth-child(8) { min-width: 150px; }
@media (max-width: 760px) {
  .oa-table .col-opt { display: none; }
  .oa-table thead { display: none; }
  .oa-table, .oa-table tbody, .oa-table tr, .oa-table td { display: block; width: 100%; }
  .oa-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .oa-table td { padding: 2px 0; border: 0; text-align: left; min-width: 0 !important; }
  .oa-table td.vacio { display: none; }
  .oa-table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: 12px; }
  .form-grid.g2, .form-grid.g3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; } .kv dt { padding-top: 6px; }
}
