/* Styles Mon Compte */
.compte-section {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 24px;
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
}
.compte-section h3 {
    margin-top: 0;
    color: #004080;
}
.compte-infos {
    margin: 0;
    padding: 0;
}
.compte-infos p {
    margin: 6px 0;
    padding: 0;
}
.form-mdp {
    max-width: 400px;
    margin: 10px 0 0 0; /* Small vertical spacing for change-password form */
}
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.form-row label {
    flex: 0 0 180px;
    font-weight: 500;
}
.form-row input[type="password"] {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
}
/* Styles pour la documentation technique (calcul de coût, etc.) */
.container section h2, .container section h3 {
  margin-top: 32px;
  margin-bottom: 18px;
  color: #004080;
}
.container section p {
  margin-bottom: 18px;
  margin-top: 0;
}
.container section ul, .container section ol {
  margin-bottom: 22px;
  margin-top: 0;
}
.container section ul ul, .container section ol ul, .container section ol ol, .container section ul ol {
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 2.2em;
}
.container section li {
  margin-bottom: 7px;
}
.container section code {
  background: #f7f7fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.98em;
}
/* Décalage des puces blanches dans la documentation et autres pages */
.container ul {
    padding-left: 2.2em;
}
.container ul ul {
    padding-left: 2em;
}
/* SECTION TABLEAUX MODERNES */
.table-section {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 32px;
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

table.table-skywings {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

thead.table-skywings {
    background-color: #004080;
    color: #fff;
    font-weight: 700;
    text-align: left;
    display:block;
    top:0; 
}

tbody.table-skywings {
    width: 100%;
    display: block;
    max-height: 400px;
    overflow-y: auto;
}

table.table-skywings tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

table.table-skywings td {
    /*border: 1px solid #e0e0e0;*/
    border:none;
    /*border: 1px solid #e0e0e0;*/
    /*padding: 10px 16px;*/
    font-size: 1rem;
    vertical-align: middle;
    text-align: center;
}

table.table-skywings th {
    background: #004080;
    color: #fff;
    font-weight: 600;
    /*border: 1px solid #e0e0e0;*/
    border:none;
    /*border: 1px solid #e0e0e0;*/
    /*padding: 10px 16px;*/
    font-size: 1rem;
    vertical-align: middle;
    text-align: center;
  }

table.table-skywings  tr:nth-child(even) {
    background-color: #f4f6f8;
}

table.table-skywings tr:hover {
    background-color: #e6f0ff;
    transition: background 0.2s;
}

/* Style moderne pour la liste de sélection Skywings */
.select-skywings {
    position: relative;
    display: inline-block;
    width: 180px;
    margin-bottom: 12px;
}
.select-skywings-select {
    width: 100%;
    padding: 7px 32px 7px 10px;
    border-radius: 10px;
    border: 1px solid #b3c6e0;
    background: #f7fbff;
    font-size: 0.98em;
    color: #478ED4;
    font-weight: bold;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: border-color 0.2s;
}
.select-skywings-select:focus {
    border-color: #478ED4;
    outline: none;
}
.select-skywings-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1em;
    color: #478ED4;
}
/* RESET DE BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #004080;
  line-height: 1.5;
  min-height: 100vh;
}

/* HEADER */
header {
  background-color: #004080;
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bandeau {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-nom {
  display: flex;
  align-items: center;
}

.logo {
  height: 48px;
  width: auto;
  margin-right: 15px;
}

.btn {
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 7px 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #003366;
}

/* Reset button style (model used in admin pages) */
.btn-reset {
  background-color: #ccc;
  color: #004080;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-reset:hover {
  background-color: #bfbfbf;
}
.btn.btn-reset { /* ensure it overrides .btn */
  background-color: #ccc;
  color: #004080;
}

.nom-compagnie {
  font-size: 1.4rem;
  font-weight: 700;
}

/* FORMULAIRE DE CONNEXION */
.formulaire-login form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.formulaire-login input[type="text"],
.formulaire-login input[type="password"] {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.formulaire-login button {
  background-color: #478ED4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 7px 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulaire-login button:hover {
  background-color: #478ED4;
}

.formulaire-login p {
  font-size: 1rem;
}

.formulaire-login a {
  color: #99ccff;
  text-decoration: none;
  margin-left: 8px;
  font-weight: 600;
}

.formulaire-login a:hover {
  text-decoration: underline;
}

/* MENUS */
nav.menu-guest,
nav.menu-logged {
  background-color: #004080;
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 68px;
  z-index: 90;
}

nav.menu-guest a,
nav.menu-logged a {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

nav.menu-guest a:hover,
nav.menu-logged a:hover {
  background-color: #004080;
  color: #cce0ff;
}

/* CONTENU PRINCIPAL */
main {
  width: 100%;
  max-width: none;
  margin: 30px auto;
  padding: 50px;
  background-color: white;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  min-height: 60vh;
  overflow-x: visible;
}

/* TITRES */
h1, h2 {
  color: #004080;
  margin-bottom: 20px;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
}

/* FORMULAIRE D’INSCRIPTION */
.form-inscription {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 450px;
}

.form-inscription label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1rem;
  color: #004080;
}

.form-inscription input[type="text"],
.form-inscription input[type="email"],
.form-inscription input[type="password"] {
  width: 100%;
  max-width: 400px;
  padding: 0.5em;
  box-sizing: border-box;
}

.form-inscription button {
  width: 100%;
  max-width: 400px;
  padding: 7px 15px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-inscription button:hover {
  background-color: #004080;
}

/* INFORMATIONS SUR UN VOL */
.vol-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  display: none; /* hidden by default; JS will set inline style to 'flex' when opening */
  align-items: center;
  justify-content: center;
}
 .vol-modal-content {
   background: #fff;
   padding: 24px 32px;
   border-radius: 10px;
   min-width: 320px; /* match tableau_vols.php default */
   max-width: 90vw;
   max-height: 80vh;
   overflow-y: auto;
   box-shadow: 0 4px 24px rgba(0,0,0,0.18);
   position: relative;
 }
.vol-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2em;
    color: #004080;
    cursor: pointer;
}

/* stastistiques*/
.stat-card {
    background: #f7fbff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 28px;
    min-width: 180px;
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stat-label {
    color: #004080;
    font-size: 1.1em;
    margin-bottom: 6px;
    font-weight: 600;
}
.stat-value {
    font-size: 2.1em;
    font-weight: bold;
    color: #222;
}
.stat-sub {
    font-size: 0.95em;
    color: #555;
}

/* FOOTER */
footer {
  background-color: #004080;
  color: white;
  padding: 15px 20px;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 40px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
}

/* Harmonisation des champs de formulaire sur .form-inscription */
.form-inscription input[type="text"],
.form-inscription input[type="email"],
.form-inscription input[type="password"],
.form-inscription input[type="number"],
.form-inscription input[type="datetime-local"],
.form-inscription select,
.form-inscription textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.5em;
  box-sizing: border-box;
  font-size: 1rem;
}

.form-inscription textarea {
  min-height: 60px;
  resize: vertical;
}

/* Ensure inputs and textareas using .form-input inside .form-inscription share the same width
   This forces Piste, Observations and Fret fields to align with the other form controls. */
.form-inscription .form-input {
  width: 100% !important;
  max-width: 400px !important;
  box-sizing: border-box;
}

.form-inscription button,
.form-inscription .btn {
  width: 180px;
  max-width: 100%;
  margin-top: 0.5em;
  align-self: flex-start;
}

/* Compact action buttons inside forms so multiple buttons can fit on one line.
   Scoped to .form-inscription .form-actions to avoid changing global button sizing. */
.form-inscription .form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.form-inscription .form-actions .btn,
.form-inscription .form-actions button,
.form-inscription .form-actions a {
  width: auto; /* let buttons size to content */
  padding: 6px 10px;
  font-size: 0.95rem;
}

/* utility small button class (use when smaller footprint is desired) */
.btn-small {
  padding: 6px 10px;
  font-size: 0.95rem;
  min-width: 0;
}

/* Sous-menu Plus */
.menu-plus {
    position: relative;
    margin-left: 10px;
    color: white;
    display: flex;
    align-items: center;
}
.menu-plus span {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    display: inline-block;
}
.submenu-plus {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 100;
    padding: 5px;
    min-width: 180px;
    color: #478ED4 !important;
    font-size: 0.85rem;
    top: 100%;
    left: 0;
}
.menu-plus:hover .submenu-plus {
    display: block;
}
.submenu-plus a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #478ED4 !important;
}
.submenu-plus a:hover {
    background-color: #478ED4;
    color: white !important;
}

.menu-logged {
    /* Pour que les liens soient bien alignés avec flexbox */
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre les items */
}

.menu-admin {
    position: relative;
    margin-left: 10px;
    color: white;
    display: flex;          /* flex container */
    align-items: center;    /* centrage vertical */
}

.menu-admin span {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    display: inline-block;
}

/* Sous-menu */
.submenu-admin {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 100;
    padding: 5px;
    min-width: 180px;
    color: #478ED4 !important;
    font-size: 0.85rem; /* police plus petite dans le sous-menu */
    top: 100%; /* positionne le sous-menu juste en dessous de son parent */
    left: 0;
}

/* Affiche le sous-menu au survol */
.menu-admin:hover .submenu-admin {
    display: block;
}

/* liens du sous-menu */
.submenu-admin a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #478ED4 !important; /* forcer la couleur */
}

/* hover lien sous-menu */
.submenu-admin a:hover {
    background-color: blue;
    color: white !important; /* texte blanc au hover */
}
/* Sous-menu Missions */
.menu-missions {
    position: relative;
    margin-left: 10px;
    color: white;
    display: flex;
    align-items: center;
}
.narrow-table-wrapper {
  max-width: 1100px; /* increased width to give more room for admin frames */
  margin-left: 0; /* keep left alignment so panels line up with page content */
  margin-right: auto;
}
.narrow-table-wrapper .table-skywings {
  width: 100%;
}

@media (max-width: 800px) {
  .narrow-table-wrapper { max-width: 100%; padding: 0 12px; }
}

/* Account page two-column layout */
.account-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; max-width: 1100px; margin: 0; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0; } }
.left-column, .right-column { display: flex; flex-direction: column; gap: 18px; }
.compte-section.full-width { grid-column: 1 / -1; max-width: none; width: 100%; }

