/* Incidencias de calidad foodVAC · solo lo propio de la app. Marca, cabecera, botones, tablas, tarjetas, menú de usuario
   y Ayuda vienen de https://ui.foodvac.es/v1/foodvac.css (no se redefinen tokens aquí). Nació del boceto aprobado por Car
   el 14/11/2026 (docs/boceto-2026-11-14.html, disposición A). Sin gris plano: el gris solo significa «apagado»
   (anulada, quitado, valor desactivado, hueco vacío con borde discontinuo). */
#login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
#login-screen[hidden] { display: none; }
.login-error:empty { display: none; }
.quien-rol { margin-top: 4px; color: var(--brand-dark) !important; font-weight: 700; }
.loading { color: var(--ink-mute); font-style: italic; padding: 50px; text-align: center; }
.error { color: var(--brand); padding: 24px; font-weight: 600; }
.error-caja { background: var(--brand-tint); box-shadow: inset 4px 0 0 var(--brand); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 10px 0 16px; color: var(--ink); }
.error-caja strong { color: var(--brand-dark); display: block; margin-bottom: 2px; }
.error-caja .botones { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.view-btn { text-decoration: none; }
.topbar .view-switcher { flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.topbar .view-switcher .view-btn .corto { display: none; }
.cabecera-vista { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; margin: 0.25rem 0 1.1rem; }
.cabecera-vista .section-meta { margin-top: 2px; }
.cabecera-vista .acciones { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.migas { font-size: 13px; margin: -4px 0 8px; }
.migas a { color: var(--ink-mid); text-decoration: none; font-weight: 600; }
.migas a:hover { color: var(--brand); }
.ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.solo-movil { display: none !important; }

/* Cifras de la bandeja */
.cifras { margin-bottom: 22px; }
.cifras .stat { padding: 14px 18px 14px 20px; }
.cifras .stat .value { font-size: 32px; margin-top: 4px; }
.cifras .value small { font-size: 15px; font-weight: 700; color: var(--ink-mid); letter-spacing: 0; margin-left: 4px; }
.cifras .sub { font-size: 12.5px; color: var(--ink-mid); margin-top: 8px; font-weight: 600; line-height: 1.45; }
.cifras .sub a { color: var(--brand-dark); text-decoration: none; border-bottom: 1px dotted currentColor; }
.cifras .reparto { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.cifras .reparto button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 10px; font: 700 12px var(--font); color: var(--ink); cursor: pointer; }
.cifras .reparto button b { color: var(--brand-dark); margin-right: 3px; }
.cifras .reparto button:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.value.sobre { color: var(--brand) !important; }
.value.bajo { color: var(--olive) !important; }
.medidor { position: relative; height: 6px; border-radius: 999px; background: var(--line-soft); margin-top: 10px; }
.medidor i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--olive); }
.medidor i.sobre { background: var(--brand); }
.medidor b { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink); border-radius: 2px; }
.dos-medidores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2px; }
.dos-medidores .mini-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.dos-medidores .mini-l { font-size: 11px; font-weight: 700; color: var(--ink-mid); }

