/* inoutin · componentes del área «gestion» (complementan app.css; usar siempre los tokens var(--…)) */

/* ── Panel (dashboard) ───────────────────────────────────────────── */
.dash-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.dash-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-banner p { margin: 0; flex: 1; min-width: 220px; }
.dash-plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-plan h2 { margin-bottom: 4px; }
.dash-pedidos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.dash-pedido { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--superficie); border: 1px solid var(--aviso-borde); border-radius: var(--radio-s); color: var(--tinta); }
.dash-contactos { list-style: none; margin: 0; padding: 0; }
.dash-contactos li + li { border-top: 1px solid var(--borde); }
.dash-contactos a { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; padding: 9px 4px; color: var(--tinta); text-decoration: none; }
.dash-contactos a:hover { background: var(--superficie-2); }
.dash-contacto-asunto { color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dash-persona { display: flex; gap: 12px; align-items: center; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 12px 14px; }
.dash-avatar { position: relative; width: 56px; height: 56px; flex: 0 0 56px; }
.dash-avatar img, .dash-inicial { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--superficie-3); color: var(--tinta-2); font-weight: 700; font-size: 1.2rem; box-shadow: 0 0 0 3px var(--fuera); }
.dash-punto { position: absolute; right: 0; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--superficie); background: var(--fuera); }
.dash-persona[data-status="trabajando"] .dash-punto { background: var(--trabajando); }
.dash-persona[data-status="trabajando"] .dash-avatar img, .dash-persona[data-status="trabajando"] .dash-inicial { box-shadow: 0 0 0 3px var(--trabajando); }
.dash-persona[data-status="pausa"] .dash-punto { background: var(--pausa); }
.dash-persona[data-status="pausa"] .dash-avatar img, .dash-persona[data-status="pausa"] .dash-inicial { box-shadow: 0 0 0 3px var(--pausa); }
.dash-persona-datos { min-width: 0; flex: 1; }
.dash-persona-nombre { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.dash-persona-hoy { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .8rem; color: var(--tinta-3); margin-top: 4px; }
.dash-persona-hoy .ico { width: 14px; height: 14px; flex-basis: 14px; vertical-align: -2px; margin-right: 2px; }
@media (max-width: 560px) { .dash-contactos a { grid-template-columns: auto 1fr; } .dash-contactos .dash-contacto-asunto { grid-column: 1 / -1; } }

/* ── Empleados ───────────────────────────────────────────────────── */
.emp-avisos { align-items: center; }
.emp-avisos form { margin: 0; }
.emp-avisos-txt { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.emp-input-prueba { max-width: 220px; }
.emp-tabla td { vertical-align: middle; }
.emp-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; background: var(--superficie-3); }
.emp-inicial { display: grid; place-items: center; background: var(--marca-claro); color: var(--marca); font-weight: 700; }
.emp-email { overflow-wrap: anywhere; }
.emp-acciones { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.emp-acciones + .emp-acciones { margin-top: 4px; }
.emp-acciones form { margin: 0; display: inline-flex; }
.emp-celda-acciones { min-width: 15rem; }
@media (max-width: 560px) {
  .emp-tabla td.emp-celda-avatar::before { display: none; }
  .emp-tabla td.emp-celda-avatar { justify-content: flex-start; }
  .emp-tabla td.emp-celda-acciones { display: block; text-align: left; }
  .emp-tabla td.emp-celda-acciones::before { display: block; margin-bottom: 4px; }
  .emp-input-prueba { max-width: none; flex: 1; }
}
.emp-foto { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.emp-foto-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--borde); font-size: 1.5rem; }

/* ── Asistentes por pasos (configurar empleado, onboarding) ──────── */
.asistente { max-width: 760px; }
.pasos { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; counter-reset: paso; overflow-x: auto; }
.paso { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radio-s); background: var(--superficie); border: 1px solid var(--borde); font-size: .82rem; color: var(--tinta-3); }
.paso-num { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; background: var(--superficie-3); color: var(--tinta-2); }
.paso-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paso.hecho .paso-num { background: var(--ok); color: #fff; }
.paso.actual { border-color: var(--marca); color: var(--marca); font-weight: 650; background: var(--marca-claro); }
.paso.actual .paso-num { background: var(--marca); color: #fff; }
.dias-semana { display: flex; flex-wrap: wrap; gap: 10px 18px; }
@media (max-width: 560px) { .paso:not(.actual) .paso-txt { display: none; } .paso:not(.actual) { flex: 0 0 auto; } }

/* ── Registros por día ───────────────────────────────────────────── */
.reg-check { align-self: center; margin-top: 18px; }
.reg-manual > summary { list-style: none; cursor: pointer; }
.reg-manual > summary::-webkit-details-marker { display: none; }
.reg-manual > summary h2 { margin: 0; display: inline-flex; gap: 8px; align-items: center; color: var(--marca); }
.reg-manual[open] > summary h2 { color: var(--tinta); }
.reg-mapa { height: 340px; border-radius: var(--radio-s); border: 1px solid var(--borde); background: var(--superficie-3); }
.reg-col-expandir { width: 44px; }
.registros-expand { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--borde-2); background: var(--superficie); color: var(--marca); font-weight: 700; cursor: pointer; font-size: 1rem; line-height: 1; }
.registros-expand:hover { background: var(--marca-claro); }
.registros-no-events { color: var(--borde-2); padding-left: 10px; }
.reg-coords { display: block; }
.registros-detail { display: none; }
.registros-detail.open { display: table-row; }
.registros-detail > td { background: var(--superficie-2); padding: 8px 14px 12px 52px; }
.registros-events { list-style: none; margin: 0; padding: 0; }
.registros-events li { padding: 8px 0; border-bottom: 1px solid var(--borde); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.registros-events li:last-child { border-bottom: 0; }
.registros-event-time { font-weight: 700; min-width: 3.2rem; font-variant-numeric: tabular-nums; }
.registros-event-type { color: var(--tinta-2); font-weight: 600; }
.registros-event-geo { font-size: .82rem; }
.registros-event-geo .ico { width: 14px; height: 14px; flex-basis: 14px; }
.registros-event-comment { font-size: .85rem; color: var(--tinta-2); font-style: italic; }
.registros-event-actions { display: inline-flex; gap: 6px; align-items: center; }
.registros-manual-delete { display: inline-flex; margin: 0; }
.registros-manual-edit { display: none; width: 100%; margin-top: 6px; padding: 10px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-s); }
.registros-manual-edit.open { display: block; }
.registros-manual-edit form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.registros-manual-edit input, .registros-manual-edit select { width: auto; min-width: 110px; }
.registros-manual-edit input[name="reason"] { min-width: 220px; flex: 1; }
.reg-export h2 { display: flex; gap: 8px; align-items: center; }
.reg-export-enlaces { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }

/* ── Análisis de empleados ───────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.analytics-grid .tarjeta { margin-bottom: 0; }
.analytics-grid + .analytics-tables { margin-top: 18px; }
.analytics-card-wide { grid-column: span 2; }
.analytics-card h2 { font-size: 1rem; }
.analytics-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.analytics-tables .tarjeta { margin-bottom: 0; min-width: 0; }
.analytics-emp-detail { margin-top: 18px; }
.analytics-card .tabla-env { margin-bottom: 0; }
.analytics-table { font-size: .84rem; }
.analytics-table td:not(:first-child):not(:nth-child(2)), .analytics-table th:not(:first-child):not(:nth-child(2)) { text-align: right; font-variant-numeric: tabular-nums; }
.analytics-table--alerts td:nth-child(2), .analytics-table--alerts th:nth-child(2) { text-align: right; }
.analytics-table td:first-child { overflow-wrap: anywhere; }
.analytics-table tr.analytics-detail-main > td { border-bottom: 0; font-weight: 500; }
.analytics-table tr.analytics-detail-weekday > td { text-align: left !important; background: var(--superficie-2); padding-top: 4px; }
.analytics-weekday-label, .analytics-emp-weekdays-title { display: block; font-size: .72rem; font-weight: 650; color: var(--tinta-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.analytics-weekday-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.analytics-weekday-chip { font-size: .76rem; padding: 2px 8px; border-radius: var(--radio-pill); background: var(--superficie); border: 1px solid var(--borde); color: var(--tinta); font-variant-numeric: tabular-nums; }
.analytics-weekday-chip-lbl { color: var(--tinta-3); font-weight: 650; }
.analytics-emp-cards { display: none; }
.analytics-emp-card { border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 12px 14px; margin-bottom: 10px; background: var(--superficie-2); }
.analytics-emp-card-name { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.analytics-emp-card-code { margin: 0 0 8px; font-size: .8rem; color: var(--tinta-3); }
.analytics-emp-card-dl { margin: 0; display: grid; gap: 4px; }
.analytics-emp-card-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.analytics-emp-card-dl dt { color: var(--tinta-3); }
.analytics-emp-card-dl dd { margin: 0; font-weight: 650; }
.analytics-emp-weekdays { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--borde); }
@media (max-width: 900px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-card-wide { grid-column: auto; }
  .analytics-emp-detail .tabla-env { display: none; }
  .analytics-emp-cards { display: block; }
}

/* ── Bolsa de horas ──────────────────────────────────────────────── */
.rejilla-bolsa { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
@media (max-width: 900px) { .rejilla-bolsa { grid-template-columns: 1fr; } }

/* ── Solicitudes de vacaciones ───────────────────────────────────── */
.sol-tabla td { vertical-align: middle; }
.sol-tabla tr.sol-pendiente > td { background: #fffaf0; }
.sol-emp { display: flex; align-items: center; gap: 10px; }
.sol-avatar { width: 34px; height: 34px; font-size: .75rem; }
.sol-fecha { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sol-acciones-celda { min-width: 15rem; }
.sol-acciones { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sol-acciones form { margin: 0; }
.sol-rechazo .en-linea input { min-width: 9rem; flex: 1; min-height: 32px; padding: 5px 8px; font-size: .84rem; }
@media (max-width: 560px) { .sol-tabla td.sol-acciones-celda { display: block; text-align: left; } .sol-tabla td.sol-acciones-celda::before { display: block; margin-bottom: 6px; } }

/* ── Calendario de vacaciones ────────────────────────────────────── */
.vac-cal-nav { display: inline-flex; align-items: center; gap: 6px; }
.vac-cal-nav .btn { padding: 8px 10px; }
.vac-cal-month-title { font-size: 1.05rem; font-weight: 700; min-width: 9.5rem; text-align: center; text-transform: capitalize; }
.vac-cal-summary { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px 16px; margin-bottom: 18px; }
.vac-cal-summary h2 { font-size: .74rem; font-weight: 650; color: var(--tinta-3); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.vac-cal-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vac-cal-summary-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--superficie-2); border-radius: var(--radio-s); border: 1px solid var(--borde); }
.vac-cal-summary-txt { flex: 1; min-width: 0; }
.vac-cal-summary-item .name { display: block; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vac-cal-summary-badges { display: flex; gap: 4px; flex-shrink: 0; }
.vac-cal-summary-badge { padding: 1px 7px; border-radius: var(--radio-pill); font-size: .74rem; font-weight: 700; }
.vac-cal-summary-badge.approved { background: var(--ok-fondo); color: var(--ok-tinta); }
.vac-cal-summary-badge.pending { background: var(--aviso-fondo); color: var(--aviso-tinta); }
.vac-cal-summary-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--borde); margin-top: 5px; }
.vac-cal-summary-bar .seg-approved { background: var(--ok); }
.vac-cal-summary-bar .seg-pending { background: #d29a22; }
.vac-cal-env { overflow-x: auto; }
.vac-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 1px; background: var(--borde); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); min-width: 660px; }
.vac-cal-weekday { background: var(--superficie-2); padding: 8px; text-align: center; font-size: .7rem; font-weight: 650; color: var(--tinta-3); text-transform: uppercase; letter-spacing: .05em; }
.vac-cal-day { background: var(--superficie); min-height: 6rem; padding: 6px; display: flex; flex-direction: column; }
.vac-cal-day.finde { background: #fbfbfd; }
.vac-cal-day.empty { background: var(--superficie-2); }
.vac-cal-day-num { font-size: .8rem; font-weight: 650; color: var(--tinta-3); margin-bottom: 4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.vac-cal-day.has-vacations .vac-cal-day-num { color: var(--tinta); }
.vac-cal-day.hoy .vac-cal-day-num { background: var(--marca); color: #fff; }
.vac-cal-list { list-style: none; margin: 0; padding: 0; font-size: .72rem; line-height: 1.3; flex: 1; overflow: hidden; }
.vac-cal-list li { margin: 0 0 3px; padding: 2px 5px; border-radius: 5px; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.vac-cal-list li.approved { background: var(--ok-fondo); color: var(--ok-tinta); }
.vac-cal-list li.pending { background: var(--aviso-fondo); color: var(--aviso-tinta); border: 1px dashed #d29a22; }
.vac-cal-avatar { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--superficie-3); }
.vac-cal-avatar-initial { display: inline-flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 700; color: var(--tinta-2); }
.vac-cal-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vac-cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .82rem; color: var(--tinta-2); align-items: center; }
.vac-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vac-cal-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.vac-cal-legend .dot.approved { background: var(--ok); }
.vac-cal-legend .dot.pending { background: #d29a22; }
.tp-multiple { min-height: 11rem; }

/* ── Consultas de empleados ──────────────────────────────────────── */
.preg-pendiente > td { background: #fffaf0; }
.preg-fecha { white-space: nowrap; font-variant-numeric: tabular-nums; }
.preg-datos > div { display: contents; }
.preg-mensaje { white-space: pre-wrap; color: var(--tinta-2); background: var(--superficie-2); border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 10px 12px; }
.preg-respuesta { border-left: 3px solid var(--ok); }
.preg-adjuntos { margin: 0 0 12px; padding-left: 20px; font-size: .9rem; }
.dialogo-pie form { margin: 0; }
.vacio > .ico { margin-bottom: 8px; }

/* ── Acceso remoto y texto normativo ─────────────────────────────── */
.ar-qr { width: 220px; height: 220px; }
.ar-url { flex: 1; min-width: 12rem; background: var(--superficie-2); font-size: .82rem; }
.tn-rejilla { align-items: start; }
.tn-texto { font-size: .9rem; line-height: 1.65; color: var(--tinta); max-height: 70vh; overflow: auto; }
.tn-texto a { word-break: break-all; }
.tn-area { font-size: .86rem; line-height: 1.6; min-height: 60vh; background: var(--superficie-2); }

/* ── Observadores ────────────────────────────────────────────────── */
.obs-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.obs-lista { display: grid; gap: 14px; }
.observador-card { margin-bottom: 0; }
.observador-search-input { margin-bottom: 8px; }
.observador-assign-list { max-height: 200px; overflow: auto; border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 6px 10px; margin-bottom: 12px; background: var(--superficie-2); }
.observador-assign-item { padding: 4px 0; font-size: .88rem; font-weight: 500; }
@media (max-width: 900px) { .obs-rejilla { grid-template-columns: 1fr; } }
.lista-check { list-style: none; padding: 0; margin: 0 0 16px; }
.lista-check li { padding: 6px 0 6px 26px; position: relative; color: var(--tinta-2); }
.lista-check li::before { content: "✓"; position: absolute; left: 0; top: 5px; color: var(--ok); font-weight: 800; }
.onb-resumen { background: var(--superficie-2); border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 12px 14px; }
.asistente .pasos { max-width: none; }

/* ── Gestoría: mis empresas ──────────────────────────────────────── */
.ges-rejilla { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.ges-empresas { display: grid; gap: 10px; }
.ges-empresa { display: flex; align-items: center; gap: 12px; margin-bottom: 0; padding: 12px 14px; }
.ges-avatar { width: 40px; height: 40px; background: var(--marca-claro); color: var(--marca); }
.ges-empresa-datos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ges-empresa-datos strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .ges-rejilla { grid-template-columns: 1fr; } }

/* ── Manual ──────────────────────────────────────────────────────── */
.manual-cuerpo { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.manual-toc { position: sticky; top: calc(var(--barra-alto) + 16px); max-height: calc(100vh - var(--barra-alto) - 32px); overflow: auto; font-size: .88rem; }
.manual-toc h2 { font-size: 1rem; }
.manual-toc-grid { display: grid; gap: 14px; }
.manual-toc-block h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-3); margin-bottom: 6px; }
.manual-toc-block ol { margin: 0; padding-left: 18px; }
.manual-toc-block li { margin-bottom: 4px; }
.manual-contenido { max-width: 820px; }
.manual-section { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 20px 24px; margin-bottom: 18px; }
.manual-section-title { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--marca-claro); }
.manual-article { margin-bottom: 26px; scroll-margin-top: calc(var(--barra-alto) + 16px); }
.manual-article h3 { font-size: 1.08rem; color: var(--marca-osc); }
.manual-article h4 { font-size: .95rem; color: var(--tinta-2); margin: 14px 0 6px; }
.manual-steps { padding-left: 22px; }
.manual-steps li { margin-bottom: 6px; line-height: 1.55; }
.manual-figure { margin: 12px 0; }
.manual-img { border: 1px solid var(--borde); border-radius: var(--radio-s); box-shadow: var(--sombra); height: auto; }
.manual-figure figcaption { margin-top: 6px; font-size: .84rem; color: var(--tinta-3); }
.manual-footer { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--borde); font-size: .9rem; color: var(--tinta-3); }
.manual-section code, .manual-steps code { background: var(--superficie-3); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 900px) { .manual-cuerpo { grid-template-columns: 1fr; } .manual-toc { position: static; max-height: none; } .manual-section { padding: 16px; } }

.emp-avisos .en-linea { flex-wrap: nowrap; }
.emp-avisos .emp-input-prueba { width: 220px; }
@media (max-width: 560px) { .emp-avisos .en-linea { flex-wrap: wrap; width: 100%; } .emp-avisos .emp-input-prueba { width: 100%; } }
.ana-grafico { position: relative; height: 280px; }
.analytics-card-wide .ana-grafico { height: 300px; }
@media (max-width: 560px) { .ana-grafico, .analytics-card-wide .ana-grafico { height: 240px; } }

/* Accesibilidad · reflujo a 320 px (Jerez J3) */
.ana-grafico { max-width: 100%; overflow: hidden; }
.ana-grafico canvas { max-width: 100% !important; }
.analytics-card, .analytics-card-wide { min-width: 0; max-width: 100%; }
/* Monitor en directo (Jerez) */
.ed-rejilla { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 900px) { .ed-rejilla { grid-template-columns: minmax(0, 1fr); } }

/* ===== Oficina virtual (5-12-2026) ===== */
.of-cuenta { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.of-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-size: .9rem; }
.of-chip strong { font-variant-numeric: tabular-nums; }
.of-punto { width: .6rem; height: .6rem; border-radius: 50%; background: #94a3b8; }
.of-guardia .of-punto { background: #0d9488; } .of-sin_senal .of-punto { background: #dc2626; } .of-trabajando .of-punto { background: #16a34a; } .of-teletrabajo .of-punto { background: #0284c7; }
.of-pausa .of-punto { background: #d97706; } .of-fuera .of-punto { background: #7c3aed; }
.of-ausente .of-punto { background: #cbd5e1; border: 1px solid #94a3b8; }
.of-escena { position: relative; }
.of-plano { width: 100%; height: auto; display: block; background: #eef1f6; border-radius: 18px; font-family: Inter, system-ui, sans-serif; }
.of-edificio { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 4; }
.of-entrada { fill: #64748b; }
.of-suelo { fill: #fff; stroke: #dbe1ea; stroke-width: 2; }
.of-cabecera { fill: #eef0fb; }
.of-zona-1 .of-cabecera { fill: #e7f6ef; } .of-zona-2 .of-cabecera { fill: #fdf2e3; } .of-zona-3 .of-cabecera { fill: #f1ebfd; }
.of-zona-4 .of-cabecera { fill: #e4f3fb; } .of-zona-5 .of-cabecera { fill: #fde9ee; }
.of-comun-pausa .of-cabecera { fill: #fdf0dc; } .of-comun-fuera .of-cabecera { fill: #efe8fd; } .of-comun-remoto .of-cabecera { fill: #e0f0fa; }
.of-comun-pausa .of-suelo { fill: #fffbf3; } .of-comun-remoto .of-suelo { fill: #f6fbfe; }
.of-titulo { font-size: 15px; font-weight: 700; fill: #1e293b; }
.of-sub { font-size: 12px; fill: #64748b; }
.of-mueble { fill: #d6c3a5; stroke: #b79f7c; stroke-width: 1.5; }
.of-mueble-borde { fill: #8b6b47; }
.of-pantalla { fill: #334155; }
.of-detalle { fill: #64748b; }
.of-camilla { fill: #cfe7f3; stroke: #93c5dd; }
.of-cafetera { fill: #475569; }
.of-puerta { fill: #7c3aed; opacity: .55; }
.of-casa { fill: #bae0f5; stroke: #0284c7; stroke-width: 2; }
.of-etq { font-size: 12px; fill: #64748b; }
.of-etq { font-weight: 600; fill: #475569; } .of-etq2 { font-size: 11px; fill: #64748b; }
.of-p-trabajando .of-etq { fill: #1e293b; } .of-p-trabajando .of-etq2 { fill: #15803d; }
.of-e-trabajando .of-av-nombre { opacity: 0; }
.of-av-nombre { transition: opacity .6s; }
.of-p-ausente .of-mueble, .of-p-sin_fichar .of-mueble, .of-p-salio .of-mueble { opacity: .55; }
.of-silla-vacia { fill: none; stroke: #cbd5e1; stroke-width: 2; stroke-dasharray: 4 3; }
.of-maleta { fill: #f59e0b; } .of-maleta-asa { fill: none; stroke: #b45309; stroke-width: 2; }
.of-cruz-f { fill: #fee2e2; stroke: #ef4444; } .of-cruz { stroke: #ef4444; stroke-width: 3; }
.of-av { transition: transform 1.4s cubic-bezier(.4, 0, .2, 1), opacity .9s ease; cursor: default; outline: none; }
.of-av-halo { fill: var(--c, #94a3b8); opacity: .22; }
.of-av-cara { fill: var(--c, #94a3b8); stroke: #fff; stroke-width: 3; }
.of-av-ini { font-size: 13px; font-weight: 700; fill: #fff; }
.of-av-punto { fill: #fff; stroke: var(--c, #94a3b8); stroke-width: 3; }
.of-av-nombre { font-size: 12px; font-weight: 600; fill: #1e293b; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.of-av.of-foco .of-av-halo, .of-av:focus .of-av-halo { opacity: .6; stroke: #1e293b; stroke-width: 2; }
.of-cambio .of-av-halo { animation: of-pulso 1.2s ease-out 2; }
@keyframes of-pulso { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
.of-av-halo { transform-box: fill-box; transform-origin: center; }
.of-avisos { position: absolute; bottom: 14px; left: 14px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: 340px; }
.of-aviso { background: #0f172a; color: #fff; padding: .55rem .85rem; border-radius: 10px; font-size: .92rem; box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .5); animation: of-entra .35s ease-out; transition: opacity .6s, transform .6s; }
.of-aviso b { color: #a5b4fc; margin-right: .25rem; font-variant-numeric: tabular-nums; }
.of-aviso-fuera { opacity: 0; transform: translateY(-6px); }
@keyframes of-entra { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .of-av { transition: opacity .2s; } .of-cambio .of-av-halo, .of-aviso { animation: none; } }

/* Oficina virtual: pantalla completa (5-12-2026) */
.of-tv-cab { display: none; }
.of-pantalla:fullscreen, .of-pantalla.of-tv { background: #e9edf4; padding: 18px 24px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.of-pantalla.of-tv { position: fixed; inset: 0; z-index: 1000; }
.of-pantalla:fullscreen .of-tv-cab, .of-pantalla.of-tv .of-tv-cab { display: flex; align-items: center; gap: 1rem; font-size: 1.25rem; color: #1e293b; }
.of-tv-cab span { color: #64748b; font-variant-numeric: tabular-nums; }
.of-tv-cab .btn { margin-left: auto; }
.of-pantalla:fullscreen .of-cuenta, .of-pantalla.of-tv .of-cuenta { margin: 0; }
.of-pantalla:fullscreen .of-escena, .of-pantalla.of-tv .of-escena { flex: 1; min-height: 0; display: flex; justify-content: center; }
.of-pantalla:fullscreen .of-plano, .of-pantalla.of-tv .of-plano { width: auto; max-width: 100%; height: 100%; max-height: calc(100vh - 130px); }
.of-pantalla:fullscreen .of-chip, .of-pantalla.of-tv .of-chip { font-size: 1rem; }

/* Oficina virtual: decorado y colores de cada dibujo (5-12-2026) */
.of-silla { fill: #cbd5e1; stroke: #94a3b8; stroke-width: 1; }
.of-maceta { fill: #b45309; } .of-hoja { fill: #4ade80; stroke: #16a34a; stroke-width: 1; }
.of-turno { fill: #1e3a8a; } .of-turno-t { font-size: 11px; font-weight: 700; fill: #fff; } .of-turno-n { font-size: 15px; font-weight: 700; fill: #fde68a; font-variant-numeric: tabular-nums; }
.of-mastil { fill: #64748b; } .of-bandera-1 { fill: #c60b1e; } .of-bandera-2 { fill: #ffc400; stroke: #c60b1e; stroke-width: 4; } .of-bandera-3 { fill: #003399; }
.of-terraza { fill: #ecfccb; stroke: #a3e635; stroke-dasharray: 6 4; } .of-sombrilla { fill: #fca5a5; stroke: #ef4444; stroke-width: 2; opacity: .85; }
.of-gondola { fill: #e2e8f0; stroke: #94a3b8; } .of-producto-0 { fill: #f9a8d4; } .of-producto-1 { fill: #93c5fd; } .of-producto-2 { fill: #fcd34d; }
.of-probador { fill: #fff; stroke: #a78bfa; stroke-width: 2; } .of-cortina { fill: none; stroke: #7c3aed; stroke-width: 3; }
.of-consulta { fill: #f0f9ff; stroke: #7dd3fc; stroke-width: 2; } .of-cruz-v { fill: #10b981; }
.of-sala-deco .of-cabecera { fill: #f1f5f9; }
/* Colores del edificio y del suelo según el negocio */
.of-tema-ayuntamiento { background: #e8e4da; }
.of-tema-ayuntamiento .of-edificio { fill: #f7f3ea; stroke: #b8a989; }
.of-tema-ayuntamiento .of-suelo { fill: #fffdf8; stroke: #e2d9c4; }
.of-tema-ayuntamiento .of-sala-deco .of-cabecera { fill: #dbe4f5; }
.of-tema-ayuntamiento .of-entrada { fill: #1e3a8a; }
.of-tema-hosteleria { background: #f1e7dc; }
.of-tema-hosteleria .of-edificio { fill: #fbf4ea; stroke: #c9a27a; }
.of-tema-hosteleria .of-suelo { fill: #fffaf3; stroke: #ead7bf; }
.of-tema-hosteleria .of-sala-deco .of-cabecera { fill: #fde4c8; }
.of-tema-hosteleria .of-mueble { fill: #c08a57; stroke: #8b5a2b; } .of-tema-hosteleria .of-entrada { fill: #8b5a2b; }
.of-tema-comercio { background: #ece9f5; }
.of-tema-comercio .of-edificio { fill: #faf9fd; stroke: #b9b2d6; }
.of-tema-comercio .of-sala-deco .of-cabecera { fill: #ede9fe; }
.of-tema-comercio .of-mueble { fill: #e5e7eb; stroke: #9ca3af; } .of-tema-comercio .of-entrada { fill: #6d28d9; }
.of-tema-clinica { background: #e3f1f2; }
.of-tema-clinica .of-edificio { fill: #f7fcfc; stroke: #9fd3d6; }
.of-tema-clinica .of-suelo { fill: #fff; stroke: #cdeaec; }
.of-tema-clinica .of-sala-deco .of-cabecera { fill: #d5f0ee; }
.of-tema-clinica .of-mueble { fill: #e2f2f4; stroke: #8cc7cc; } .of-tema-clinica .of-entrada { fill: #0f766e; }

/* En directo · vistas (5-12-2026). Cada vista es una «pantalla» con sus propios colores. */
.of-vistas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.of-vista-btn { font: inherit; font-size: .9rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid #d5dbe5; background: #fff; color: #1e293b; cursor: pointer; }
.of-vista-btn:hover { border-color: #6366f1; }
.of-vista-btn[aria-pressed="true"] { background: #1e293b; border-color: #1e293b; color: #fff; }
.of-vista-btn:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.of-vista { border-radius: 18px; overflow: hidden; }
.of-vista .v-scroll { overflow-x: auto; }
.of-pantalla:fullscreen .of-vista, .of-pantalla.of-tv .of-vista { flex: 1; min-height: 0; overflow: auto; }
.of-pantalla:fullscreen .of-vistas, .of-pantalla.of-tv .of-vistas { margin: 0; }
.v-vacio { padding: 2rem; background: #f8fafc; color: #475569; margin: 0; }

.v-fids { background: #0b0d10; color: #f4f1e8; padding: 22px 26px; font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; min-height: 100%; }
.v-fids-cab { display: flex; align-items: center; gap: 24px; border-bottom: 2px solid #2a2f37; padding-bottom: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.v-fids-cab .t { font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.v-fids-cab .p { font-family: Inter, system-ui, sans-serif; font-size: 14px; color: #9aa3ad; } .v-fids-cab .p b { display: block; font-size: 26px; color: #fff; }
.v-fids-cab .r { margin-left: auto; font-size: 40px; font-weight: 700; color: #ffd23f; font-variant-numeric: tabular-nums; }
.v-fids-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 26px; }
.v-fids h3 { margin: 0 0 8px; font-family: Inter, system-ui, sans-serif; font-size: 15px; letter-spacing: .12em; color: #ffd23f; }
.v-fids ul { list-style: none; margin: 0; padding: 0; }
.v-fila { display: grid; grid-template-columns: auto 1fr 118px; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid #1c2027; }
.v-fila.v-vacia { display: block; color: #9aa3ad; font-family: Inter, system-ui, sans-serif; }
.v-flap { display: inline-flex; gap: 2px; }
.v-flap i { font-style: normal; display: inline-grid; place-items: center; width: 15px; height: 24px; background: #16191e; border-radius: 2px; font-size: 14px; font-weight: 700; position: relative; }
.v-flap i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #000; }
.v-flap.h i { color: #ffd23f; }
.v-est { font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 3px; text-align: center; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-est.ok { background: #15803d; color: #fff; } .v-est.pa { background: #b45309; color: #fff; } .v-est.fu { background: #6d28d9; color: #fff; } .v-est.sa { background: #334155; color: #cbd5e1; }
.v-gira .v-flap i { animation: v-gira .45s steps(4) 2; }
@keyframes v-gira { 0% { transform: scaleY(1); } 50% { transform: scaleY(.1); } 100% { transform: scaleY(1); } }

.v-edif { background: #d6eaf8; overflow-x: auto; } .v-edif-svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: Inter, system-ui, sans-serif; }

.v-mos { background: #f6f7fb; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.v-dep { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 12px; }
.v-dep h3 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; } .v-dep h3 span { color: #64748b; font-weight: 500; font-variant-numeric: tabular-nums; }
.v-tarjetas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.v-t { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 3px; border-radius: 10px; background: var(--f); font-size: 11px; text-align: center; }
.v-t b { font-weight: 600; color: #18202e; line-height: 1.15; } .v-t small { color: #475569; font-variant-numeric: tabular-nums; }
.v-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; background: var(--c); flex: none; }

.v-lin { background: #fff; padding: 14px 16px; }
.v-ley { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #475569; margin: 0 0 8px; }
.v-ley i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; } .v-ley .v-ley-prev { width: 2px; height: 12px; background: #94a3b8; }
.v-lin-svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: Inter, system-ui, sans-serif; }
.v-lin-svg .v-rej { stroke: #eef1f5; } .v-lin-svg .v-eje { font-size: 11px; fill: #64748b; } .v-lin-svg .v-banda { fill: #fafbfd; }
.v-lin-svg .v-nom { font-size: 12px; fill: #1f2937; } .v-lin-svg .v-nota { font-size: 11px; fill: #94a3b8; } .v-lin-svg .v-mal { fill: #be123c; } .v-lin-svg .v-ret { font-size: 10.5px; font-weight: 700; }

.v-tur { background: #f7f5f0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.v-col { background: #fff; border-radius: 12px; border: 1px solid #e7e2d6; min-width: 0; }
.v-col h3 { margin: 0; padding: 11px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #eee7d8; } .v-col h3 b { font-variant-numeric: tabular-nums; }
.v-col.v-alerta h3 { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.v-col ul { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.v-col li { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; background: #fafaf8; font-size: 13px; }
.v-col li .v-av { width: 26px; height: 26px; font-size: 11px; }
.v-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--c); }
.v-col li > span:last-child { display: flex; flex-direction: column; min-width: 0; } .v-col li small { color: #6b7280; font-size: 11.5px; }
.v-col.v-alerta li { background: #fff5f6; } .v-col.v-alerta li small { color: #be123c; font-weight: 600; }
.v-col li.v-larga small { color: #b45309; font-weight: 600; } .v-col li.v-nadie { color: #64748b; background: none; }

.v-kpi { background: #101624; color: #e8edf6; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.v-k { background: #172033; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.v-k span { font-size: 12.5px; color: #9fb0c8; } .v-k b { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.v-k small { font-size: 12px; color: #7dd3a8; } .v-k small.v-malk { color: #fda4af; }
.v-graf { grid-column: 1 / -1; background: #172033; border-radius: 12px; padding: 14px 16px; }
.v-graf h3 { margin: 0 0 6px; font-size: 13px; color: #9fb0c8; font-weight: 600; } .v-graf h3 span { font-weight: 400; margin-left: .5rem; }
.v-kpi-svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: Inter, system-ui, sans-serif; }

.v-cen { background: #eef2f6; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.v-c { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #dfe5ee; display: flex; flex-direction: column; gap: 8px; }
.v-c h3 { margin: 0; font-size: 14px; } .v-dir { font-size: 12px; color: #64748b; margin-top: -4px; }
.v-num { margin: 0; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: #18202e; } .v-num span { font-size: 14px; color: #64748b; font-weight: 500; }
.v-barra { height: 8px; border-radius: 4px; background: #e5e9f0; overflow: hidden; display: flex; } .v-barra i { display: block; height: 100%; }
.v-ini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.v-ini li { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; background: var(--c); }
.v-c-aviso { border-color: #fb7185; box-shadow: 0 0 0 3px #ffe4e6; } .v-alerta-txt { margin: 0; font-size: 12.5px; color: #be123c; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .v-gira .v-flap i { animation: none; } }
