:root {
  --bg: #0b0d10;
  --surface: #12161c;
  --surface-2: #181e26;
  --surface-3: #202833;
  --line: #262e39;
  --line-2: #323c49;
  --blue: #2a8fe0;
  --blue-deep: #1076bc;
  --cyan: #25aae1;
  --orange: #f07a22;
  --orange-hover: #ff8a33;
  --ink: #f1f4f8;
  --muted: #a5afbc;
  --faint: #737e8c;
  --ok: #3ccb7f;
  --warn: #f2b33d;
  --bad: #f2555a;
  --radius: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Sora, Manrope, sans-serif; letter-spacing: -.035em; margin: 0; font-weight: 600; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--blue) 45%, transparent); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 18px; }
.brand-logo { display: block; height: 42px; width: auto; }
.brand-col { flex-direction: column; align-items: flex-start; gap: 8px; }
.login-arte .brand-logo { height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 19px/1 Sora, sans-serif; letter-spacing: .06em; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .02em; margin-top: 4px; }
.wave { display: block; width: 100%; height: 14px; margin: -8px 0 10px; opacity: .9; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.activo { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--ink); box-shadow: inset 2px 0 0 var(--blue); }
.nav a.activo svg { color: var(--blue); }
.nav-sep { height: 1px; background: var(--line); margin: 12px 6px; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.ambiente { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); }
.ambiente i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.ambiente.prod i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.usuario { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 16px;
  min-height: 70px; padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 22px; }
