/* --- RESET DE BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #ffffff;
  color: #000000;
  height: 100vh;
  overflow: hidden;
}

/* --- STRUCTURE GLOBALE --- */
.dashboard-container {
  display: flex;
  height: 100vh;
}

/* --- MENU LATÉRAL GAUCHE --- */
.sidebar {
  width: 240px;
  border-right: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  height: 80px;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.logo i {
  font-size: 1.8rem;
}

.navigation {
  padding: 20px;
}

.nav-title {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 15px;
  font-weight: 600;
}

.navigation ul {
  list-style: none;
}

.navigation li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #444;
  transition: background-color 0.2s;
}

.navigation li:hover {
  background-color: #eeeeee;
}

.navigation li.active {
  color: #000;
  background-color: #e9e9e9;
}

/* --- ZONE PRINCIPALE --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

/* --- EN-TÊTE (HEADER) --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 80px;
  border-bottom: 1px solid #e9e9e9;
}

.header-titles h1 {
  font-size: 1.2rem;
  font-weight: 700;
}

.header-titles .date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.btn-new-adjustment {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-new-adjustment:hover {
  background-color: #333;
}

/* --- ESPACE DE TRAVAIL (Tableau + Notifications) --- */
.workspace {
  display: flex;
  flex: 1;
  padding: 30px;
  gap: 30px;
}

/* --- SECTION TABLEAU --- */
.planning-section {
  flex: 1;
}

.planning-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.planning-section .subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
}

.table-container {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  height: calc(100vh - 260px); 
  background-color: #fff;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 15px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
}

/* --- PANNEAU DES NOTIFICATIONS --- */
.notifications-panel {
  width: 320px;
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.notif-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.notif-header i {
  font-size: 1.2rem;
}

.notif-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ------------------ MODALE & OVERLAY ------------------ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #ffffff;
  width: 550px;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
  position: relative;
}

/* --- BOUTON ÉTOILE (URGENCE) --- */
.btn-priority {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-priority:hover {
  transform: scale(1.1);
  color: #f1c40f;
}

.btn-priority.is-urgent {
  color: #f1c40f;
}

.modal-header h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.modal-header p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4f46e5;
}

.type-selection {
  display: flex;
  gap: 15px;
}

