/* ==========================================================================
   COAMB STRIPS - Design Système Tour de Contrôle / Régulation SAMU 68
   ========================================================================== */

:root {
  --bg-tower: #0d1117;
  --bg-cockpit: #161b22;
  --bg-card: #21262d;
  --bg-card-hover: #29303b;
  --bg-rack: #11151c;
  
  --border-color: #30363d;
  --border-light: #484f58;

  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;

  /* Alertes */
  --alert-danger: #f85149;
  --alert-warning: #d29922;

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.tower-theme {
  background-color: var(--bg-tower);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* ==========================================================================
   HEADER / BARRE DE CONTRÔLE SUPÉRIEURE
   ========================================================================== */
.tower-header {
  background-color: var(--bg-cockpit);
  border-bottom: 2px solid var(--border-color);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.samu-badge {
  background: #b91c1c;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 1.5px;
  box-shadow: 0 0 10px rgba(185, 28, 28, 0.4);
}

.tower-title-block {
  display: flex;
  flex-direction: column;
}

.tower-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.module-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #f0883e;
  font-weight: 600;
  letter-spacing: 0.8px;
}

/* STATS */
.header-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-pill {
  background: var(--bg-tower);
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0883e;
}

.stat-dot.pulse {
  animation: radar-pulse 1.8s infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.stat-label {
  color: var(--text-muted);
}

.stat-val {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.90rem;
}

/* SEARCH, CONTROLS & CLOCK */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.search-box input {
  background: var(--bg-tower);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 12px 7px 32px;
  color: #fff;
  font-size: 0.82rem;
  width: 230px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: #58a6ff;
}

.tower-clock {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #58a6ff;
  background: var(--bg-tower);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  min-width: 95px;
  text-align: center;
  letter-spacing: 1px;
}

/* BOUTONS GLOBAUX */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: #238636;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #2ea043;
}

.btn-accent {
  background-color: #1f6feb;
  color: #ffffff;
}
.btn-accent:hover {
  background-color: #388bfd;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-danger {
  background-color: rgba(248, 81, 73, 0.15);
  color: var(--alert-danger);
  border-color: rgba(248, 81, 73, 0.4);
}
.btn-danger:hover {
  background-color: var(--alert-danger);
  color: #fff;
}

/* ==========================================================================
   BOARD PRINCIPAL : CONTENEUR ACTIFS (MAX 2 COLONNES) & INACTIFS (À DROITE)
   ========================================================================== */
.strip-board-container {
  display: flex;
  gap: 14px;
  padding: 12px 18px;
  flex-grow: 1;
  overflow: hidden;
  background-color: var(--bg-tower);
}

/* ZONE DES SECTEURS ACTIFS (LARGEUR FLUIDE ADAPTÉE AU NOMBRE DE SECTEURS VALIDÉS) */
.active-sectors-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.active-sectors-board {
  display: flex;
  gap: 12px;
  height: 100%;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.active-sectors-board .strip-bay {
  flex: 1 1 0;
  min-width: 280px;
  height: 100%;
  transition: flex 0.25s ease;
}

/* PANNEAU DROIT : SECTEURS INACTIFS (LES UNS AU-DESSUS DES AUTRES) */
.inactive-sectors-sidebar {
  width: 330px;
  flex-shrink: 0;
  background-color: var(--bg-rack);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

.inactive-sidebar-header {
  padding: 10px 14px;
  background-color: var(--bg-cockpit);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.inactive-sidebar-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inactive-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.inactive-sidebar-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.inactive-count-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-tower);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
}

.inactive-sectors-stack {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

/* SECTEUR INACTIF DANS LA PILE VERTICALE DROITE */
.inactive-bay-item {
  background-color: var(--bg-cockpit);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s;
}

.inactive-bay-item:hover {
  border-color: var(--border-light);
}

.inactive-bay-header {
  padding: 8px 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.inactive-bay-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.inactive-bay-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inactive-bay-rack {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  background-color: var(--bg-rack);
  transition: background-color 0.2s;
}

.inactive-bay-rack.drag-over {
  background-color: rgba(56, 139, 253, 0.08);
  outline: 2px dashed #388bfd;
  outline-offset: -3px;
}

/* BOUTON TOGGLE VEILLE / ACTIF */
.btn-toggle-sector {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-toggle-sector:hover {
  background: var(--bg-tower);
  color: #58a6ff;
  border-color: #58a6ff;
}

.btn-toggle-activate {
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.4);
}
.btn-toggle-activate:hover {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border-color: #3fb950;
}

/* BAIE STANDARD ACTIVE */
.strip-bay {
  background-color: var(--bg-rack);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
  height: 100%;
}

.bay-header {
  padding: 10px 14px;
  background-color: var(--bg-cockpit);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.bay-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  overflow: hidden;
}

.bay-bullet {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bay-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--bg-tower);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.bay-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bay-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-tower);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 700;
}

/* LE RACK (ZONE DÉROULANTE DE STRIPS DU SECTEUR) */
.strip-rack {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background-color 0.2s;
}

.strip-rack.drag-over {
  background-color: rgba(56, 139, 253, 0.08);
  outline: 2px dashed #388bfd;
  outline-offset: -4px;
}

/* ==========================================================================
   LE STRIP : BANDELETTE DE MISSION (STYLE TOUR DE CONTRÔLE AÉRONAUTIQUE)
   Structure exacte :
   - Ligne supérieure : heure de création + chrono / délai SAMU / n° dossier
   - Séparation
   - En dessous de la séparation : Ville / Motif
   (Aucune priorité, aucune dernière ligne)
   ========================================================================== */
.strip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid #58a6ff; /* Couleur du secteur assignée dynamiquement */
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: grab;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.strip:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.strip.dragging {
  opacity: 0.45;
  transform: scale(0.98);
  cursor: grabbing;
}

/* --- 1. LIGNE SUPÉRIEURE DU STRIP --- */
.strip-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.strip-time-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.strip-creation-time {
  font-family: var(--font-mono);
  font-size: 0.90rem;
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* CHRONOMÈTRE À CÔTÉ DE L'HEURE DE CRÉATION */
.strip-wait-chrono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
}

.strip-wait-chrono.warning {
  color: var(--alert-warning);
}

.strip-wait-chrono.danger {
  color: var(--alert-danger);
}

/* ENCADRÉ DÉLAI (CARTOUCHE STRICTEMENT NUMÉRIQUE STYLE BANDELETTE DE CONTRÔLE) */
.strip-delai-box {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: #79c0ff;
  background: rgba(56, 139, 253, 0.08);
  border: 1.5px solid rgba(88, 166, 255, 0.5);
  border-radius: 3px;
  padding: 1px 7px;
  min-width: 34px;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* N° DOSSIER & BOUTON VALIDATION */
.strip-dossier-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-dossier-num {
  font-family: var(--font-mono);
  font-size: 0.90rem;
  font-weight: 800;
  color: #7ee787;
  letter-spacing: 0.8px;
}

/* PETIT BOUTON POUR FAIRE DISPARAÎTRE LE STRIP (VALIDATION AMBULANCE) */
.strip-btn-validate {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 21px;
  height: 21px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.strip-btn-validate:hover {
  background-color: #238636;
  border-color: #2ea043;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 8px rgba(46, 160, 67, 0.5);
}

/* ANIMATION FLUIDE DE DISPARITION DU STRIP VALIDÉ */
.strip.validating {
  pointer-events: none;
  animation: stripDisappear 0.35s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stripDisappear {
  0% {
    transform: scale(1) translateX(0);
    opacity: 1;
    background-color: rgba(35, 134, 54, 0.25);
    border-color: #2ea043;
  }
  40% {
    transform: scale(1.02) translateX(12px);
    opacity: 0.8;
    background-color: rgba(35, 134, 54, 0.35);
  }
  100% {
    transform: scale(0.92) translateX(80px);
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}

/* TOAST DE CONFIRMATION / ANNULATION */
.tower-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.tower-toast {
  background-color: var(--bg-card);
  border: 1px solid #2ea043;
  border-left: 4px solid #2ea043;
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-btn-undo {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  color: #58a6ff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.toast-btn-undo:hover {
  background: #58a6ff;
  color: #fff;
}

/* --- 2. SÉPARATION --- */
.strip-divider {
  height: 1px;
  background: linear-gradient(to right, var(--border-light), rgba(255, 255, 255, 0.15), transparent);
  margin: 6px 0 8px 0;
}

/* --- 3. EN DESSOUS DE LA SÉPARATION : VILLE / MOTIF --- */
.strip-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.strip-ville-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.strip-ville {
  font-size: 0.86rem;
  font-weight: 800;
  color: #f0f6fc;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-ville-icon {
  width: 12px;
  height: 12px;
  color: #58a6ff;
  flex-shrink: 0;
}

.strip-motif {
  font-size: 0.80rem;
  color: #c9d1d9;
  line-height: 1.35;
  word-break: break-word;
}

/* ==========================================================================
   MODAL WINDOWS & FORMULAIRES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  background-color: var(--bg-cockpit);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 540px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.85);
  overflow: hidden;
  animation: modal-appear 0.15s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-window.modal-lg {
  max-width: 700px;
}

@keyframes modal-appear {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 14px 20px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-badge-icon {
  font-size: 1.2rem;
}

.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #ffffff;
}

.form-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body-scroll {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-tower);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-sans);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modal-actions-right {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   TABLE & CONFIG DES SECTEURS DANS LES PARAMÈTRES
   ========================================================================== */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sectors-table-wrap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sectors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sectors-table th {
  background-color: var(--bg-card);
  padding: 8px 10px;
  text-align: left;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.sectors-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-tower);
}

.sectors-table tr:last-child td {
  border-bottom: none;
}

.sectors-table input[type="text"] {
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  padding: 4px 6px;
  width: 100%;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.sectors-table input[type="text"]:focus {
  border-color: #58a6ff;
  background: var(--bg-cockpit);
}

.sectors-table input[type="color"] {
  width: 32px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.add-sector-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.add-sector-bar input {
  background: var(--bg-tower);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.add-sector-bar input[type="color"] {
  width: 40px;
  height: 33px;
  padding: 2px;
  cursor: pointer;
}

.btn-icon-danger {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 3px;
}

.btn-icon-danger:hover {
  color: var(--alert-danger);
  background: rgba(248, 81, 73, 0.15);
}

/* DÉLAIS TAGS */
.delais-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.delai-tag {
  background: var(--bg-tower);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #58a6ff;
}

.delai-tag-remove {
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.delai-tag-remove:hover {
  color: var(--alert-danger);
}