/* Pestañas por tipo (mismo patrón que el subnav del Máster) */
.pestanas-tipo { display: flex; gap: 2px 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.pestanas-tipo::-webkit-scrollbar { display: none; }
.pestanas-tipo button { padding: 10px 14px 9px; font: 600 14px var(--font); color: var(--ink-mid); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pestanas-tipo button:hover { color: var(--brand); background: var(--brand-tint); }
.pestanas-tipo button.active { color: var(--brand); border-bottom-color: var(--brand); }
.cuenta { display: inline-block; min-width: 1.6em; padding: 0 0.4em; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); font-size: 11px; font-weight: 800; line-height: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }
.active .cuenta { background: var(--brand); color: #fff; }

/* Filtros en línea */
.filtros { display: flex; gap: 10px 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.filtro { display: grid; gap: 3px; }
.filtro > span { font-size: 11px; font-weight: 700; color: var(--ink-mid); letter-spacing: 0.04em; }
.filtro select { min-width: 150px; height: 38px; }
.filtro.busca { flex: 1 1 260px; max-width: 420px; margin-left: auto; position: relative; }
.filtro.busca input { width: 100%; height: 38px; padding-left: 36px; font-size: 14px; }
.filtro.busca .ico { position: absolute; left: 12px; bottom: 11px; color: var(--ink-mute); }
.limpiar { border: 0; background: none; color: var(--brand-dark); font: 700 12px var(--font); cursor: pointer; height: 38px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.recuento { font-size: 12px; color: var(--ink-mid); font-weight: 600; margin: -6px 0 10px; }

/* Tabla de incidencias */
.caja-tabla { border: 1px solid var(--line-hair); border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: #fff; overflow: clip; }
.tabla-inc { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tabla-inc th { position: sticky; top: var(--alto-cab, 80px); z-index: 5; background: #fff; color: var(--brand-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; padding: 11px 12px 9px; border-bottom: 2px solid var(--brand); white-space: nowrap; }
.tabla-inc th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tabla-inc th button:hover { color: var(--brand); }
.tabla-inc th button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.tabla-inc th .flecha { font-size: 10px; color: var(--brand); }
.tabla-inc td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabla-inc tbody tr:last-child td { border-bottom: 0; }
.tabla-inc tr.fila { cursor: pointer; }
.tabla-inc tr.fila:hover td, .tabla-inc tr.fila:focus-visible td { background: var(--brand-tint); }
.tabla-inc tr.fila:focus-visible { outline: none; }
.tabla-inc tr.fila:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.tabla-inc td.n { font-weight: 800; color: var(--ink); }
.tabla-inc tr.fila:hover td.n { color: var(--brand-dark); }
.tabla-inc td.desc { color: var(--ink); }
.tabla-inc td.quien { color: var(--ink-mid); font-weight: 600; }
.tabla-inc td.num, .tabla-inc th.num { text-align: right; }
.tabla-inc td.fecha { color: var(--ink-mid); }
.tabla-inc tr.apagada td { color: var(--ink-mute); }
.tabla-inc tr.apagada td.desc { text-decoration: line-through; text-decoration-color: rgba(26,26,26,.25); }
.sigla { font-size: 11.5px; font-weight: 700; color: var(--ink-mid); cursor: help; }
.bis { font-size: 11px; font-weight: 800; color: var(--brand-dark); background: var(--brand-tint); border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.tipo { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.tipo .ico { color: var(--brand-dark); width: 15px; height: 15px; }
.tabla-inc td.clipc { overflow: visible; padding-left: 6px; padding-right: 10px; text-align: right; }
.clip { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-mid); font-size: 12px; font-weight: 700; }
.clip .ico { width: 15px; height: 15px; }
.dias { font-weight: 700; color: var(--ink-mid); }
.dias.ojo { color: var(--rust); }
.dias.alerta { color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 8px; }
.ninguno { color: var(--ink-mute); }

/* Etiquetas de estado: color con sentido (rojo = sin tocar, óxido = analizando, oro = acciones, oliva = cerrada, gris = anulada = apagado) */
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px 2px 8px; white-space: nowrap; border: 1px solid transparent; line-height: 1.6; }
.estado::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.e-abierta { background: var(--brand); color: #fff; }
.e-analisis { background: #fbefe8; color: #96461c; border-color: #ecc8b2; }
.e-acciones { background: #fbf4e4; color: #7f5b1f; border-color: #e8d3a8; }
.e-cerrada { background: #eef2e4; color: #52622a; border-color: #cdd8b2; }
.e-anulada { background: #f4f3ef; color: var(--ink-mute); border-color: var(--line); text-decoration: line-through; }
.estado.grande { font-size: 13px; padding: 4px 12px 4px 10px; }

/* Personas */
.ex-plantilla { display: inline-block; font-size: 11px; font-weight: 600; color: var(--ink-mute); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0 7px; margin-left: 5px; line-height: 1.55; vertical-align: 1px; white-space: nowrap; }
.sistema { color: var(--sage); font-weight: 700; }

/* Tarjetas de incidencia (móvil y disposición B) */
.items { display: grid; gap: 10px; }
.item { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line-hair); border-radius: 12px; box-shadow: var(--shadow-card); padding: 12px 14px; transition: background .12s ease, box-shadow .12s ease; position: relative; }
.item:hover { background: var(--brand-tint); }
.item.sel { background: var(--brand-tint); box-shadow: inset 4px 0 0 var(--brand), var(--shadow-card); }
.item .l1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item .l1 .n { font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.item .l1 .n .ico { color: var(--brand-dark); }
.item .l2 { margin: 5px 0 6px; font-size: 14px; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .l3 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-mid); font-weight: 600; align-items: center; }
.item .l3 .dias { margin-left: auto; }
.item.apagada .l2 { color: var(--ink-mute); text-decoration: line-through; }
.vacio-lista { border: 1px dashed var(--line-strong); border-radius: var(--radius-card); padding: 34px 20px; text-align: center; color: var(--ink-mid); }
.vacio-lista strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.vacio-lista .botones { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }


/* Ficha */
.ficha { container-type: inline-size; container-name: ficha; }
.ficha-cab { align-items: flex-start; margin-bottom: 14px; }
.ficha-cab h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 26px; }
.ficha-sub { font-size: 13px; color: var(--ink-mid); margin-top: 4px; }
.ficha-sub b { color: var(--ink); font-weight: 700; }
.ficha-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.banda { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.banda p { flex: 1 1 320px; }
.banda.consulta { background: #fff; box-shadow: inset 4px 0 0 var(--gold), 0 0 0 1px var(--line); }
.banda.cerrada { background: #f3f6ec; box-shadow: inset 4px 0 0 var(--olive); }
.banda.anulada { background: #f4f3ef; box-shadow: inset 4px 0 0 var(--ink-mute); color: var(--ink-mid); }
.banda b { color: var(--ink); }

.pasos { display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 16px; }
.pasos-linea { list-style: none; display: flex; flex: 1 1 520px; min-width: 0; }
.pasos-linea li { flex: 1; position: relative; min-width: 0; }
.pasos-linea li::before { content: ''; position: absolute; top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.pasos-linea li:first-child::before { display: none; }
.pasos-linea li.hecho::before, .pasos-linea li.actual::before { background: var(--olive); }
.pasos-linea .paso { all: unset; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; text-align: center; border-radius: 10px; padding: 0 2px 2px; }
.pasos-linea button.paso { cursor: pointer; }
.pasos-linea button.paso:hover .bola { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.pasos-linea button.paso:hover .txt { color: var(--brand); }
.pasos-linea button.paso:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bola { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: #fff; border: 2px solid var(--line-strong); color: var(--ink-mid); position: relative; z-index: 1; }
.bola .ico { width: 15px; height: 15px; }
.hecho .bola { border-color: var(--olive); color: var(--olive); }
.actual .bola { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-tint); }
.actual.fin .bola { background: var(--olive); border-color: var(--olive); box-shadow: 0 0 0 4px #eef2e4; }
.txt { font-size: 12.5px; font-weight: 700; color: var(--ink-mid); line-height: 1.25; }
.actual .txt { color: var(--ink); }
.apagado .bola { border-color: var(--line); color: var(--ink-mute); }
.apagado .txt { color: var(--ink-mute); }
.pasos-acc { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pasos-acc .fila-b { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.discreto { border: 0; background: none; font: 700 12.5px var(--font); color: var(--ink-mid); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.discreto:hover { color: var(--brand); }
.pista-cierre { font-size: 12.5px; color: var(--ink-mid); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pista-cierre .ico { color: var(--rust); }
.pista-cierre.lista .ico { color: var(--olive); }
.aviso-cierre { background: var(--brand-tint); border-radius: 12px; box-shadow: inset 4px 0 0 var(--brand); padding: 12px 16px; margin: -4px 0 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.aviso-cierre strong { color: var(--brand-dark); font-size: 14.5px; }
.aviso-cierre p { flex: 1 1 300px; font-size: 13.5px; }
.aviso-cierre .botones { display: flex; gap: 8px; flex-wrap: wrap; }
.motivo-caja { background: #fff; border-radius: 12px; box-shadow: inset 4px 0 0 var(--brand), 0 0 0 1px var(--line); padding: 14px 16px; margin: -4px 0 16px; display: grid; gap: 10px; }
.motivo-caja .fila-m { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.motivo-caja .botones { display: flex; gap: 8px; }

.ficha-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.ficha-izq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.panel-tit { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panel-tit h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-dark); }
.panel-tit .nota { font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.subgrupo { font-size: 12px; font-weight: 800; color: var(--ink); margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.subgrupo:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 18px; }
.campo { position: relative; padding: 7px 64px 7px 0; border-radius: 8px; min-width: 0; }
.campo.ancho { grid-column: 1 / -1; }
.campo-et { display: block; font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.campo-val { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.campo-val.texto { white-space: pre-wrap; line-height: 1.55; }
.sin { color: var(--ink-mute); font-style: italic; }
.desact { font-size: 11px; color: var(--ink-mute); margin-left: 6px; border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0 7px; font-style: normal; }
.grav { display: inline-flex; gap: 3px; align-items: center; font-weight: 700; }
.grav i { width: 10px; height: 10px; border-radius: 3px; background: var(--line); }
.grav i.on { background: var(--rust); }
.grav span { margin-left: 6px; }
.editar { position: absolute; right: 0; top: 6px; border: 1px solid transparent; background: none; border-radius: 999px; padding: 2px 9px; font: 700 12px var(--font); color: var(--brand-dark); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; opacity: 0; transition: opacity .12s ease; }
.editar .ico { width: 13px; height: 13px; }
.campo:hover { background: #fffafa; }
.campo:hover .editar, .editar:focus-visible { opacity: 1; border-color: var(--brand); background: #fff; }
.editar:hover { background: var(--brand-tint) !important; }
@media (hover: none) { .editar { opacity: 1; } }
.editando { background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 10px 26px rgba(209,9,41,.10); padding: 12px 14px; display: grid; gap: 8px; margin: 6px 0; }
.editando .campo-et { color: var(--brand-dark); font-weight: 800; }
.editando .antes { font-size: 12.5px; color: var(--ink-mid); }
.editando .antes del { color: var(--ink-mute); }
.editando .botones { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.motivo-et { font-size: 12px; font-weight: 700; color: var(--ink-mid); }
.motivo-et span { font-weight: 500; color: var(--ink-mute); }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.vacio-campo { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 9px 12px; color: var(--ink-mute); font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.vacio-campo .falta { font-size: 11.5px; font-weight: 800; color: var(--brand-dark); background: var(--brand-tint); border-radius: 999px; padding: 1px 8px; font-style: normal; }
.vacio-campo button { font-size: 12px; }
.acciones-tres .campo { padding-left: 34px; }
.acciones-tres .campo::before { content: attr(data-n); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.relacion { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 12px 16px; }
.relacion:hover { background: var(--brand-tint); }
.relacion .ico-gr { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.relacion .ico-gr .ico { width: 20px; height: 20px; }
.relacion .rt { flex: 1; min-width: 0; }
.relacion .rt small { display: block; font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.relacion .rt b { font-size: 15px; }
.relacion .rt .rt-desc { display: block; margin-top: 3px; color: var(--ink-mid); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.relacion .ir { color: var(--brand); font-weight: 800; font-size: 18px; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.thumb { position: relative; display: grid; gap: 6px; min-width: 0; }
.thumb-img { all: unset; cursor: zoom-in; height: 96px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(26,26,26,.06); }
.thumb-img:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.thumb-img .ico { width: 30px; height: 30px; }
.thumb figcaption { font-size: 12px; line-height: 1.35; min-width: 0; }
.thumb .fn { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .fm { display: block; color: var(--ink-mute); }
.thumb .quitar { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink-mid); cursor: pointer; font-size: 16px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.15); opacity: 0; }
.thumb:hover .quitar, .thumb .quitar:focus-visible { opacity: 1; }
.thumb .quitar:hover { color: var(--brand); }
@media (hover: none) { .thumb .quitar { opacity: 1; } }
.thumb.quitado .thumb-img { filter: grayscale(1); opacity: .35; }
.thumb.quitado .fn { text-decoration: line-through; color: var(--ink-mute); }
.thumb-add { height: 96px; border: 1.5px dashed var(--brand-soft); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--brand-dark); font-weight: 700; font-size: 13px; cursor: pointer; background: #fff; }
.thumb-add:hover { background: var(--brand-tint); }
.thumb-add:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.thumb-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumb-add .ico { width: 22px; height: 22px; }

/* Línea de tiempo del historial */
.historial { position: sticky; top: calc(var(--alto-cab, 80px) + 14px); max-height: calc(100vh - var(--alto-cab, 80px) - 28px); overflow: auto; padding: 18px 18px 14px; }
.historial .panel-tit { position: sticky; top: -18px; background: #fff; margin: -18px -18px 10px; padding: 18px 18px 10px; z-index: 2; border-bottom: 1px solid var(--line-soft); }
.linea { list-style: none; position: relative; }
.linea::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line-soft); }
.apunte { position: relative; padding: 0 0 16px 32px; }
.apunte:last-child { padding-bottom: 4px; }
.apunte .punto { position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line-strong); }
.apunte.ap-alta .punto { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 2px #fff; }
.apunte.ap-importacion .punto { border-color: var(--sage); background: var(--sage); box-shadow: inset 0 0 0 2px #fff; }
.apunte.ap-estado .punto { border-color: var(--gold); }
.apunte.ap-cierre .punto { border-color: var(--olive); background: var(--olive); box-shadow: inset 0 0 0 2px #fff; }
.apunte.ap-reapertura .punto, .apunte.ap-anula .punto { border-color: var(--brand-dark); }
.apunte.ap-fichero .punto { border-color: var(--rust); }
.apunte .cab { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.apunte .quien { font-weight: 800; font-size: 13.5px; }
.apunte .cuando { font-size: 12px; color: var(--ink-mute); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.apunte .que { font-size: 12.5px; color: var(--ink-mid); font-weight: 600; }
.apunte .cambios { list-style: none; margin-top: 5px; display: grid; gap: 4px; }
.apunte .cambios li { font-size: 13px; line-height: 1.45; }
.h-campo { font-weight: 700; color: var(--ink-mid); margin-right: 4px; }
.apunte del { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(163,7,32,.55); }
.apunte ins { text-decoration: none; color: var(--ink); font-weight: 600; background: #f1f4e8; border-radius: 3px; padding: 0 3px; }
.apunte .flecha-h { color: var(--ink-mute); margin: 0 3px; }
.largo-h { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.motivo { margin-top: 6px; background: var(--brand-tint); box-shadow: inset 3px 0 0 var(--brand); border-radius: 0 8px 8px 0; padding: 5px 10px; font-size: 12.5px; line-height: 1.45; }
.motivo b { color: var(--brand-dark); }
.historial .pie-h { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-mute); display: flex; gap: 6px; align-items: flex-start; }
@container ficha (max-width: 880px) {
  .ficha-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .historial { position: static; max-height: none; overflow: visible; }
  .historial .panel-tit { position: static; }
}

/* Alta */
.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; }
.tipo-card { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: 1px solid var(--line-hair); border-radius: 18px; box-shadow: var(--shadow-card); padding: 24px 24px 22px; display: grid; gap: 8px; align-content: start; transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; color: inherit; }
.tipo-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--brand), 0 14px 30px rgba(26,26,26,.10); }
.tipo-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand); }
.tipo-card .ico-gr { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.tipo-card .ico-gr .ico { width: 28px; height: 28px; }
.tipo-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.tipo-card p { color: var(--ink-mid); font-size: 14px; line-height: 1.45; }
.tipo-card .ej { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; margin-top: 4px; }
.tipo-card .ir { margin-top: 10px; color: var(--brand); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.cambiar-tipo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -4px 0 16px; font-size: 13px; color: var(--ink-mid); font-weight: 600; }
.form-alta { max-width: 1040px; display: grid; gap: 16px; }
.grupo-f h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.grupo-f h3 .nn { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.grupo-f h3 small { font-size: 12.5px; font-weight: 600; color: var(--ink-mute); margin-left: 4px; }
.rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.rejilla .ancho { grid-column: 1 / -1; }
.cf { display: grid; gap: 6px; align-content: start; min-width: 0; position: relative; }
.cf > label, .cf > .et { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cf .opc { font-weight: 500; color: var(--ink-mute); font-size: 12.5px; }
.cf .pista { font-size: 12.5px; color: var(--ink-mute); }
.control { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; font: 500 15px var(--font); color: var(--ink); background: #fff; transition: border-color .12s, box-shadow .12s; }
textarea.control { height: auto; min-height: 112px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
select.control { font-weight: 500; }
.control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.control::placeholder { color: #aaa9a3; }
.cf.con-error .control { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.error-campo { font-size: 12.5px; color: var(--brand-dark); font-weight: 700; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.op { position: relative; }
.op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.op span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: all .12s; user-select: none; }
.op span:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.op input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.op input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.buscador { position: relative; }
.buscador > .ico { position: absolute; left: 14px; top: 15px; color: var(--ink-mute); pointer-events: none; }
.buscador .control { padding-left: 40px; }
.sugerencias { list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(26,26,26,.14); padding: 6px; max-height: 300px; overflow: auto; }
.sugerencias button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.sugerencias button small { color: var(--ink-mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sugerencias button:hover, .sugerencias button.activa { background: var(--brand-tint); color: var(--brand-dark); }
.sugerencias mark { background: none; color: var(--brand); font-weight: 800; }
.sugerencias .pie-s { padding: 8px 12px 4px; font-size: 12px; color: var(--ink-mute); border-top: 1px solid var(--line-soft); margin-top: 4px; }
.aviso-cat { font-size: 12.5px; color: #7f5b1f; background: #fbf4e4; border-radius: 8px; padding: 5px 10px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 4px 6px 4px 12px; }
.chip button { border: 0; background: #fff; width: 22px; height: 22px; border-radius: 50%; color: var(--brand-dark); cursor: pointer; font-size: 15px; line-height: 1; }
.chip button:hover { background: var(--brand); color: #fff; }
.casilla-grande { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; background: #fff; }
.casilla-grande:hover { border-color: var(--brand); }
.casilla-grande input { width: 22px; height: 22px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.casilla-grande b { display: block; font-size: 14.5px; }
.casilla-grande span { font-size: 13px; color: var(--ink-mid); }
.caja-prov { border-radius: 12px; box-shadow: inset 4px 0 0 var(--brand), 0 0 0 1px var(--line); padding: 16px 18px 18px 22px; display: grid; gap: 14px; }
.caja-prov .cab-p { font-size: 13.5px; color: var(--ink-mid); }
.caja-prov .cab-p b { color: var(--brand-dark); }
.zona-fotos { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 26px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; transition: background .12s, border-color .12s; }
.zona-fotos.encima { background: var(--brand-tint); border-color: var(--brand); }
.zona-fotos .ico-gr { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; }
.zona-fotos .ico-gr .ico { width: 26px; height: 26px; }
.zona-fotos p { color: var(--ink-mid); }
.zona-fotos p b { color: var(--ink); }
.zona-fotos .botones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.previas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.previas .pv { width: 92px; height: 72px; border-radius: 10px; background-size: cover; background-position: center; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.previas .pv button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; color: var(--ink-mid); }
.nota-alta { font-size: 13px; color: var(--ink-mid); display: flex; gap: 8px; align-items: center; }
.barra-guardar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 4px; max-width: 1040px; }
.barra-guardar .resumen-g { font-size: 13.5px; color: var(--ink-mid); }
.barra-guardar .resumen-g b { color: var(--ink); }
.barra-guardar .resumen-g .falta-g { color: var(--brand-dark); font-weight: 700; }
.barra-guardar .botones { display: flex; gap: 10px; align-items: center; }
.barra-guardar .btn-primary { padding: 12px 30px; font-size: 14px; }

/* Registro de cambios */
.tabla-inc td.antes { color: var(--ink-mute); }
.tabla-inc td.antes del { text-decoration-color: rgba(163,7,32,.45); }
.tabla-inc td.despues { color: var(--ink); font-weight: 600; }
.tabla-inc td.motivo-c { color: var(--ink-mid); font-style: italic; }
.tabla-inc td.inc-c a { color: var(--ink); font-weight: 800; text-decoration: none; }
.tabla-inc tr.fila:hover td.inc-c a { color: var(--brand-dark); }
.cambio-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line-hair); border-radius: 12px; box-shadow: var(--shadow-card); padding: 11px 14px; }
.cambio-card .l1 { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-mid); font-weight: 600; }
.cambio-card .l1 b { color: var(--ink); }
.cambio-card .l2 { font-size: 13.5px; margin-top: 4px; }

/* Resumen */
.kpis { margin-bottom: 18px; }
.kpis .stat .value { font-size: 32px; }
.kpis .stat .sub { font-size: 12.5px; color: var(--ink-mid); margin-top: 8px; font-weight: 600; }
.grafico-caja { overflow-x: auto; }
.grafico-caja svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--font); }
.leyenda { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-mid); font-weight: 600; margin-top: 4px; }
.leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.leyenda i.linea-l { height: 0; border-top: 2px dashed var(--brand-dark); border-radius: 0; width: 18px; vertical-align: 3px; }
.leyenda i.linea-p { height: 0; border-top: 2px dotted var(--brand-dark); border-radius: 0; width: 18px; vertical-align: 3px; }
.leyenda i.linea-a { height: 0; border-top: 2px solid var(--ink); border-radius: 0; width: 18px; vertical-align: 3px; }
.g-grid { stroke: var(--line-soft); stroke-width: 1; }
.g-eje { fill: var(--ink-mute); font-size: 11px; font-weight: 600; }
.g-mes { fill: var(--ink-mid); font-size: 12px; font-weight: 700; }
.g-val { fill: var(--ink-mid); font-size: 10.5px; font-weight: 700; }
.g-val-in { fill: #fff; font-size: 11.5px; }
.g-ok { fill: var(--olive); }
.g-sobre { fill: var(--brand); }
.g-cal { fill: var(--brand-dark); }
.g-cz { fill: var(--gold); }
.g-prov { fill: var(--sage); }
.g-vacio { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 3; }
.g-obj { stroke: var(--brand-dark); stroke-width: 1.5; stroke-dasharray: 6 4; }
.g-obj-pf { stroke: var(--brand-dark); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.g-obj-t { fill: var(--brand-dark); font-size: 11.5px; font-weight: 800; }
.g-acu { fill: none; stroke: var(--ink); stroke-width: 2; }
.g-acu-p { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.g-acu-t { fill: var(--ink); font-size: 11.5px; font-weight: 800; }
.nota-erp { display: flex; gap: 10px; align-items: flex-start; background: #fbf4e4; border-radius: 12px; padding: 11px 15px; font-size: 13.5px; color: #6b4d1a; margin-bottom: 18px; box-shadow: inset 4px 0 0 var(--gold); }
.nota-erp b { color: #4e3712; }
.tabla-res td.cero { color: var(--ink-mute); }
.tabla-res td.prev, .tabla-res th.prev { color: var(--ink-mute); }
.tabla-res tfoot td.sobre { color: var(--brand); }
.tabla-res tfoot td.bien { color: var(--olive); }
.tabla-res tfoot td.de-erp { font-weight: 600; color: var(--ink-mid); font-style: italic; }
.resumen-grid { display: grid; gap: 18px; }

/* Listas */
.nota-listas { margin-bottom: 18px; }
.listas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.lista-p .panel-tit { margin-bottom: 6px; }
.lista-p .para { font-size: 12px; color: var(--ink-mute); font-weight: 600; margin: -2px 0 8px; }
.valor-l { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.valor-l:last-of-type { border-bottom: 0; }
.valor-l.off .vt { color: var(--ink-mute); }
.valor-l.off .vt .vv { text-decoration: line-through; }
.valor-l .vt small { display: block; text-decoration: none; font-size: 11.5px; color: var(--ink-mute); font-weight: 600; }
.interruptor { all: unset; cursor: pointer; width: 38px; height: 22px; border-radius: 999px; background: var(--olive); position: relative; flex: none; transition: background .15s; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.interruptor[aria-checked="false"] { background: var(--line-strong); }
.interruptor[aria-checked="false"]::after { left: 3px; }
.interruptor:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.anadir-v { display: flex; gap: 8px; margin-top: 10px; }
.anadir-v input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; font: 500 13.5px var(--font); }
.anadir-v input:focus { outline: none; border-color: var(--brand); }
.catalogos .cli { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.catalogos .cli b { font-variant-numeric: tabular-nums; }
.sin-permiso { max-width: 620px; margin: 30px auto; text-align: center; padding: 34px 26px; }
.sin-permiso h2 { font-size: 20px; margin-bottom: 6px; }
.sin-permiso p { color: var(--ink-mid); margin-bottom: 16px; }

/* Aviso flotante y botón flotante */
.aviso-flotante { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 10px; font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 90; max-width: 90vw; }
.fab { position: fixed; right: 16px; bottom: 18px; z-index: 40; box-shadow: 0 10px 26px rgba(209,9,41,.35); padding: 15px 22px; font-size: 14px; }

/* ---------- Móvil de verdad (390 px) ---------- */
@media (max-width: 900px) {
  .tipos { grid-template-columns: 1fr; }
  .solo-escritorio { display: none !important; }
  .solo-movil { display: revert !important; }
  .items.solo-movil, .cambios-movil.solo-movil { display: grid !important; }
}
@media (max-width: 760px) {
  .topbar .view-switcher .view-btn .largo { display: none; }
  .topbar .view-switcher .view-btn .corto { display: inline; }
  .topbar .view-switcher { order: 3; width: 100%; justify-content: space-between; }
  .topbar .view-switcher .view-btn { padding: 7px 8px; font-size: 11px; letter-spacing: 0.03em; flex: 1; text-align: center; }
  .topbar .title-block { flex: 1 1 auto; }
  .top-actions { display: contents; }
  .topbar .view-switcher { margin-top: 2px; }
  .cifras .stat:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: end; }
  .cifras .stat:first-child .label { grid-column: 1 / -1; }
  .cifras .stat:first-child .reparto { margin: 0 0 3px; }
  .cifras .reparto button { font-size: 11.5px; padding: 2px 8px; }
  .pestanas-tipo button { padding: 9px 9px 8px; font-size: 13.5px; }
  .pestanas-tipo button .ico { display: none; }
  .ayuda-boton { height: 32px; padding: 0 11px; font-size: 11px; margin-right: 0; }
  .cabecera-vista { margin-bottom: 0.8rem; }
  .cabecera-vista .acciones .btn-primary { display: none; }
  .section-title { font-size: 20px; }
  .cifras.stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cifras .stat { padding: 11px 12px 11px 15px; }
  .cifras .stat .value { font-size: 26px; }
  .cifras .stat .label { font-size: 10px; letter-spacing: 0.08em; }
  .cifras .sub { font-size: 12px; margin-top: 5px; }
  .dos-medidores { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cifras .stat:last-child { grid-column: 1 / -1; }
  .dos-medidores .mini-v { font-size: 18px; }
  .filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filtro select { min-width: 0; width: 100%; height: 42px; font-size: 14px; }
  .filtro.busca { grid-column: 1 / -1; order: -1; max-width: none; margin: 0; }
  .filtro.busca input { height: 44px; font-size: 16px; }
  .limpiar { grid-column: 1 / -1; height: auto; justify-self: start; }
  .ficha-cab h2 { font-size: 22px; }
  .pasos { padding: 14px 12px; }
  .pasos-linea { flex-basis: 100%; }
  .txt { font-size: 11.5px; }
  .pasos-acc { align-items: stretch; width: 100%; }
  .pasos-acc .fila-b { justify-content: space-between; }
  .pasos-acc .btn-primary { flex: 1; justify-content: center; padding: 13px 18px; }
  .panel { padding: 16px; }
  .campos { grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .campo { padding-right: 34px; }
  .campo .editar { font-size: 0; gap: 0; padding: 6px; right: -4px; top: 2px; opacity: 1; border-color: transparent; }
  .campo .editar .ico { width: 15px; height: 15px; }
  .panel-tit .nota-edit { display: none; }
  .rejilla { grid-template-columns: 1fr; gap: 16px; }
  .control { font-size: 16px; height: 50px; }
  textarea.control { font-size: 16px; }
  .op span { min-height: 46px; padding: 0 16px; }
  .opciones.llenas { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
  .opciones.llenas .op span { width: 100%; justify-content: center; }
  .barra-guardar { padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
  .barra-guardar .resumen-g { font-size: 12.5px; width: 100%; }
  .barra-guardar .botones { width: 100%; }
  .barra-guardar .btn-primary { flex: 1; justify-content: center; padding: 15px 20px; }
  .kpis.stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis .stat { padding: 12px 14px; }
  .kpis .stat .value { font-size: 24px; }
  .kpis .stat .label { font-size: 10px; letter-spacing: 0.06em; }
  .ficha-cab { gap: 6px; }
}
@media (min-width: 901px) { .fab { display: none !important; } }


/* ---------- Añadidos de la app real ---------- */
.aviso-flotante.error { background: var(--brand-dark); }
.mas-filas { display: flex; justify-content: center; gap: 12px; align-items: center; margin: 16px 0 0; font-size: 13px; color: var(--ink-mid); }
.cifra-nota { font-size: 11.5px; color: var(--ink-mute); font-weight: 600; margin-top: 6px; line-height: 1.35; }
.mini-n { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }
.conflicto { background: #fbf4e4; box-shadow: inset 4px 0 0 var(--gold); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: -4px 0 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.conflicto p { flex: 1 1 320px; font-size: 13.5px; }
.conflicto strong { color: #6b4d1a; }
.subida { max-width: 760px; }
.subida-lista { list-style: none; display: grid; gap: 10px; margin: 12px 0 16px; }
.subida-lista li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line-hair), var(--shadow-card); }
.subida-lista .pv { width: 64px; height: 50px; border-radius: 8px; background-size: cover; background-position: center; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); background-color: #f6efe6; }
.subida-lista .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subida-lista .st { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.subida-lista .st.ok { color: var(--olive); }
.subida-lista .st.mal { color: var(--brand-dark); }
.subida-lista .st.va { color: var(--rust); }
.barra-prog { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 4px; }
.barra-prog i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.recuperado { background: #f3f6ec; box-shadow: inset 4px 0 0 var(--olive); border-radius: 0 12px 12px 0; padding: 10px 14px; margin: 0 0 14px; font-size: 13.5px; }
.cat-lista { max-height: 260px; overflow: auto; margin-top: 8px; }
.oculto-accesible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .mas-filas { flex-direction: column; } }
a.btn-primary, a.btn-outline, a.btn { text-decoration: none; }