.type-card {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.type-card input[type="radio"] {
  position: absolute;
  top: 15px;
  right: 15px;
  accent-color: #4f46e5;
}

.type-card strong {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #333;
}

.type-card span {
  font-size: 0.8rem;
  color: #888;
}

.type-card.active {
  border-color: #4f46e5;
  background-color: #f8f8ff;
}

.type-card.active strong {
  color: #4f46e5;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .half {
  flex: 1;
}

.form-checkboxes {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.checkbox-label {
  font-size: 0.85rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-cancel {
  padding: 12px 25px;
  border: 1px solid #ddd;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #555;
}

.btn-cancel:hover {
  background: #f5f5f5;
}

.btn-submit {
  padding: 12px 35px;
  border: none;
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-submit:hover {
  background: #4338ca;
}

/* ------------------ STYLES DU TABLEAU & BADGES ------------------ */
td {
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: middle;
  color: #333;
}

td strong {
  font-weight: 700;
  color: #000;
}

.badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
  user-select: none;
}

.badge-todo {
  background-color: #ff4757;
} /* Rouge */
.badge-doing {
  background-color: #ffa502;
} /* Orange */
.badge-done {
  background-color: #2ed573;
} /* Vert */

.icon-action {
  color: #888;
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.2s;
}

.icon-action:hover {
  color: #000;
}
tbody tr:hover {
  background-color: #e9e9e9;
  cursor: pointer;
}

/* --- SÉPARATEUR --- */
.form-divider {
  border: 0;
  border-top: 1px solid #eaeaea;
  margin: 20px 0;
}

/* --- STRUCTURE D'UNE LIGNE DE CLASSE --- */
.class-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* --- CHAMPS DE SAISIE (Liste déroulante et Quantité) --- */
.adjClass {
  flex: 2;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.adjSpml {
  flex: 1.5;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.adjQuantity {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* --- BOUTON POUBELLE --- */
.btn-remove-row {
  color: #ff4757;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0 10px;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.btn-remove-row:hover {
  color: #ff0000;
  transform: scale(1.1);
}

/* --- BOUTON AJOUTER UNE CLASSE --- */
#btnAddClass {
  margin-top: 10px;
  background: #f8f8ff;
  color: #4f46e5;
  border: 1px dashed #4f46e5;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#btnAddClass:hover {
  background: #eef2ff;
}

/* --- BOUTON SUPPRIMER (Dans la modale) --- */
#btnDeleteAdjustment {
  background-color: #fff;
  color: #ff4757;
  border: 1px solid #ff4757;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-right: auto;
}

#btnDeleteAdjustment:hover {
  background-color: #ff4757;
  color: #fff;
}

.hidden {
  display: none !important;
}

/* --- ÉTOILE DE PRIORITÉ DANS LE TABLEAU --- */
.table-priority-star {
  color: #f1c40f;
  font-size: 1.1rem;
  filter: drop-shadow(
    0 2px 4px rgba(241, 196, 15, 0.3)
  ); /* Petit effet de brillance */
}

.col-star {
  text-align: center;
  width: 50px;
}

/* --- NOTIFICATIONS (Design de l'image) --- */
.notif-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  animation: slideIn 0.3s ease;
}

.notif-icon-success {
  color: #00b894;
  font-size: 1.8rem;
}

.notif-text {
  font-size: 0.95rem;
  color: #000;
  font-weight: 700;
  line-height: 1.3;
}

@keyframes slideIn {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.aucun {
  text-align: center;
  color: #888;
}

/* --- AJUSTEMENTS DE VUES ET ZONE DE REMPLISSAGE --- */
.planning-section.expanded {
  flex: 1;
}

.placeholder-box {
  border: 1px dashed #ccc;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: #888;
  margin-top: 20px;
}

.placeholder-box i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

/* --- STYLE DU BLOC RÉGLAGES --- */
.settings-group {
  margin-top: 20px;
  padding: 25px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background-color: #fafafa;
  max-width: 500px;
}

.settings-group h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
}

#themeToggle {
  accent-color: #4f46e5;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

/* ------------------ COULEURS DU MODE SOMBRE ------------------ */
body.dark-theme {
  background-color: #121212;
  color: #ffffff;
}

/* Menu latéral */
body.dark-theme .sidebar {
  background-color: #1a1a1a;
  border-right: 1px solid #2d2d2d;
}
body.dark-theme .logo,
body.dark-theme .navigation li {
  color: #e0e0e0;
}
body.dark-theme .navigation li:hover {
  background-color: #2a2a2a;
}
body.dark-theme .navigation li.active {
  background-color: #333333;
  color: #ffffff;
}

/* En-tête et conteneurs */
body.dark-theme .main-content {
  background-color: #121212;
}
body.dark-theme .topbar {
  border-bottom: 1px solid #2d2d2d;
}
body.dark-theme .table-container,
body.dark-theme .notifications-panel,
body.dark-theme .settings-group {
  background-color: #1a1a1a;
  border-color: #2d2d2d;
}

/* Textes et Titres */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme .switch-container {
  color: #ffffff;
}
body.dark-theme td,
body.dark-theme th {
  border-bottom: 1px solid #2d2d2d;
  color: #cccccc;
  background-color: #1a1a1a;
}
body.dark-theme td strong {
  color: #ffffff;
}
body.dark-theme tbody tr:hover {
  background-color: #222222;
}

/* Notifications */
body.dark-theme .notif-item {
  background-color: #222222;
  border-color: #333333;
}
body.dark-theme .notif-text {
  color: #ffffff;
}

/* Fenêtre Modale (Formulaire) */
body.dark-theme .modal-content {
  background-color: #1a1a1a;
  color: #ffffff;
}
body.dark-theme .form-group label {
  color: #cccccc;
}
body.dark-theme .form-group input[type="text"],
body.dark-theme .form-group input[type="date"],
body.dark-theme .form-group input[type="time"],
body.dark-theme .adjClass,
body.dark-theme .adjSpml,
body.dark-theme .adjQuantity {
  background-color: #252525;
  border-color: #333333;
  color: #ffffff;
}
body.dark-theme .type-card {
  background-color: #1a1a1a;
  border-color: #333333;
}
body.dark-theme .type-card strong {
  color: #ffffff;
}
body.dark-theme .type-card.active {
  background-color: #202038;
  border-color: #4f46e5;
}

body.dark-theme #btnAddClass {
  background-color: #252525;
  border-color: #4f46e5; 
  color: #818cf8;
}

body.dark-theme #btnAddClass:hover {
  background-color: #333333;
}

/* Barre de recherche (Mode Sombre) */
body.dark-theme .search-bar-historique {
    border-color: #2d2d2d;
}

body.dark-theme #inputSearchVol {
    background-color: #252525;
    border-color: #333333;
    color: #ffffff;
}

