* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #c8cdd4;
  color: #1c2e45;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background: #d0d5dc;
  border-left: 1px solid #9f9f9f;
  border-right: 1px solid #9f9f9f;
}

/* ═══════════════════════════════════
   SIDEBAR
═══════════════════════════════════ */
.sidebar {
  background: linear-gradient(180deg, #e8ecf0 0%, #dce2e8 100%);
  border-right: 2px solid #a8b4c0;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.logo-box {
  height: 110px;
  border: 1px solid #b0bcc8;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-full { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.menu { display: grid; gap: 5px; }

.menu-item {
  border: 1px solid #b0bcc8;
  padding: 9px 12px;
  text-align: left;
  background: linear-gradient(180deg, #f5f7fa 0%, #e8ecf0 100%);
  color: #2b3e58;
  font-weight: 600;
  font-size: 13px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: all 0.12s;
}

.menu-item:hover {
  background: linear-gradient(180deg, #e8f0f8 0%, #d8e4f0 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(1px);
}

.menu-item:active { transform: translateY(2px); box-shadow: 0 0 2px rgba(0,0,0,0.1), inset 0 2px 3px rgba(0,0,0,0.1); }

.menu-item.active, .menu-item-active {
  background: linear-gradient(180deg, #2a6adb 0%, #1a4a9a 100%);
  color: #fff;
  border-color: #1a5aaa;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(26,74,154,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.menu-item-danger {
  background: linear-gradient(180deg, #d45555 0%, #8f2323 100%);
  color: #fff;
  border-color: #ae4444;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(143,35,35,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.menu-item-danger:hover { background: linear-gradient(180deg, #e06060 0%, #a02828 100%); transform: translateY(1px); }

.equipo-faena-box {
  margin-top: 12px;
  border: 1px solid #b0bcc8;
  background: #f0f4f8;
  border-radius: 5px;
  padding: 8px;
  flex: 1;
}

.equipo-faena-title {
  color: #3a5a7a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #c0ccd8;
}

#crewList { list-style: none; margin: 0; padding: 0; }
#crewList li { padding: 6px 4px; border-bottom: 1px solid #d0dce8; font-size: 12px; color: #2f4056; line-height: 1.4; }
#crewList li:last-child { border-bottom: none; }
.crew-empty { color: #8a9ab0; font-style: italic; font-size: 12px; }

/* ═══════════════════════════════════
   MAIN
═══════════════════════════════════ */
.main-content { padding: 0 0 20px 0; background: #d0d5dc; }

.op-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #1a3a6a 0%, #1e4a88 100%);
  color: #e8f0ff;
  font-size: 13px;
  font-weight: 600;
}

.op-header strong { color: #a0c0f0; margin-right: 2px; }

.puerto-hdr { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 900; }
.puerto-hdr.abierto { background: #16a34a; color: #fff; }
.puerto-hdr.cerrado { background: #dc2626; color: #fff; }

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #c0c8d4;
  border-bottom: 1px solid #a8b4c0;
  padding: 7px 14px;
}

.chip {
  background: linear-gradient(180deg, #f0f4f8 0%, #e0e8f0 100%);
  border: 1px solid #b0bcc8;
  border-radius: 10px;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 12px;
  color: #2d3d52;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chip-bandera { display: inline-flex; align-items: center; gap: 4px; }

.semaphore-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  vertical-align: middle;
  margin-right: 2px;
}

.dot-green { background: radial-gradient(circle at 35% 35%, #4ade80, #16a34a); box-shadow: 0 0 5px rgba(22,163,74,0.5); }
.dot-red { background: radial-gradient(circle at 35% 35%, #f87171, #dc2626); box-shadow: 0 0 5px rgba(220,38,38,0.5); }
.dot-gray { background: radial-gradient(circle at 35% 35%, #d1d5db, #9ca3af); }

.semaforo-gate { padding: 7px 14px; font-size: 13px; font-weight: 700; border-bottom: 1px solid; }
.gate-verde { background: #dcfce7; color: #166534; border-color: #86efac; }
.gate-rojo { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.gate-loading { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

.bandera-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #c8d0dc;
  border-bottom: 1px solid #a8b4c0;
}

.bandera-icon { font-size: 16px; margin-right: 2px; transition: color 0.3s; }
.bandera-izada { color: #1a56db; }
.bandera-arriada { color: #9ca3af; }

.btn-bandera {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid #2a5a9a;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.12s;
}

.btn-bandera:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 2px 3px rgba(0,0,0,0.15); }
.btn-bandera.izar { background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%); border-color: #b91c1c; }
.btn-bandera.arriar { background: linear-gradient(180deg, #22c55e 0%, #15803d 100%); border-color: #15803d; }
.btn-bandera:disabled { background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%); border-color: #9ca3af; color: #fff; cursor: not-allowed; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15); }
.bandera-status { font-weight: 700; font-size: 13px; color: #374151; }

/* ═══════════════════════════════════
   LAYOUT OPERACIONAL
═══════════════════════════════════ */
.operacion-layout {
  margin-top: 10px;
  padding: 0 20px; /* más margen lateral */
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.operacion-layout.con-lateral { grid-template-columns: 1fr 200px; }
.paneles-columna { display: flex; flex-direction: column; gap: 14px; }
.paneles-loading { padding: 20px; text-align: center; color: #6b7280; font-style: italic; }
.info-columna { display: flex; flex-direction: column; gap: 10px; }

.ot-data-box {
  background: linear-gradient(180deg, #f5f7fa 0%, #e8f0f8 100%);
  border: 1px solid #b0bcc8;
  border-radius: 6px;
  padding: 10px;
  color: #1f3349;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.bitacora-lateral-box {
  background: linear-gradient(180deg, #f5f7fa 0%, #e8f0f8 100%);
  border: 1px solid #b0bcc8;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.bitacora-titulo {
  color: #3a5a7a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #c0ccd8;
}

.bitacora-list { list-style: none; margin: 0; padding: 0; max-height: 400px; overflow-y: auto; }
.bitacora-list li { border-top: 1px solid #d0dce8; padding: 7px 4px; font-family: "Courier New", monospace; font-size: 12px; color: #2f4056; line-height: 1.35; }
.bitacora-list li:first-child { border-top: none; }

/* ═══════════════════════════════════
   PANEL WRAPPER
═══════════════════════════════════ */
.panel-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.panel-wrapper + .panel-wrapper { margin-top: 6px; }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(90deg, #1a3a6a 0%, #1e4a88 100%);
}

.panel-title { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 0.5px; }
.panel-op-meta { color: #a0c0f0; font-size: 12px; }

/* Botones secuencia superior */
.panel-seq-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #0f2a50;
  border-left: 1px solid #2a5a9a;
  border-right: 1px solid #2a5a9a;
}

/* Botones con relieve y degradado */
.btn-seq {
  min-height: 44px;
  border: none;
  border-top: 1px solid #1a3a6a;
  border-right: 1px solid #1a3a6a;
  padding: 8px;
  font-weight: 700;
  font-size: 12px;
  color: #d1d5db;
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  cursor: not-allowed;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -2px 3px rgba(0,0,0,0.2);
}

.btn-seq:last-child { border-right: none; }

/* Card del buzo — fondo más iluminado */
.panel-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,28,50,0.62) 0%, rgba(5,18,36,0.72) 100%),
    url("./UI_REFERENCIAS/Fondo_panel_buzo.jpg");
  background-size: cover;
  background-position: center center;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
  align-items: start;
  border-left: 1px solid #2a5a9a;
  border-right: 1px solid #2a5a9a;
}

/* Info buzo — span 2 cols */
.panel-buzo-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  font-size: 13px;
  color: #8aaec8;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid rgba(100,160,220,0.25);
  background: rgba(5,15,30,0.5);
  margin-bottom: 8px;
  grid-column: 1 / -1;
}

.buz-nombre { font-weight: 700; color: #d0e8ff; }

.panel-estado-row { font-size: 13px; color: #7090b0; margin-bottom: 6px; }
.estado-operacional { font-weight: 700; color: #e0f0ff; margin-left: 4px; }

/* Cronómetro */
.panel-cronometro-box {
  text-align: center;
  padding: 8px;
  background: rgba(3,10,22,0.55);
  border: 1px solid rgba(100,160,220,0.2);
  border-radius: 5px;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
}

.panel-cronometro {
  font-family: "Courier New", monospace;
  font-size: 54px;
  font-weight: 700;
  color: #ffc23c;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 0 8px rgba(255,180,50,0.4);
}

.panel-progress-clock { font-family: "Courier New", monospace; font-size: 12px; color: #5a7a9a; margin-top: 2px; }

/* Tiempos */
.panel-tiempos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px 10px;
  font-size: 12px;
  color: #6a8aaa;
  padding: 6px 10px;
  border: 1px solid rgba(100,160,220,0.15);
  border-radius: 4px;
  background: rgba(3,10,22,0.4);
  margin-bottom: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.panel-tiempos span:nth-child(even) { font-family: "Courier New", monospace; font-weight: 700; color: #a0c0e0; }

/* Prof máxima */
.btn-editar-prof {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 14px;
  background: linear-gradient(180deg, #1a3d5a 0%, #0d2538 100%);
  color: #ffc23c;
  border: 1px solid #2a5a8a;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  gap: 6px;
  margin-bottom: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.12s;
}

.btn-editar-prof:hover { background: linear-gradient(180deg, #2a5a8a 0%, #1a3d5a 100%); border-color: #4a8ac8; transform: translateY(-1px); }
.btn-editar-prof:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 2px 3px rgba(0,0,0,0.2); }

/* Perfil y tabulación — LADO A LADO */
.panel-perfiles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.panel-perfil-box, .panel-plan-box {
  font-size: 11px;
  color: #6a8aaa;
  padding: 6px 8px;
  border: 1px solid rgba(100,160,220,0.15);
  border-radius: 4px;
  background: rgba(3,10,22,0.4);
  line-height: 1.7;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.perfil-titulo, .plan-titulo {
  font-size: 10px;
  font-weight: 700;
  color: #4a7aaa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.panel-perfil-box span, .panel-plan-box span { font-weight: 700; color: #a0c0e0; }

/* Cuadro info de trabajo */
.panel-trabajo-box {
  font-size: 11px;
  color: #6a8aaa;
  padding: 6px 8px;
  border: 1px solid rgba(100,160,220,0.15);
  border-radius: 4px;
  background: rgba(3,10,22,0.4);
  line-height: 1.7;
  margin-bottom: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.trabajo-titulo {
  font-size: 10px;
  font-weight: 700;
  color: #4a7aaa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.panel-trabajo-box span { font-weight: 700; color: #a0c0e0; }

/* Barra FIFA */
.panel-barra-fifa-wrap {
  height: 16px;
  background: rgba(3,10,22,0.55);
  border-radius: 8px;
  border: 1px solid rgba(100,160,220,0.2);
  overflow: hidden;
  margin-bottom: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.panel-barra-fifa {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: #16a34a;
  transition: width 1s linear, background 0.5s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.panel-sugerencia {
  font-size: 11px;
  color: #f39c12;
  margin-top: 3px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(243,156,18,0.12);
  border-radius: 3px;
  border-left: 3px solid #f39c12;
}

.panel-ndl-restante {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  text-align: right;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Banner DECO */
.panel-banner-deco {
  padding: 8px 10px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  border-left: 3px solid #dc2626;
  border-radius: 4px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.banner-deco-detalle { color: #fcd5d5; font-size: 13px; margin: 4px 0 8px; }
.banner-deco-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn-iniciar-parada-deco {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #fff; border: 1px solid #991b1b; border-radius: 4px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.banner-deco-cronometro { font-family: "Courier New", monospace; font-size: 20px; font-weight: 700; color: #fca5a5; }

.btn-confirmar-parada-deco {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #fff; border: 1px solid #15803d; border-radius: 4px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Botón TERMINO BUCEO */
.btn-termino-buceo {
  background: linear-gradient(180deg, #3b82f6 0%, #1a4a9a 100%);
  border: 1px solid #2563eb;
  color: #fff;
  cursor: pointer;
  animation: pulse-btn 2s ease-in-out infinite;
  min-height: 42px;
  border-radius: 5px;
  padding: 9px 8px;
  font-weight: 700;
  font-size: 12px;
  width: 100%;
  margin-top: 6px;
  box-shadow: 0 3px 8px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  letter-spacing: 0.3px;
}

/* Botones derecha */
.panel-right-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.btn-right {
  min-height: 52px;
  border-radius: 6px;
  border: 1px solid #5a7a9a;
  padding: 8px 6px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  cursor: not-allowed;
  width: 100%;
  text-align: center;
  box-shadow: 0 3px 5px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.12s;
}

/* Estados botones */
.btn-active-next {
  background: linear-gradient(180deg, #3b82f6 0%, #1a4a9a 100%) !important;
  border-color: #2563eb !important;
  color: #fff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  animation: pulse-btn 1.8s ease-in-out infinite;
  box-shadow: 0 3px 8px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.btn-active-next:active { transform: translateY(2px); box-shadow: 0 1px 3px rgba(37,99,235,0.3), inset 0 2px 3px rgba(0,0,0,0.2) !important; }

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 3px 7px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.2); }
  50% { box-shadow: 0 3px 14px rgba(37,99,235,0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
}

.btn-done {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%) !important;
  border-color: #16a34a !important;
  color: #fff !important;
  opacity: 0.75 !important;
  box-shadow: 0 2px 4px rgba(22,163,74,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.btn-normal {
  background: linear-gradient(180deg, #3b82f6 0%, #1a4a9a 100%);
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 3px 6px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-critical {
  background: linear-gradient(180deg, #ef4444 0%, #8f2323 100%);
  border-color: #ae4444;
  color: #fff;
  box-shadow: 0 3px 6px rgba(143,35,35,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-secondary {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 3px 6px rgba(22,163,74,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Botones globales */
.global-actions {
  margin: 10px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-global {
  min-height: 48px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.12s;
}

.btn-global:active { transform: translateY(2px); }

.btn-pausa {
  background: linear-gradient(180deg, #3b82f6 0%, #1a4a9a 100%);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 8px rgba(37,99,235,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-pausa:disabled {
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  border-color: #9ca3af;
  color: #fff;
  cursor: not-allowed;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.15);
}

.btn-emergencia {
  background: linear-gradient(180deg, #ef4444 0%, #8f2323 100%);
  border-color: #ae4444;
  color: #fff;
  box-shadow: 0 4px 8px rgba(143,35,35,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-emergencia:disabled {
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  border-color: #9ca3af;
  color: #fff;
  cursor: not-allowed;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.15);
}

/* Bitácora abajo */
.bitacora-abajo {
  margin: 12px 20px 0;
  background: linear-gradient(180deg, #f5f7fa 0%, #e8f0f8 100%);
  border: 2px solid #b0bcc8;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bitacora-loader { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: #3a5a7a; font-weight: 600; }

.bitacora-loader input {
  width: 80px; padding: 5px 8px; background: #fff; border: 1px solid #b0bcc8; border-radius: 4px; color: #1c2e45; font-size: 13px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.bitacora-loader button {
  padding: 5px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #1a4a9a 100%);
  border: 1px solid #2563eb;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

#bitacoraList { list-style: none; margin: 0; padding: 0; }
#bitacoraList li { border-top: 1px solid #d0dce8; padding: 8px 6px; font-family: "Courier New", monospace; font-size: 13px; color: #2f4056; line-height: 1.35; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,250,255,0.7)); }
#bitacoraList li:first-child { border-top: none; }

/* ═══════════════════════════════════
   MODALES
═══════════════════════════════════ */
.panel-modal-prof, .modal-termino-buceo {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4,12,24,0.94);
  border-radius: 6px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.modal-prof-inner, .modal-termino-inner {
  background: #0a1e33;
  border: 1px solid #2a5a8a;
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
}

.modal-prof-header, .modal-termino-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c8e0f8;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e3a5a;
}

.btn-cerrar-modal-prof { background: none; border: none; color: #6a8aaa; font-size: 18px; cursor: pointer; }

.panel-grid-prof-normal, .panel-grid-prof-emergencia,
.termino-grid-prof-normal, .termino-grid-prof-emergencia {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.btn-prof {
  min-height: 56px;
  font-size: 17px;
  font-weight: 700;
  color: #8aaec8;
  background: linear-gradient(180deg, #0f2a48 0%, #081a30 100%);
  border: 1px solid #2a4a6a;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.12s;
  box-shadow: 0 3px 5px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-prof:hover { background: linear-gradient(180deg, #1a3a5a 0%, #0f2a48 100%); color: #c8e0f8; transform: translateY(-1px); }
.btn-prof:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 2px 3px rgba(0,0,0,0.2); }
.btn-prof.planificada { border-color: #16a34a; color: #4ade80; }
.btn-prof.seleccionada { background: linear-gradient(180deg, #2a5a9a 0%, #1a3a6a 100%); border-color: #4a8ac8; color: #fff; box-shadow: 0 0 8px rgba(74,138,200,0.5); }

.prof-emergencia-label { font-size: 11px; color: #f59e0b; text-align: center; margin: 8px 0 6px; border-top: 1px solid rgba(245,158,11,0.2); padding-top: 8px; }

.panel-modal-justificacion { margin-top: 10px; padding: 10px; background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3); border-radius: 4px; }
.panel-modal-justificacion label { font-size: 12px; color: #f87171; display: block; margin-bottom: 6px; }
.panel-txt-justificacion, .termino-txt-justificacion { width: 100%; background: #0a1a2a; border: 1px solid #2a4a6a; border-radius: 4px; color: #c8e0f8; font-size: 13px; padding: 7px; resize: vertical; }

.modal-prof-actions, .modal-termino-footer { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }

.panel-btn-confirmar-prof, .btn-termino-confirmar, .btn-termino-just-confirmar, .btn-termino-selector-siguiente {
  background: linear-gradient(180deg, #3b82f6 0%, #1a4a9a 100%);
  color: #fff; border: 1px solid #2563eb; border-radius: 5px; padding: 9px 20px; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 6px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.panel-btn-confirmar-prof:disabled, .btn-termino-selector-siguiente:disabled {
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  color: #fff; border-color: #9ca3af; cursor: not-allowed;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.panel-btn-cancelar-prof, .btn-termino-cancelar, .btn-termino-selector-cancelar, .btn-termino-just-cancelar, .btn-termino-corregir {
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  color: #fff; border: 1px solid #9ca3af; border-radius: 5px; padding: 9px 20px; font-size: 13px; cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.modal-termino-body { color: #8aaec8; font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.termino-prof-status { font-size: 14px; color: #c8e0f8; margin-bottom: 16px; font-weight: 600; }
.termino-just-subtitulo { font-size: 12px; color: #f87171; margin-bottom: 8px; }

/* ═══════════════════════════════════
   UTILIDADES
═══════════════════════════════════ */
.strip-divider { width: 1px; height: 24px; background: #a8b4c0; margin: 0 4px; }
.progress-ndl-restante { font-family: "Courier New", monospace; font-size: 13px; font-weight: bold; color: #e74c3c; text-align: right; padding-right: 4px; }
.alerta-retabulacion { margin-top: 6px; padding: 8px; background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.4); border-radius: 4px; color: #e74c3c; font-size: 12px; }

#bitacoraListLateral { list-style: none; margin: 0; padding: 0; max-height: 350px; overflow-y: auto; }
#bitacoraListLateral li { border-top: 1px solid #d0dce8; padding: 6px 4px; font-family: "Courier New", monospace; font-size: 11px; color: #2f4056; line-height: 1.35; }

.ot-card { background: linear-gradient(180deg, #f5f7fa 0%, #e8f0f8 100%); border: 1px solid #b0bcc8; border-radius: 6px; padding: 10px; color: #1f3349; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.ot-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #1a3a6a; border-bottom: 1px solid #c0ccd8; padding-bottom: 6px; }

.action-strip { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; }
.action-strip button, .side-actions button, .button-grid button { min-height: 42px; border-radius: 6px; border: 1px solid #49668b; padding: 9px 8px; font-weight: 700; font-size: 12px; color: #fff; cursor: not-allowed; }

.crew-box { margin-top: 12px; border: 1px solid #b0bcc8; background: #f0f4f8; border-radius: 5px; padding: 8px; }
.crew-box h3 { margin: 0 0 8px; color: #3a5a7a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.crew-box ul { list-style: none; padding: 0; margin: 0; }
.crew-box li { padding: 5px 4px; border-bottom: 1px solid #d0dce8; font-size: 12px; color: #2f4056; }
.crew-box li:last-child { border-bottom: none; }
.crew-loading { color: #8a9ab0; font-style: italic; }

.menu-item:focus { outline: none; }

/* Panel left col */
.panel-left-col { display: flex; flex-direction: column; gap: 8px; }
