/* AccessCRM: tema oscuro azul, tarjetas con borde fino, menú lateral izquierdo. Sin estilos en línea (CSP estricta). */
:root {
  color-scheme: dark;
  --bg: #08111f; --bg2: #0c1a2e; --card: #0f1f35; --card2: #142842; --line: #1e3753; --line2: #2a4a6e;
  --ink: #eaf1fb; --soft: #8fa5c0; --acc: #2f9bff; --acc2: #23c9f0; --acc-soft: #12304f;
  --ok: #34d399; --ok-soft: #0f3a2f; --warn: #fbbf24; --warn-soft: #3d3010; --bad: #f87171; --bad-soft: #43191c;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(1200px 600px at 50% -200px, #12294a 0%, var(--bg) 60%) fixed; color: var(--ink);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--acc2); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app { max-width: 720px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-left, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 46px; height: 46px; border-radius: 13px; background: #fff; display: grid; place-items: center; flex: none; }
.logo svg { width: 30px; height: 30px; }
.marca b { display: block; font-size: 17px; line-height: 1.15; }
.marca span { display: block; color: var(--soft); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.redondo { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.redondo svg, .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sec-label { color: var(--acc); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.titulo { font-size: 30px; font-weight: 700; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.titulo svg { width: 28px; height: 28px; stroke: var(--acc2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sub { color: var(--soft); font-size: 15px; }
.cabecera { display: grid; gap: 6px; padding-top: 6px; }

.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.card.plano { background: var(--card); }
.pila { display: grid; gap: 12px; }
.fila { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fila.nowrap { flex-wrap: nowrap; }
.mut { color: var(--soft); font-size: 14px; }
.sep { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

.item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: linear-gradient(180deg, var(--card2), var(--card)); }
.item:hover, .item:focus-visible { border-color: var(--acc); }
.item.sel { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.ic { width: 48px; height: 48px; border-radius: 14px; background: #0a1a2e; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--acc2); }
.item .txt { min-width: 0; flex: 1; }
.item .txt b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.item .txt span { display: block; color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.num { font-family: var(--mono); font-size: 13px; color: var(--soft); }
.num.dia { font-family: inherit; white-space: nowrap; }
.num.dia.atrasado { color: var(--bad); font-weight: 600; }
.sec-label.dia-tit { margin-top: 8px; }
.sec-label.dia-tit.atrasado { color: var(--bad); }
.dia-campo { gap: 6px; }
.dias-rap { gap: 6px; }
.filtros button.rojo { color: var(--bad); }

.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--acc-soft); color: var(--acc2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.gris { background: #1a2a40; color: var(--soft); }

.btn { border: 1px solid var(--line2); background: var(--card2); border-radius: 12px; min-height: 48px; padding: 10px 18px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--acc); }
.btn.pri { background: linear-gradient(135deg, #2f9bff, #1f7ae0); border-color: transparent; color: #fff; }
.btn.peligro { color: var(--bad); border-color: #5a2a2e; }
.btn.chico { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.acciones .btn { flex: 1 1 140px; }
.mapa-acc .btn { flex: 0 0 auto; }
.item .txt .hecho { color: var(--ok); font-weight: 600; }
.mov-entrega { color: var(--acc); }
.mov-devolucion { color: var(--warn); }
.globo-btn { margin-top: 8px; width: 100%; }
.globo-acc { display: flex; gap: 6px; margin-top: 6px; }
.globo-acc .btn { flex: 1; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.leaflet-popup-content .mono { font-family: var(--mono); user-select: all; }
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 99px; min-height: 54px; padding: 0 22px; box-shadow: 0 10px 28px rgba(31, 122, 224, .45); z-index: 20; }

/* Menú lateral izquierdo con categorías en acordeón. Celular: se desliza desde la izquierda. PC: queda fijo. */
.menu { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(300px, 86vw); overflow-y: auto; background: var(--bg2); border-right: 1px solid var(--line);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 6px; transform: translateX(-105%); visibility: hidden; }
.menu-abierto .menu { transform: none; visibility: visible; }
.menu-velo { position: fixed; inset: 0; z-index: 65; background: rgba(3, 8, 16, .6); display: none; }
.menu-abierto .menu-velo { display: block; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-top b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-top .redondo { width: 40px; height: 40px; }
.menu details.grupo { border: 0; }
.menu summary { list-style: none; min-height: 48px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--card); }
.menu summary span { flex: 1; }
.menu summary svg, .menu li svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu summary svg:first-child { color: var(--acc2); }
.menu summary svg:last-child { color: var(--soft); }
.menu details[open] > summary svg:last-child { transform: rotate(90deg); }
.menu ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 20px; display: grid; gap: 2px; border-left: 1px solid var(--line); margin-left: 19px; }
.menu li button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); font-size: 15px; font-weight: 600; text-align: left; }
.menu li button:hover { color: var(--ink); background: var(--card); }
.menu li button[aria-current="page"] { color: var(--acc2); background: #0f2744; }
.menu-salir { margin-top: auto; width: 100%; }
.top .menu-btn { order: -1; }
.top .marca { flex: 1; }
.menu-abierto { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .menu { transition: transform .22s ease, visibility .22s; } .menu summary svg:last-child { transition: transform .15s; } }
@media (min-width: 1000px) {
  .menu { transform: none; visibility: visible; width: 280px; }
  .menu-velo, .menu-btn, .menu-x { display: none !important; }
  .menu-abierto { overflow: auto; }
  body { padding-left: 280px; }
  /* El contenido arranca pegado al menú (sin centrarse en el espacio libre) y usa más ancho. */
  .app { margin: 0; max-width: 1100px; padding-left: 20px; padding-right: 24px; }
}

label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.in { width: 100%; min-height: 50px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2); background: #0a182b; color: var(--ink); font-weight: 400; }
.in::placeholder { color: #5b7390; }
.in.mono { font-family: var(--mono); }
textarea.in { min-height: 92px; resize: vertical; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .dos { grid-template-columns: 1fr; } .tres { grid-template-columns: 1fr 1fr 1fr; } }
.err { color: var(--bad); font-size: 14px; }
.ok-txt { color: var(--ok); font-size: 14px; }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filtros button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--soft); min-height: 40px; }
.filtros button[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.tile b { display: block; font-size: 26px; line-height: 1.1; font-family: var(--mono); font-weight: 600; }
.tile span { font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.barra { height: 8px; border-radius: 99px; background: #17304c; overflow: hidden; }
.barra i { display: block; height: 100%; background: linear-gradient(90deg, #2f9bff, #23c9f0); border-radius: 99px; }

.chk { display: flex; gap: 14px; align-items: flex-start; min-height: 52px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.chk:first-of-type { border-top: 0; }
.chk input { width: 28px; height: 28px; margin: 0; accent-color: var(--acc); flex: none; }
.chk span.t { padding-top: 2px; flex: 1; min-width: 0; }
.foto-fila { display: flex; gap: 10px; align-items: center; padding: 0 0 10px 42px; }
.foto-fila img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line2); }
.veredicto { border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; font-size: 15px; }
.veredicto b { font-size: 17px; }
.veredicto.ok { background: var(--ok-soft); color: var(--ok); }
.veredicto.warn { background: var(--warn-soft); color: var(--warn); }
.veredicto.bad { background: var(--bad-soft); color: var(--bad); }
.falta { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.falta ul { margin: 6px 0 0; padding-left: 20px; }
pre.parte { margin: 0; font: 13px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; background: #0a182b; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
details { border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; min-height: 52px; display: flex; align-items: center; }
details ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--soft); border-top: 0; }
td.n { font-family: var(--mono); white-space: nowrap; }
.zonas-chk { display: flex; flex-wrap: wrap; gap: 8px; }
.zonas-chk label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 99px; padding: 8px 14px; font-size: 14px; color: var(--ink); font-weight: 500; min-height: 44px; }
.zonas-chk input { width: 18px; height: 18px; accent-color: var(--acc); }

.velo { position: fixed; inset: 0; z-index: 60; background: rgba(3, 8, 16, .72); display: grid; align-items: end; justify-items: center; }
.hoja { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.hoja h2 { font-size: 22px; }
.clave-temp { font: 600 22px var(--mono); letter-spacing: .04em; background: #0a182b; border: 1px dashed var(--acc); border-radius: 12px; padding: 14px; text-align: center; user-select: all; overflow-wrap: anywhere; }
video.vista { width: 100%; border-radius: 14px; background: #000; max-height: 50vh; }

.login { min-height: 100vh; display: grid; align-content: center; justify-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); gap: 20px; }
.login .card { width: 100%; max-width: 420px; display: grid; gap: 14px; }
.login .logo { width: 72px; height: 72px; border-radius: 20px; }
.login .logo svg { width: 46px; height: 46px; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #16314f; border: 1px solid var(--line2); padding: 12px 20px; border-radius: 99px; z-index: 80; font-size: 15px; max-width: 90vw; }
.toast.mal { background: var(--bad-soft); border-color: #6b2a30; color: #ffd6d2; }
.spin { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .barra i { transition: width .25s; } .item { transition: border-color .15s; } }

img.miniatura { object-fit: cover; border-radius: 10px; border: 1px solid var(--line2); }
.menu-jornada { margin-top: auto; width: 100%; }
.menu-jornada + .menu-salir { margin-top: 8px; }
.btn.jornada.on { color: var(--ok); border-color: #1f5c47; background: var(--ok-soft); }
.mapa { height: 60vh; min-height: 320px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: #0a182b; }
.mapa .leaflet-control-attribution { font-size: 10px; }
.pin-tec { width: 30px; height: 30px; border-radius: 50%; background: var(--acc); border: 3px solid #fff; color: #fff; display: grid; place-items: center; font: 700 12px var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.pin-tec.viejo { background: #6b7f99; }
.dni-ok { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.filtros.envolver { flex-wrap: wrap; overflow: visible; }
.item.quieto { cursor: default; }
.item.quieto:hover { border-color: var(--line); }
.grupo-mat { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; gap: 10px; }
.grupo-mat summary { cursor: pointer; font-weight: 600; }
.rojo { color: var(--bad); }
.tabla-x { overflow-x: auto; }
.item .txt .barra { display: block; margin-top: 6px; }
.der-col { display: grid; gap: 4px; justify-items: end; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 99px; background: var(--warn); color: #111; font-size: 12px; font-weight: 800; }
.card.alerta { border-color: var(--warn); }
.datos-noc { margin: 0; padding: 10px 12px; border-radius: 10px; background: #0b1626; white-space: pre-wrap; font-size: 13px; line-height: 1.5; }
.noc-top { margin-left: auto; border-color: var(--warn); color: var(--warn); }
.qr-2fa { display: grid; place-items: center; min-height: 120px; }
.qr-2fa img { width: 220px; max-width: 100%; height: auto; image-rendering: pixelated; border-radius: 12px; background: #fff; }
.aviso-push { border-color: var(--acc); margin-bottom: 14px; }
.ic-push { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--acc-soft); color: var(--acc2); }
.ic-push svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-instalar { width: 100%; margin-bottom: 8px; }
.acciones.centro { justify-content: center; margin-top: 14px; }
.pasos-ios { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.bajas { margin-top: 18px; }
/* Recuadros que se tocan: Pendientes / En curso / Completados. */
.tile-btn { text-align: left; color: var(--ink); cursor: pointer; border-left-width: 4px; transition: border-color .15s, transform .1s; }
.tile-btn:hover { border-color: var(--acc); }
.tile-btn:active { transform: scale(.98); }
.tile-btn.gris { border-left-color: var(--soft); }
.tile-btn.warn { border-left-color: var(--warn); }
.tile-btn.warn b { color: var(--warn); }
.tile-btn.ok { border-left-color: var(--ok); }
.tile-btn.bad { border-left-color: var(--bad); }
.tile-btn.bad b { color: var(--bad); }
.tile-btn.ok b { color: var(--ok); }
.tile-btn[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc); }
/* Ojito para ver la contraseña */
.clave-caja { position: relative; display: block; }
.clave-caja .in { padding-right: 54px; }
.ojo { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--soft); }
.ojo:hover, .ojo[aria-pressed="true"] { color: var(--acc2); background: var(--acc-soft); }
.ojo svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Escáner: franja ancha para códigos de barras (MAC, bobina) con línea guía */
.visor { position: relative; overflow: hidden; border-radius: 14px; background: #000; }
.visor video { display: block; width: 100%; max-height: 50vh; }
.visor.ancho { aspect-ratio: 16 / 7; }
.visor.ancho video { height: 100%; max-height: none; object-fit: cover; }
.visor .mira { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff3b3b; box-shadow: 0 0 10px 1px #ff3b3b; pointer-events: none; }
.visor.ancho::after { content: ""; position: absolute; inset: 10% 4%; border: 2px solid #ffffffb3; border-radius: 10px; pointer-events: none; }
[data-linterna][aria-pressed="true"] { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.aviso-jornada { border-color: var(--warn); margin-bottom: 14px; }
.aviso-jornada .ic-push { background: var(--warn-soft); color: var(--warn); }
.aviso-mal { border-color: var(--bad); }
.aviso-mal .ic-push { background: var(--bad-soft); color: var(--bad); }
/* Escáner de DNI: visor horizontal con marco del tamaño del documento */
.visor.doc { aspect-ratio: 4 / 3; max-height: 62vh; margin-inline: auto; }
.visor.doc video { height: 100%; max-height: none; object-fit: cover; }
.visor .marco-pdf { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; aspect-ratio: 1.586;
  border: 2px dashed #ffffffd9; border-radius: 12px; box-shadow: 0 0 0 999px #0006; pointer-events: none; }
.ok-scan { font-size: 14px; color: var(--warn); }
.sel-zona { margin-bottom: 2px; }
/* Horario laboral: una fila por día */
.fila-dia { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(90px, 1fr) auto minmax(90px, 1fr); gap: 8px; align-items: center; }
.fila-dia .chk { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.fila-dia .chk input { width: 20px; height: 20px; }
/* Trabajos varios: las tareas tocadas quedan marcadas. */
.zonas-chk.tareas label:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); font-weight: 700; }
/* En una fila de dos, un campo no se estira a la altura del de al lado (ej. costo junto a la fecha con botones). */
label.f { align-content: start; }
.costo-fila { align-items: end; }
/* Fotos del trabajo terminado: miniatura con el botón de borrar encima. */
.foto-mini { position: relative; display: inline-block; }
.foto-mini .btn { position: absolute; top: 4px; right: 4px; min-height: 0; padding: 4px; }
/* Planes y cobros: resultado de "Probar conexión" con Mercado Pago */
.prueba-ok { border-color: var(--ok); background: var(--ok-soft); }
.prueba-ok b { color: var(--ok); }
.prueba-mal { border-color: var(--bad); background: var(--bad-soft); }
.prueba-mal b { color: var(--bad); }
.prueba-ok b svg, .prueba-mal b svg { width: 18px; height: 18px; vertical-align: -3px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Equipos por técnico: cada fila abre los equipos de ese técnico */
.eq-tec { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.eq-tec:first-of-type { border-top: 0; }
.eq-tec:hover b, .eq-tec:focus-visible b { color: var(--acc); }
/* Visitas confirmadas por zona (lista de la oficina/NOC) */
.conf-zona { padding: 6px 0; border-top: 1px solid var(--line); }
details > summary.sec-label { cursor: pointer; }
@media (max-width: 520px) { .tiles.cuatro { grid-template-columns: repeat(2, 1fr); } }
/* Cable por técnico: filas que se tocan para elegir técnico */
tr.fila-tec { cursor: pointer; }
tr.fila-tec:hover td { background: var(--card-2, rgba(255,255,255,.04)); }
tr.total td { border-top: 2px solid var(--line); }
pre.parte.msg-previa { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.45; }

button.link { background: none; border: 0; padding: 0; color: var(--acc); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fichas-tec tr.grupo-ini td { border-top: 2px solid var(--line2); }
.fichas-tec small.fecha-ult { display: block; font-size: 11px; white-space: nowrap; }
.fichas-tec td[rowspan] { vertical-align: top; }