/* ------------------ STYLES DE LA PAGE PORTAIL / ACCUEIL ------------------ */
.portal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #fafafa;
}

.portal-card-container {
  text-align: center;
  max-width: 1000px;
  width: 100%;
  padding: 20px;
}

.portal-logo {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #000;
}

.portal-card-container h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.portal-subtitle {
  color: #888;
  margin-bottom: 40px;
  font-size: 1rem;
}

.portal-buttons {
  display: flex;
  gap: 20px;
}

/* Stylisation des liens en grandes cartes */
.portal-btn {
  flex: 1;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 35px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  text-decoration: none;
}

.portal-btn i {
  font-size: 2.2rem;
  color: #000;
  transition: color 0.2s;
}

.portal-btn strong {
  font-size: 1.1rem;
  color: #000;
}

.portal-btn span {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  line-height: 1.4;
}

/* Animations au survol */
.portal-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #4f46e5;
}

.portal-btn:hover i {
  color: #4f46e5;
}

/* --- ADAPTATION MODE SOMBRE POUR LE PORTAIL --- */
body.dark-theme .portal-container {
  background-color: #121212;
}
body.dark-theme .portal-logo,
body.dark-theme .portal-card-container h1 {
  color: #fff;
}
body.dark-theme .portal-btn {
  background: #1a1a1a;
  border-color: #2d2d2d;
}
body.dark-theme .portal-btn i,
body.dark-theme .portal-btn strong {
  color: #fff;
}
body.dark-theme .portal-btn:hover {
  border-color: #4f46e5;
}

/* ------------------ STYLES DE L'ÉCRAN PRESTATION (TV) ------------------ */

/* Force un fond très sombre pour la TV et autorise le défilement */
body.tv-mode {
  background-color: #121214;
  color: #ffffff;
  margin: 0;
  font-family: "Inter", Tahoma, Geneva, Verdana, sans-serif;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

/* --- LE HEADER --- */
.tv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #2d2d2d;
  background-color: #18181b;
}

/* Zone gauche complète (Logo + Titres) */
.tv-header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* --- LE LOGO TV CLIQUABLE --- */
.tv-logo {
  font-size: 2.5rem;
  color: #ffffff;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
}

.tv-logo:hover {
  color: #ff9500;
  transform: scale(1.05);
}

/* --- LES TITRES TV --- */
.tv-header-titles {
  display: flex;
  flex-direction: column;
  border-left: 4px solid #ff9500;
  padding-left: 15px;
}

.tv-subtitle {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.tv-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

/* Zone centrale : Les compteurs */
.tv-header-center {
  display: flex;
  gap: 20px;
}

.tv-counter {
  background-color: #222225;
  border-radius: 8px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #333;
}

.tv-counter-number {
  color: #ff9500;
  font-size: 1.6rem;
  font-weight: 800;
}

.tv-counter-label {
  color: #aaa;
  font-size: 0.95rem;
}

/* Zone droite : L'horloge */
.tv-header-right {
  text-align: right;
  min-width: 200px;
}

.tv-time {
  font-size: 3rem;
  font-weight: 640;
  line-height: 1;
  letter-spacing: 2px;
}

.tv-date {
  font-size: 1rem;
  color: #888;
  margin-top: 8px;
}

/* ------------------ GRILLE DES CARTES (Plein écran) ------------------ */
.tv-main-content {
  padding: 40px;
  display: flex;
  justify-content: center;
}

.tv-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  max-width: 1560px;
  width: 100%;
}

/* --- STRUCTURE DE LA CARTE --- */