/* Ensure tables inside a full-width compte-section fill the available space */
.compte-section.full-width .table-skywings { width: 100%; }

/* Slightly increase row height for the reservations table inside the full-width section
   so buttons (Annuler) have a thin white gap above and below. */
.compte-section.full-width .table-skywings th,
.compte-section.full-width .table-skywings td {
  padding: 8px 12px;
  text-align: left; /* keep content left-aligned inside this full-width table */
}
.compte-section.full-width .table-skywings td .btn {
  padding: 6px 10px; /* compact button but with vertical breathing room */
  line-height: 1; /* avoid extra height from line-height */
}
.missions-label {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    display: inline-block;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transition: color 0.2s;
}
.menu-missions:hover .missions-label,
.menu-missions:focus-within .missions-label,
.missions-label:hover {
    color: #cce0ff;
}
.submenu-missions {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 100;
    padding: 5px;
    min-width: 180px;
    color: #478ED4 !important;
    font-size: 0.85rem;
    top: 100%;
    left: 0;
}
.menu-missions:hover .submenu-missions {
    display: block;
}
.submenu-missions a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #478ED4 !important;
}
.submenu-missions a:hover {
    background-color: #478ED4;
    color: white !important;
}

/* Generic panel used across pages (cards) */
.panel {
  background:#fff;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
}
.panel h3 { margin-top:0; margin-bottom:8px; font-size:1.05rem; color:#1a3552; }

/* spacing for stacked panels */
.panel { margin-bottom:12px; }

/* compact variant for tables inside small panels */
.table-skywings.compact { font-size:0.95em; }

/* Layout columns used on lignes_regulieres.php */
.content-columns { display:flex; gap:32px; align-items:flex-start; }
.right-aside { width:900px; max-width:100%; min-width:320px; flex:0 0 900px; margin-left:16px; }

/* Vertical separator */
.vertical-sep { width:1px; background:#e6e6e6; margin:0 12px; align-self:stretch; border-radius:2px; }

/* Filters form */
.filters-form { margin-bottom:1em; display:flex; flex-wrap:wrap; gap:0.6rem; align-items:center; }
.filters-form .icao-input { width:6em; }
.filters-form .filter-select { margin-left:.4em; }
.reset-btn { margin-left:.5em; }

/* Reservations list */
.reservations-scroll { max-height:220px; overflow:auto; margin-bottom:10px; }
.empty-msg { margin:0 0 10px 0; color:#555; }

/* Map embed responsive container */
.map-embed { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:10px; border:1px solid rgba(0,0,0,0.06); margin-top:6px; }
.map-embed iframe.map-iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
.map-note { margin-top:10px; font-size:0.95em; color:#333; }

/* Flash messages */
.flash-success { font-weight:bold; color:#1ca64c; margin-bottom:16px; }
.flash-error { font-weight:bold; color:#d60000; margin-bottom:16px; }

/* --- Additional utility classes for migrated inline styles --- */
/* Hero / index page */
.hero-layout { display:flex; justify-content:center; align-items:flex-start; gap:2rem; margin-top:2rem; flex-wrap:wrap; }
.hero-card { max-width:900px; border:1px solid #ccc; border-radius:10px; padding:1rem; background-color:#f9f9f9; box-shadow:0 2px 8px rgba(0,0,0,0.1); }
.hero-right { max-width:600px; display:flex; flex-direction:column; gap:1.5rem; }
.hero-image { width:100%; height:auto; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.inline-ul-margin { margin-left:2.2em; }
.welcome-msg { font-size:1.25em; font-weight:bold; color:#2a4d7a; margin-bottom:22px; }
.notice-box { display:flex; justify-content:center; margin-bottom:18px; }
.notice-card { max-width:420px; width:100%; border:1px solid #2a4d7a; border-radius:8px; background:#f4f8fb; color:#234; padding:0.8em 1em; white-space:pre-line; font-size:1.08em; }
.reservation-box { border:1px solid #f0ad4e; background:#fff3cd; padding:12px; border-radius:6px; margin-bottom:18px; }
.map-div { width:100%; height:400px; }

/* Flight details include */
.fd-table { width:100%; border-collapse:collapse; }
.fd-label { font-weight:bold; padding:4px 8px; color:#0d47a1; }
.fd-value { padding:4px 8px; }

/* Reservation page */
.error-msg { color:#d60000; font-weight:bold; }
.btn-secondary { background: #6c757d; margin-left:8px; }
.btn-secondary:hover { background: #5a6268; }

/* Login page */
.login-container { max-width:340px; margin:40px auto 0 auto; padding:32px 28px; background:#f7fbff; border-radius:10px; box-shadow:0 2px 12px rgba(0,0,0,0.07); }
.text-center { text-align:center; }
.form-column { display:flex; flex-direction:column; gap:18px; }
.form-input { width:100%; padding:8px 10px; border-radius:6px; border:1px solid #b0bec5; font-size:1em; }
.btn-full { width:100%; background:#004080; color:#fff; font-weight:bold; padding:10px 0; border:none; border-radius:6px; font-size:1.1em; cursor:pointer; }
.btn-full:hover { background:#003366; }

/* Small utility helpers added during inline-style migration */
.content-row { display:flex; flex-direction:row; gap:2rem; align-items:flex-start; margin-bottom:2rem; }
.spacer-xl { height:2.5rem; }
.balance-value { font-size:1em; margin-left:10px; }
.hidden { display:none !important; }

/* Stats page helpers */
.page-title { margin-bottom: 1.5em; }
.stats-cards { display:flex; flex-wrap:wrap; gap:24px; margin-bottom:2.5em; }
.charts-row { display:flex; flex-wrap:wrap; gap:40px; align-items:flex-start; margin-bottom:2.5em; }
.chart-left { flex:1; min-width:320px; max-width:700px; }
.chart-right { flex:3; min-width:600px; max-width:1400px; }
.two-column-row { display:flex; flex-wrap:wrap; gap:40px; align-items:flex-start; margin-bottom:2.5em; }
.records-box { font-size:1.13em; line-height:1.8; list-style:none; padding:0; margin:0; max-width:420px; text-align:center; background:#f8faff; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,0.01); padding:24px 18px; display:inline-block; }
.records-box li { margin-bottom:12px; }

/* Column width helpers used in tables (percent based) */
.col-10 { width: 10%; }
.col-8 { width: 8%; }
.col-6 { width: 6%; }
.col-5 { width: 5%; }
.col-70 { width: 70%; }

/* Login form small helpers */
.login-label { font-weight:600; color:#0d47a1; }

/* Additional helpers for index.php layout */
.flex-1 { flex: 1; min-width: 320px; }
.col-fixed-320 { flex: 0 0 320px; max-width: 380px; }
.no-top-margin { margin-top: 0 !important; }
.balance-panel { margin: 32px 0 0 0; font-size: 1.2em; font-weight: bold; }
.balance-label { color: #2c3e50; }
/* Fleet modal and small helpers */
.fleet-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.35); align-items: center; justify-content: center; }
.fleet-modal-content { background: #fff; padding: 24px 32px; border-radius: 10px; min-width: 320px; max-width: 90vw; max-height: 80vh; overflow-y: auto; box-shadow: 0 4px 24px rgba(0,0,0,0.18); position: relative; }
.fleet-modal-close { position: absolute; top: 12px; right: 18px; font-size: 2em; color: #0d47a1; cursor: pointer; }
.divider { border:0; border-top:1.5px solid #1abc9c; margin:10px 0 6px 0; }
.input-250 { width: 250px; }
.input-320 { width: 220px; }
/* Ensure fleet-select with input-320 wins over generic .fleet-filter-select rules */
.fleet-filter-select.input-320 { width: 220px !important; }
/* Ensure selects inside .form-inscription can be sized like the filters below */
.form-inscription .fleet-filter-select.input-160 { width: 160px !important; }
.form-inscription .fleet-filter-input.input-160 { width: 160px !important; }
/* Also ensure the generic fleet-filter input/select with input-160 get the correct width outside form-inscription contexts */
.fleet-filter-select.input-160 { width: 160px !important; }
.fleet-filter-input.input-160 { width: 160px !important; }
.mb-8 { margin-bottom: 8px; }
.mt-8 { margin-top: 8px; }
.responsive-img { max-width:100%; height:auto; border-radius:8px; }

/* Modal column helpers used in vol/fleet modals */
.modal-left { width: 365px; padding: 0; margin: 0; border: 0; vertical-align: top; }
.modal-right { width: 70%; padding: 0; margin: 0; border: 0; vertical-align: middle; }

/* Small helper to display filter results/info text */
.filter-info { margin-bottom:8px; color:#1565c0; font-weight:bold; }

/* Modal grid to layout details + map reliably */
.modal-grid { display: flex; gap: 18px; align-items: flex-start; }

/* Make modal responsive on small screens */
@media (max-width: 900px) {
  .vol-modal-content { min-width: 320px; padding: 18px; }
  .modal-grid { flex-direction: column; }
  .modal-left, .modal-right { width: 100%; }
  .map-div { height: 300px; }
}

/* Make the modal map match the size used in tableau_vols.php (desktop) */
.modal-right .map-div { width: 600px; height: 400px; }

/* If container is too small, allow map to shrink responsively */
@media (max-width: 1100px) {
  .modal-right .map-div { width: 100%; height: 380px; }
}

/* Fleet page filter helpers (preserve original compact layout) */
.fleet-filter-input { width: 250px; padding:6px 8px; border-radius:4px; border:1px solid #bbb; }
.fleet-filter-select { width: 250px; padding:6px 8px; border-radius:4px; border:1px solid #bbb; }
.filter-margin { margin-left:18px; }
.input-160 { width: 160px; }
.no-results { font-size:1.25em; color:#0066cc; font-weight:600; background:#f7fbff; padding:18px 0; border-radius:8px; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,0.04); margin:28px 0; }

/* Admin: Gestion pilotes form styles moved from inline -> centralized */
.form-pilote {
  margin-top: 32px;
  max-width: 420px;
}
.form-pilote .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.form-pilote label {
  flex: 0 0 120px;
  font-weight: 500;
}
.form-pilote input[type="text"],
.form-pilote input[type="email"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #c0c8d0;
  border-radius: 8px; /* a bit rounder to match site inputs */
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,0.04);
}
.checkbox-group { display:flex; gap:18px; align-items:center; }
.checkbox-inline { display:flex; align-items:center; gap:6px; cursor:pointer; }
.form-row.form-actions { gap:12px; }

/* Space under the listbox (select) so subsequent table/form isn't too close */
#form-pilote { margin-bottom: 28px; }

/* === TABLEAU VOLS - Table column widths === */
.table-skywings .col-date { width: 10%; }
.table-skywings .col-callsign { width: 8%; }
.table-skywings .col-immat { width: 5%; }
.table-skywings .col-fleet-type { width: 10%; }
.table-skywings .col-icao { width: 5%; }
.table-skywings .col-fuel { width: 5%; }
.table-skywings .col-conso { width: 5%; }
.table-skywings .col-payload { width: 5%; }
.table-skywings .col-time { width: 10%; }
.table-skywings .col-recette { width: 10%; }
.table-skywings .col-mission { width: 5%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-skywings .col-action { width: 10px; }

/* Negative recette amount styling */
.recette-negative { color: #d60000; }

/* === VOL MODAL - Table layout for details + map === */
.vol-modal-table { width: 100%; border-collapse: collapse; }
.vol-modal-table td { padding: 0; margin: 0; border: 0; vertical-align: top; }
.vol-modal-left { width: 365px; }
.vol-modal-right { width: 70%; vertical-align: middle; }
.vol-modal-map { width: 600px; height: 400px; }

@media (max-width: 1100px) {
  .vol-modal-map { width: 100%; height: 380px; }
}

/* === ADMIN FLOTTE - Layout and forms === */
.admin-flotte-main { max-width: 95%; margin: 0 auto; padding: 20px; }
.admin-flotte-section { flex: 1; min-width: 360px; max-width: 520px; }
.message-success { padding: 15px; background: #d4edda; border: 1px solid #c3e6cb; border-radius: 4px; color: #155724; margin-bottom: 20px; }
.message-error { padding: 15px; background: #f8d7da; border: 1px solid #f5c6cb; border-radius: 4px; color: #721c24; margin-bottom: 20px; }
.radio-section { margin-bottom: 10px; }
.prix-info { margin: 8px 0 0 0; font-weight: bold; color: #0066cc; }
.type-info { margin: 8px 0 0 0; font-weight: bold; color: #444; }
.credit-fields { display: none; margin-top: 10px; }
.credit-fields.visible { display: block; }
.admin-section { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin-bottom: 30px; }
.admin-section h3 { margin-top: 0; color: #0066cc; }
.admin-table { font-size: 0.9em; }
.admin-table th { background: #f8f9fa; padding: 10px; text-align: left; border-bottom: 2px solid #dee2e6; }
.admin-table td { padding: 10px; border-bottom: 1px solid #dee2e6; }
.btn-link { color: #0066cc; text-decoration: none; padding: 4px 8px; }
.btn-link:hover { text-decoration: underline; }
.btn-danger { color: #dc3545; }
.avion-select-label { font-weight: bold; display: block; margin-bottom: 7px; }
.avion-icon { color: #0066cc; font-size: 1.15em; vertical-align: middle; }
.avion-select { width: 250px; }
.avion-details { display: none; margin-bottom: 15px; }
.avion-details.visible { display: block; }
.achat-mode-text { font-style: italic; color: #555; }
.btn-vendre { display: none; }
.btn-vendre.visible { display: inline-block; }
.mail-status-success { color: green; }
.mail-status-warning { color: orange; }

/* === FORM ACTIONS - Global === */
.form-actions { margin-top: 12px; }

/* === ADMIN GRADES - Layout and forms === */
.admin-grades-container {
    max-width: 1100px;
    margin: 40px 0;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.admin-grades-title {
    text-align: left;
    color: #1a3552;
    margin-bottom: 28px;
}

/* === GRADES & PILOTES PAGES - Simple display container === */
.grades-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.grades-container h2 {
    text-align: left;
    color: #1a3552;
    margin-bottom: 28px;
}

/* Override min-width for grades table in public pages */
.grades-container .grades-table-gauche {
    min-width: 0;
    width: 100%;
}

.admin-grades-message {
    margin-bottom: 18px;
    color: #1a3552;
    background: #eaf2fb;
    padding: 10px 16px;
    border-radius: 6px;
}

.admin-grades-form {
    margin-bottom: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.admin-grades-form input[type="text"],
.admin-grades-form input[type="number"] {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #bbb;
}

.admin-grades-form input[name="description"] {
    min-width: 180px;
}

.admin-grades-form input[name="taux_horaire"] {
    width: 120px;
}

.admin-grades-form button[type="submit"] {
    padding: 8px 18px;
    background: #1a3552;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-grades-form button[type="submit"]:hover {
    background: #2a4562;
}

.grades-table-gauche {
    min-width: 1000px;
    width: 100%;
    border-collapse: collapse;
    font-size: 1.08em;
    margin-left: 0;
    table-layout: auto;
}

.grades-table-gauche thead tr {
    background: #eaf2fb;
}

.grades-table-gauche th {
    padding: 10px 8px;
    text-align: left;
}

.grades-table-gauche tbody tr {
    background: #fff;
}

.grades-table-gauche td {
    padding: 8px;
}

.grades-table-gauche td input[name="nom"] {
    width: 220px;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #bbb;
}

.grades-table-gauche td input[name="taux_horaire"] {
    width: 80px;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #bbb;
}

.grades-table-gauche td input[name="description"] {
    width: 320px;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #bbb;
}

.grades-table-actions {
    display: flex;
    gap: 6px;
}

.grades-table-actions .btn-save {
    background: #1a3552;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.grades-table-actions .btn-save:hover {
    background: #2a4562;
}

.grades-table-actions .btn-delete {
    background: #b00;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.grades-table-actions .btn-delete:hover {
    background: #d00;
}

/* === ADMIN LIGNES REGULIERES - Forms and filters === */
.admin-lines-form-section {
    margin-bottom: 20px;
}

.admin-lines-form-wrapper {
    background: #f7fbff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 1300px;
}

.admin-lines-inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    white-space: nowrap;
}

.admin-lines-inline-form label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.admin-lines-inline-form label span {
    min-width: 86px;
    display: inline-block;
}

.admin-lines-inline-form .input-uppercase {
    text-transform: uppercase;
}

.admin-lines-checkbox-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
}

.admin-lines-checkbox {
    width: auto !important;
    height: auto !important;
    cursor: pointer;
    margin: 0 !important;
}

.admin-lines-form-actions {
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
}

.admin-lines-btn-cancel {
    background: #ccc;
    color: #004080;
    padding: 6px 10px;
    margin-left: 8px;
    text-decoration: none;
}

.admin-lines-filters-form {
    margin: 8px 0 12px 0;
}

.admin-lines-btn-reset {
    background: #ccc;
    color: #004080;
    padding: 8px 16px;
    margin-left: 8px;
    text-decoration: none;
    line-height: 18px;
    border-radius: 4px;
}

.admin-lines-table {
    width: 100%;
    border-collapse: collapse;
}

/* === STATS PAGE - Cards, charts, and layout === */
.stats-title {
    margin-bottom: 1.5em;
}

.stats-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 2.5em;
}

.stats-charts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 2.5em;
}

.stats-chart-flights {
    flex: 1;
    min-width: 320px;
    max-width: 700px;
}

.stats-chart-fleet {
    flex: 3;
    min-width: 600px;
    max-width: 1400px;
}

.stats-chart-title {
    margin-bottom: 0.5em;
}

.stats-tables-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 2.5em;
}

.stats-table-container {
    flex: 1;
    min-width: 320px;
}

.stats-records-container {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-records-title {
    text-align: center;
    margin-bottom: 18px;
}

.stats-records-list {
    font-size: 1.13em;
    line-height: 1.8;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 420px;
    text-align: center;
    background: #f8faff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0001;
    padding: 24px 18px;
    display: inline-block;
}

.stats-records-list li {
    margin-bottom: 12px;
}

.stats-record-value {
    color: #1976d2;
}

/* === ADMIN MISSIONS - Layout and forms === */
.admin-missions-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.admin-missions-left {
    flex: 1 1 380px;
    min-width: 320px;
    max-width: 420px;
}

.admin-missions-right {
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 380px;
}

.admin-missions-form-select {
    margin-bottom: 2rem;
}

.admin-missions-form-edit {
    max-width: 400px;
    margin-bottom: 2.5rem;
    background: #f7fbff;
    padding: 18px 20px;
    border-radius: 7px;
    box-shadow: 0 2px 8px #0001;
}

.admin-missions-form-create {
    max-width: 400px;
    background: #f7fbff;
    padding: 18px 20px;
    border-radius: 7px;
    box-shadow: 0 2px 8px #0001;
}

.admin-missions-form-edit label,
.admin-missions-form-create label {
    display: block;
    margin-top: 10px;
    margin-bottom: 3px;
}

.admin-missions-form-edit input[type="text"],
.admin-missions-form-edit input[type="number"],
.admin-missions-form-create input[type="text"],
.admin-missions-form-create input[type="number"] {
    width: 100%;
    padding: 5px 7px;
    margin-bottom: 8px;
    border: 1px solid #b3c6e0;
    border-radius: 3px;
}

.admin-missions-form-edit select,
.admin-missions-form-create select {
    padding: 5px 7px;
    border-radius: 3px;
    border: 1px solid #b3c6e0;
    margin-bottom: 10px;
}

.admin-missions-form-edit button,
.admin-missions-form-create button {
    margin-top: 10px;
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.admin-missions-form-edit button:hover,
.admin-missions-form-create button:hover {
    background: #0055a3;
}

.admin-missions-checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25em;
    cursor: pointer;
}

.admin-missions-checkbox-label input {
    margin: 0 !important;
}

.admin-missions-table-title {
    margin-top: 0;
}

.admin-missions-table {
    width: 100%;
    border-collapse: collapse;
    background: #f7fbff;
    box-shadow: 0 2px 8px #0001;
    font-size: 0.97em;
}

.admin-missions-table th {
    background: #e6f0fa;
    color: #0066cc;
    font-weight: bold;
    border: 1px solid #b3c6e0;
    padding: 7px 10px;
}

.admin-missions-table td {
    border: 1px solid #b3c6e0;
    padding: 7px 10px;
}

.admin-missions-active-yes {
    color: #008800;
    font-weight: bold;
}

.admin-missions-active-no {
    color: #c00;
    font-weight: bold;
}

/* === FINANCES PAGE - Cards and layout === */
.finances-cards-row {
    display: flex;
    gap: 32px;
    align-items: stretch;
    max-width: 1800px;
}

.finances-card {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.finances-card-value {
    font-size: 2.1em;
    font-weight: bold;
    color: #2a4d7a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finances-card-value .icon {
    font-size: 1.2em;
}

.finances-card-value-income {
    font-size: 1.3em;
    font-weight: bold;
    color: #1ca64c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finances-card-value-income .icon {
    font-size: 1.1em;
}

.finances-card-value-expense {
    font-size: 1.3em;
    font-weight: bold;
    color: #d60000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finances-card-value-expense .icon {
    font-size: 1.1em;
}

.finances-card-label {
    font-size: 1em;
    color: #555;
    margin-top: 6px;
}

.finances-card-label .small-text {
    font-size: 0.97em;
}

.finances-value-positive {
    color: green;
}

.finances-value-negative {
    color: red;
}

.finances-details {
    margin-bottom: 18px;
}

.finances-details summary {
    font-weight: bold;
    cursor: pointer;
}

/* === FLEET TYPE PAGE - Two column table layout === */
.fleet-type-tables-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.fleet-type-table-section {
    min-width: 420px;
    max-width: 600px;
    margin: 0;
}

.fleet-type-table-section .table-skywings {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden;
}

.fleet-type-table-section .table-skywings th,
.fleet-type-table-section .table-skywings td {
    padding: 4px 8px;
    font-size: 14px;
    text-align: left;
}

.fleet-type-table-section .table-skywings th {
    background: #0d47a1;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #08306b;
}

.fleet-type-table-section .table-skywings tr:nth-child(even) td {
    background: #f7fbff;
}

.fleet-type-table-section .table-skywings th.fleet_type,
.fleet-type-table-section .table-skywings td.fleet_type {
    width: 120px;
}

.fleet-type-table-section .table-skywings th.cout_horaire,
.fleet-type-table-section .table-skywings td.cout_horaire {
    width: 110px;
}

.fleet-type-table-section .table-skywings th.prix,
.fleet-type-table-section .table-skywings td.prix {
    width: 100px;
}

/* === ADMIN AEROPORT - Form actions === */
.admin-aeroport-actions {
    margin-top: 10px;
}

/* === ADMIN GESTION PILOTES - Message styling === */
.admin-pilots-message-success {
    font-weight: bold;
    color: #1ca64c;
    margin-bottom: 16px;
}

.admin-pilots-message-error {
    font-weight: bold;
    color: #d60000;
    margin-bottom: 16px;
}

/* === FLEET PAGE - Table and spacing === */
.fleet-spacer {
    height: 18px;
}

.fleet-table th,
.fleet-table td {
    width: 8%;
}

/* === DOC SCRIPTS - Code examples === */
.code-example {
    background: #f7f7fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.98em;
    overflow-x: auto;
}

.exemple-calculs {
    font-size: 0.97em;
}

.fonctionnement-list {
    margin-left: 18px;
}

.details-text {
    font-size: 0.95em;
}

.sub-list {
    font-size: 0.95em;
    margin-top: 4px;
    padding-left: 28px;
}

/* === DOC PROMOTION GRADES - Grades table === */
.grades-table-container {
    max-width: 700px;
    margin: 32px auto 0 auto;
}

.grades-table-promotion {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.08rem;
    background: transparent;
}

.grades-table-promotion thead tr {
    background: #eaf2fb;
}

.grades-table-promotion th {
    padding: 12px 10px;
    color: #2a4d7a;
    font-weight: 600;
    border-bottom: 1px solid #e0e6ed;
}

.grades-table-promotion td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e6ed;
}




