/* Botón «ver contraseña» y aviso de instalación de la aplicación. Se carga después de app.css y panel.css. */

.clave-envoltorio { position: relative; display: block; }
.caja .clave-envoltorio { margin-top: .3rem; }
.clave-envoltorio input[type=password], .clave-envoltorio input[type=text] { width: 100%; margin-top: 0; padding-right: 2.9rem; }
.clave-envoltorio .clave-ojo {
  position: absolute; top: 50%; right: .3rem; width: 2.4rem; height: 2.4rem; margin: 0; padding: 0; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; color: #6b7782; background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
.clave-envoltorio .clave-ojo:hover { color: #1e232b; background: rgba(0, 0, 0, .06); }
.clave-envoltorio .clave-ojo:focus-visible { outline: 2px solid #3c8dbc; outline-offset: -2px; }
.clave-envoltorio .clave-ojo svg { display: block; }

.instalar-banner {
  position: fixed; z-index: 2000; left: 0; right: 0; bottom: var(--movil-pestanas, 0px); padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  color: #1e232b; background: #fff; border-top: 3px solid #3c8dbc; box-shadow: 0 -3px 12px rgba(0, 0, 0, .18);
}
.instalar-banner p { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.instalar-acciones { display: flex; gap: 10px; }
.instalar-acciones button { flex: 1 1 0; width: auto; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 600; border-radius: 6px; cursor: pointer; }
.instalar-si { color: #fff; background: #3c8dbc; border: 1px solid #3c8dbc; }
.instalar-no { color: #3c4a55; background: #fff; border: 1px solid #c4ccd3; }

/* Cifras de la pantalla de inicio */
.inicio-cifras { margin-bottom: 8px; }
.inicio-cifra { display: flex; gap: 14px; align-items: flex-start; min-height: 104px; margin-bottom: 14px; padding: 14px 16px; color: #333; background: #fff; border: 1px solid #d8dee4; border-left: 5px solid #8a96a0; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.inicio-cifra:hover, .inicio-cifra:focus { color: #333; text-decoration: none; background: #f8fafb; }
.inicio-ok { border-left-color: #00a65a; }
.inicio-aviso { border-left-color: #f39c12; }
.inicio-peligro { border-left-color: #dd4b39; }
.inicio-cifra-icono { flex: 0 0 auto; font-size: 26px; line-height: 1.2; color: #6b7782; }
.inicio-cifra-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inicio-cifra-titulo { font-size: 14px; font-weight: 600; color: #6b7782; }
.inicio-cifra-valor { font-size: 26px; line-height: 1.2; }
.inicio-cifra-detalle { font-size: 13.5px; color: #6b7782; }
.inicio-cifras { display: flex; flex-wrap: wrap; }
.inicio-cifras::before, .inicio-cifras::after { display: none; }
.inicio-cifras > [class*="col-"] { display: flex; }
.inicio-cifras .inicio-cifra { flex: 1 1 auto; width: 100%; }
@media (max-width: 767px) { .inicio-cifras > [class*="col-"] { width: 100%; } }

/* Tickets de soporte */
.ticket-mensaje { border: 1px solid #e3e6ea; border-left: 4px solid #b0b8c1; border-radius: 3px; padding: 10px 14px; margin-bottom: 12px; background: #fff; }
.ticket-mensaje-soporte { border-left-color: #3c8dbc; background: #f4f9fc; }
.ticket-cabecera { margin-bottom: 4px; }
.ticket-texto { overflow-wrap: anywhere; }
.ticket-captura { max-width: 220px; max-height: 160px; margin: 8px 8px 0 0; border: 1px solid #d5dae0; border-radius: 3px; }
.soporte-boton > a { white-space: nowrap; }

/* Parte de trabajo: pantallas completas (terminar y firma) y secciones plegadas */
.pantalla-completa { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1100; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 14px); background: #fff; }
.pantalla-completa[hidden], .pantalla-completa [hidden], [data-terminar-aviso][hidden] { display: none; }
.pantalla-completa > form { max-width: 640px; margin: 0 auto; }
.pantalla-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 20px; }
body.sin-scroll { overflow: hidden; }
.firma-pantalla { z-index: 1110; display: flex; flex-direction: column; overflow: hidden; }
.firma-resumen { max-height: 4.5em; margin: 0 0 8px; overflow-y: auto; }
.firma-dibujo { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.firma-nombre { margin-bottom: 8px; }
.firma-lienzo { flex: 1 1 auto; width: 100%; min-height: 140px; background: #fff; border: 2px dashed #8a949e; border-radius: 8px; touch-action: none; cursor: crosshair; }
.firma-error { margin: 6px 0 0; color: #a94442; font-weight: 600; }
.firma-no { margin: 10px 0 0; text-align: center; }
.pantalla-botones { display: flex; gap: 10px; margin-top: 10px; }
.pantalla-botones .btn { flex: 1 1 0; min-height: 52px; font-size: 17px; white-space: normal; }
.btn-terminar { margin-bottom: 8px; }
.btn-terminar-ok, .btn-terminar-ok:hover, .btn-terminar-ok:focus { color: #fff; background: #00a65a; border-color: #008d4c; }
.cierre-botones { margin-top: 14px; }
.cierre-botones .btn-movil { margin-bottom: 8px; }
.cierre-horas legend { margin-bottom: 8px; font-size: 16px; }
.cierre-hora { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cierre-hora label { flex: 1 1 auto; margin: 0; }
.cierre-hora input.form-control { flex: 0 0 100px; width: 100px; text-align: right; }
.plegable > summary { padding: 13px 12px; font-size: 18px; cursor: pointer; }
.plegable-menor { margin-bottom: 12px; }
.plegable-menor > summary { padding: 8px 0; font-weight: 600; cursor: pointer; }
.parte-cliente { margin-bottom: 8px; }
.movil .boton-dictado { margin: 8px 0 4px; }
.movil .boton-dictado ~ .nota:empty { display: none; }
.plegable > summary, .plegable-menor > summary { display: list-item; }
.plegable-menor > summary { color: #2b6f9e; }
.enlace-boton { padding: 0; color: #3c8dbc; background: none; border: 0; }
.importe-pagar { margin: 10px 0; font-size: 18px; }
.importe-pagar strong { float: right; font-size: 24px; }
.marca { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 600; }
.marca input { width: 22px; height: 22px; margin: 0; }
.cierre-cobro legend { margin: 8px 0 4px; font-size: 16px; }
.cierre-cobro > .marca { display: inline-flex; margin-right: 28px; }
.cierre-cobro[hidden] { display: none; }

/* Entrar con huella (app Android): ambos bloques salen ocultos y los enseña assets/envoltorio.js */
.acceso-huella { margin: 0 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid #d5dbe1; }
.acceso-huella[hidden], .acceso-huella [hidden], .tarjeta-huella[hidden], .tarjeta-huella [hidden] { display: none !important; }
.tarjeta-huella .btn { margin: 0 6px 6px 0; }