.tv-card {
  position: relative;
  background-color: #1a1a1c;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}

.tv-card:hover {
  transform: translateY(-5px);
  background-color: #222225;
}

/* COULEURS DYNAMIQUES DES CARTES */
.status-todo {
  border: 1px solid #ff0000;
  border-top: 4px solid #ff0000;
}
.status-todo .tv-badge-status {
  border-color: #ff0000;
  color: #ff0000;
  background-color: rgba(255, 0, 0, 0.1);
}

.status-doing {
  border: 1px solid #ff9500;
  border-top: 4px solid #ff9500;
}
.status-doing .tv-badge-status {
  border-color: #ff9500;
  color: #ff9500;
  background-color: rgba(255, 149, 0, 0.1);
}

/* ------------------ INTÉRIEUR DES CARTES TV ------------------ */

.tv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.tv-flight-info {
  display: flex;
  flex-direction: column;
}

.tv-airline {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.tv-flight-number {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.tv-badge-status {
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}

/* --- BLOCS HORAIRES (ETD / RTC) --- */
.tv-times-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
}

.tv-time-block {
  display: flex;
  flex-direction: column;
}

.tv-time-label {
  color: #888;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tv-time-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

/* --- SECTION TOP UP (LISTE DES CLASSES) --- */
.tv-topup-container {
  background-color: #242426;
  border-radius: 12px;
  overflow: hidden;
}

.tv-topup-header {
  background-color: #ff9500;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tv-topup-list {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-topup-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  font-weight: 700;
}

.tv-qty {
  color: #ff9500;
}

.tv-class {
  color: #e0e0e0;
}

/* ------------------ PANNEAU COULISSANT (Tiroir latéral) ------------------ */

/* Le fond noir semi-transparent qui masque l'arrière-plan */
.tv-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.tv-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Le tiroir en lui-même */
.tv-sliding-panel {
  position: fixed;
  top: 0;
  right: -750px;
  width: 750px;
  height: 100vh;
  background-color: #121214;
  border-left: 1px solid #333;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 40px;
  overflow: hidden;
}

/* La classe qui fait apparaître le tiroir */
.tv-sliding-panel.open {
  right: 0;
}

/* En-tête du tiroir */
.tv-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tv-details-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
}

.btn-close-panel {
  background: none;
  border: none;
  color: #888;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-close-panel:hover {
  color: #ff4757;
}

/* Le conteneur du tableau devient la seule zone scrollable */
.tv-table-container {
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 25px;
  flex: 1;
  overflow-y: auto;
  background-color: #1a1a1c;
}

.tv-details-table {
  width: 100%;
  border-collapse: collapse;
}

/* On rend l'en-tête du tableau "collant" (sticky) */
.tv-details-table th {
  background-color: #242426;
  padding: 15px 20px;
  text-align: left;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tv-details-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e0e0;
}

.tv-checkbox {
  width: 26px;
  height: 26px;
  accent-color: #00ff55;
  cursor: pointer;
}

.tv-validation-action {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.btn-tv-validate {
  background-color: #00ff55;
  color: #000;
  border: none;
  padding: 20px 50px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  transition:
    background-color 0.2s,
    transform 0.1s;
}

.btn-tv-validate:hover {
  background-color: #00cc44;
}
.btn-tv-validate:active {
  transform: scale(0.98);
}

/* État Validé / Terminé (Vert) */
.status-done {
  border: 1px solid #00ff55;
  border-top: 4px solid #00ff55;
}
.status-done .tv-badge-status {
  border-color: #00ff55;
  color: #00ff55;
  background-color: rgba(0, 255, 85, 0.1);
}

/* Le bouton lorsqu'il passe en mode "Annuler" */
.btn-tv-cancel-undo {
  background-color: #ff4757 !important; 
  color: #fff !important;
}
.btn-tv-cancel-undo:hover {
  background-color: #ff0000 !important;
}

/* --- NOUVEAUX STYLES POUR LE FLUX "COMMENCER" --- */

/* Bouton "Commencer la préparation" (Orange pour correspondre au statut En cours) */
.btn-tv-start {
  background-color: #ff9500 !important;
  color: #000 !important;
}
.btn-tv-start:hover {
  background-color: #e68600 !important;
}

/* Griser visuellement les lignes non modifiables */
.disabled-row {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

/* Désactiver le curseur sur les checkboxes verrouillées */
.tv-checkbox:disabled {
  cursor: not-allowed;
  filter: grayscale(100%);
}

/* Bouton "Commencer la préparation" (Orange) */
.btn-tv-start {
  background-color: #ff9500 !important;
  color: #000 !important;
}
.btn-tv-start:hover {
  background-color: #e68600 !important;
}

/* --- ICONE "TOUT COCHER" --- */
#iconCheckAll {
  transition:
    color 0.2s,
    transform 0.2s;
}
#iconCheckAll:hover {
  color: #00ff55;
  transform: scale(1.2);
}

/* --- ÉTOILE DE PRIORITÉ SUR LA CARTE TV --- */
.card-priority-star {
  color: #f1c40f;
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(241, 196, 15, 0.4));
  animation: pulse-star 2s infinite;
}

/* --- ANIMATION ET LUEUR DU CERCLE DE STATUT (Voyant LED) --- */
.tv-badge-status .fa-circle {
  /* Le drop-shadow utilise currentColor pour s'adapter automatiquement (Rouge/Orange/Vert) */
  filter: drop-shadow(0 0 6px currentColor);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* --- BOUTON D'EXPULSION RAPIDE (Croix sur carte verte) --- */
.btn-dismiss-card {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ff4757;
  color: #fff;
  border: 3px solid #1a1a1c;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-dismiss-card:hover {
  background: #ff0000;
  transform: scale(1.15);
}

/* --- ALERTE TROLLEY DANS LA ZONE MODIFICATIONS --- */
.tv-trolley-alert {
  background-color: rgba(
    79,
    70,
    229,
    0.15
  );
  color: #818cf8;
  padding: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px dashed rgba(129, 140, 248, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ------------------ STYLES DE L'ÉCRAN SUPERVISION (MOBILE / PDA) ------------------*/
body.supervision-mode {
  background-color: #f9fafb;
  color: #000;
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Conteneur principal pour gérer les transitions de pages plus tard */
.sup-view {
  display: flex;
  flex-direction: column;
  height: 100dvh; 
  width: 100%;
  position: relative;
}

/* --- HEADER --- */
.sup-header {
  background-color: #4f46e5;
  color: #fff;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.sup-header-logo i {
  font-size: 3rem;
  opacity: 1;
}

a.sup-header-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

a.sup-header-logo:active {
  transform: scale(0.9);
}

.sup-header-text {
  display: flex;
  flex-direction: column;
}

.sup-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.sup-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

/* --- SUBHEADER (COMPTEUR) --- */
.sup-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 0.85rem;
  font-weight: 800;
}

.sup-subheader-title {
  color: #a0a0a0;
  letter-spacing: 1px;
}

.sup-subheader-count {
  color: #4f46e5;
}

/* --- CONTENT & CARDS --- */
.sup-content {
  flex: 1;
  padding: 0 25px 120px 25px;
  overflow-y: auto;
}

.sup-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.sup-card:active {
  transform: scale(0.98);
}

.sup-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.sup-airline {
  font-size: 0.85rem;
  color: #a0a0a0;
  font-weight: 800;
  margin-bottom: 5px;
  display: block;
  letter-spacing: 0.5px;
}

.sup-flight {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

/* --- LES BADGES (Avec bordures comme sur la maquette) --- */
.sup-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid;
}

.sup-badge.en-cours {
  color: #f39c12;
  border-color: #f39c12;
  background-color: rgba(243, 156, 18, 0.08);
}

.sup-badge.termine {
  color: #00d26a;
  border-color: #00d26a;
  background-color: rgba(0, 210, 106, 0.08);
}

.sup-badge.attente {
  color: #ff4757;
  border-color: #ff4757;
  background-color: rgba(255, 71, 87, 0.08);
}

.sup-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b0b0b0;
  font-size: 1rem;
  font-weight: 700;
}

.sup-time i {
  color: #d1d5db;
  font-size: 1.1rem;
}

/* --- FAB BUTTON (Bouton d'ajout) --- */
.sup-fab {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom));
  right: 25px;
  width: 65px;
  height: 65px;
  border-radius: 20px; 
  background-color: #4f46e5;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  cursor: pointer;
  z-index: 1000;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.sup-fab:active {
  transform: scale(0.9);
}
/* ------------------ VUE 2 : CHOIX COMPAGNIE ------------------ */
.sup-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
}

.sup-view-title {
  color: #a0a0a0;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 40px;
}

.sup-company-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 320px;
}

