/* ═══════════════════════════════════════════════════════════════════════════════════════
   OKCampa · Patrón común de listados (Estancias, Daños, Incidencias, Preavisos, Llaves…)
   KPIs pulsables → barra de filtros → tabla (OkCampaTableShell) con acción principal + menú «⋯».
   ═══════════════════════════════════════════════════════════════════════════════════════ */

/* ── KPIs ─────────────────────────────────────────────────────────────────────────── */
.page-body .lst-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi-tile.kpi-click { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; user-select: none; }
.kpi-tile.kpi-click:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.kpi-tile.kpi-click:focus-visible { outline: 2px solid var(--o-accent); outline-offset: 2px; }
.kpi-tile.kpi-on { box-shadow: 0 0 0 2px var(--o-primary), 0 6px 16px rgba(15,23,42,.10); }
.lst-kpis .kpi-tile { min-height: 78px; padding: 12px 16px; }
.lst-kpis .kpi-tile strong { font-size: 26px; }
.lst-kpis .kpi-tile span { font-size: 13px; }
.lst-kpis .kpi-tile .kpi-badge { width: 40px; height: 40px; flex-basis: 40px; }
.lst-kpis .kpi-tile .kpi-badge .kpi-ico { width: 22px; height: 22px; }

/* ── Barra de filtros ─────────────────────────────────────────────────────────────── */
.page-body .lst-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--o-surface,#fff); border: 1px solid var(--o-border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--o-shadow); margin-bottom: 14px; }
.page-body .lst-filtros > select, .page-body .lst-filtros .select-sm, .page-body .lst-filtros .input-sm { height: 36px; min-height: 36px; border-radius: 9px; font-size: 13px; }
.page-body .lst-filtros .lst-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.page-body .lst-filtros .lst-sep { flex: 1 1 auto; }
.page-body .lst-filtros .cliente-filtro { min-width: 220px; flex: 0 1 260px; }
.page-body .lst-filtros .cliente-filtro .input-sm { width: 100%; }
.page-body .lst-filtros .check-inline { display: inline-flex; align-items: center; gap: 6px; height: 36px; white-space: nowrap; font-size: 13px; color: var(--o-text-2); }
.lst-limpiar { background: none; border: 0; color: var(--o-muted); font-size: 13px; font-weight: 500; padding: 6px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.lst-limpiar:hover { color: var(--o-text); background: var(--o-surface-2); }
.lst-limpiar b { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--o-primary); color: #fff; font-size: 11px; align-items: center; justify-content: center; margin-left: 4px; }

.lst-buscar { position: relative; display: flex; align-items: center; flex: 1 1 260px; min-width: 200px; max-width: 420px; height: 36px; border: 1px solid var(--o-border-strong); border-radius: 9px; background: var(--o-surface,#fff); transition: border-color .12s, box-shadow .12s; }
.lst-buscar:focus-within { border-color: var(--o-accent); box-shadow: 0 0 0 3px rgba(59,130,182,.15); }
.lst-buscar > svg { width: 16px; height: 16px; margin: 0 6px 0 10px; flex: none; fill: none; stroke: var(--o-faint); stroke-width: 2; stroke-linecap: round; }
.lst-buscar input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent; font-size: 13px; padding: 0 4px; box-shadow: none !important; }
.lst-buscar input::-webkit-search-cancel-button { display: none; }
.lst-buscar-x { border: 0; background: var(--o-surface-3,#E2E8F0); color: var(--o-text-2); width: 20px; height: 20px; border-radius: 50%; font-size: 14px; line-height: 1; margin-right: 6px; cursor: pointer; flex: none; }
.lst-buscar .bulk-trigger, .lst-buscar > button:not(.lst-buscar-x) { border: 0; border-left: 1px solid var(--o-border); border-radius: 0 9px 9px 0; height: 100%; background: var(--o-surface-2); padding: 0 10px; cursor: pointer; color: var(--o-text-2); }

.lst-fechas { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--o-border-strong); border-radius: 9px; height: 36px; background: var(--o-surface,#fff); overflow: hidden; }
.lst-fechas select { border: 0 !important; height: 100%; background: var(--o-surface-2); font-size: 13px; padding: 0 8px; border-right: 1px solid var(--o-border) !important; border-radius: 0; outline: 0; color: var(--o-text-2); font-weight: 500; }
.lst-fechas label { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 8px; margin: 0; height: 100%; }
.lst-fechas label + label { border-left: 1px solid var(--o-border); }
.lst-fechas label span { font-size: 11px; color: var(--o-muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.lst-fechas input { border: 0 !important; outline: 0; height: 100%; font-size: 13px; background: transparent; padding: 0 2px; box-shadow: none !important; width: 128px; }

/* ── Selector de estado segmentado ────────────────────────────────────────────────── */
.seg-chips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--o-surface-3,#F1F5F9); border: 1px solid var(--o-border); }
.seg-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--o-text-2); font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; line-height: 1.3; }
.seg-chip:hover { color: var(--o-text); background: var(--o-glass,rgba(255,255,255,.6)); }
.seg-chip.on { background: var(--o-surface,#fff); color: var(--o-text); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px var(--o-border); }
.seg-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--o-faint); flex: none; }
.seg-chip.t-ok i { background: #10B981; } .seg-chip.t-warn i { background: #F59E0B; } .seg-chip.t-bad i { background: #E11D48; } .seg-chip.t-info i { background: #3B82F6; } .seg-chip.t-neutral i { background: #94A3B8; } .seg-chip.t-violet i { background: #8B5CF6; }
.seg-chip b { font-size: 11px; font-weight: 700; color: var(--o-muted); background: rgba(15,23,42,.06); border-radius: 99px; padding: 1px 7px; }
.seg-chip.on b { background: var(--o-primary); color: #fff; }

/* ── Celdas ───────────────────────────────────────────────────────────────────────── */
.lst-cel { display: grid; gap: 2px; min-width: 0; }
.lst-cel > strong { font-weight: 600; color: var(--o-text); }
.lst-cel > small, .lst-cel > span.sub { font-size: 12px; color: var(--o-muted); overflow: hidden; text-overflow: ellipsis; }
.lst-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: .01em; white-space: nowrap; }
.lst-cel > small:not(.lst-mono) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 340px; }
.lst-cel > small.lst-mono { max-width: 190px; }
.lst-cel > span, .page-body .data-table td.lst-fecha { white-space: nowrap; }
.page-body .data-table tr.lst-click { cursor: pointer; }
.page-body .data-table tr.lst-click:hover > td { background: var(--o-surface-2,#F8FAFC); }
.page-body .data-table tr.lst-sel > td { background: var(--o-info-bg,#EFF6FF); }
.page-body .data-table td.lst-acc, .page-body .data-table th.lst-acc { text-align: right; white-space: nowrap; width: 1%; }
.lst-dias { font-variant-numeric: tabular-nums; font-weight: 600; }
.lst-dias.alto { color: var(--o-warn); } .lst-dias.critico { color: var(--o-bad); }
.lst-nivel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.lst-nivel i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lst-nivel.n-bad { color: var(--o-bad); } .lst-nivel.n-warn { color: var(--o-warn); } .lst-nivel.n-info { color: var(--o-info); } .lst-nivel.n-ok { color: var(--o-ok); } .lst-nivel.n-neutral { color: var(--o-muted); }
.tbl-aviso { display: block; margin-top: 4px; color: var(--o-warn) !important; font-weight: 500; }

/* ── Acciones de fila ─────────────────────────────────────────────────────────────── */
.acc-fila { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.lst-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; font-size: 12.5px; font-weight: 600; border-radius: 8px; border: 1px solid var(--o-border-strong); background: var(--o-surface,#fff); color: var(--o-text-2); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s; }
.lst-btn:hover:not(:disabled) { background: var(--o-surface-2); border-color: #94A3B8; color: var(--o-text); }
.lst-btn.prim { background: var(--o-primary); border-color: var(--o-primary); color: #fff; }
.lst-btn.prim:hover:not(:disabled) { background: var(--o-primary-hover); color: #fff; }
.lst-btn:disabled { opacity: .5; cursor: not-allowed; }
.acc-mas { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--o-border-strong); border-radius: 8px; background: var(--o-surface,#fff); cursor: pointer; padding: 0; color: var(--o-text-2); }
.acc-mas svg { width: 16px; height: 16px; fill: currentColor; }
.acc-mas:hover, .acc-mas.on { background: var(--o-surface-2); border-color: #94A3B8; color: var(--o-text); }
/* La columna de acciones es sticky (crea su propio contexto de apilado): mientras su menú está abierto se pone por encima del resto de filas. */
.page-body .data-table td:has(> .acc-menu), .page-body .data-table td:has(> .acc-capa) { z-index: 60 !important; }
.acc-capa { position: fixed; inset: 0; z-index: 1190; background: transparent; }
.acc-menu { position: fixed; z-index: 1200; min-width: 220px; max-width: 300px; background: var(--o-surface,#fff); border: 1px solid var(--o-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.16), 0 2px 6px rgba(15,23,42,.06); padding: 6px; display: grid; gap: 1px; visibility: hidden; animation: acc-in .12s ease-out; text-align: left; }
.acc-menu.listo { visibility: visible; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.acc-titulo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--o-faint); padding: 6px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; text-align: left; font-size: 13px; color: var(--o-text-2); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.acc-item:hover:not(:disabled) { background: var(--o-surface-3,#F1F5F9); color: var(--o-text); }
.acc-item:disabled { opacity: .45; cursor: not-allowed; }
.acc-item small { margin-left: auto; color: var(--o-faint); font-size: 11px; }
.acc-item.peligro { color: var(--o-bad); }
.acc-item.peligro:hover:not(:disabled) { background: var(--o-bad-bg); color: var(--o-bad); }
.acc-sep { height: 1px; background: var(--o-border); margin: 4px 2px; }

/* ── Confirmación ─────────────────────────────────────────────────────────────────── */
.cfm-capa { position: fixed; inset: 0; z-index: 3000; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: cfm-fade .12s ease-out; }
@keyframes cfm-fade { from { opacity: 0; } to { opacity: 1; } }
.cfm-card { width: min(440px, 100%); background: var(--o-surface,#fff); border-radius: 16px; box-shadow: var(--o-shadow-lg); padding: 22px; display: grid; grid-template-columns: 44px 1fr; gap: 14px 14px; animation: cfm-in .14s ease-out; }
@keyframes cfm-in { from { transform: translateY(6px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cfm-ico { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--o-info-bg); color: var(--o-info); }
.cfm-card.peligro .cfm-ico { background: var(--o-bad-bg); color: var(--o-bad); }
.cfm-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cfm-txt strong { display: block; font-size: 16px; color: var(--o-text); margin: 2px 0 6px; }
.cfm-txt p { margin: 0; color: var(--o-text-2); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.cfm-pie { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.cfm-pie > button { width: auto !important; min-width: 110px; flex: 0 0 auto; }
.cfm-pie .btn-danger { border-radius: 10px; padding: 9px 16px; background: #E11D48; }

/* ── Vacío / error ────────────────────────────────────────────────────────────────── */
.lst-estado { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 16px 44px; color: var(--o-muted); }
.lst-estado-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--o-surface-3,#F1F5F9); display: flex; align-items: center; justify-content: center; color: var(--o-faint); margin-bottom: 4px; }
.lst-estado-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lst-estado strong { color: var(--o-text); font-size: 15px; }
.lst-estado p { margin: 0 0 6px; max-width: 460px; font-size: 13px; }
.lst-estado.error .lst-estado-ico { background: var(--o-bad-bg); color: var(--o-bad); }
.lst-estado.error p { color: var(--o-bad); }

/* ── Avisos de acción (éxito / error tras una operación) ─────────────────────────── */
.lst-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2500; display: flex; align-items: center; gap: 10px; background: var(--o-primary); color: #fff; border-radius: 12px; padding: 11px 16px; box-shadow: var(--o-shadow-lg); font-size: 14px; max-width: min(560px, calc(100vw - 32px)); animation: cfm-in .16s ease-out; }
.lst-toast.error { background: #9F1239; }
.lst-toast button { background: none; border: 0; color: rgba(255,255,255,.75); font-size: 18px; cursor: pointer; padding: 0 0 0 6px; line-height: 1; }

/* ── Móvil ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .page-body .lst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
  .lst-kpis .kpi-tile { min-height: 0; padding: 8px 12px; }
  .lst-kpis .kpi-tile strong { font-size: 20px; }
  .lst-kpis .kpi-tile span { font-size: 12px; }
  .lst-kpis .kpi-tile small, .lst-kpis .kpi-tile .kpi-badge { display: none; }
  .lst-fechas { flex-wrap: wrap; height: auto; }
  .lst-fechas select { flex: 1 1 100%; height: 34px; border-right: 0 !important; border-bottom: 1px solid var(--o-border) !important; }
  .lst-fechas label { height: 34px; }
  .lst-fechas label + label { border-left: 1px solid var(--o-border); }
  .page-body .lst-filtros { padding: 8px; gap: 6px; }
  .lst-buscar { flex: 1 1 100%; max-width: none; }
  .page-body .lst-filtros .cliente-filtro { flex: 1 1 100%; }
  .lst-fechas { width: 100%; }
  .lst-fechas label { flex: 1 1 0; } .lst-fechas input { width: 100%; }
  .lst-fechas label span { display: none; }
  .seg-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg-chips::-webkit-scrollbar { display: none; }
  table.grid-cards .acc-fila { justify-content: flex-start; flex-wrap: wrap; }
  .page-body .data-table td.lst-acc { text-align: left; width: auto; }
}

/* Control de acceso: camión dentro más de 8 horas */
.acc-tarde { color: var(--o-bad) !important; font-weight: 600; }

/* ── Información del VIN (VinInfo) ────────────────────────────────────────────────── */
.vin-info { margin: 10px 0 16px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--o-border); background: var(--o-surface-2); font-size: 13px; color: var(--o-text-2); display: grid; gap: 6px; }
.vin-info.bien { border-color: var(--o-ok-b); background: var(--o-ok-bg,#F6FDF9); }
.vin-info.aviso { border-color: var(--o-warn-b); background: var(--o-warn-bg,#FFFDF5); }
.vin-info.mal { border-color: var(--o-bad-b); background: var(--o-bad-bg,#FFF8F9); }
.vin-info-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.vin-info-sello { font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--o-surface-3,#E2E8F0); color: var(--o-text-2); }
.vin-info.bien .vin-info-sello { background: var(--o-ok-bg); color: var(--o-ok); }
.vin-info.mal .vin-info-sello { background: var(--o-bad-bg); color: var(--o-bad); }
.vin-info.aviso .vin-info-sello { background: var(--o-warn-bg); color: var(--o-warn); }
.vin-info-modelo { color: var(--o-text); }
.vin-info-msg { font-size: 12.5px; }
.vin-info-msg.mal { color: var(--o-bad); } .vin-info-msg.aviso { color: var(--o-warn); }
.vin-info-link { background: none; border: 0; padding: 0 0 0 4px; color: var(--o-info); font-weight: 600; cursor: pointer; text-decoration: underline; }
.vin-info-acciones { display: flex; gap: 6px; flex-wrap: wrap; } .vin-info-acciones:empty { display: none; }
.vin-info-faltan { color: var(--o-muted); font-size: 12.5px; }

/* ── Historial de cambios (auditoría) ─────────────────────────────────────────────── */
/* la caja de las tablas tiene alto máximo y recorta: el historial no es una tabla y debe crecer con la página (se veían ~4 acciones) */
.hc-shell, .page-body .okcampa-table-shell.hc-shell { padding: 6px 0; max-height: none; overflow: visible; }
.hc-lista { list-style: none; margin: 0; padding: 4px 16px; }
.hc-item { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--o-border); }
.hc-item:last-child { border-bottom: 0; }
.hc-item::before { content: ""; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--o-info); box-shadow: 0 0 0 3px var(--o-info-bg); }
.hc-item.hc-alta::before { background: var(--o-ok); box-shadow: 0 0 0 3px var(--o-ok-bg); }
.hc-item.hc-baja::before { background: var(--o-bad); box-shadow: 0 0 0 3px var(--o-bad-bg); }
.hc-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.hc-accion { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--o-muted); }
.hc-clave { color: var(--o-muted); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.hc-sep { flex: 1 1 auto; }
.hc-quien { font-weight: 600; color: var(--o-text-2); }
.hc-cuando { color: var(--o-muted); font-size: 12px; white-space: nowrap; }
.hc-cambios { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.hc-cambios li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 12.5px; }
.hc-campo { color: var(--o-muted); min-width: 150px; }
.hc-ant { color: var(--o-bad); text-decoration: line-through; text-decoration-color: rgba(190,18,60,.35); word-break: break-word; }
.hc-flecha { color: var(--o-faint); }
.hc-nue { color: var(--o-text); font-weight: 600; word-break: break-word; }
.hc-mas { background: none; border: 0; color: var(--o-info); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0 0; }
.hc-pie { display: flex; justify-content: center; padding: 10px 0 14px; }
@media (max-width: 760px) { .hc-campo { min-width: 0; flex-basis: 100%; } .hc-sep { display: none; } }

/* ── Calidad de la operación (panel de inicio) ────────────────────────────────────── */
.iop { background: var(--o-surface,#fff); border: 1px solid var(--o-border); border-radius: 14px; box-shadow: var(--o-shadow); padding: 16px 18px; margin: 14px 0; }
.iop-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.iop-cab h2 { margin: 0; font-size: 16px; } .iop-cab span { color: var(--o-muted); font-size: 12.5px; }
.iop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.iop-tile { border: 1px solid var(--o-border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 3px; background: var(--o-surface-2); min-height: 86px; }
.iop-tile.cargando { background: linear-gradient(90deg, #f1f5f9, #f8fafc, #f1f5f9); background-size: 200% 100%; animation: iop-brillo 1.2s infinite linear; }
@keyframes iop-brillo { from { background-position: 200% 0; } to { background-position: 0 0; } }
.iop-tile span { font-size: 12.5px; color: var(--o-text-2); font-weight: 500; }
.iop-tile strong { font-size: 26px; font-weight: 700; color: var(--o-text); line-height: 1.1; }
.iop-tile strong small { font-size: 13px; font-weight: 600; color: var(--o-muted); }
.iop-tile em { font-style: normal; font-size: 11.5px; color: var(--o-muted); }
.iop-tile.iop-link { text-decoration: none; color: inherit; cursor: pointer; } .iop-tile.iop-link:hover { border-color: var(--o-primary); }
.iop-tile.aviso { background: var(--o-warn-bg); border-color: var(--o-warn-b); } .iop-tile.aviso strong { color: var(--o-warn); }
.iop-tile.mal { background: var(--o-bad-bg); border-color: var(--o-bad-b); } .iop-tile.mal strong { color: var(--o-bad); }
.iop-zonas { margin-top: 14px; display: grid; gap: 6px; }
.iop-zonas h3 { margin: 0 0 2px; font-size: 13px; color: var(--o-text-2); }
.iop-zona { display: grid; grid-template-columns: minmax(90px, 180px) 1fr 52px; gap: 10px; align-items: center; font-size: 12.5px; }
.iop-zona span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iop-zona i { height: 8px; background: var(--o-surface-3,#E2E8F0); border-radius: 99px; overflow: hidden; display: block; }
.iop-zona i em { display: block; height: 100%; background: #3B82F6; border-radius: 99px; }
.iop-zona i em.aviso { background: #F59E0B; } .iop-zona i em.mal { background: #E11D48; }
.iop-zona b { text-align: right; font-variant-numeric: tabular-nums; }
.iop-nota { color: var(--o-muted); font-size: 13px; }

/* ── Iconos de menú de las pantallas nuevas ───────────────────────────────────────── */
.sidebar a.nav-item[href="/pantalla"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='19' height='12.5' rx='2'/%3E%3Cpath d='M8 20.5h8M12 16.5v4M6.5 12.5l3-3.5 2.5 2 4-4.5'/%3E%3C/svg%3E")}
.sidebar a.nav-item[href="/auditoria"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3.5 2'/%3E%3C/svg%3E")}
.sidebar a.nav-item[href="/citas"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3Ccircle cx='12' cy='15' r='2.6'/%3E%3Cpath d='M12 13.8v1.3l.8.6'/%3E%3C/svg%3E")}
.sidebar a.nav-item[href="/reclamaciones"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M12 11v4M12 18h.01'/%3E%3C/svg%3E")}
.sidebar a.nav-item[href="/notificaciones-clientes"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E")}
.sidebar a.nav-item[href="/riesgo-meteorologico"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 15.5A4.5 4.5 0 0 0 16 6.6 6 6 0 0 0 4.5 9.5 3.5 3.5 0 0 0 5.5 16.5'/%3E%3Cpath d='m12.5 12-2.5 4.5h3.5L11 21'/%3E%3C/svg%3E")}
.sidebar a.nav-item[href="/aduanas"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.2 8 9 4.6-.8 8-4.5 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E")}
.sidebar a.nav-item[href="/edi"] .nav-icon{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h11l-3-3M17 17H6l3 3'/%3E%3Cpath d='M4 12h4M16 12h4'/%3E%3C/svg%3E")}

/* ── selección múltiple (PanelSeleccion + SeleccionLista): casillas solo con el modo activo y panel flotante fijo abajo ── */
.sel-activar.on { background: #1e40af; color: #fff; border-color: #1e40af; }
.data-table th.sel-col, .data-table td.sel-col { width: 38px; min-width: 38px; text-align: center; padding-left: 6px; padding-right: 6px; }
.data-table td.sel-col input, .data-table th.sel-col input { width: 18px; height: 18px; cursor: pointer; accent-color: #1e40af; }
.data-table tr.sel-on > td { background: var(--o-info-bg,#eff6ff) !important; }
.sel-panel { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 900; width: min(860px, calc(100vw - 24px)); box-sizing: border-box;
  display: grid; gap: 8px; padding: 10px 14px; border-radius: 16px; background: #0f172a; color: #e2e8f0; box-shadow: 0 16px 40px rgba(15, 23, 42, .45); animation: sel-entra .18s ease-out; }
@keyframes sel-entra { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.sel-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sel-cuenta { font-size: 14px; margin-right: auto; } .sel-cuenta b { font-size: 18px; color: #fff; }
.sel-mini { padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #e2e8f0; font-size: 13px; cursor: pointer; }
.sel-mini:hover { background: rgba(255, 255, 255, .08); }
.sel-cerrar { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; }
.sel-acciones { display: flex; flex-wrap: wrap; gap: 6px; }
.sel-acciones.vacio small { color: var(--o-faint,#94a3b8); }
.sel-acciones button { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.sel-acciones button:hover { background: rgba(255, 255, 255, .16); }
.sel-acciones button.prim { background: #2563eb; border-color: #2563eb; }
.sel-acciones button.peligro { border-color: rgba(248, 113, 113, .6); color: #fecaca; }
.sel-acciones button:disabled { opacity: .5; cursor: default; }
.sel-progreso { position: relative; padding: 6px 0 10px; font-size: 13.5px; } .sel-progreso i { position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 2px; background: #38bdf8; transition: width .2s; }
body:has(.sel-panel) .page-body { padding-bottom: 150px; }   /* que la última fila no quede tapada por el panel */
@media (max-width: 640px) { .sel-panel { bottom: 8px; padding: 10px; } .sel-acciones button { flex: 1 1 calc(50% - 6px); } }
/* con la selección activa, Mayús + clic no debe seleccionar texto */
.data-table:has(td.sel-col) tbody tr { user-select: none; -webkit-user-select: none; cursor: pointer; }
.vin-info-tit { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--o-muted); }
.vin-info-fuente { font-size: 11.5px; color: var(--o-muted); line-height: 1.4; }
.vin-info-msg.ok { color: var(--o-ok); font-weight: 600; }
