/* ==========================================================================
   SISTEMA DE DISEÑO OFICIAL — JEX TECHNOLOGIES
   Paleta: Verde Esmeralda (#009A49) + Ámbar Oro (#E8B828) + Grafito (#0B111E)
   ========================================================================== */

:root {
  --bg-main: #090E17;
  --bg-card: #111A2B;
  --bg-input: #172338;
  --bg-input-focus: #1C2C47;
  
  --border-card: #1F2D47;
  --border-subtle: #293B5C;
  
  --jex-green: #009A49;
  --jex-red: #EF4444;
  --jex-green-hover: #00B355;
  --jex-green-glow: rgba(0, 154, 73, 0.28);
  
  --jex-gold: #E8B828;
  --jex-gold-glow: rgba(232, 184, 40, 0.22);
  
  --status-danger: #EF4444;
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  padding: 16px 14px 100px 14px;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   PANTALLA DE LOGIN
   ========================================================================== */
#view-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 20px 10px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.login-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.login-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.login-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Ojito para mostrar / ocultar la contraseña */
.campo-clave { position: relative; }
.campo-clave input { padding-right: 48px; }
.btn-ojo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.btn-ojo:hover, .btn-ojo.visible { color: #FFFFFF; }
.btn-ojo .ojo-tachado { display: none; }
.btn-ojo.visible .ojo-tachado { display: inline; }   /* contraseña visible: ojo tachado para ocultarla */

/* ==========================================================================
   HEADER Y CHIP DEL SUPERVISOR
   ========================================================================== */
.header {
  padding: 8px 4px 12px 4px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 14px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.header-titles h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.supervisor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(23, 35, 56, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 10px;
}

.supervisor-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.supervisor-info code {
  color: var(--jex-gold);
  background: rgba(232, 184, 40, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-logout:active {
  background: rgba(231, 73, 73, 0.15);
  color: var(--jex-red);
  border-color: var(--jex-red);
}

/* ==========================================================================
   BADGE DE CONECTIVIDAD (PULSOS INDEPENDIENTES)
   ========================================================================== */
.status-badge-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(17, 26, 43, 0.9);
  border: 1px solid var(--border-subtle);
  color: #CBD5E1;
  transition: all 0.3s ease;
}

/* Contenedor de badges del header (pendientes + conexión) */
.header-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ⏳ Despachos guardados en el celular */
.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(232, 184, 40, 0.12);
  border: 1px solid rgba(232, 184, 40, 0.6);
  color: #E8B828;
  cursor: pointer;
  white-space: nowrap;
  width: auto;
  margin: 0;
}

.pending-badge.has-errors {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.6);
  color: #EF4444;
}

/* 🟢 ONLINE */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--jex-green) !important;
  box-shadow: 0 0 6px var(--jex-green);
  animation: pulse-online-green 2s infinite ease-in-out !important;
}