.sup-company-btn {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition:
    transform 0.1s,
    border-color 0.2s;
}

/* Effet de pression pour le tactile */
.sup-company-btn:active {
  transform: scale(0.96);
  border-color: #4f46e5;
}

.sup-company-logo {
  height: 130px; /* On double presque la taille */
  width: auto;
  object-fit: contain;
}

/* Bouton Retour dans le header */
.sup-btn-retour {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding-right: 15px;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.sup-btn-retour:active {
  transform: translateX(-5px);
}

/* ------------------ VUE 3 : WORKFLOW & BARRE DE NAVIGATION ------------------ */
.sup-workflow-content {
  padding-top: 30px;
  padding-bottom: 90px;
}

.sup-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.sup-form-group label {
  font-size: 1.1rem;
  font-weight: 720;
  color: #a9a9a9;
  margin-bottom: 10px;
}

.sup-form-group input {
  padding: 15px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  background-color: #fff;
}

.sup-form-group input:focus {
  border-color: #4f46e5;
}

/* Ligne avec 2 champs côte à côte */
.sup-form-row {
  display: flex;
  gap: 15px;
}

.sup-form-group.half {
  flex: 1;
}

/* --- BARRE DE NAVIGATION BASSE --- */
.sup-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: #fff;
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.sup-nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #a0a0a0;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  width: 33.33%;
  height: 100%;
  position: relative;
  transition: color 0.2s;
}