.topbar .eyebrow { margin-bottom: 2px; }
.topbar-acciones { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn.menu-btn { display: none; }
.contenido { padding: 28px 32px 60px; max-width: 1320px; width: 100%; }

.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 15px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { border-color: var(--blue); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primario { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primario:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-azul { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-azul:hover { background: var(--blue); border-color: var(--blue); }
.btn-fantasma { background: transparent; border-color: transparent; color: var(--muted); }
.btn-fantasma:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn-peligro:hover { border-color: var(--bad); color: var(--bad); }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-icono { width: 34px; min-height: 34px; padding: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; }

.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.kpi .val { font: 600 28px/1.15 Sora, sans-serif; letter-spacing: -.04em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.kpi::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line-2); opacity: .5; }
.kpi.destacado { background: linear-gradient(140deg, color-mix(in srgb, var(--blue-deep) 30%, var(--surface)) 0%, var(--surface) 70%); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }

.dos-col { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }

.barras { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; height: 190px; padding: 20px 22px 12px; }
.barra { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barra .col { width: 100%; max-width: 46px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--cyan), var(--blue-deep)); min-height: 3px; transition: height .5s var(--ease); }
.barra .col.vacia { background: var(--surface-3); }
.barra span { font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; }
.barra b { font-size: 11px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

.checklist { list-style: none; margin: 0; padding: 8px 20px 16px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist li:last-child { border-bottom: 0; }
.checklist .ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.checklist .ico.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.checklist .ico.no { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.checklist .ico svg { width: 14px; height: 14px; }
.checklist small { display: block; color: var(--faint); font-size: 12px; }
.checklist a { margin-left: auto; font-size: 13px; font-weight: 700; }

.tabla-wrap { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tbody tr { transition: background .12s; }
.tabla tbody tr.clic { cursor: pointer; }
.tabla tbody tr.clic:hover { background: var(--surface-2); }
.tabla tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.tenue { color: var(--muted); }
.mini { font-size: 12px; color: var(--faint); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-AUTORIZADO { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.b-RECIBIDA, .b-EN-PROCESO, .b-FIRMADO { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.b-DEVUELTA, .b-NO-AUTORIZADO { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.b-BORRADOR { color: var(--muted); background: var(--surface-3); }
.b-tipo { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); }

.filtros { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filtros .campo { min-width: 150px; }
.filtros .buscar { flex: 1 1 260px; }

.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.campo .ayuda { font-size: 12px; color: var(--faint); }
.input, select.input, textarea.input {
  width: 100%; min-height: 40px; padding: 9px 12px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 76px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a5afbc' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { width: 38px; height: 22px; appearance: none; background: var(--surface-3); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; border: 1px solid var(--line-2); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .18s var(--ease), background .18s; }
.switch input:checked { background: var(--blue-deep); border-color: var(--blue-deep); }
.switch input:checked::after { transform: translateX(16px); background: #fff; }

.factura-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.resumen { position: sticky; top: 88px; }
.seccion-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.seccion-titulo h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.paso { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font: 700 12px/1 Sora, sans-serif; background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.chip:hover, .chip.activo { border-color: var(--blue); color: var(--ink); background: color-mix(in srgb, var(--blue) 12%, transparent); }

.autocompletar { position: relative; }
.sugerencias { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.45); max-height: 280px; overflow: auto; padding: 4px; }
.sugerencias button { display: flex; width: 100%; justify-content: space-between; gap: 12px; text-align: left; padding: 9px 11px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.sugerencias button:hover, .sugerencias button.sel { background: var(--surface-3); }
.sugerencias small { color: var(--faint); }

.items { width: 100%; border-collapse: collapse; }
.items th { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 0 6px 8px; }
.items td { padding: 4px 6px; vertical-align: top; }
.items .input { min-height: 38px; padding: 8px 10px; }
.items .num .input { text-align: right; }
.items input[type=number] { -moz-appearance: textfield; }
.items input[type=number]::-webkit-outer-spin-button, .items input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.items select.input { padding-right: 26px; background-position: right 8px center; }
.items td.total-linea { padding-top: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.items tr + tr td { border-top: 1px dashed var(--line); padding-top: 8px; }

.totales { list-style: none; margin: 0; padding: 0; }
.totales li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.totales li b { color: var(--ink); font-weight: 700; }
.totales li.gran { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); align-items: baseline; }
.totales li.gran b { font: 600 30px/1 Sora, sans-serif; letter-spacing: -.04em; color: var(--ink); }

.aviso { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.aviso svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.aviso.info { background: color-mix(in srgb, var(--blue) 9%, transparent); border-color: color-mix(in srgb, var(--blue) 30%, transparent); }
.aviso.warn { background: color-mix(in srgb, var(--warn) 9%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.aviso.bad { background: color-mix(in srgb, var(--bad) 9%, transparent); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.aviso.ok { background: color-mix(in srgb, var(--ok) 9%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { padding: 11px 14px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.activo { color: var(--ink); border-bottom-color: var(--blue); }

.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4, 6, 9, .66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: aparecer .18s var(--ease); }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: subir .22s var(--ease); }
.modal.ancho { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }

.drawer-overlay { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { width: min(560px, 100%); height: 100%; overflow: auto; background: var(--surface); border-left: 1px solid var(--line-2); animation: deslizar .25s var(--ease); display: flex; flex-direction: column; }
.drawer .modal-body { flex: 1; }
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 4px 0 18px; }
.det-grid dt { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.det-grid dd { margin: 3px 0 0; font-size: 14px; word-break: break-word; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 3.5px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--faint); font-size: 12px; }
.clave { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); padding: 9px 11px; border-radius: 8px; word-break: break-all; }
h4.sub { font-size: 13px; margin: 18px 0 10px; color: var(--muted); font-family: Manrope, sans-serif; letter-spacing: .02em; text-transform: uppercase; font-weight: 800; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.4); font-size: 14px; animation: subir .2s var(--ease); border-left: 3px solid var(--blue); }
.toast.ok { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--bad); }

.vacio { text-align: center; padding: 48px 20px; color: var(--muted); }
.vacio svg { width: 44px; height: 44px; color: var(--faint); margin-bottom: 10px; }
.vacio h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }

.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-arte { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue-deep) 35%, transparent), transparent 60%), var(--surface); border-right: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-arte h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.02; max-width: 12ch; letter-spacing: -.05em; }
.login-arte h2 em { font-style: normal; color: var(--cyan); }
.login-arte p { color: var(--muted); max-width: 42ch; font-size: 16px; }
.login-arte .grid-cuadros { position: absolute; right: -60px; bottom: -60px; width: 340px; opacity: .14; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-card { width: min(400px, 100%); }
.login-card h1 { font-size: 26px; margin: 18px 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 24px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.logo-chip { display: inline-block; border-radius: 12px; overflow: hidden; }
.logo-chip img { display: block; height: 64px; width: auto; }

.preview-logo { background: #fff; border-radius: 10px; padding: 12px; display: inline-block; border: 1px solid var(--line); }
.preview-logo img { height: 64px; display: block; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: girar .7s linear infinite; }

@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(8px); } }
@keyframes deslizar { from { transform: translateX(30px); opacity: 0; } }
@keyframes girar { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factura-layout { grid-template-columns: 1fr; }
  .resumen { position: static; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .app.menu-abierto .sidebar { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 18px; }
  .contenido { padding: 18px 16px 50px; }
  .dos-col { grid-template-columns: 1fr; }
  .form-grid > * { grid-column: span 12; }
  .login { grid-template-columns: 1fr; }
  .login-arte { display: none; }
  .topbar-acciones .txt { display: none; }
  .items thead { display: none; }
  .items, .items tbody, .items tr, .items td { display: block; width: 100%; }
  .items tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px 0; }
  .items td { padding: 0; border: 0 !important; }
  .items td.desc { grid-column: 1 / -1; }
  .items td.total-linea { padding-top: 10px; }
}

@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 21px; }
  .det-grid { grid-template-columns: 1fr; }
}
