/* Sistema EPP · BSD Ingeniería — diseño minimalista, mobile-first */
:root {
  --brand: #b01e23; --brand-ink: #8f171b; --brand-soft: #fbeaea;
  --bg: #f5f5f3; --surface: #ffffff; --surface-2: #fafaf9; --text: #18181b; --muted: #6b6b70; --faint: #a1a1aa;
  --line: #e7e5e4; --line-2: #d6d3d1;
  --ok: #15803d; --ok-soft: #e8f5ec; --warn: #b45309; --warn-soft: #fdf3e3; --bad: #b91c1c; --bad-soft: #fdecec;
  --info: #1d4ed8; --info-soft: #eaf0fd; --neutral-soft: #f1f1ef;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px; --top-h: 56px; --side-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #e0474c; --brand-ink: #f06a6e; --brand-soft: #3a1c1d;
    --bg: #111113; --surface: #1a1a1d; --surface-2: #202024; --text: #f4f4f5; --muted: #a1a1aa; --faint: #71717a;
    --line: #2a2a2e; --line-2: #3a3a3f; --ok: #4ade80; --ok-soft: #14271b; --warn: #fbbf24; --warn-soft: #2d2410;
    --bad: #f87171; --bad-soft: #2d1515; --info: #93b4ff; --info-soft: #172036; --neutral-soft: #26262a;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #e0474c; --brand-ink: #f06a6e; --brand-soft: #3a1c1d;
  --bg: #111113; --surface: #1a1a1d; --surface-2: #202024; --text: #f4f4f5; --muted: #a1a1aa; --faint: #71717a;
  --line: #2a2a2e; --line-2: #3a3a3f; --ok: #4ade80; --ok-soft: #14271b; --warn: #fbbf24; --warn-soft: #2d2410;
  --bad: #f87171; --bad-soft: #2d1515; --info: #93b4ff; --info-soft: #172036; --neutral-soft: #26262a;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; } h2 { font-size: 17px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .title { font-weight: 650; font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back { margin-left: -8px; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brandmark img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.main { padding: 8px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
.sidebar { display: none; }
.bottomnav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bottomnav a, .bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 550; color: var(--muted);
  background: none; border: 0; position: relative; -webkit-tap-highlight-color: transparent; }
.bottomnav .active { color: var(--brand); }
.bottomnav svg.i { width: 23px; height: 23px; }
.dot { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

@media (min-width: 1000px) {
  .sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side-w); padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); z-index: 25; }
  .sidebar .brandmark { padding: 4px 8px 18px; }
  .sidebar .brandmark small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
  .sidebar nav .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 14px 10px 6px; font-weight: 600; }
  .sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 550; position: relative; }
  .sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
  .sidebar nav a.active { background: var(--brand-soft); color: var(--brand); }
  .sidebar nav a .count { margin-left: auto; font-size: 11.5px; background: var(--brand); color: #fff; border-radius: 10px; padding: 1px 7px; font-weight: 700; }
  .sidebar .me { border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; gap: 10px; align-items: center; }
  .app.has-side { padding-left: var(--side-w); }
  .bottomnav { display: none; }
  .main { padding: 12px 32px 48px; }
  .topbar { padding: 0 32px; height: 64px; }
  .topbar .title { font-size: 20px; }
  .only-mobile { display: none !important; }
}
@media (max-width: 999px) { .only-desktop { display: none !important; } }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card + .card, .section + .section { margin-top: 12px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { flex: 1; }
.section { margin-top: 20px; }
.section > .sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.section > .sh h2 { font-size: 15px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .md-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lg-g3 { grid-template-columns: 1.4fr 1fr; } .lg-2col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; } }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 10px; } .stack.lg { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.stat.link:active { transform: scale(.985); }
.stat .ic { position: absolute; top: 12px; right: 12px; color: var(--faint); }
.stat.alert { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.stat.alert .v { color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--neutral-soft); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.icon { width: 40px; padding: 0; } .btn.icon.sm { width: 34px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 28; height: 52px; padding: 0 20px; border-radius: 16px; box-shadow: var(--shadow-lg); }
@media (min-width: 1000px) { .fab { position: static; box-shadow: none; height: 40px; border-radius: 11px; } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neutral-soft); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.ent { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.ent::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--faint)); }

/* Listas */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); position: relative; -webkit-tap-highlight-color: transparent; }
.li:first-child { border-top: 0; }
a.li:hover, .li.clickable:hover { background: var(--surface-2); cursor: pointer; }
a.li:active { background: var(--neutral-soft); }
.li .t { font-weight: 600; } .li .s { font-size: 13px; color: var(--muted); }
.li .chev { color: var(--faint); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; background: var(--neutral-soft); color: var(--muted); }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; border-radius: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; text-align: right; }