.sup-nav-item i {
  font-size: 1.4rem;
}

/* Style de l'onglet Actif */
.sup-nav-item.active {
  color: #4f46e5;
}

.sup-nav-item.active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #4f46e5;
}

/* ------------------ VUE 3 : ONGLET PRESTATION (Classes, Accordéons, Compteurs) ------------------ */

/* --- Navigation des Classes (Pilules) --- */
.sup-class-nav {
  display: flex;
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  margin-bottom: 25px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  overflow-x: auto;
  gap: 5px;
  -webkit-overflow-scrolling: touch;
}

.sup-class-nav::-webkit-scrollbar {
  display: none;
}

.sup-class-btn {
  /* MODIFICATION MAJEURE ICI : on remplace "flex: 1;" par "flex: 0 0 auto;" */
  flex: 0 0 auto;
  padding: 10px 25px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  color: #888;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.sup-class-btn.active {
  background-color: var(--theme-color, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- Vues (Standard / SPML) --- */
.sup-prestation-view.hidden {
  display: none;
}

/* --- Accordéons --- */
.sup-accordion {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.sup-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  cursor: pointer;
}

.sup-accordion-header i {
  color: #4f46e5;
  transition: transform 0.3s ease;
}

.sup-accordion-body {
  padding: 0 20px 20px 20px;
}
.sup-accordion-body.hidden {
  display: none;
}

/* --- Lignes de produits & Compteurs --- */
.sup-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.sup-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sup-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
}

/* Le Compteur Moderne corrigé */
.sup-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sup-counter button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #f1f3f5;
  color: #555;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    background-color 0.1s,
    transform 0.1s;
}

.sup-counter button:active {
  transform: scale(0.9);
  background-color: #e2e8f0;
}

/* Le champ de saisie du compteur */
.count-val {
  font-size: 1.2rem;
  font-weight: 800;
  width: 45px;
  text-align: center;
  border: none;
  background: transparent;
  color: #000;
  outline: none;
  padding: 0;
}

/* Retire le soulignement de focus s'il y en a un */
.count-val:focus {
  border-bottom: 2px solid #4f46e5;
  margin-bottom: -2px;
}

/* Cache les petites flèches natives (spinners) sur Chrome/Safari/Edge/Android */
.count-val::-webkit-outer-spin-button,
.count-val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Saisie personnalisée */

.sup-custom-input {
  flex: 1;
  min-width: 0;
  margin-right: 10px;
  padding: 10px 12px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
}

.sup-custom-input:focus {
  border-color: #4f46e5;
}

.sup-divider {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #a0a0a0;
  margin: 15px 0 5px 0;
  text-transform: uppercase;
}

/* --- Vue SPML --- */
.sup-spml-card {
  background-color: #fff;
  border: 1px solid #ffe4cc;
  border-radius: 16px;
  padding: 20px;
}

.sup-spml-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.sup-spml-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sup-spml-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background-color: #fff0e6;
  color: #ff6b00;
  border-radius: 50%;
  font-size: 0.9rem;
}

.sup-spml-header-left h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  margin: 0;
}

.sup-btn-add-spml {
  background-color: #ff6b00;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.sup-btn-add-spml:active {
  transform: scale(0.95);
}

/* Lignes et Formulaire SPML */
.sup-spml-entry {
  padding: 20px 0;
  border-bottom: 1px solid #fff0e6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sup-spml-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sup-spml-entry:first-child {
  padding-top: 0;
}

.sup-spml-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.sup-spml-row .sup-select {
  flex: 1;
  padding: 12px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background-color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  outline: none;
}
.sup-spml-row .sup-select:focus {
  border-color: #ff6b00;
}

/* Actions (Compteur + Supprimer) */
.sup-spml-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-remove-spml {
  background: none;
  border: none;
  color: #c0c0c0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.btn-remove-spml:hover {
  color: #ff4757;
}

.sup-select {
  padding: 12px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background-color: #f9fafb;
  font-size: 0.95rem;
  outline: none;
}

/* --- La lumière indicatrice (Status Dot) --- */
.sup-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sup-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d5db;
  transition: all 0.3s ease;
}

