/* EITI-RD Platform — tema "Gris Metalizado" (Metallic Steel / Tech Slate) */
@font-face { font-family: 'Space Grotesk'; src: url('../vendor/fonts/space-grotesk-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../vendor/fonts/space-grotesk-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../vendor/fonts/space-grotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #1e1f22;
  --bg-2: #2b2d31;
  --card: #35373c;
  --card-2: #3b3d43;
  --border: #4e5058;
  --chrome: #8a8d93;
  --text: #e3e5e8;
  --text-2: #b5b8be;
  --muted: #8a8d93;
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --amber: #d4a359;
  --amber-bg: rgba(212, 163, 89, 0.14);
  --danger: #ef6461;
  --danger-bg: rgba(239, 100, 97, 0.13);
  --info: #6da7ec;
  --info-bg: rgba(109, 167, 236, 0.12);
  --metal: linear-gradient(160deg, #3d3f45 0%, #34363b 45%, #2f3136 100%);
  --metal-edge: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --sidebar: 248px;
  --sidebar-collapsed: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12px; word-break: break-all; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.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)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- Shell ---------------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; transition: grid-template-columns 0.2s; }
.shell.collapsed { grid-template-columns: var(--sidebar-collapsed) 1fr; }
.sidebar {
  background: linear-gradient(180deg, #26282c, #1b1c1f);
  border-right: 1px solid #2f3136;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-bottom: 1px solid #2f3136; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, #e3e5e8, #8a8d93 55%, #4e5058); color: #1e1f22; font: 700 13px var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 6px rgba(0,0,0,.4);
}
.brand-text { line-height: 1.15; white-space: nowrap; }
.brand-text strong { font: 700 15px var(--font-display); display: block; }
.brand-text span { font-size: 11px; color: var(--muted); }
.nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #6d7076; padding: 12px 12px 4px; white-space: nowrap; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; white-space: nowrap; font-weight: 500;
}
.nav a svg { flex: none; width: 19px; height: 19px; }
.nav a:hover { background: #2b2d31; color: var(--text); }
.nav a.active { background: var(--metal); color: var(--text); box-shadow: var(--metal-edge); }
.nav a.active svg { color: var(--emerald); }
.nav .badge-count { margin-left: auto; }
.shell.collapsed .brand-text, .shell.collapsed .nav-section, .shell.collapsed .nav a span, .shell.collapsed .nav .badge-count, .shell.collapsed .sidebar-foot .txt { display: none; }
.shell.collapsed .nav a { justify-content: center; }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid #2f3136; font-size: 11px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 24px; background: rgba(30, 31, 34, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid #2f3136;
}
.topbar .title { font: 600 16px var(--font-display); }
.content { padding: 24px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 820px; }

/* ---------------- Componentes ---------------- */
.card {
  background: var(--metal); border: 1px solid #45474e; border-radius: var(--radius);
  box-shadow: var(--metal-edge); padding: 18px; min-width: 0;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { flex: 1; }
.chart-surface { background: var(--bg-2); border-radius: 8px; padding: 12px; position: relative; }
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 380px; }

.kpi { position: relative; overflow: hidden; }
.kpi .label { color: var(--text-2); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.kpi .value { font: 700 30px/1.1 var(--font-display); margin: 8px 0 4px; letter-spacing: -0.02em; }
.kpi .delta { font-size: 12px; color: var(--muted); }
.kpi .delta b { color: var(--text); }
.kpi::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, #8a8d93, transparent); opacity: 0.5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: 8px; border: 1px solid #5a5d65; font-weight: 600; font-size: 13px;
  background: linear-gradient(180deg, #4a4c53, #3a3c42); color: var(--text); box-shadow: var(--metal-edge); text-decoration: none;
}
.btn:hover { border-color: var(--chrome); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(180deg, #16c08a, #0e9c70); border-color: #10b981; color: #06281c; }
.btn.warn { background: linear-gradient(180deg, #dcae67, #b98a44); border-color: var(--amber); color: #2b1d07; }
.btn.danger { background: transparent; border-color: #7b3b3a; color: #ff9b98; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: #2b2d31; color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.icon { padding: 7px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: #43454b; color: var(--text-2); border: 1px solid #52555c; white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge.ok { background: var(--emerald-bg); color: #5ee0b3; border-color: rgba(16, 185, 129, 0.4); }
.badge.warn { background: var(--amber-bg); color: #ebc58a; border-color: rgba(212, 163, 89, 0.45); }
.badge.bad { background: var(--danger-bg); color: #ff9b98; border-color: rgba(239, 100, 97, 0.45); }
.badge.info { background: var(--info-bg); color: #a9cbf5; border-color: rgba(109, 167, 236, 0.4); }
.badge-count { background: var(--amber); color: #2b1d07; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid #3a3c42; margin-bottom: 18px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--text-2); font-weight: 600;
  border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
}
.tabs button svg { width: 16px; height: 16px; }
.tabs button.active { color: var(--text); border-bottom-color: var(--emerald); }

.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid #3f4147; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--text-2); background: #2e3035; padding: 9px 12px; font-size: 12px; white-space: nowrap; position: sticky; top: 0; }
td { padding: 9px 12px; border-top: 1px solid #3a3c42; vertical-align: top; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.bar { height: 6px; background: #26282c; border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8a8d93, #e3e5e8); }
.bar.ok > span { background: var(--emerald); }
.bar.warn > span { background: var(--amber); }

/* ---------------- Formularios ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-weight: 600; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.field .req { color: var(--amber); }
.field .hint { color: var(--muted); font-size: 12px; }
.field .err { color: #ff9b98; font-size: 12px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #55585f; background: #26282c; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--chrome); box-shadow: 0 0 0 3px rgba(227, 229, 232, 0.08); }
textarea { min-height: 90px; resize: vertical; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; border: 1px solid #55585f;
  background: #26282c; cursor: pointer; user-select: none; font-weight: 500;
}
.choice input { accent-color: var(--emerald); margin: 0; }
.choice:has(input:checked) { border-color: var(--emerald); background: var(--emerald-bg); }
.consent-box { border: 1px dashed #6b6e75; border-radius: 10px; padding: 14px; background: #2a2c30; }

.tip {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #6b6e75;
  font-size: 11px; font-weight: 700; color: var(--text-2); cursor: help; position: relative; background: #2f3136; flex: none;
}
.tip:hover::after, .tip:focus::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 320px; padding: 9px 12px; border-radius: 8px; background: #111214; color: var(--text);
  font-weight: 400; font-size: 12px; line-height: 1.45; border: 1px solid #4e5058; z-index: 50; white-space: normal; text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ---------------- Asistente de fichas ---------------- */
.wizard { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .wizard .steps { flex-direction: row; overflow-x: auto; } }
.steps { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 76px; }
.step-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; text-align: left; cursor: pointer; color: var(--text-2); white-space: nowrap;
}
.step-btn .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #3a3c42; font: 600 12px var(--font-display); flex: none; }
.step-btn.active { background: var(--metal); border-color: #4e5058; color: var(--text); }
.step-btn.active .n { background: var(--text); color: var(--bg); }
.step-btn.done .n { background: var(--emerald); color: #06281c; }
.step-btn.error .n { background: var(--danger); color: #fff; }
.progress { height: 8px; border-radius: 99px; background: #26282c; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #0e9c70, #10b981, #5ee0b3); transition: width 0.3s; }
.wizard-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid #45474e; flex-wrap: wrap; }
.photo-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-grid .ph { width: 110px; height: 90px; border-radius: 8px; overflow: hidden; background: #26282c; border: 1px solid #4e5058; position: relative; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph button { position: absolute; top: 4px; right: 4px; }

.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.status-dot.ok { background: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.status-dot.warn { background: var(--amber); }
.status-dot.bad { background: var(--danger); }

/* ---------------- Modal, drawer, toasts ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 12, 0.66); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { width: min(720px, 100%); max-height: 92vh; overflow: auto; background: #2f3136; border: 1px solid #4e5058; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #3f4147; position: sticky; top: 0; background: #2f3136; z-index: 1; }
.modal header h2 { flex: 1; }
.modal .body { padding: 20px; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #3f4147; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #25272b; border-left: 1px solid #45474e; z-index: 90; transform: translateX(100%); transition: transform 0.22s; overflow-y: auto; box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4); }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid #3a3c42; position: sticky; top: 0; background: #25272b; }
.drawer header h2 { flex: 1; }
.drawer .body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.qv-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #2f3136; border: 1px solid #3f4147; }
.qv-item .v { margin-left: auto; font: 700 18px var(--font-display); }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { padding: 12px 16px; border-radius: 10px; background: #111214; border: 1px solid #4e5058; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); max-width: 380px; display: flex; gap: 10px; align-items: flex-start; animation: slidein 0.2s; }
.toast.ok { border-color: var(--emerald); }
.toast.bad { border-color: var(--danger); }
.toast.warn { border-color: var(--amber); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }

/* ---------------- Login ---------------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }
.login-art {
  background: radial-gradient(1200px 600px at 20% 10%, #4a4d55 0%, #2b2d31 45%, #18191b 100%);
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-right: 1px solid #2f3136;
}
.login-art::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px); }
.login-art > * { position: relative; }
.login-art h1 { font-size: 38px; line-height: 1.08; max-width: 560px; background: linear-gradient(180deg, #ffffff, #8a8d93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 620px; }
.login-art .pillar { border: 1px solid #4e5058; border-radius: 10px; padding: 12px; background: rgba(30,31,34,.5); font-size: 12px; color: var(--text-2); }
.login-art .pillar b { display: block; color: var(--text); font-family: var(--font-display); font-size: 13px; margin-bottom: 4px; }
.login-panel { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(400px, 100%); }

/* ---------------- Documento (vista previa / impresión) ---------------- */
.doc { background: #fff; color: #1e1f22; border-radius: 6px; padding: 56px 64px; max-width: 900px; margin: 0 auto; font: 13.5px/1.6 var(--font-body); }
.doc h1 { font-size: 20px; margin: 28px 0 10px; color: #2b2d31; border-bottom: 2px solid #e3e5e8; padding-bottom: 6px; }
.doc h2 { font-size: 16px; margin: 20px 0 8px; color: #35373c; }
.doc h3 { font-size: 14px; margin: 16px 0 6px; color: #4e5058; }
.doc .doc-title { font: 700 28px/1.15 var(--font-display); margin: 0 0 8px; }
.doc .doc-sub { font-style: italic; color: #4e5058; margin-bottom: 20px; }
.doc table { font-size: 12px; margin: 8px 0 16px; }
.doc table.small { font-size: 10.5px; }
.doc th { background: #35373c; color: #fff; position: static; }
.doc td { border-top: 1px solid #d9dbdf; color: #1e1f22; }
.doc tr:nth-child(even) td { background: #f2f3f5; }
.doc tr:hover td { background: inherit; }
.doc .note { background: #f4ebdc; color: #7a5a22; padding: 10px 14px; border-radius: 6px; font-style: italic; margin: 10px 0; }
.doc .kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0 16px; }
.doc .kpis div { border: 1px solid #d9dbdf; border-radius: 8px; padding: 10px 12px; }
.doc .kpis b { display: block; font: 700 20px var(--font-display); }
.doc figure { margin: 12px 0 18px; }
.doc figcaption { font-weight: 600; font-size: 12px; color: #4e5058; margin-bottom: 6px; }
.doc .pagebreak { break-after: page; height: 0; }

.map { height: 480px; border-radius: 10px; overflow: hidden; border: 1px solid #45474e; background: #26282c; }
.leaflet-container { background: #26282c; font: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #2f3136; color: var(--text); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); align-items: center; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.law { border-left: 3px solid var(--chrome); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #26282c; border: 1px solid #4e5058; font-size: 11px; color: var(--text-2); margin: 2px 4px 2px 0; }
.lane { background: #26282c; border: 1px solid #3a3c42; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.rec { background: var(--metal); border: 1px solid #45474e; border-radius: 9px; padding: 12px; box-shadow: var(--metal-edge); cursor: pointer; }
.rec:hover { border-color: var(--chrome); }
.gauge { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.gauge .in { width: 118px; height: 118px; border-radius: 50%; background: #2b2d31; display: grid; place-items: center; text-align: center; box-shadow: inset 0 2px 8px rgba(0,0,0,.5); }
.gauge .in b { font: 700 34px var(--font-display); display: block; line-height: 1; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 9px; background: #2b2d31; border: 1px solid #3a3c42; }
.check svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.check.ok svg { color: var(--emerald); }
.check.bad svg { color: var(--amber); }
.empty { text-align: center; padding: 36px; color: var(--muted); border: 1px dashed #4e5058; border-radius: 10px; }
.offline-banner { background: var(--amber-bg); color: #ebc58a; border-bottom: 1px solid rgba(212, 163, 89, 0.4); padding: 6px 24px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; }

@media (max-width: 720px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; width: var(--sidebar); transform: translateX(-100%); transition: transform 0.2s; }
  .shell.mobile-open .sidebar { transform: none; }
  .shell.collapsed .brand-text, .shell.collapsed .nav a span, .shell.collapsed .nav-section { display: initial; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .doc { padding: 24px 18px; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .toasts, .offline-banner { display: none !important; }
  .shell, .shell.collapsed { display: block; }
  .content { padding: 0; max-width: none; }
  .doc { padding: 0; max-width: none; border-radius: 0; }
  .doc th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Iconos: tamaño por defecto relativo al texto */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.brand-mark .ic { width: 22px; height: 22px; }
.kpi .label .ic { width: 15px; height: 15px; }
h2 .ic, h3 .ic { width: 18px; height: 18px; vertical-align: -3px; }


/* Aviso sobre el mapa cuando falta la llave del mapa base */
.map-aviso { max-width: 300px; background: var(--amber-bg); color: #ebc58a; border: 1px solid rgba(212, 163, 89, 0.6); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.4; }

/* Formulario externo (página pública por enlace): una columna, sin navegación */
.publico-main { max-width: 860px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.publico-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }
.publico-card { margin: 0; }
.publico .field { margin-bottom: 14px; }
/* Pantalla de aprobación: valor actual frente a propuesto */
.revision-tabla td { vertical-align: top; }
.revision-tabla .propuesto { background: rgba(109, 167, 236, 0.08); }
.revision-acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.publico .hint.ayuda { display: block; margin: -2px 0 6px; line-height: 1.45; }