/* Tablas (escritorio) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.clickable:hover td { background: var(--surface-2); cursor: pointer; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border .15s, box-shadow .15s; font-size: 16px; }
textarea.input { height: auto; min-height: 88px; padding: 11px 13px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input.sm { height: 36px; font-size: 14px; border-radius: 9px; padding: 0 10px; }
.hint { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .span2 { grid-column: span 2; } }
.search { position: relative; }
.search svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 40px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.seg { display: inline-flex; background: var(--neutral-soft); padding: 3px; border-radius: 12px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 1000px) { .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { font-size: 11.5px; opacity: .75; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface); }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.opt .t { font-weight: 600; } .opt .s { font-size: 12.5px; color: var(--muted); }

/* Sheet / modal */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,12,.42); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { width: 100%; max-height: 92vh; background: var(--surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
.sheet .sh-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.sheet .sh-h h2 { flex: 1; }
.sheet .sh-b { padding: 4px 16px 16px; overflow-y: auto; }
.sheet .sh-f { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet .sh-f .btn { flex: 1; }
.sheet .grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
@media (min-width: 720px) {
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { max-width: 560px; border-radius: 18px; max-height: 88vh; animation: pop .18s ease; }
  .sheet.wide { max-width: 860px; }
  .sheet .grip { display: none; }
  .sheet .sh-f .btn { flex: none; }
  .sheet .sh-f { justify-content: flex-end; }
}
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: .5; } } @keyframes pop { from { transform: scale(.97); opacity: 0; } }

.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 1000px) { .toast-wrap { bottom: 24px; } }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 550; font-size: 14px; animation: up .2s ease; display: flex; gap: 10px; align-items: center; }
.toast.bad { background: var(--bad); color: #fff; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg.i { width: 40px; height: 40px; color: var(--faint); margin-bottom: 8px; stroke-width: 1.4; }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.skel { background: linear-gradient(90deg, var(--neutral-soft), var(--surface-2), var(--neutral-soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; align-items: flex-start; background: var(--info-soft); color: var(--info); }
.notice.warn { background: var(--warn-soft); color: var(--warn); } .notice.bad { background: var(--bad-soft); color: var(--bad); } .notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice b { font-weight: 650; } .notice .i { margin-top: 1px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.pill-steps { display: flex; gap: 4px; }
.pill-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.pill-steps span.on { background: var(--brand); }
.bar { height: 8px; border-radius: 4px; background: var(--neutral-soft); overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .ev { position: relative; padding: 0 0 14px; }
.timeline .ev::before { content: ""; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.timeline .ev.on::before { border-color: var(--brand); background: var(--brand); }
.tag-talle { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 7px; border-radius: 7px; background: var(--neutral-soft); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.talles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.talle-cell { border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; text-align: center; background: var(--surface); cursor: pointer; }
.talle-cell .tl { font-size: 11.5px; color: var(--muted); font-weight: 600; } .talle-cell .tv { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.talle-cell.low { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.talle-cell.zero .tv { color: var(--faint); }
.talle-cell .ts { font-size: 10.5px; color: var(--muted); }

/* Firma */
.sigpad { position: relative; border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fff; touch-action: none; height: 220px; }
.sigpad canvas { width: 100%; height: 100%; display: block; border-radius: 14px; }
.sigpad .ph { position: absolute; inset: auto 0 18px; text-align: center; color: #a1a1aa; font-size: 13px; pointer-events: none; }
.sigpad .line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-top: 1px solid #d4d4d8; pointer-events: none; }
.sig-img { background: #fff; border-radius: 10px; border: 1px solid var(--line); max-height: 90px; padding: 4px; }
.evid { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }

/* Login */
.login { min-height: 100vh; display: grid; }
@media (min-width: 900px) { .login { grid-template-columns: 1.1fr 1fr; } }
.login .hero { display: none; background: #222 center/cover; position: relative; }
.login .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.6)); }
.login .hero .cap { position: absolute; left: 40px; bottom: 40px; right: 40px; color: #fff; z-index: 1; }
.login .hero .cap h2 { font-size: 28px; font-weight: 700; max-width: 460px; }
.login .hero .cap p { opacity: .85; margin-top: 8px; }
@media (min-width: 900px) { .login .hero { display: block; } }
.login .panel { display: flex; flex-direction: column; justify-content: center; padding: 32px 24px; max-width: 440px; width: 100%; margin: 0 auto; }
.login .panel img.logo { width: 120px; margin-bottom: 28px; border-radius: 12px; }
.login .foot { margin-top: 28px; font-size: 12px; color: var(--faint); }

/* Impresión — Constancia Res. SRT 299/11 */
.print-page { background: #fff; color: #111; max-width: 1050px; margin: 0 auto; padding: 24px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; }
.print-page h1 { font-size: 15px; text-align: center; } .print-page h2 { font-size: 13px; text-align: center; font-weight: 600; margin-top: 2px; }
.f299 { width: 100%; border-collapse: collapse; margin-top: 10px; }
.f299 td, .f299 th { border: 1px solid #333; padding: 5px 6px; vertical-align: middle; }
.f299 th { background: #f1f1f1; font-weight: 600; font-size: 11px; }
.f299 .lbl { font-size: 10.5px; color: #444; display: block; }
.f299 img.firma { max-height: 38px; max-width: 120px; display: block; margin: 0 auto; }
@media print {
  body { background: #fff; }
  .sidebar, .bottomnav, .topbar, .no-print, .toast-wrap, .fab { display: none !important; }
  .app.has-side { padding-left: 0; }
  .main { padding: 0; max-width: none; }
  .print-page { border: 0; padding: 0; border-radius: 0; max-width: none; }
  @page { size: A4 landscape; margin: 10mm; }
}