/* Quand le menu est déroulé (Classe .active sur le parent) */
.sup-accordion.active .sup-status-dot {
  background-color: var(--theme-color, #4f46e5);
  box-shadow: 0 0 8px var(--theme-color, #4f46e5);
}

/* Optionnel : Met aussi le texte en bleu quand c'est ouvert */
.sup-accordion.active .sup-accordion-header {
  color: var(--theme-color, #4f46e5);
}

/* Nouvelle ligne pour séparer le compteur des menus déroulants */
.sup-spml-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px dashed #fff0e6;
}

/* --- Bouton d'ajout d'élément manuel --- */
.sup-btn-add-custom {
  width: 100%;
  padding: 12px;
  background-color: #f8f8ff;
  color: #4f46e5;
  border: 1px dashed #4f46e5;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
  transition:
    background-color 0.2s,
    transform 0.1s;
}

.sup-btn-add-custom:hover {
  background-color: #eef2ff;
}

.sup-btn-add-custom:active {
  transform: scale(0.98);
}

/* --- Croix de suppression manuelle --- */
.btn-remove-custom {
  background: none;
  border: none;
  color: #c0c0c0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-remove-custom:hover {
  color: #ff4757;
}

/* ------------------ RESPONSIVE DESIGN (Mobiles & Tablettes) ------------------ */

@media screen and (max-width: 1024px) {
  /* 1. L'en-tête s'adapte et passe sur plusieurs lignes si besoin */
  .tv-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

  /* 2. On centre la zone de l'horloge */
  .tv-header-right {
    text-align: center;
  }

  /* 3. Les cartes deviennent flexibles : elles s'écrasent au lieu de se couper */
  .tv-card {
    width: 100%;
    max-width: 480px;
  }

  /* 4. On réduit l'espace entre les éléments pour gagner de la place */
  .tv-cards-grid {
    gap: 30px;
  }
  
  .tv-main-content {
    padding: 20px;
  }

  /* 5. Le tiroir coulissant prendra toute la largeur de la tablette */
  .tv-sliding-panel {
    width: 100%;
    right: -100%;
  }
}

@media screen and (max-width: 768px) {
  /* Portail : Passage en colonne au lieu d'en ligne */
  .portal-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .portal-btn {
    padding: 20px 15px;
  }

  .portal-logo {
    font-size: 2rem;
  }

  .portal-card-container h1 {
    font-size: 1.5rem;
  }
}

/* ------------------ ONGLET PANIER (TICKET DE CAISSE) ------------------ */
#onglet-panier {
  padding: 0 15px;
}

.sup-ticket-container {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

.ticket-header-empty {
  color: #ff4757;
  font-weight: 800;
  text-align: center;
  font-size: 1.1rem;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticket-header {
  text-align: center;
}

.ticket-flight {
  font-size: 1.8rem;
  font-weight: 900;
  color: #000;
}

.ticket-datetime {
  display: flex;
  justify-content: center;
  gap: 15px;
  color: #888;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 5px;
}

.ticket-divider-thick {
  border-top: 2px dashed #000;
  margin: 20px 0;
}

.ticket-divider {
  border-top: 1px dashed #ccc;
  margin: 20px 0;
}

/* L'indentation hiérarchique */
.ticket-class-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 15px;
}

.ticket-service-section {
  padding-left: 20px; 
  margin-bottom: 15px;
}

.ticket-service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
}

.ticket-item {
  display: flex;
  align-items: flex-start;
  padding-left: 20px; 
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.ticket-qty {
  font-weight: 800;
  color: #4f46e5;
  min-width: 35px; 
}

.ticket-name {
  color: #333;
  font-weight: 600;
}

.ticket-spml-title,
.ticket-spml-item .ticket-qty {
  color: #ff6b00;
}

.ticket-empty {
  text-align: center;
  color: #a0a0a0;
  font-weight: 600;
  font-style: italic;
  padding: 20px 0;
}

/* Style pour le texte barré */
.check-item:checked + span {
  color: #888;
}

/* Bouton grisé */
button:disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
}

/* ------------------ FILTRES DU DASHBOARD ET STATUT ARCHIVÉ ------------------ */
.sup-filters {
    display: flex;
    gap: 10px;
    padding: 0 25px 15px 25px;
}

.sup-filter-btn {
    flex: 1; 
    padding: 10px 0;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 20px; 
    font-size: 0.9rem;
    font-weight: 700;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.sup-filter-btn.active {
    background-color: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* Le style pour la carte qui passe en mode Archivé */
.sup-badge.archive {
    color: #718096;
    border-color: #718096;
    background-color: rgba(113, 128, 150, 0.08);
}

/* ------------------ BARRE DE RECHERCHE HISTORIQUE (Version Compacte) ------------------ */
.search-bar-historique {
    display: flex;
    gap: 10px;
    margin-bottom: 20px; 
    justify-content: flex-start; 
}

#inputSearchVol {
    width: 300px; 
    padding: 10px 15px; 
    border: 1px solid #eaeaea; 
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background-color: #fff;
}

#inputSearchVol:focus {
    border-color: #4f46e5; 
}

#btnSearchHistorique {
    background-color: #4f46e5; 
    color: #fff;
    border: none;
    padding: 10px 20px; 
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#btnSearchHistorique:hover {
    background-color: #4338ca; 
}