@keyframes pulse-online-green {
  0% { transform: scale(0.95); box-shadow: 0 0 3px #009A49; }
  50% { transform: scale(1.25); box-shadow: 0 0 10px #009A49; }
  100% { transform: scale(0.95); box-shadow: 0 0 3px #009A49; }
}

/* 🔴 OFFLINE */
.status-badge-compact.offline {
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.status-badge-compact.offline .status-dot {
  background-color: #EF4444 !important;
  box-shadow: 0 0 6px #EF4444 !important;
  animation: pulse-offline-red 1.8s infinite ease-in-out !important;
}

@keyframes pulse-offline-red {
  0% { transform: scale(0.95); box-shadow: 0 0 3px #EF4444; }
  50% { transform: scale(1.25); box-shadow: 0 0 10px #EF4444; }
  100% { transform: scale(0.95); box-shadow: 0 0 3px #EF4444; }
}

/* ==========================================================================
   SECCIONES Y TARJETAS
   ========================================================================== */
.section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--jex-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 18px 4px 8px 4px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

/* ==========================================================================
   INPUTS Y FORMULARIOS
   ========================================================================== */
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 10px;
}

label:first-of-type {
  margin-top: 0;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jex-green);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--jex-green-glow);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea {
  resize: vertical;
  min-height: 75px;
}

/* ==========================================================================
   GRILLA DINÁMICA
   ========================================================================== */
.grid-row {
  display: grid;
  /* Fila 1: EQUIPO (lista) a todo el ancho | Fila 2: GALONES y botón eliminar */
  grid-template-columns: 1fr 44px;
  gap: 8px;
  align-items: center;
  background: rgba(23, 35, 56, 0.5);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  margin-bottom: 8px;
}

.grid-row input {
  padding: 10px 8px;
  font-size: 14px;
}

.grid-row input,
.grid-row select {
  min-width: 0;  /* evita que los campos se desborden en pantallas angostas */
}

.grid-row .eq-select {
  grid-column: 1 / -1;
}

.btn-delete {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  height: 42px;
  width: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete:active {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  width: 100%;
  background: rgba(232, 184, 40, 0.06);
  border: 1px dashed var(--jex-gold);
  color: var(--jex-gold);
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:active {
  background: rgba(232, 184, 40, 0.15);
}

/* "Cargar equipos del PAD": un botón por PAD, encima de la lista de equipos */
.pads-rapidos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pads-titulo {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #94A3B8);
}

.pads-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-pad {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #4ADE80;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-pad:active {
  background: rgba(34, 197, 94, 0.25);
}

/* Diálogo del PAD: casillas para marcar los equipos que se van a abastecer */
.pad-dialogo-titulo { font-weight: 700; margin-bottom: 10px; }
.pad-opciones { display: grid; gap: 6px; max-height: 55vh; overflow-y: auto; }
.pad-opcion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}
.pad-opcion input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: #22C55E; }
.pad-opcion:has(input:checked) { border-color: rgba(34, 197, 94, 0.6); background: rgba(34, 197, 94, 0.08); }
.pad-opcion.ya-esta { opacity: 0.55; }
.pad-opcion i { color: var(--text-muted); font-style: normal; }

/* ==========================================================================
   PANEL TOTALIZADOR
   ========================================================================== */
.metrics-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  margin-top: 14px;
}

.metric-box {
  background: #0B111D;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.metric-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}

.metric-value.highlight {
  color: var(--jex-gold);
}

/* ==========================================================================
   BOTÓN PRINCIPAL
   ========================================================================== */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #00A850 0%, #008740 100%);
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px var(--jex-green-glow);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-primary:active {
  background: #007A39;
  transform: translateY(1px);
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 16px;
  left: 14px;
  right: 14px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: #142036;
  color: #FFFFFF;
  border-left: 5px solid var(--jex-green);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-left-color: var(--jex-green); }
.toast.warning { border-left-color: var(--jex-gold); }
.toast.error { border-left-color: var(--status-danger); }

/* ==========================================================================
   LIENZOS DE FIRMA DIGITAL TÁCTIL (Touch Friendly)
   ========================================================================== */
.signature-box {
  background: #0E1524;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 10px;
  position: relative;
}

.signature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.signature-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--jex-gold);
  letter-spacing: 0.5px;
}

.btn-clear-sig {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-clear-sig:active {
  background: rgba(239, 68, 68, 0.2);
  color: var(--jex-red);
}

.canvas-signature {
  width: 100%;
  height: 140px;         /* Un poco más alto para firmar cómodo */
  display: block;        /* Elimina espacios raros debajo del canvas */
  background: #090E17;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}

/* ==========================================================================
   SELECTOR SEGMENTADO DE GUARDIA (DÍA / NOCHE)
   ========================================================================== */
.shift-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.shift-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shift-btn:active {
  transform: scale(0.98);
}

.shift-btn.active {
  background: rgba(232, 184, 40, 0.15);
  border-color: var(--jex-gold);
  color: var(--jex-gold);
  box-shadow: 0 0 12px var(--jex-gold-glow);
}
/* Campo bloqueado (fecha del despacho: siempre la del día) */
.input-locked {
  pointer-events: none;
  opacity: 0.75;
  cursor: not-allowed;
}
select.input-locked { background-image: none; padding-right: 14px; }  /* sin flecha: no se puede desplegar */

/* ==========================================================================
   MIS DESPACHOS DE LA GUARDIA
   ========================================================================== */
.btn-mis-despachos {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  background: rgba(232, 184, 40, 0.10);
  border: 1px solid rgba(232, 184, 40, 0.55);
  color: var(--jex-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-mis-despachos:active { background: rgba(232, 184, 40, 0.2); }

.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(3, 6, 12, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.panel-overlay[hidden] { display: none; }
.panel-mis {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 14px 14px 28px;
}
.panel-mis-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-mis-top h4 { margin: 0; font-size: 15px; color: #FFFFFF; }
.btn-cerrar-panel {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
}
.panel-mis-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0 4px;
}
.panel-mis-nav button {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.panel-mis-nav button:disabled { opacity: 0.35; cursor: default; }
.mis-titulo {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--jex-gold);
}
.mis-resumen {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 8px;
  margin-top: 8px;
}
.mis-resumen .metric-value { font-size: 16px; }
.mis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.mis-card.pendiente { border-color: rgba(232, 184, 40, 0.6); }
.mis-card.rechazado { border-color: rgba(239, 68, 68, 0.6); }
.mis-card-top { font-size: 12.5px; font-weight: 800; color: #FFFFFF; margin-bottom: 4px; }
.mis-sub { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.mis-tabla {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}
.mis-fila {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 8px;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(41, 59, 92, 0.6);
}
.mis-fila:last-child { border-bottom: none; }
.mis-codigo { color: var(--jex-gold); font-weight: 700; }
.mis-equipo { color: #CBD5E1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mis-gln { color: #FFFFFF; font-weight: 700; text-align: right; }
.mis-total .mis-equipo, .mis-total .mis-gln { color: var(--jex-gold); font-weight: 800; }
.mis-obs { font-size: 12px; color: var(--text-muted); font-style: italic; }
.mis-vacio { font-size: 13px; color: var(--text-muted); text-align: center; padding: 14px 0; }
.mis-aviso {
  font-size: 12px;
  color: var(--jex-gold);
  background: rgba(232, 184, 40, 0.08);
  border: 1px solid rgba(232, 184, 40, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 8px 0 0;
}

/* Guardia bloqueada: se asigna sola según la hora */
.shift-selector.locked .shift-btn {
  cursor: not-allowed;
  pointer-events: none;
}
.shift-selector.locked .shift-btn:not(.active) {
  opacity: 0.4;
}
.shift-selector.locked .shift-btn:disabled.active {
  color: var(--jex-gold);
  opacity: 1;
}

/* Despacho anulado por el administrador */
.mis-card.anulado { border-color: rgba(239, 68, 68, 0.6); opacity: 0.85; }
.mis-card.anulado .mis-gln { text-decoration: line-through; color: var(--text-muted); }
.mis-anulado {
  margin-top: 6px;
  font-size: 12px;
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.10);
  border-radius: 6px;
  padding: 6px 8px;
}

/* ==========================================================================
   OPERADOR Y PLACA ESCRITOS (con sugerencias) — versión 1.17
   ========================================================================== */
.autocompletar { position: relative; }
.autocompletar input { text-transform: uppercase; }
.autocompletar input::placeholder { text-transform: none; }
.sugerencias {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: var(--bg-input-focus);
  border: 1px solid var(--jex-green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.sugerencias[hidden] { display: none; }
.sugerencia {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;           /* toque cómodo con guantes */
  cursor: pointer;
  font-family: inherit;
}
.sugerencia:last-child { border-bottom: none; }
.sugerencia:active { background: var(--jex-green-glow); }
.campo-ayuda { font-size: 11.5px; color: var(--text-muted); min-height: 0; margin-top: 4px; }
.campo-ayuda:empty { display: none; }
.campo-ayuda.nuevo { color: var(--jex-gold); }
.campo-ayuda.aviso { color: var(--jex-red); }

/* "El operador no firmó" */
.check-no-firmo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.check-no-firmo input { width: 20px; height: 20px; accent-color: var(--jex-gold); }
#no-firmo-detalle { margin-top: 8px; }
.check-no-identifico { margin: 6px 0 10px; }
input#operator:disabled { opacity: 0.55; }
.btn-foto { display: block; text-align: center; cursor: pointer; }
.foto-vista { margin-top: 10px; text-align: center; }
.foto-vista[hidden] { display: none; }
.foto-vista img { max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.15); }
.foto-vista .btn-clear-sig { margin-top: 8px; }
#no-firmo-detalle[hidden] { display: none; }
#ope-no-firmo-otro { margin-top: 8px; }
#ope-no-firmo-otro[hidden] { display: none; }
.signature-box.sin-firma .canvas-signature,
.signature-box.sin-firma #btn-limpiar-ope { display: none; }
.signature-box.sin-firma { border-color: rgba(232, 184, 40, 0.6); }

/* Diálogo con opciones */
.dialogo-fondo { align-items: center; padding: 16px; z-index: 950; }
.dialogo {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}
.dialogo-texto { font-size: 14px; color: #FFFFFF; line-height: 1.45; margin-bottom: 14px; }
.dialogo-texto b { color: var(--jex-gold); }
.dialogo-botones { display: grid; gap: 8px; }
.dialogo-botones button { margin: 0; }
.mis-no-firmo { font-size: 11.5px; color: var(--jex-gold); margin-bottom: 4px; }

/* Versión de la app (abajo del login y del formulario) */
.version-app {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 18px;
  letter-spacing: 0.3px;
}

/* Motivo de una guardia sin abastecimiento (observaciones) */
.ayuda-motivo { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.motivos-sin-carga { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.btn-motivo { font-size: 11.5px; padding: 9px 6px; border-style: solid; margin: 0; }