#btnSearchHistorique:active {
    transform: scale(0.98); 
}

/* Placeholder du panier vide */
.panier-placeholder {
    color: #a0a0a0;
    text-align: center;
    margin-top: 20px;
}

/* Bouton "Tout cocher" aligné à droite dans le header */
.btn-check-all {
    margin-left: auto;
}

/* Gros bouton de validation finale (Modale Vérification) */
.btn-confirm-final {
    margin: 10px;
    width: 90%;
    border-radius: 12px;
}

/* Bouton de validation du panier */
.btn-validate-panier {
    background-color: #00d26a; 
    color: #fff;
    border: none;
    font-weight: 800;
    margin-top: 20px;
    width: 100%;
    border-radius: 12px;
    font-size: 1.1rem;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-validate-panier:active {
    transform: scale(0.98);
}

/* Titres des sections dans la checklist de vérification */
.verif-class-title {
    margin-top: 15px;
}

.verif-spml-title {
    margin-top: 15px;
    color: #ff6b00;
}

/* Ligne contenant une case à cocher dans la checklist */
.check-item-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed #eaeaea;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Checkbox personnalisée (Checklist) */
.check-item-input {
    width: 22px;
    height: 22px;
    accent-color: #00d26a;
}

/* Bouton de validation quand on passe en mode Archivage */
.btn-submit.btn-submit-archive {
    background-color: #2ed573 !important; 
    color: #fff !important;
}

/* On garde un joli effet au survol en mode archivage (vert plus foncé) */
.btn-submit.btn-submit-archive:hover {
    background-color: #28b864 !important; 
}

/* Style de l'heure dans les notifications */
.notif-time {
    float: right;
    font-size: 0.7rem;
    color: #888;
}

/* Style des dates dans le tableau de l'historique */
.history-date {
    color: #888;
    font-size: 0.85rem;
}

/* État verrouillé des cartes de sélection (Ajustement / Manquant) */
.type-card-locked {
    pointer-events: none;
    opacity: 0.6;
}


/* Alignements génériques */
.tv-text-center { text-align: center; }
.tv-cursor-pointer { cursor: pointer; }

/* En-tête des cartes */
.tv-flight-info-row { display: flex; align-items: center; gap: 15px; }
.tv-badge-wrapper { display: flex; align-items: flex-start; }
.tv-badge-dot { font-size: 0.5rem; }

/* Largeur des colonnes spécifiques (Tiroir) */
.tv-th-qty { width: 100px; text-align: center; }
.tv-th-check { width: 80px; text-align: center; }

/* Style des cellules de quantités (Tiroir) */
.tv-cell-qty {
    text-align: center;
    font-size: 1.3rem;
    color: #fff;
}

/* --- Typographie : Supervision (Manquants Standards) --- */
.tv-row-class { background-color: #2a2a2e; }
.tv-cell-class {
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 20px;
}
.tv-cell-service {
    color: #ff9500;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 5px 20px;
    border-bottom: none;
    text-transform: uppercase;
}
.tv-cell-indent {
    padding-left: 40px;
    color: #fff;
}

/* --- Typographie : Supervision (SPML) --- */
.tv-row-spml { background-color: #3b200b; }
.tv-cell-spml-header {
    color: #ff9500;
    font-size: 1.2rem;
    padding: 10px 20px;
}
.tv-cell-spml-indent {
    padding-left: 20px;
    color: #b0b0b0;
}
.tv-spml-highlight { color: #ff9500; }
.tv-spml-muted { color: #666; margin-left: 10px; }

.tv-progress-container {
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 99%;
    height: 8px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
}

.tv-progress-bar {
    height: 100%;
    width: 100%;
}

/* Couleurs dynamiques */
.tv-progress-green { background-color: #00a352; }
.tv-progress-orange { background-color: #ff9500; }
.tv-progress-red { background-color: #ff4757; }

/* Effet de pulsation douce pour les urgences absolues */
.tv-progress-blink { 
    animation: pulse-bar 1.5s infinite; 
}

@keyframes pulse-bar {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}