/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #1a1a2e;
  background: #f0f2f5;
  height: 100vh;
  overflow: hidden;
}

#root { height: 100vh; display: flex; }

/* ─── Layout ──────────────────────────────────────────────── */
.app-layout { display: flex; width: 100%; height: 100vh; overflow: hidden; }

.sidebar {
  width: 240px;
  min-width: 240px;
  background: #1a1a2e;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 40;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.sidebar-logo-img {
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.sidebar-close,
.sidebar-backdrop,
.mobile-topbar {
  display: none;
}

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: #dc2626; color: #fff; }
.nav-item--sub {
  padding: 8px 12px 8px 36px;
  font-size: 12px;
  font-weight: 400;
}
.nav-item--sub .nav-icon { font-size: 14px; width: 16px; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.nav-module { margin-top: 2px; }
.nav-module__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.nav-module__toggle:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-module--active > .nav-module__toggle { color: #fff; }
.nav-module__icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-module__label { flex: 1; }
.nav-module__chevron {
  font-size: 14px;
  color: #64748b;
  transition: transform 0.2s;
  line-height: 1;
}
.nav-module--open .nav-module__chevron { transform: rotate(90deg); color: #94a3b8; }
.nav-module__items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-details { flex: 1; overflow: hidden; }
.user-name { display: block; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 10px; color: #94a3b8; }

.btn-logout { background: none; border: none; color: #64748b; cursor: pointer; font-size: 18px; padding: 4px; border-radius: 4px; }
.btn-logout:hover { color: #ef4444; }

.main-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.main-content { flex: 1; overflow-y: auto; min-height: 0; }

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 88vw);
    min-width: 0;
    height: 100%;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.28);
  }

  .app-layout.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
  }

  .app-layout.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .sidebar-close:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    height: 52px;
    padding: 0 12px;
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 20;
  }

  .sidebar-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px 8px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }

  .sidebar-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: #e2e8f0;
  }

  .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .mobile-topbar__logo {
    height: 28px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.28));
  }

  .mobile-topbar__spacer {
    flex: 1;
  }

  .page {
    padding: 16px;
  }

  .page-header {
    flex-wrap: wrap;
  }
}

/* ─── Page ─────────────────────────────────────────────────── */
.page { padding: 24px; max-width: 1400px; margin: 0 auto; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.btn-back {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  margin-bottom: 4px;
  display: block;
}
.btn-back:hover { color: #dc2626; }

.date-badge {
  font-size: 13px;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
}

.count-badge {
  font-size: 13px;
  background: #dc2626;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.page-loading { display: flex; align-items: center; justify-content: center; height: 200px; color: #64748b; }

/* ─── Stats ─────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }

.stats-grid--dispatch {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.stats-grid--cancel {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card--clickable {
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.stat-card--clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dispatch-home-recent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dispatch-home-recent__empty {
  padding: 24px 20px;
  color: #64748b;
  font-size: 14px;
}

.dispatch-home-recent__row {
  cursor: pointer;
}

.dispatch-home-recent__row:hover {
  background: #f8fafc;
}

.dispatch-home-recent__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.dispatch-home-recent__badge--annule {
  background: #fee2e2;
  color: #b91c1c;
}

.dispatch-home-recent__badge--refuse {
  background: #ffedd5;
  color: #c2410c;
}

.dispatch-home-recent__motif {
  max-width: 280px;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .stats-grid--cancel { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Dashboard stats globales ──────────────────────────────── */
.dash-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-stats__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-stats__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-stats__preset {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.dash-stats__preset:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dash-stats__preset--active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

.dash-stats__range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-stats__range-sep {
  color: #94a3b8;
  font-size: 13px;
}

.dash-stats__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.dash-stats__kpi {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #e2e8f0;
}

.dash-stats__kpi-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.dash-stats__kpi-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  font-weight: 600;
}

.dash-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dash-stats__chart-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.dash-stats__chart-card--wide {
  grid-column: 1 / -1;
}

.dash-stats__chart-head {
  padding: 14px 18px 0;
}

.dash-stats__chart-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}

.dash-stats__chart-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.dash-stats__chart-body {
  padding: 8px 12px 16px;
}

.dash-stats__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 8px;
}

@media (max-width: 1100px) {
  .dash-stats__grid { grid-template-columns: 1fr; }
  .dash-stats__chart-card--wide { grid-column: auto; }
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-number { font-size: 32px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 4px; font-weight: 500; }

/* ─── Card ──────────────────────────────────────────────────── */
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 16px; }
.card-header { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; }
.card-header h2 { font-size: 14px; font-weight: 600; }

/* ─── Table ─────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.table tr:last-child td { border-bottom: none; }
.clickable-row { cursor: pointer; transition: background 0.1s; }
.clickable-row:hover { background: #f8fafc; }
.empty { text-align: center; color: #94a3b8; padding: 30px; }

/* ─── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.ml-2 { margin-left: 8px; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { background: #dc2626; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #b91c1c; }

.btn-secondary { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.btn-secondary:hover:not(:disabled) { background: #e2e8f0; color: #0f172a; }

.btn-ghost {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-ghost:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-success { background: #10b981; color: #fff; }
.btn-success:hover:not(:disabled) { background: #059669; }

.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover:not(:disabled) { background: #d97706; }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 11px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }

/* ─── Filters ───────────────────────────────────────────────── */
.filters-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.input-search { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 13px; min-width: 250px; outline: none; }
.input-search:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.input-date, .input-select { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 13px; background: #fff; outline: none; }
.input-date:focus, .input-select:focus { border-color: #dc2626; }

/* ─── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 16px; }
.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab:hover { color: #dc2626; }
.tab.active { color: #dc2626; border-bottom-color: #dc2626; font-weight: 600; }

.tab-content { }
.tab-content-inner { }

/* ─── Form sections ─────────────────────────────────────────── */
.form-section { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.form-section-salmon { background: #fdf2f0; }

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.section-subtitle { font-size: 12px; font-weight: 600; color: #334155; margin: 12px 0 8px; }

.form-row-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 12px 0 8px;
  letter-spacing: 0.05em;
}

/* ─── Form grids ────────────────────────────────────────────── */
.form-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }
.form-grid-5 { grid-template-columns: repeat(5, 1fr); }
.form-grid-6 { grid-template-columns: repeat(6, 1fr); }
.col-span-2 { grid-column: span 2; }
.align-end { align-items: flex-end; }

.form-group { display: flex; flex-direction: column; gap: 4px; position: relative; }
.form-group label { font-size: 11px; font-weight: 600; color: #475569; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.08); }
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled { background: #f8fafc; color: #94a3b8; }
.form-group textarea { resize: vertical; }

.form-checkbox-group { justify-content: flex-end; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: #334155; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: #dc2626; }

.required { color: #dc2626; }

/* ─── Multiselect dropdown ──────────────────────────────────── */
.multiselect {
  position: relative;
  width: 100%;
}

.multiselect-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  min-height: 36px;
  gap: 8px;
  transition: border-color 0.15s;
}
.multiselect-control:hover { border-color: #94a3b8; }

.multiselect-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e293b;
}

.multiselect-placeholder { color: #94a3b8; }

.multiselect-arrow { font-size: 10px; color: #94a3b8; flex-shrink: 0; }

.multiselect-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
  transition: background 0.1s;
}
.multiselect-option:hover { background: #f1f5f9; }
.multiselect-option--checked { background: #fff5f5; color: #dc2626; font-weight: 500; }
.multiselect-option--checked:hover { background: #fee2e2; }

.multiselect-checkbox { font-size: 15px; flex-shrink: 0; }

/* ─── Matériel checkboxes (ancien, gardé pour compatibilité) ── */
.materiel-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.materiel-item { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 12px; font-weight: 500; color: #475569; background: #f8fafc; cursor: pointer; transition: all 0.15s; user-select: none; }
.materiel-item input[type="checkbox"] { display: none; }
.materiel-item:hover { border-color: #dc2626; color: #dc2626; background: #fff5f5; }
.materiel-item--checked { background: #dc2626; color: #fff; border-color: #dc2626; }
.materiel-item--checked:hover { background: #b91c1c; border-color: #b91c1c; }

/* ─── Mission form page ─────────────────────────────────────── */
.mission-form-page {
  min-height: 100%;
  background: #f0f2f5;
  padding: 12px 16px 24px;
}

.mission-form-shell {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-form-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  flex-wrap: wrap;
}

.mission-form-top__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mission-form-back {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-align: left;
  transition: color 0.12s;
}

.mission-form-back:hover { color: #dc2626; }

.mission-form-top__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mission-form-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

.mission-form-top__subtitle {
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.mission-form-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px 10px;
}

.mission-form-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--status-color, #64748b);
}

.mission-form-top__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mission-form-tabs {
  display: flex;
  gap: 0;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  overflow-x: auto;
}

.mission-form-tab {
  padding: 12px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}

.mission-form-tab:hover { color: #1a1a2e; }

.mission-form-tab--active {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

.mission-form-content {
  min-width: 0;
}

.mission-vecteur-modal__header h2 {
  margin: 0;
  font-size: 18px;
}

.mission-vecteur-modal__subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.mission-vecteur-modal__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

.mission-vecteur-modal__hint {
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.mission-vecteur-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mission-vecteur-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  border-left: 3px solid #22c55e;
}

.mission-vecteur-card--conflict {
  border-left-color: #ef4444;
  background: #fffbfb;
}

.mission-vecteur-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mission-vecteur-card__body {
  flex: 1;
  min-width: 0;
}

.mission-vecteur-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.mission-vecteur-card__name {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a2e;
}

.mission-vecteur-card__type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.mission-vecteur-card__plate {
  font-size: 12px;
  color: #64748b;
}

.mission-vecteur-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}

.mission-vecteur-card__warn {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
}

.mission-vecteur-card__btn {
  flex-shrink: 0;
  font-size: 12px;
  padding: 8px 14px;
}

/* ─── MX Form — Mission redesign ───────────────────────────── */
.mx-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 8px;
}

.mx-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  overflow: visible;
}

.mx-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
}

.mx-card-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mx-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.mx-card-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.mx-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mx-card-icon svg {
  width: 22px;
  height: 22px;
}

.mx-card-icon--blue {
  color: #3b82f6;
  background: color-mix(in srgb, #3b82f6 12%, white);
  border: 1px solid color-mix(in srgb, #3b82f6 22%, white);
}

.mx-card-icon--orange {
  color: #ea580c;
  background: color-mix(in srgb, #ea580c 12%, white);
  border: 1px solid color-mix(in srgb, #ea580c 22%, white);
}

.mx-card-icon--teal {
  color: #0d9488;
  background: color-mix(in srgb, #0d9488 12%, white);
  border: 1px solid color-mix(in srgb, #0d9488 22%, white);
}

.mx-card-icon--purple {
  color: #7c3aed;
  background: color-mix(in srgb, #7c3aed 12%, white);
  border: 1px solid color-mix(in srgb, #7c3aed 22%, white);
}

/* Card body */
.mx-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Layouts */
.mx-two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mx-three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.mx-four-col  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mx-five-col  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mx-row-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mx-time-row  { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; }
.mx-col       { display: flex; flex-direction: column; gap: 12px; }

/* Field */
.mx-field { display: flex; flex-direction: column; gap: 4px; }
.mx-field--center { justify-content: center; }

.mx-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mx-req { color: #ef4444; }

/* Inputs */
.mx-input, .mx-select, .mx-textarea {
  padding: 8px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.mx-input:focus, .mx-select:focus, .mx-textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.mx-textarea { resize: vertical; }
.mx-select { appearance: auto; cursor: pointer; }

/* Chips / pill-buttons */
.mx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mx-chip {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}
.mx-chip:hover { border-color: #dc2626; color: #dc2626; background: #fff5f5; }
.mx-chip--active { background: #dc2626; color: #fff; border-color: #dc2626; font-weight: 700; }
.mx-chip--active:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* Toggle / checkbox */
.mx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  user-select: none;
}
.mx-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #dc2626;
  cursor: pointer;
  flex-shrink: 0;
}
.mx-toggles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 14px;
  background: #fafbfd;
  border-radius: 12px;
  border: 1px solid #eef2f6;
}

/* Route itinéraire */
.mx-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.mx-route-panel {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border: 1px solid #e2e8f0;
  background: #fafbfd;
}
.mx-route-panel--from {
  border-left: 3px solid #16a34a;
}
.mx-route-panel--to {
  border-left: 3px solid #2563eb;
}
.mx-route-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
}
.mx-route-badge--from { background: color-mix(in srgb, #16a34a 14%, white); color: #15803d; }
.mx-route-badge--to   { background: color-mix(in srgb, #2563eb 14%, white); color: #1d4ed8; }

.mx-route-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-height: 120px;
  gap: 6px;
}
.mx-route-arrow-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
  min-height: 20px;
}
.mx-route-arrow-icon {
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* ─── Map Itinerary ─────────────────────────────────────────── */
.mx-btn-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
  padding: 12px 20px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.mx-btn-route:hover:not(:disabled) { background: #dc2626; transform: translateY(-1px); }
.mx-btn-route:disabled { opacity: 0.6; cursor: default; }
.mx-route-calc { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.mx-route-error { padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: #dc2626; font-size: 13px; font-weight: 500; }

/* Retour fixe */
.mx-retour-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 16px;
  background: #fafbfd;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  border-left: 3px solid #f59e0b;
}
.mx-retour-badge {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: color-mix(in srgb, #f59e0b 18%, white);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.mx-retour-row--appel { border-left-color: #3b82f6; }
.mx-retour-badge--appel { color: #1e40af; background: color-mix(in srgb, #3b82f6 16%, white); }
.mx-retour-row--direct { border-left-color: #16a34a; }
.mx-retour-badge--direct { color: #166534; background: color-mix(in srgb, #16a34a 16%, white); }
.mx-retour-row .mx-field { flex: 0 0 200px; margin: 0; }

/* Suggestion horaires */
.mx-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fafbfd;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0284c7;
  border-radius: 12px;
  font-size: 13px;
}
.mx-suggestion-icon { display: none; }
.mx-suggestion-label { color: #0369a1; font-weight: 600; }
.mx-suggestion-badge { font-size: 11px; font-weight: 600; color: #475569; background: #eef2f6; padding: 2px 8px; border-radius: 999px; }
.mx-suggestion-badge--history { color: #0369a1; background: color-mix(in srgb, #0284c7 14%, white); }
.mx-suggestion-hint { font-size: 11px; color: #94a3b8; margin-left: auto; }
.mx-suggestion-apply { padding: 5px 14px; background: #dc2626; color: white; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; }
.mx-suggestion-apply:hover { background: #b91c1c; }
.mx-auto-badge { margin-left: 6px; font-size: 10px; font-weight: 700; color: #0369a1; background: color-mix(in srgb, #0284c7 14%, white); padding: 1px 6px; border-radius: 999px; vertical-align: middle; letter-spacing: .04em; }
/* Champ heureRdv calculé automatiquement */
.mx-input:disabled { background: #f1f5f9; color: #475569; cursor: not-allowed; border-color: #cbd5e1; }
.mx-map-wrap {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.mx-map-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #f0fdf4, #eff6ff);
  border-bottom: 1px solid #dbeafe;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  flex-wrap: wrap;
}
.mx-map-bar-from { display: flex; align-items: center; gap: 6px; color: #15803d; }
.mx-map-bar-to   { display: flex; align-items: center; gap: 6px; color: #1d4ed8; }
.mx-map-bar-arrow { color: #94a3b8; font-size: 16px; }
.mx-map-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mx-map-bar-stats { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #374151; font-weight: 700; flex-wrap: wrap; }
.mx-map-sep { color: #94a3b8; }
.mx-map-loading { margin-left: auto; color: #6b7280; font-weight: 400; font-style: italic; font-size: 12px; }
.mx-map-traffic { font-weight: 700; font-size: 14px; }
.mx-map-traffic-label { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; color: #fff; letter-spacing: 0.04em; }
.mx-map { height: 320px; z-index: 0; }

/* Leaflet tooltip overrides */
.mx-map-tooltip { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: none !important; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.mx-map-tooltip--from { background: #15803d; color: #fff; }
.mx-map-tooltip--to   { background: #1d4ed8; color: #fff; }
.mx-map-tooltip--from::before, .mx-map-tooltip--to::before { border: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .mx-two-col, .mx-four-col, .mx-five-col, .mx-time-row { grid-template-columns: 1fr 1fr; }
  .mx-three-col { grid-template-columns: 1fr; }
  .mx-route { grid-template-columns: 1fr; }
  .mx-route-arrow { flex-direction: row; min-height: auto; padding: 8px 0; }
  .mx-route-arrow-line { flex: 1; height: 2px; width: auto; min-height: unset; background: linear-gradient(to right, #cbd5e1, #94a3b8); }
  .mx-map { height: 220px; }
}


/* ─── Autocomplete ──────────────────────────────────────────── */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
}
.autocomplete-list li { padding: 9px 12px; cursor: pointer; font-size: 13px; }
.autocomplete-list li:hover { background: #f8fafc; }

/* ─── Login ─────────────────────────────────────────────────── */
.espaces {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 40%, #16213e 100%);
}

.espaces__box {
  width: min(560px, 100%);
  color: #e2e8f0;
}

.espaces__logo {
  width: 180px;
  height: auto;
  margin-bottom: 18px;
}

.espaces h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.espaces__box > p,
.espaces__hint,
.espaces__form p {
  margin: 8px 0 18px;
  color: #94a3b8;
}

.espaces__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.espaces__client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.espaces__client:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.espaces__client span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.espaces__client small { color: #94a3b8; font-size: 12px; }
.espaces__client b { flex-shrink: 0; color: #fda4af; }

.espaces__new { margin-top: 16px; }

.espaces__form {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  color: #1a1a2e;
}

.espaces__form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.espaces__form input[type="text"],
.espaces__form input:not([type="checkbox"]) {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}

.espaces__modules { display: flex; flex-direction: column; gap: 8px; }
.espaces__modules label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.espaces__modules .is-base { color: #64748b; }
.espaces__modules small {
  margin-left: auto;
  color: #059669;
  font-size: 11px;
}

.espaces__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.espaces__logout {
  margin-top: 18px;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
}

.login-container {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 40%, #16213e 100%);
}

.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  padding: 0 16px;
}

.login-logo-badge {
  margin-bottom: 8px;
}

.login-logo-img {
  width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.45));
}

.login-subtitle {
  color: rgba(148, 163, 184, 0.85);
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.login-header { text-align: center; margin-bottom: 32px; }
.login-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.login-header p { color: #64748b; font-size: 13px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }

.btn-link-login {
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.7);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  padding: 4px 0;
  transition: color 0.15s;
}
.btn-link-login:hover { color: #93c5fd; }
.btn-link-back { text-align: left; }

.reset-link-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 16px;
}

.reset-link-value {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: #93c5fd;
  word-break: break-all;
}

.reset-link-value button {
  background: none;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  padding: 0 4px;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.reset-link-value button:hover { opacity: 1; }

.login-card .form-group label {
  color: rgba(203, 213, 225, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.login-card .form-group input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f1f5f9;
  border-radius: 8px;
}

.login-card .form-group input::placeholder { color: rgba(148,163,184,0.5); }

.login-card .form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
  background: rgba(255,255,255,0.1);
  outline: none;
}

.login-card .alert-error {
  background: rgba(220,38,38,0.15);
  color: #fca5a5;
  border: 1px solid rgba(220,38,38,0.3);
}

.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ─── Dispatching Dashboard ─────────────────────────────────── */
.dispatching-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #f0f2f5;
}

.dispatch-nav {
  margin: 12px 16px 0;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.dispatch-nav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dispatch-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #64748b;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  flex-shrink: 0;
  min-width: 0;
}

.dispatch-nav__item:hover {
  background: #f8fafc;
  color: #1a1a2e;
}

.dispatch-nav__item--active {
  background: #fff5f5;
  color: #dc2626;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.dispatch-nav__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.dispatch-nav__icon svg {
  width: 18px;
  height: 18px;
}

.dispatch-nav__item--active .dispatch-nav__icon {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 10%, white);
  border-color: color-mix(in srgb, #dc2626 22%, white);
}

.dispatch-nav__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dispatch-nav__label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dispatch-nav__hint {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}

.dispatch-nav__item--active .dispatch-nav__hint {
  color: #dc2626;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .dispatch-nav__hint { display: none; }
  .dispatch-nav__item { padding: 10px 12px; }
}

/* ─── Actions rapides dispatch ──────────────────────────────── */
.action-bar {
  margin: 12px 16px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  flex-shrink: 0;
}

.action-bar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
}

.action-bar__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.action-bar__subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.action-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 1100px) {
  .action-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .action-bar__grid {
    grid-template-columns: 1fr;
  }
}

.action-bar__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-right: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, box-shadow 0.12s;
  border-left: 3px solid transparent;
}

.action-bar__card:nth-child(4n) { border-right: none; }

@media (max-width: 1100px) {
  .action-bar__card:nth-child(4n) { border-right: 1px solid #eef2f6; }
  .action-bar__card:nth-child(2n) { border-right: none; }
}

@media (max-width: 560px) {
  .action-bar__card { border-right: none !important; }
}

.action-bar__card--alt { background: #fbfcfd; }

.action-bar__card:hover:not(:disabled) {
  background: #f8fafc;
  box-shadow: inset 3px 0 0 var(--action-color, #64748b);
}

.action-bar__card--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.action-bar__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--action-color, #64748b);
  background: color-mix(in srgb, var(--action-color, #64748b) 12%, white);
  border: 1px solid color-mix(in srgb, var(--action-color, #64748b) 22%, white);
}

.action-bar__icon svg {
  width: 22px;
  height: 22px;
}

.action-bar__card:hover:not(:disabled) .action-bar__icon {
  background: color-mix(in srgb, var(--action-color, #64748b) 18%, white);
  border-color: color-mix(in srgb, var(--action-color, #64748b) 35%, white);
}

.action-bar__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-bar__label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}

.action-bar__hint {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-bar__arrow {
  font-size: 20px;
  font-weight: 700;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: color 0.12s, transform 0.12s;
}

.action-bar__card:hover:not(:disabled) .action-bar__arrow {
  color: var(--action-color, #64748b);
  transform: translateX(2px);
}

.gantt-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 0;
  background: transparent;
  flex-shrink: 0;
}

.form-select-sm {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  cursor: pointer;
}
.form-select-sm:focus { outline: none; border-color: #3b82f6; }

/* ─── Dispatch board (planning journalier) ───────────────────── */
.dispatch-board {
  margin: 12px 16px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  flex-shrink: 0;
}

.dispatch-board-empty {
  margin: 12px 16px 0;
  padding: 32px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.dispatch-board__header {
  display: flex;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
}

.dispatch-board__resource-head {
  width: 190px;
  min-width: 190px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-right: 1px solid #e8edf3;
}

.dispatch-board__resource-head-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.dispatch-board__resource-head-count {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}

.dispatch-board__timeline-head,
.dispatch-board__track {
  flex: 1;
  position: relative;
  min-width: 760px;
}

.dispatch-board__timeline-head {
  min-height: 52px;
  flex: 1;
  display: flex;
}

.dispatch-board__timeline-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.dispatch-board__timeline-inner {
  flex: 1;
  position: relative;
  min-width: 640px;
}

.dispatch-board__range-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.dispatch-board__range-ctrl--end {
  border-right: none;
  border-left: 1px solid #e2e8f0;
}

.dispatch-board__range-hour {
  font-size: 11px;
  font-weight: 800;
  color: #1a1a2e;
  min-width: 30px;
  text-align: center;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

.dispatch-board__range-hour--active {
  color: #dc2626;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dispatch-board__range-hour--active:hover {
  color: #b91c1c;
}

.dispatch-board__range-hour:disabled {
  cursor: default;
  opacity: 1;
}

.dispatch-board__range-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.dispatch-board__range-btn:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.dispatch-board__range-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dispatch-board__hours {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  height: 100%;
  align-items: end;
  padding-bottom: 8px;
}

.dispatch-board__hour {
  text-align: center;
  font-size: 10px;
  color: #b0bac7;
  font-weight: 500;
}

.dispatch-board__hour--major {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.dispatch-board__period {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.dispatch-board__period--morning {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.dispatch-board__period--afternoon {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.dispatch-board__period--evening {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06) 0%, rgba(124, 58, 237, 0.02) 100%);
}

.dispatch-board__period--night {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.07) 0%, rgba(15, 23, 42, 0.02) 100%);
}

.dispatch-board__period-label {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.55);
}

.dispatch-board__body {
  overflow-x: auto;
}

.dispatch-board__lane {
  display: flex;
  min-height: 68px;
  border-bottom: 1px solid #eef2f6;
}

.dispatch-board__lane:last-child { border-bottom: none; }
.dispatch-board__lane--alt { background: #fbfcfd; }

.dispatch-board__lane--unassigned {
  background: #fffbeb;
  border-bottom: 2px solid #fde68a;
}

.dispatch-board__resource-badge--unassigned {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.dispatch-board__resource-status--pending {
  color: #b45309 !important;
}

.dispatch-board__track--unassigned {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(100% / var(--hour-slots, 17) - 1px),
      rgba(251, 191, 36, 0.2) calc(100% / var(--hour-slots, 17) - 1px),
      rgba(251, 191, 36, 0.2) calc(100% / var(--hour-slots, 17))
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(254, 243, 199, 0.35),
      rgba(254, 243, 199, 0.35) 8px,
      rgba(255, 251, 235, 0.5) 8px,
      rgba(255, 251, 235, 0.5) 16px
    );
}

.dispatch-board__mission--unassigned {
  border-style: dashed;
  border-width: 1px 1px 1px 4px;
  border-color: #fcd34d;
  background: #fffef8;
}

.dispatch-board__resource {
  width: 190px;
  min-width: 190px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid #eef2f6;
  background: inherit;
}

.dispatch-board__resource-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dispatch-board__resource-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dispatch-board__resource-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispatch-board__resource-status {
  font-size: 10px;
  font-weight: 600;
  color: #f59e0b;
}

.dispatch-board__resource-status.is-available { color: #16a34a; }

.dispatch-board__track {
  padding: 10px 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(100% / var(--hour-slots, 17) - 1px),
      rgba(226, 232, 240, 0.45) calc(100% / var(--hour-slots, 17) - 1px),
      rgba(226, 232, 240, 0.45) calc(100% / var(--hour-slots, 17))
    );
}

.dispatch-board__tick {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(148, 163, 184, 0.35);
  pointer-events: none;
  z-index: 0;
}

.dispatch-board__shift {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(34, 197, 94, 0.08),
    rgba(34, 197, 94, 0.08) 6px,
    rgba(34, 197, 94, 0.14) 6px,
    rgba(34, 197, 94, 0.14) 12px
  );
  border: 1px dashed rgba(34, 197, 94, 0.35);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dispatch-board__shift-label {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(22, 163, 74, 0.75);
  white-space: nowrap;
}

.dispatch-board__now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed #dc2626;
  z-index: 4;
  pointer-events: none;
}

.dispatch-board__now--head {
  top: 0;
  bottom: 0;
}

.dispatch-board__now-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.dispatch-board__mission {
  position: absolute;
  top: 8px;
  bottom: 8px;
  min-width: 72px;
  border: none;
  border-radius: 10px;
  background: #fff;
  border-left: 4px solid var(--mission-color, #64748b);
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.1);
  padding: 4px 8px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  z-index: 2;
  text-align: left;
  transition: transform 0.12s, box-shadow 0.12s;
  overflow: hidden;
}

.dispatch-board__mission:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 26, 46, 0.14);
}

.dispatch-board__mission-num {
  font-size: 11px;
  font-weight: 800;
  color: #1a1a2e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dispatch-board__mission-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--mission-color, #64748b);
}

.dispatch-board__mission-patient {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dispatch-board__mission-status {
  display: none;
}

.dispatch-board__mission:hover .dispatch-board__mission-status {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mission-color, #64748b);
}

.mission-tooltip {
  z-index: 6000;
  min-width: 240px;
  max-width: 320px;
  padding: 10px 12px;
  background: #1a1a2e;
  color: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(26, 26, 46, 0.35);
  pointer-events: none;
  animation: mission-tooltip-in 0.12s ease-out;
}

@keyframes mission-tooltip-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mission-tooltip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mission-tooltip__num {
  font-size: 12px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #fff;
}

.mission-tooltip__type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.mission-tooltip__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.mission-tooltip__label {
  color: #94a3b8;
  font-weight: 600;
}

.mission-tooltip__value {
  color: #f1f5f9;
  word-break: break-word;
}

.mission-tooltip__vecteur-requis {
  color: #86efac;
  font-weight: 600;
}

.mission-context-menu {
  position: fixed;
  z-index: 5000;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.18);
  padding: 6px 0;
  animation: mission-menu-in 0.12s ease-out;
}

@keyframes mission-menu-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.mission-context-menu__head {
  padding: 8px 14px 6px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mission-context-menu__num {
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #1a1a2e;
}

.mission-context-menu__patient {
  font-size: 11px;
  color: #64748b;
}

.mission-context-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 9px 14px;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
}

.mission-context-menu__item:hover:not(:disabled) {
  background: #f3f4f6;
}

.mission-context-menu__item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mission-context-menu__item--danger {
  color: #dc2626;
}

.mission-context-menu__item--danger:hover:not(:disabled) {
  background: #fef2f2;
}

.mission-context-menu__sep {
  height: 1px;
  background: #f3f4f6;
  margin: 4px 0;
}

.dispatch-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 6000;
  background: #1a1a2e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mission-cancel-modal .modal-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
}

.dispatch-board__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 14px;
  border-top: 1px solid #eef2f6;
  background: #fafbfd;
}

.dispatch-board__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.dispatch-board__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ─── Liste missions ─────────────────────────────────────────── */
.missions-page {
  min-height: 100%;
  background: #f0f2f5;
  padding: 12px 16px 24px;
}

.missions-shell {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.missions-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  flex-wrap: wrap;
}

.missions-top__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.missions-top__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.missions-top__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.missions-top__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
}

.missions-top__count {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}

.missions-top__subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.missions-top--cancelled {
  border-left: 3px solid #ef4444;
}

.missions-top--cancelled .missions-top__count {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.missions-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

.missions-filters__search,
.missions-filters__select,
.missions-filters__date {
  padding: 8px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  background: #fff;
}

.missions-filters__search {
  flex: 1;
  min-width: 200px;
}

.missions-filters__search:focus,
.missions-filters__select:focus,
.missions-filters__date:focus {
  outline: none;
  border-color: #dc2626;
}

.missions-filters__all-dates,
.missions-filters__today {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.missions-filters__all-dates:hover,
.missions-filters__today:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.missions-filters__all-dates--active {
  background: #fff5f5;
  border-color: #dc2626;
  color: #dc2626;
}

.missions-filters__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef2f6;
  margin-bottom: 4px;
}

.missions-filters__chip {
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.missions-filters__chip:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.missions-filters__chip--active {
  background: #fff5f5;
  border-color: #dc2626;
  color: #dc2626;
}

.missions-filters__chip--refuse.missions-filters__chip--active {
  background: #fffbeb;
  border-color: #b45309;
  color: #b45309;
}

.missions-filters__chip--refuse:hover {
  border-color: #b45309;
  color: #b45309;
}

.missions-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

.missions-list__meta {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f6;
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.missions-list__body {
  display: flex;
  align-items: stretch;
}

.missions-list__scroll-ctrl {
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.missions-list__scroll-ctrl:last-child {
  border-right: none;
  border-left: 1px solid #e2e8f0;
}

.missions-list__scroll-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.missions-list__scroll-btn:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.missions-list__scroll-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.missions-list__table-scroll {
  flex: 1;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: thin;
}

.missions-list__table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.missions-list__table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #fafbfd;
  border-bottom: 1px solid #eef2f6;
  white-space: nowrap;
}

.missions-list__table td {
  padding: 10px 14px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #eef2f6;
  white-space: nowrap;
}

.missions-list__row {
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s;
}

.missions-list__row:hover {
  background: #f8fafc;
  box-shadow: inset 3px 0 0 var(--row-accent, #64748b);
}

.missions-list__row--alt { background: #fbfcfd; }
.missions-list__row--alt:hover { background: #f4f7fa; }
.missions-list__row:last-child td { border-bottom: none; }

.missions-list__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #1a1a2e;
}

.missions-list__patient {
  font-weight: 600;
  color: #1a1a2e;
}

.missions-list__time {
  font-weight: 700;
  color: #dc2626;
}

.missions-list__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.missions-list__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--row-accent, #64748b);
  flex-shrink: 0;
}

.missions-list__empty {
  padding: 40px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* ─── File d'attente missions ───────────────────────────────── */
.queue-board {
  margin: 12px 16px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

.queue-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
  flex-wrap: wrap;
}

.queue-board__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.queue-board__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.queue-board__count {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}

.queue-board__subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.queue-board__filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.queue-board__search,
.queue-board__select {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  background: #fff;
}

.queue-board__search {
  width: 220px;
}

.queue-board__search:focus,
.queue-board__select:focus {
  outline: none;
  border-color: #dc2626;
}

.queue-board__body {
  display: flex;
  align-items: stretch;
}

.queue-board__scroll-ctrl {
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.queue-board__scroll-ctrl:last-child {
  border-right: none;
  border-left: 1px solid #e2e8f0;
}

.queue-board__scroll-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.queue-board__scroll-btn:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.queue-board__scroll-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.queue-board__table-scroll {
  flex: 1;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: thin;
}

.queue-board__table-scroll::-webkit-scrollbar {
  height: 6px;
}

.queue-board__table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.queue-board__table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.queue-board__table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #fafbfd;
  border-bottom: 1px solid #eef2f6;
  white-space: nowrap;
}

.queue-board__table td {
  padding: 10px 14px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #eef2f6;
  white-space: nowrap;
}

.queue-board__row {
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s;
  border-left: 3px solid transparent;
}

.queue-board__row:hover {
  background: #f8fafc;
  box-shadow: inset 3px 0 0 var(--row-accent, #64748b);
}

.queue-board__row--alt {
  background: #fbfcfd;
}

.queue-board__row--alt:hover {
  background: #f4f7fa;
}

.queue-board__row:last-child td {
  border-bottom: none;
}

.queue-board__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #1a1a2e;
}

.queue-board__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.queue-board__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--row-accent, #64748b);
  flex-shrink: 0;
}

.queue-board__patient {
  font-weight: 600;
  color: #1a1a2e;
}

.queue-board__time {
  font-weight: 700;
  color: #dc2626;
}

.queue-board__empty {
  padding: 32px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* ─── Ressources ─────────────────────────────────────────────── */
.dispo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}
.dispo-toggle.dispo { background: #dcfce7; color: #16a34a; }
.dispo-toggle.dispo:hover { background: #bbf7d0; }
.dispo-toggle.indispo { background: #fee2e2; color: #dc2626; }
.dispo-toggle.indispo:hover { background: #fecaca; }

.dispo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge-type-ambulance { background: #dbeafe; color: #1d4ed8; }
.badge-type-vsl       { background: #f3e8ff; color: #7c3aed; }
.badge-type-med       { background: #fee2e2; color: #dc2626; }

.action-cell { display: flex; gap: 6px; align-items: center; }

.btn-icon {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}
.btn-icon:hover { background: #f1f5f9; }
.btn-icon.btn-icon-danger:hover { background: #fee2e2; border-color: #fecaca; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}

/* Vecteurs — cartes par type */
.vecteurs-page { max-width: 1200px; }

.vecteurs-types-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.vecteurs-types-panel header h2 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #0f172a;
}

.vecteurs-types-panel header p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
}

.vecteurs-types-panel__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.vecteurs-types-panel__form .form-input {
  max-width: 220px;
}

.vecteurs-types-panel__actions {
  display: flex;
  gap: 6px;
  width: 100%;
}

.vecteurs-types-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vecteurs-types-panel__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
}

.vecteurs-types-panel__list li.is-editing {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

.vecteurs-types-panel__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.vecteurs-types-panel__row-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.vecteurs-types-panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vecteurs-types-panel__list .muted {
  color: #94a3b8;
}

.vecteur-formation-tag {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 11px;
}

.vecteurs-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 20px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  font-size: 13px;
  color: #64748b;
}
.vecteurs-summary strong { color: #0f172a; font-weight: 700; }
.vecteurs-summary__sep { color: #cbd5e1; }

.vecteurs-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.vecteurs-group {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vecteurs-group__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vecteurs-group__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.vecteurs-group__move-select {
  max-width: 220px;
  font-size: 12px;
}

.vecteur-card__type-move {
  max-width: 120px;
  font-size: 11px;
  padding: 4px 6px;
  height: auto;
}

.vecteurs-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vecteurs-group__title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.vecteurs-group__title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.vecteurs-group__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.vecteurs-group__icon--ambulance { background: #dbeafe; color: #1d4ed8; }
.vecteurs-group__icon--vsl { background: #f3e8ff; color: #7c3aed; }
.vecteurs-group__icon--med { background: #fee2e2; color: #dc2626; }
.vecteurs-group__icon--poste { background: #ecfdf5; color: #059669; }

.vecteurs-group--inactive {
  background: #f8fafc;
  border-style: dashed;
}
.vecteurs-group--inactive .vecteurs-group__title h2 { color: #94a3b8; }

.vecteurs-group__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 13px;
  background: #fafbfc;
}

.vecteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.vecteur-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.vecteur-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.vecteur-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.vecteur-card--ambulance .vecteur-card__accent { background: #3b82f6; }
.vecteur-card--vsl .vecteur-card__accent { background: #8b5cf6; }
.vecteur-card--med .vecteur-card__accent { background: #ef4444; }
.vecteur-card--poste .vecteur-card__accent { background: #10b981; }
.vecteur-card--indispo { background: #fffbfb; }
.vecteur-card--inactive {
  opacity: 0.72;
  background: #f8fafc;
}

.vecteur-card__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vecteur-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.vecteur-card__icon--ambulance { background: #eff6ff; color: #2563eb; }
.vecteur-card__icon--vsl { background: #f5f3ff; color: #7c3aed; }
.vecteur-card__icon--med { background: #fef2f2; color: #dc2626; }
.vecteur-card__icon--poste { background: #ecfdf5; color: #059669; }

.vecteur-card__title-block { min-width: 0; flex: 1; }

.vecteur-card__name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
  word-break: break-word;
}

.vecteur-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vecteur-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.vecteur-chip--ambulance { background: #dbeafe; color: #1d4ed8; }
.vecteur-chip--vsl { background: #f3e8ff; color: #7c3aed; }
.vecteur-chip--med { background: #fee2e2; color: #dc2626; }
.vecteur-chip--poste { background: #d1fae5; color: #047857; }
.vecteur-chip--dispatch { background: #ecfdf5; color: #059669; }
.vecteur-chip--rh { background: #f1f5f9; color: #475569; }

.vecteur-card__meta {
  min-height: 18px;
  font-size: 12px;
  color: #64748b;
}
.vecteur-card__link strong { color: #334155; font-weight: 650; }
.vecteur-card__plate {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.vecteur-card__status { margin-top: auto; }

.vecteur-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}

.vecteur-card__btn-danger { color: #dc2626 !important; }
.vecteur-card__btn-danger:hover { background: #fef2f2 !important; }

.vecteur-type-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vecteur-type-picker__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  transition: all 0.12s;
}
.vecteur-type-picker__btn:hover { border-color: #94a3b8; }
.vecteur-type-picker__btn.is-active.vecteur-type-picker__btn--ambulance {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}
.vecteur-type-picker__btn.is-active.vecteur-type-picker__btn--vsl {
  border-color: #8b5cf6;
  background: #f5f3ff;
  color: #6d28d9;
}
.vecteur-type-picker__btn.is-active.vecteur-type-picker__btn--med {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}
.vecteur-type-picker__btn.is-active.vecteur-type-picker__btn--poste {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.vecteurs-week-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.vecteur-hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 10px;
}

.vecteur-hours__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.vecteur-hours__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.vecteur-hours__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  font-size: 10px;
  cursor: default;
}

.vecteur-hours__day.is-editable { cursor: pointer; }
.vecteur-hours__day.is-editable:hover {
  border-color: #cbd5e1;
  color: #334155;
}

.vecteur-hours__day.has-slot {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-weight: 700;
}

.vecteur-hours__day-name { font-weight: 700; opacity: 0.7; }
.vecteur-hours__day-value { font-variant-numeric: tabular-nums; }

.vecteur-scope-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.vecteur-scope-switch__btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.vecteur-scope-switch__btn small {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.vecteur-scope-switch__btn.is-active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #3730a3;
}

.vecteur-scope-switch__btn.is-active small { color: #6366f1; }

.vecteur-slot-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}

.vecteur-card__formations {
  margin: 4px 0 0;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.vecteur-card__effectif {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.vecteur-card__fixe {
  margin: 4px 0 0;
  font-size: 12px;
  color: #0f766e;
  font-weight: 600;
}

.vecteur-fixe-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vecteur-fixe-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  font-size: 13px;
  color: #134e4a;
}

.vecteur-fixe-list__empty {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  justify-content: center !important;
}

.vecteur-fixe-add {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px) {
  .vecteur-fixe-add {
    grid-template-columns: 1fr;
  }
}

.vecteur-formation-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.vecteur-formation-picker__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}

.vecteur-formation-picker__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 88px;
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.vecteur-formation-picker__btn small {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vecteur-formation-picker__btn:hover { border-color: #94a3b8; }

.vecteur-formation-picker__btn.is-active {
  border-color: #047857;
  background: #ecfdf5;
  color: #065f46;
  box-shadow: inset 0 0 0 1px #047857;
}

.vecteur-formation-picker__btn.is-active small {
  color: #059669;
}

.vecteur-formation-picker__check {
  display: inline-block;
  min-width: 12px;
  font-weight: 800;
  color: #047857;
}

.vecteur-horaires-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.vecteur-horaires-head label { margin: 0; }

.vecteur-horaires-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vecteur-horaires-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.vecteur-horaires-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid transparent;
  opacity: 0.55;
}

.vecteur-horaires-day.is-active {
  opacity: 1;
  border-color: #cbd5e1;
}

.vecteur-horaires-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vecteur-horaires-slot {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding-left: 26px;
}

.vecteur-horaires-slot__night {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6366f1;
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 6px;
}

.vecteur-horaires-slot__remove {
  color: #dc2626 !important;
  min-width: 28px;
  padding: 4px 6px !important;
}

.vecteur-horaires-row__day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin: 0;
}

.vecteur-horaires-row__sep {
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.vecteur-horaires-slot .form-input {
  padding: 6px 8px;
  font-size: 13px;
}

.vecteur-type-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

@media (max-width: 720px) {
  .vecteurs-grid { grid-template-columns: 1fr; }
  .vecteurs-group__header { flex-direction: column; align-items: stretch; }
  .page-header-actions { flex-wrap: wrap; }
  .vecteur-hours__day-value { font-size: 9px; }
}

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.modal--lg { max-width: 640px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; }
.modal--lg .modal-body { overflow-y: auto; flex: 1; }
.modal-header h2 { font-size: 17px; font-weight: 700; color: #1a1a2e; margin: 0; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0; }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
  padding: 0 4px;
}
.modal-close:hover { color: #374151; }

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

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

/* ─── Lieu Autocomplete ──────────────────────────────────────── */
.lieu-autocomplete {
  position: relative;
  width: 100%;
}

.lieu-search-row {
  display: flex;
  gap: 4px;
}

.lieu-input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.lieu-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }

.lieu-osm-btn {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.lieu-osm-btn:hover { background: #e2e8f0; }
.lieu-osm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.lieu-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.lieu-dropdown-section {
  padding: 6px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.lieu-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
}
.lieu-dropdown-item:hover { background: #f1f5f9; }

.lieu-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lieu-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lieu-item-content strong { font-size: 13px; color: #1e293b; }
.lieu-item-content small { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lieu-osm-badge {
  font-size: 9px;
  font-weight: 700;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
}

/* Badges pour la page Lieux */
.badge-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.badge-source {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.badge-inactive {
  margin-left: 6px;
  font-size: 10px;
  color: #94a3b8;
  font-style: italic;
}

.row-inactive { opacity: 0.5; }

/* ─── Planning Vecteurs ──────────────────────────────────────── */
.week-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}

.planning-grid-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.planning-cal-page .page-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.planning-drafts-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

.planning-drafts-banner__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.planning-drafts-banner__head strong {
  font-size: 13px;
  color: #9a3412;
}

.planning-drafts-banner__head span {
  font-size: 12px;
  color: #c2410c;
}

.planning-drafts-banner__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planning-drafts-banner__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ffedd5;
  border-radius: 8px;
}

.planning-drafts-banner__list strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.planning-drafts-banner__list span {
  font-size: 11px;
  color: #64748b;
}

.planning-drafts-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.planning-main-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
}

.planning-main-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.planning-main-tabs button.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.planning-main-tabs__badge {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
}

/* ─── Planning Stats ─────────────────────────────────────────── */
.planning-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.planning-stats__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.planning-stats__presets,
.planning-stats__filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 10px;
}

.planning-stats__preset {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.planning-stats__preset.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.planning-stats__range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.planning-stats__regles {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
}

.planning-stats__regles p { margin: 0; }
.planning-stats__regles .is-warn { color: #c2410c; }
.planning-stats__regles a { color: #0f766e; font-weight: 700; }

.planning-stats__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.planning-stats__kpi {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.planning-stats__kpi strong {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.planning-stats__kpi span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.planning-stats__kpi small {
  font-size: 11px;
  color: #94a3b8;
}

.planning-stats__kpi.is-ok strong { color: #047857; }
.planning-stats__kpi.is-bad strong { color: #b91c1c; }
.planning-stats__kpi.is-warn strong { color: #c2410c; }

.planning-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.planning-stats__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}

.planning-stats__card--wide { grid-column: 1 / -1; }

.planning-stats__card header h3,
.planning-stats__card-head-row h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.planning-stats__card header p,
.planning-stats__card-head-row p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #94a3b8;
}

.planning-stats__card-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.planning-stats__card-head-row p { margin-bottom: 0; }

.planning-stats__staff-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
  border-top: 1px solid #e2e8f0;
  min-height: 420px;
}

.planning-stats__staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid #e2e8f0;
  max-height: 560px;
}

.planning-stats__staff-list-head {
  font-size: 12px;
  color: #64748b;
}

.planning-stats__staff-items {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.planning-stats__staff-item {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.planning-stats__staff-item:hover { background: #f8fafc; }
.planning-stats__staff-item.is-active { background: #ecfeff; }
.planning-stats__staff-item.is-bad { box-shadow: inset 3px 0 0 #dc2626; }
.planning-stats__staff-item.is-muted { opacity: 0.6; }

.planning-stats__staff-name {
  flex: 1 1 120px;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.planning-stats__staff-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
}

.planning-stats__staff-meta strong { color: #0f172a; }
.planning-stats__staff-meta small { color: #94a3b8; }

.planning-stats__staff-detail {
  padding: 16px 18px 20px;
  overflow: auto;
  max-height: 560px;
}

.planning-stats__staff-detail-head h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.planning-stats__staff-detail-head p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
}

.planning-stats__staff-detail h5 {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.planning-stats__type-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planning-stats__type-bars li {
  display: grid;
  grid-template-columns: 10px minmax(80px, 140px) 1fr 48px;
  align-items: center;
  gap: 8px;
}

.planning-stats__type-bars-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.planning-stats__type-bars-info strong { font-size: 13px; color: #0f172a; }
.planning-stats__type-bars-info span { font-size: 11px; color: #94a3b8; }
.planning-stats__type-bars em {
  font-style: normal;
  font-weight: 800;
  text-align: right;
  color: #0f172a;
}

.planning-stats__vecteur-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planning-stats__vecteur-hours li {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.planning-stats__vecteur-hours div {
  display: flex;
  flex-direction: column;
}

.planning-stats__vecteur-hours strong { font-size: 13px; }
.planning-stats__vecteur-hours span { font-size: 11px; color: #94a3b8; }
.planning-stats__vecteur-hours em { font-style: normal; font-weight: 800; }
.planning-stats__vecteur-hours small { color: #94a3b8; font-size: 11px; }

.planning-stats__roles-line {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.planning-stats__alerts {
  margin: 0;
  padding-left: 18px;
  color: #b91c1c;
  font-size: 13px;
}

@media (max-width: 900px) {
  .planning-stats__staff-layout {
    grid-template-columns: 1fr;
  }
  .planning-stats__staff-list {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    max-height: 280px;
  }
}

.planning-stats__empty {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.planning-stats__bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-stats__bars li {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.planning-stats__bar-label { color: #475569; font-weight: 600; }
.planning-stats__bar-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.planning-stats__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #0f766e;
}
.planning-stats__bar-fill.is-bad { background: #dc2626; }

.planning-stats__type-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-stats__type-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.planning-stats__type-list div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.planning-stats__type-list span { color: #94a3b8; }
.planning-stats__type-list em { font-style: normal; font-weight: 800; color: #0f172a; }

.planning-stats__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.planning-stats__days {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding-top: 8px;
}

.planning-stats__day {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.planning-stats__day-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: #0f766e;
  min-height: 4px;
}

.planning-stats__day-bar.is-warn { background: #ea580c; }

.planning-stats__day span {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.planning-stats__table-wrap {
  overflow: auto;
  max-height: min(55vh, 520px);
}

.planning-stats__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.planning-stats__table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1;
}

.planning-stats__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.planning-stats__table tbody tr { cursor: pointer; }
.planning-stats__table tbody tr:hover { background: #f8fafc; }
.planning-stats__table tr.is-bad { background: #fef2f2; }
.planning-stats__table tr.is-muted { opacity: 0.55; }
.planning-stats__table tr.is-warn-row { background: #fff7ed; }
.planning-stats__table .is-warn-cell { color: #c2410c; font-weight: 800; }
.planning-stats__table .empty {
  text-align: center;
  color: #94a3b8;
  padding: 20px;
  cursor: default;
}

.planning-stats__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: 800;
}

.planning-stats__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.planning-stats__badge.is-ok { background: #ecfdf5; color: #047857; }
.planning-stats__badge.is-bad { background: #fee2e2; color: #b91c1c; }

.planning-stats__detail-row td {
  background: #fff5f5;
  cursor: default;
}

.planning-stats__detail-row ul {
  margin: 0;
  padding-left: 18px;
  color: #991b1b;
}

@media (max-width: 900px) {
  .planning-stats__grid { grid-template-columns: 1fr; }
  .planning-stats__card--wide { grid-column: auto; }
  .planning-stats__bars li { grid-template-columns: 1fr; gap: 4px; }
}

.planning-day-strip {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  flex-wrap: wrap;
}

.planning-day-strip__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: #64748b;
}

.planning-day-strip__btn span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.planning-day-strip__btn strong {
  font-size: 14px;
  color: #0f172a;
}

.planning-day-strip__btn.is-today {
  border-color: #93c5fd;
}

.planning-day-strip__btn.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.planning-day-strip__btn.is-active strong {
  color: #fff;
}

.planning-staff-view__head {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.planning-staff-view__head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #0f172a;
}

.planning-staff-view__head p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.planning-staff-view__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.planning-staff-matrix-wrap {
  overflow: auto;
  max-height: calc(100vh - 280px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.planning-staff-matrix {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}

.planning-staff-matrix--week {
  table-layout: fixed;
}

.planning-staff-matrix--week th,
.planning-staff-matrix--week td {
  min-width: 118px;
  width: 12.5%;
}

.planning-staff-matrix--week .planning-staff-matrix__sticky {
  width: 160px;
  min-width: 140px;
}

.planning-staff-matrix th,
.planning-staff-matrix td {
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  padding: 8px;
  vertical-align: top;
  min-width: 110px;
}

.planning-staff-matrix th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.planning-staff-matrix th.is-today {
  background: #ecfdf5;
  color: #047857;
}

.planning-staff-matrix th.is-focus {
  box-shadow: inset 0 -2px 0 #0f172a;
}

.planning-staff-matrix__day-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.planning-staff-matrix th strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-top: 2px;
}

.planning-staff-matrix__sticky {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  text-align: left !important;
}

th.planning-staff-matrix__sticky {
  z-index: 4;
  background: #f8fafc;
}

.planning-staff-matrix__name {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
}

.planning-staff-matrix__days-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.planning-staff-matrix tr.is-idle {
  opacity: 0.45;
}

.planning-staff-matrix td.is-today {
  background: #f0fdf4;
}

.planning-staff-matrix__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.planning-staff-matrix__empty {
  color: #cbd5e1;
  font-size: 12px;
}

.planning-staff-matrix td.has-assign {
  background: #fafafa;
}

.planning-staff-matrix__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  margin-bottom: 4px;
  padding: 6px 8px;
  border: 1.5px solid #e2e8f0;
  border-left-width: 3px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.planning-staff-matrix__cell strong {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-staff-matrix__cell span {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.planning-staff-matrix__cell em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.planning-staff-matrix__cell:hover:not(:disabled) {
  background: #f8fafc;
}

.planning-staff-matrix__cell:disabled {
  cursor: default;
  opacity: 0.95;
}
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-align: left;
}

.planning-staff-matrix__sticky {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  min-width: 160px !important;
  max-width: 180px;
}

th.planning-staff-matrix__sticky {
  z-index: 4;
  background: #f8fafc;
}

.planning-staff-matrix__name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.planning-staff-matrix__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.planning-staff-matrix__empty {
  color: #cbd5e1;
  font-size: 12px;
}

.planning-staff-matrix td.has-assign {
  background: #f8fafc;
}

.planning-staff-matrix__cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  text-align: left;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  cursor: pointer;
  margin-bottom: 4px;
}

.planning-staff-matrix__cell strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.planning-staff-matrix__cell span {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.planning-staff-matrix__cell:disabled {
  cursor: default;
}

.planning-vecteurs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.planning-miss {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.planning-miss--ok { background: #ecfdf5; color: #047857; }
.planning-miss--warn { background: #fff7ed; color: #c2410c; }
.planning-miss--empty { background: #fef2f2; color: #b91c1c; }

.planning-slot--ok { background: #f0fdf4; }
.planning-slot--warn { background: #fff7ed; }
.planning-slot--empty { background: #fef2f2; }

.planning-slot-miss {
  font-size: 10px;
  font-weight: 700;
  color: #c2410c;
  margin-top: 2px;
}

.planning-slot--empty .planning-slot-miss {
  color: #b91c1c;
}

.planning-day-header.is-focus {
  background: #e2e8f0;
}

.planning-day-panel__item em.is-miss {
  color: #c2410c;
  font-weight: 600;
}

.planning-view-toggle {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Génération planning */
.planning-gen-modal {
  max-width: 720px;
}

.planning-gen-modal--wide {
  max-width: min(1120px, 96vw);
  width: 96vw;
  max-height: 92vh;
}

.planning-gen-view-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}

.planning-gen-view-tabs button {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.planning-gen-view-tabs button.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.planning-gen-hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.planning-gen-cal__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.planning-gen-cal__nav strong {
  font-size: 13px;
  color: #0f172a;
}

.planning-gen-cal__hint {
  font-size: 11px;
  color: #94a3b8;
  margin-left: auto;
}

.planning-gen-cal__layout {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  min-height: 280px;
}

.planning-gen-cal__grid-wrap {
  overflow: auto;
  max-height: min(52vh, 480px);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.planning-gen-cal__grid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 12px;
}

.planning-gen-cal__grid th,
.planning-gen-cal__grid td {
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  padding: 6px;
  vertical-align: top;
  min-width: 108px;
}

.planning-gen-cal__grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  text-align: center;
}

.planning-gen-cal__grid th span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #94a3b8;
}

.planning-gen-cal__grid th strong {
  font-size: 14px;
  color: #0f172a;
}

.planning-gen-cal__grid th.is-out,
.planning-gen-cal__cell.is-out {
  background: #f8fafc;
  opacity: 0.45;
}

.planning-gen-cal__vehicle {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  min-width: 120px !important;
  max-width: 140px;
}

.planning-gen-cal__vehicle strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
}

.planning-gen-cal__vehicle span {
  font-size: 10px;
  color: #94a3b8;
}

.planning-gen-cal__none {
  color: #cbd5e1;
}

.planning-gen-cal__slot {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 4px;
  background: #f8fafc;
}

.planning-gen-cal__slot.is-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.planning-gen-cal__slot.is-incomplete {
  background: #fff7ed;
  border-color: #fed7aa;
}

.planning-gen-cal__hours {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}

.planning-gen-cal__role {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-bottom: 2px;
}

.planning-gen-cal__role.is-empty {
  border: 1px dashed #fdba74;
  background: #fffbeb;
}

.planning-gen-cal__role-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  width: 22px;
  flex-shrink: 0;
}

.planning-gen-cal__drop {
  font-size: 10px;
  color: #c2410c;
  font-weight: 600;
}

.planning-gen-cal__chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  cursor: grab;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-gen-cal__chip:active {
  cursor: grabbing;
}

.planning-gen-cal__chip--pool {
  width: 100%;
  margin-bottom: 4px;
}

.planning-gen-cal__chip--pool.is-chauffeur {
  border-color: #0f766e;
  background: #f0fdfa;
}

.planning-gen-cal__chip--pool small {
  font-weight: 700;
  color: #0f766e;
  margin-left: 4px;
}

.planning-gen-cal__pool {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
  max-height: min(52vh, 480px);
  overflow: auto;
}

.planning-gen-cal__pool h4 {
  margin: 0 0 2px;
  font-size: 12px;
  color: #0f172a;
}

.planning-gen-cal__pool > p {
  margin: 0 0 8px;
  font-size: 11px;
  color: #94a3b8;
}

.planning-gen-cal__pool-list {
  display: flex;
  flex-direction: column;
}

@media (max-width: 800px) {
  .planning-gen-cal__layout {
    grid-template-columns: 1fr;
  }
  .planning-gen-cal__pool {
    max-height: 160px;
  }
}

.planning-gen-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.planning-gen-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 16px;
  text-align: center;
}

.planning-gen-loading p {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.planning-gen-loading span {
  font-size: 12px;
  color: #94a3b8;
}

.planning-gen-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: planning-gen-spin 0.8s linear infinite;
}

@keyframes planning-gen-spin {
  to { transform: rotate(360deg); }
}

.planning-gen-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #475569;
}

.planning-gen-banner strong {
  color: #0f172a;
  font-size: 14px;
}

.planning-gen-banner em {
  font-style: normal;
  font-size: 12px;
  color: #64748b;
}

.planning-gen-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.planning-gen-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.planning-gen-stats strong {
  font-size: 18px;
  color: #0f172a;
}

.planning-gen-stats span {
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.planning-gen-stats .is-bad strong { color: #b91c1c; }
.planning-gen-stats .is-warn strong { color: #c2410c; }

.planning-gen-issue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.planning-gen-issue-tabs button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.planning-gen-issue-tabs button.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.planning-gen-issues {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.planning-gen-issues li {
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.planning-gen-issues li:last-child { border-bottom: 0; }
.planning-gen-issues li.is-error { background: #fef2f2; color: #991b1b; }
.planning-gen-issues li.is-warning { background: #fff7ed; color: #9a3412; }
.planning-gen-issues li.is-ok { color: #047857; background: #ecfdf5; }

.planning-gen-section-title {
  margin: 4px 0 0;
  font-size: 13px;
  color: #0f172a;
}

.planning-gen-proposals {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.planning-gen-proposal {
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.planning-gen-proposal strong { color: #0f172a; }
.planning-gen-proposal em { color: #c2410c; font-style: normal; }
.planning-gen-proposal.is-incomplete { background: #fffbeb; }
.planning-gen-more {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: #94a3b8;
}

.planning-gen-done {
  text-align: center;
  padding: 24px 8px;
  color: #334155;
}

.planning-gen-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
}

.planning-gen-panel__config {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  max-width: 860px;
}

.planning-gen-absences {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.planning-gen-absences h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #0f172a;
}

.planning-gen-absences p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 13px;
}

.planning-gen-absences__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr auto;
  gap: 8px;
  align-items: end;
}

.planning-gen-absences__row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
}

.planning-gen-absences__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.planning-gen-absences__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

@media (max-width: 800px) {
  .planning-gen-absences__row {
    grid-template-columns: 1fr 1fr;
  }
}

.planning-gen-panel__config h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
}

.planning-gen-panel__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.planning-gen-panel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
}

.planning-gen-panel__footer-spacer {
  flex: 1;
}

.planning-gen-toast {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.planning-gen-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planning-gen-detail__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.planning-gen-detail__kpis > div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.planning-gen-detail__kpis strong {
  font-size: 20px;
  color: #0f172a;
}

.planning-gen-detail__kpis span {
  font-size: 12px;
  color: #64748b;
}

.planning-gen-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-height: min(70vh, 720px);
}

.planning-gen-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.planning-gen-table th,
.planning-gen-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}

.planning-gen-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.planning-gen-table td.empty {
  text-align: center;
  color: #94a3b8;
  padding: 28px;
}

.planning-gen-table tr.is-warn-row {
  background: #fffbeb;
}

.planning-gen-table .is-bad-cell {
  color: #b91c1c;
  font-weight: 700;
}

.planning-gen-muted {
  color: #64748b;
  font-weight: 600;
}

.planning-gen-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.planning-gen-badge.is-warn {
  background: #ffedd5;
  color: #c2410c;
}

.planning-gen-badge.is-bad {
  background: #fee2e2;
  color: #b91c1c;
}

.planning-gen-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.planning-gen-day-chips span {
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  white-space: nowrap;
}

.planning-gen-cov {
  font-weight: 700;
  color: #047857;
}

.planning-gen-cov.is-low {
  color: #c2410c;
}

.planning-gen-staff {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 480px;
}

.planning-gen-staff__list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(72vh, 760px);
}

.planning-gen-staff__list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.planning-gen-staff__list-head strong { color: #0f172a; }
.planning-gen-staff__list-head span { color: #64748b; font-size: 12px; }

.planning-gen-staff__items {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.planning-gen-staff__item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.12s, border-color 0.12s;
}

.planning-gen-staff__item:hover {
  background: #f1f5f9;
}

.planning-gen-staff__item.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.planning-gen-staff__item.is-warn:not(.is-active) {
  background: #fffbeb;
}

.planning-gen-staff__item.is-deficit:not(.is-active) {
  background: #fef2f2;
  border-color: #fecaca;
}

.planning-gen-staff__item.is-deficit.is-active {
  background: #fef2f2;
  border-color: #f87171;
}

.planning-gen-staff__item.is-deficit .planning-gen-staff__name {
  color: #991b1b;
}

.planning-gen-staff__meta strong.is-deficit-h,
.planning-gen-staff__meta .is-deficit-h {
  color: #dc2626;
}

.planning-gen-staff__cible {
  font-weight: 500;
  color: #94a3b8;
  font-size: 12px;
}

.planning-gen-staff__cal-head p.is-deficit-text,
.planning-gen-staff__cal-head p.is-deficit-text strong {
  color: #b91c1c;
}

.planning-gen-staff__name {
  font-weight: 650;
  color: #0f172a;
  font-size: 13px;
}

.planning-gen-staff__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.planning-gen-staff__meta strong {
  font-size: 15px;
  color: #0f172a;
}

.planning-gen-staff__meta small {
  color: #64748b;
  font-size: 11px;
}

.planning-gen-staff__empty {
  color: #94a3b8;
  font-size: 13px;
  padding: 20px 8px;
  text-align: center;
}

.planning-gen-staff__cal {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 420px;
}

.planning-gen-staff__cal-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.planning-gen-staff__cal-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #0f172a;
}

.planning-gen-staff__cal-head p {
  margin: 0;
  font-size: 13px;
  color: #334155;
}

.planning-gen-staff__cal-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.planning-gen-staff-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.planning-gen-staff-cal__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  padding: 4px 0;
}

.planning-gen-staff-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.planning-gen-staff-cal__day {
  min-height: 88px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.planning-gen-staff-cal__day:disabled {
  cursor: default;
}

.planning-gen-staff-cal__day:not(:disabled):hover {
  border-color: #94a3b8;
}

.planning-gen-staff-cal__day.is-out-month {
  opacity: 0.35;
}

.planning-gen-staff-cal__day.is-out-period {
  background: #f1f5f9;
  opacity: 0.45;
}

.planning-gen-staff-cal__day.has-shift {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.planning-gen-staff-cal__day.has-offer {
  background: #f0fdf4;
  border-color: #86efac;
  border-style: dashed;
}

.planning-gen-staff-cal__day.has-offer-partial {
  box-shadow: inset 0 0 0 1px #86efac;
}

.planning-gen-staff-cal__day.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.planning-gen-staff-cal__num {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.planning-gen-staff-cal__slots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  line-height: 1.25;
  min-width: 0;
}

.planning-gen-staff-cal__slots span {
  color: #1e40af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planning-gen-staff-cal__slots em {
  color: #64748b;
  font-style: normal;
}

.planning-gen-staff-cal__slots strong {
  margin-top: 2px;
  color: #0f172a;
  font-size: 11px;
}

.planning-gen-staff-cal__offer-pill {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 1px 6px;
}

.planning-gen-staff-offers {
  margin-top: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 12px;
  padding: 12px;
}

.planning-gen-staff-offers__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.planning-gen-staff-offers__head strong {
  font-size: 13px;
  color: #14532d;
  text-transform: capitalize;
}

.planning-gen-staff-offers__section {
  margin-top: 10px;
}

.planning-gen-staff-offers__section:first-of-type {
  margin-top: 0;
}

.planning-gen-staff-offers__section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.planning-gen-staff-offers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-gen-staff-offers__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 10px 12px;
}

.planning-gen-staff-offers__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.planning-gen-staff-offers__info strong {
  font-size: 13px;
  color: #0f172a;
}

.planning-gen-staff-offers__info span {
  font-size: 12px;
  color: #64748b;
}

.planning-gen-staff-offers__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 900px) {
  .planning-gen-staff {
    grid-template-columns: 1fr;
  }
  .planning-gen-staff__list {
    max-height: 280px;
  }
}

@media (min-width: 640px) {
  .planning-gen-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .planning-gen-detail__kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.planning-view-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.planning-view-toggle button.is-active {
  background: #0f172a;
  color: #fff;
}

.planning-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.planning-filters__types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.planning-filter-chip {
  border: 1.5px solid color-mix(in srgb, var(--chip-color) 45%, #e2e8f0);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.planning-filter-chip.is-selected {
  background: color-mix(in srgb, var(--chip-color) 12%, #fff);
  border-color: var(--chip-color);
  color: var(--chip-color);
}

.planning-filter-chip.is-dim { opacity: 0.45; }

.planning-filters__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.planning-filters__controls .form-input {
  min-width: 140px;
}

.planning-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.planning-nav-bar__label {
  font-size: 15px;
  color: #0f172a;
  text-transform: capitalize;
  min-width: 160px;
  text-align: center;
}

.planning-nav-bar__count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.planning-cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.planning-month {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}

.planning-month__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.planning-month__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 4px 0;
}

.planning-month__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.planning-month__day {
  min-height: 96px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.planning-month__day:hover {
  border-color: #94a3b8;
}

.planning-month__day.is-muted {
  opacity: 0.4;
  background: #f8fafc;
}

.planning-month__day.is-today {
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.planning-month__day.is-selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.planning-month__day-num {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.planning-month__slots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
}

.planning-month__pill {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planning-month__more {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.planning-day-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  position: sticky;
  top: 12px;
}

.planning-day-panel h2 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: capitalize;
  color: #0f172a;
}

.planning-day-panel__empty {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.planning-day-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
}

.planning-day-panel__item {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
  cursor: pointer;
}

.planning-day-panel__item:disabled {
  cursor: default;
}

.planning-day-panel__item:not(:disabled):hover {
  border-color: #cbd5e1;
  background: #fff;
}

.planning-day-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.planning-day-panel__item strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.planning-day-panel__item span {
  display: block;
  font-size: 12px;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.planning-day-panel__item em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: #64748b;
  margin-top: 2px;
}

.planning-day-panel__add {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.planning-day-panel__add label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.planning-slot-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 960px) {
  .planning-cal-layout {
    grid-template-columns: 1fr;
  }
  .planning-day-panel {
    position: static;
  }
  .planning-month__day {
    min-height: 72px;
  }
}

.planning-grid {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.planning-vehicle-header {
  width: 160px;
  min-width: 160px;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
}

.planning-day-header {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
  border-left: 1px solid #f1f5f9;
}
.planning-day-header.today { background: #eff6ff; border-bottom-color: #3b82f6; }

.planning-day-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}
.planning-day-header.today .planning-day-name { color: #3b82f6; }

.planning-day-date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.planning-row { border-bottom: 1px solid #f1f5f9; }
.planning-row:last-child { border-bottom: none; }

.planning-vehicle-cell {
  padding: 8px 12px;
  background: #f8fafc;
  border-right: 2px solid #e2e8f0;
  vertical-align: middle;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
}

.planning-vehicle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.planning-vehicle-name {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}

.planning-vehicle-type {
  font-size: 11px;
  color: #94a3b8;
}

.planning-day-cell {
  padding: 4px 6px;
  vertical-align: top;
  border-left: 1px solid #f1f5f9;
  min-height: 54px;
  min-width: 110px;
  position: relative;
}
.planning-day-cell.today { background: #f8fbff; }
.planning-day-cell.clickable:hover { background: #f0f9ff; cursor: pointer; }

.planning-slot {
  background: #f0f7ff;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  padding: 4px 6px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: filter 0.1s;
}
.planning-slot:hover { filter: brightness(0.96); }

.planning-slot-hours {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
}

.planning-slot-staff {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.planning-staff-chip--name {
  width: auto;
  height: auto;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  letter-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-cal-mode {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  margin-right: 8px;
  background: #e2e8f0;
  border-radius: 8px;
}

.planning-cal-mode button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
}

.planning-cal-mode button.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.planning-cal-week__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
}

.planning-grid--cal-week .planning-day-cell--cal {
  min-width: 128px;
  vertical-align: top;
}

.planning-slot--cal {
  min-height: 64px;
  padding: 6px 7px;
}

.planning-slot-names {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.planning-slot-names li {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.planning-slot-names strong {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.planning-slot-names span {
  font-size: 10px;
  color: #64748b;
}

.planning-staff-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planning-add-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #cbd5e1;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.15s;
}
.planning-day-cell.clickable:hover .planning-add-hint { opacity: 1; }

/* Personnel modal */
.modal-lg { max-width: 560px; }

.modal-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  margin-left: 8px;
}

.personnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.btn-add-staff {
  font-size: 12px;
  padding: 4px 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  color: #0284c7;
  cursor: pointer;
  font-weight: 600;
}
.btn-add-staff:hover { background: #e0f2fe; }

.empty-staff {
  font-size: 12px;
  color: #94a3b8;
  padding: 8px 0;
  text-align: center;
}

.personnel-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.form-input-sm { max-width: 140px; }

.btn-remove-staff {
  background: none;
  border: none;
  font-size: 18px;
  color: #dc2626;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.btn-danger:hover { background: #b91c1c; }

.btn-primary-outline {
  background: transparent;
  color: #1e3a5f;
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.btn-primary-outline:hover { background: #f1f5f9; }

/* ─── Vue ambulancier ───────────────────────────────────────── */
.amb-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.amb-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.18);
}

.amb-hero__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fca5a5;
  margin-bottom: 6px;
}

.amb-hero__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
}

.amb-hero__date {
  margin: 0;
  font-size: 14px;
  color: #cbd5e1;
  text-transform: capitalize;
}

.amb-hero__stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.amb-stat {
  min-width: 72px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.amb-stat--accent {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(252, 165, 165, 0.35);
}

.amb-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.amb-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #cbd5e1;
}

.amb-section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.amb-section {
  margin-bottom: 24px;
}

.amb-next {
  margin-bottom: 28px;
}

.amb-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amb-loading,
.amb-empty {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}

.amb-empty {
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #e2e8f0;
}

.amb-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f8fafc;
  color: #94a3b8;
}

.amb-empty h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1a1a2e;
}

.amb-empty p {
  margin: 0;
  font-size: 14px;
}

.amb-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  border-left: 4px solid var(--amb-statut, #3b82f6);
  transition: box-shadow 0.15s, transform 0.15s;
}

.amb-card:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.amb-card--featured {
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.12);
  border-color: #fecaca;
}

.amb-card--live {
  animation: amb-pulse 2.5s ease-in-out infinite;
}

@keyframes amb-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15); }
  50% { box-shadow: 0 6px 24px rgba(22, 163, 74, 0.28); }
}

.amb-card--muted {
  opacity: 0.72;
}

.amb-card--muted:hover {
  opacity: 1;
}

.amb-card__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  background: #f8fafc;
  border-right: 1px solid #f1f5f9;
  min-width: 76px;
}

.amb-card__hour {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  font-variant-numeric: tabular-nums;
}

.amb-card__rdv {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.amb-card__body {
  padding: 14px 16px;
  min-width: 0;
}

.amb-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.amb-card__num {
  font-size: 11px;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  color: #475569;
}

.amb-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  background: var(--amb-statut, #3b82f6);
}

.amb-card__patient {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.amb-card__patient svg {
  flex-shrink: 0;
  color: #dc2626;
}

.amb-card__route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.amb-card__stop {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.amb-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.amb-card__dot--from { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }
.amb-card__dot--to { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }

.amb-card__route-line {
  width: 2px;
  height: 12px;
  margin-left: 4px;
  background: linear-gradient(to bottom, #16a34a, #dc2626);
  border-radius: 1px;
}

.amb-card__stop-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.amb-card__stop-name {
  display: block;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

.amb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amb-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}

.amb-chip--veh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1d4ed8;
}

.amb-chip--alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.amb-chip--info {
  background: #f0fdf4;
  color: #15803d;
}

.amb-run__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.amb-run__detail {
  min-width: 0;
}

.amb-run__detail--full {
  grid-column: 1 / -1;
}

.amb-run__detail dt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.amb-run__detail dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.amb-run__detail--warn {
  color: #b91c1c;
}

.amb-card__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border: none;
  border-left: 1px solid #f1f5f9;
  background: #fafafa;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-width: 88px;
  transition: background 0.15s, color 0.15s;
}

.amb-card__action:hover {
  background: #dc2626;
  color: #fff;
}

.amb-card__action svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .amb-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .amb-hero__stats {
    justify-content: flex-start;
  }

  .amb-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .amb-card__time {
    flex-direction: row;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }

  .amb-card__action {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding: 14px 16px;
  }
}

/* ─── Conduite mission (ambulancier) ─────────────────────────── */
.amb-run {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.amb-run__header {
  margin-bottom: 16px;
}

.amb-run__back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
}

.amb-run__back:hover { color: #dc2626; }

.amb-run__headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.amb-run__num {
  font-size: 13px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
}

.amb-run__live-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  background: #dbeafe;
  color: #1d4ed8;
}

.amb-run__done-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  background: #d1fae5;
  color: #047857;
}

.amb-run__time-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e, #334155);
  color: #fff;
  flex-wrap: wrap;
  gap: 8px;
}

.amb-run__time-card--triple {
  justify-content: space-between;
}

.amb-run__time-card--triple .amb-run__time-value {
  font-size: 22px;
}

.amb-run__late {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.amb-chip--transport {
  background: #ede9fe;
  color: #6d28d9;
}

.amb-chip--materiel {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.amb-run__materiel {
  margin-bottom: 14px;
}

.amb-run__materiel-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.amb-run__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.amb-run__contact-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3b82f6;
  margin-bottom: 2px;
}

.amb-run__contact-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
}

.amb-run__contact-tel {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}

.amb-run__call-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.amb-run__call-btn:hover {
  background: #1d4ed8;
}

.amb-run__route-body {
  flex: 1;
  min-width: 0;
}

.amb-run__route-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.amb-run__maps-btn {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.amb-run__maps-btn:hover {
  background: #e2e8f0;
  color: #1a1a2e;
}

.amb-run__time-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.amb-run__time-value {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.amb-run__time-sep {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.amb-run__panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.amb-run__patient {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

.amb-run__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.amb-run__route {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amb-run__route-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.amb-run__route-text {
  margin: 2px 0 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
}

.amb-run__route-service {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.amb-run__note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.amb-run__note-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 4px;
}

.amb-run__note p {
  margin: 0;
  font-size: 14px;
  color: #78350f;
}

.amb-run__progress {
  margin-bottom: 20px;
}

.amb-run__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amb-run__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.amb-run__step--done {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.amb-run__step--active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.amb-run__step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.amb-run__step--done .amb-run__step-dot {
  background: #16a34a;
  color: #fff;
}

.amb-run__step--active .amb-run__step-dot {
  background: #2563eb;
  color: #fff;
}

.amb-run__status-top {
  margin-bottom: 14px;
}

.amb-run__status-block--top {
  margin-bottom: 12px;
}

.amb-run__status-block {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.amb-run__status-current {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

.amb-run__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.amb-run__btn-spacer {
  display: block;
}

.amb-run__btn {
  padding: 16px 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.amb-run__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.amb-run__btn--prev {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.amb-run__btn--prev:hover:not(:disabled) {
  background: #e2e8f0;
}

.amb-run__btn--next {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.amb-run__btn--next:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

.amb-run__cta {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 14px;
  background: #dc2626;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
  transition: background 0.15s, transform 0.1s;
}

.amb-run__cta:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

.amb-run__cta:disabled {
  opacity: 0.65;
  cursor: wait;
}

.amb-run__complete {
  text-align: center;
  padding: 20px;
  background: #f0fdf4;
  border-radius: 16px;
  border: 1px solid #bbf7d0;
}

.amb-run__complete p {
  margin: 0 0 14px;
  font-weight: 600;
  color: #166534;
}

.amb-run__alert { margin-bottom: 12px; }

/* ─── Rapport fin mission ───────────────────────────────────── */
.amb-rapport-modal .modal-body {
  gap: 16px;
}

.amb-rapport-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.amb-rapport-toggle {
  display: flex;
  gap: 10px;
}

.amb-rapport-toggle__opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.amb-rapport-toggle__opt:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.amb-rapport-toggle__opt input {
  accent-color: #2563eb;
}

.amb-rapport-preview {
  display: block;
  margin-top: 10px;
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
}

.amb-rapport-etapes {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.amb-rapport-etapes__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amb-rapport-etapes__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #475569;
}

.amb-rapport-etapes__list strong {
  font-size: 15px;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.amb-rapport-incident__detail {
  margin-top: 10px;
  width: 100%;
}

.amb-rapport-check {
  display: flex;
  align-items: flex-end;
}

.amb-rapport-footer {
  margin-top: 4px;
}

.fin-rapport-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.fin-rapport-meta {
  margin: -8px 0 16px;
  font-size: 13px;
  color: #64748b;
}

.fin-rapport-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fin-rapport-item {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.fin-rapport-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.fin-rapport-item strong {
  font-size: 15px;
  color: #1e293b;
}

.fin-rapport-warn {
  color: #b45309;
}

.fin-rapport-block {
  margin-top: 14px;
}

.fin-rapport-block p {
  margin: 6px 0 0;
  color: #334155;
  white-space: pre-wrap;
}

.fin-rapport-photo-link {
  display: inline-block;
  margin-top: 8px;
}

.fin-rapport-photo {
  max-width: 280px;
  max-height: 200px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  object-fit: contain;
}

.fin-rapport-etapes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fin-rapport-etapes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
}

.fin-rapport-etapes strong {
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.fin-rapport-block--warn {
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.fin-rapport-block--warn p {
  color: #92400e;
}

.fin-rapport-empty {
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
}

.fin-rapport-hint {
  margin: -6px 0 14px;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 768px) {
  .fin-rapport-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.amb-run__error {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
}

/* ─── Misc ──────────────────────────────────────────────────── */
.text-muted { color: #94a3b8; }
.p-4 { padding: 16px; }

code {
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 12px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #475569;
}

/* ─── Mes horaires (ambulancier) ───────────────────────────── */
.mes-horaires {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
}

.mes-horaires__subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.mes-horaires__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mes-horaires__month {
  min-width: 160px;
  text-align: center;
  font-size: 15px;
  color: #1e293b;
}

.mes-horaires__today {
  margin-left: 4px;
}

.mes-horaires__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

.mes-horaires__calendar-card {
  padding: 16px;
  margin-bottom: 0;
}

.mes-horaires__loading {
  padding: 40px;
  text-align: center;
  color: #64748b;
}

.mes-horaires__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.mes-horaires__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding: 6px 0;
}

.mes-horaires__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mes-horaires__day {
  min-height: 72px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  padding: 6px;
  text-align: left;
}

.mes-horaires__day:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.mes-horaires__day--muted {
  opacity: 0.35;
}

.mes-horaires__day--shift {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.mes-horaires__day--selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  background: #dbeafe;
}

.mes-horaires__day--today .mes-horaires__day-num {
  color: #dc2626;
  font-weight: 800;
}

.mes-horaires__day-num {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  line-height: 1;
}

.mes-horaires__day-times {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin-top: auto;
}

.mes-horaires__day-time {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #1e40af;
  background: #fff;
  border-left: 3px solid #3b82f6;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mes-horaires__day--shift .mes-horaires__day-time {
  background: rgba(255, 255, 255, 0.85);
}

.mes-horaires__detail {
  margin-bottom: 0;
  position: sticky;
  top: 0;
}

.mes-horaires__detail-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mes-horaires__empty {
  color: #94a3b8;
  font-size: 14px;
}

.mes-horaires__shift {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mes-horaires__shift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mes-horaires__type {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.mes-horaires__veh {
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px;
}

.mes-horaires__meta {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 2px;
}

.mes-horaires__notes {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

@media (max-width: 900px) {
  .mes-horaires__layout {
    grid-template-columns: 1fr;
  }

  .mes-horaires__detail {
    position: static;
  }
}

/* ─── Bourse échanges ────────────────────────────────────────── */
.bourse {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
}

.bourse__subtitle,
.regles-rh__subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.bourse__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bourse__tab {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.bourse__tab--active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

.bourse__loading,
.bourse__empty {
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.bourse__list,
.bourse__sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bourse__card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bourse__card--inner {
  margin-bottom: 12px;
}

.bourse__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bourse__line {
  margin: 0 0 6px;
  font-size: 14px;
  color: #334155;
}

.bourse__label {
  display: inline-block;
  min-width: 72px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-right: 8px;
}

.bourse__comment {
  margin: 10px 0;
  font-size: 13px;
  color: #475569;
  font-style: italic;
}

.bourse__statut {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.bourse__statut--ouverte,
.bourse__statut--en_cours,
.bourse__statut--en_attente {
  background: #eff6ff;
  color: #1d4ed8;
}

.bourse__statut--en_attente_nplus1 {
  background: #fef3c7;
  color: #b45309;
}

.bourse__statut--validee {
  background: #f0fdf4;
  color: #166534;
}

.bourse__statut--echec_rh,
.bourse__statut--refusee {
  background: #fef2f2;
  color: #b91c1c;
}

.bourse__card-body {
  padding: 16px 20px 20px;
}

.bourse__prop {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.bourse__prop-badges {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  font-size: 12px;
}

.bourse__ok { color: #166534; font-weight: 600; }
.bourse__wait { color: #94a3b8; }

.bourse__rh-err {
  margin: 8px 0;
  font-size: 13px;
  color: #b45309;
  background: #fffbeb;
  padding: 8px 10px;
  border-radius: 8px;
}

.bourse__prop-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

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

.bourse__hint,
.regles-rh__hint {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 0;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
}

.bourse__no-creneaux {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.bourse__cal-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px 16px;
  background: #f8fafc;
}

.bourse__cal-block--soft {
  background: #fff;
}

.bourse__cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.bourse__cal-head h3 {
  margin: 0;
  font-size: 15px;
}

.bourse__cal-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.bourse__cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bourse__cal-nav strong {
  min-width: 140px;
  text-align: center;
  font-size: 13px;
  text-transform: capitalize;
}

.bourse__cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.bourse__cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  padding: 2px 0;
}

.bourse__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.bourse__cal-day {
  appearance: none;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 8px;
  min-height: 44px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: #0f172a;
}

.bourse__cal-day:disabled {
  cursor: default;
  opacity: 0.45;
}

.bourse__cal-day.is-muted {
  color: #94a3b8;
}

.bourse__cal-day.is-past:disabled {
  opacity: 0.3;
}

.bourse__cal-day.has-shift {
  border-color: #bfdbfe;
  background: #eff6ff;
  font-weight: 650;
}

.bourse__cal-day.has-shift:hover:not(:disabled) {
  border-color: #60a5fa;
}

.bourse__cal-day.is-today {
  box-shadow: inset 0 0 0 1px #94a3b8;
}

.bourse__cal-day.is-selected {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.bourse__cal-day-num {
  font-size: 13px;
}

.bourse__cal-day-dot {
  font-size: 10px;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  min-width: 16px;
  padding: 0 4px;
  line-height: 16px;
  text-align: center;
}

.bourse__cal-picks {
  margin-top: 12px;
}

.bourse__cal-picks > p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
}

.bourse__cal-picks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bourse__cal-pick {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bourse__cal-pick strong {
  font-size: 13px;
}

.bourse__cal-pick span {
  font-size: 12px;
  color: #64748b;
}

.bourse__cal-pick.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.bourse__cal-selected {
  margin-top: 12px;
  font-size: 13px;
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ─── Règles RH admin ───────────────────────────────────────── */
.regles-rh {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
}

.regles-rh__layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 920px;
}

.regles-rh-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.regles-rh-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.regles-rh-card__head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.regles-rh-card__head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.regles-rh-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
}

.regles-rh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.regles-rh-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.regles-rh-field__input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.regles-rh-field__input input {
  width: 100%;
  max-width: 140px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.regles-rh-field__suffix {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.regles-rh-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.regles-rh-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
}

.regles-rh-check input {
  margin-top: 3px;
}

.regles-rh-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.regles-rh-check strong {
  font-size: 13px;
  color: #0f172a;
}

.regles-rh-check small {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.regles-rh__footer {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 8px;
}

@media (max-width: 720px) {
  .regles-rh-grid {
    grid-template-columns: 1fr;
  }
}

.regles-rh__body {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
}

.regles-rh__catalog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafc;
}

.regles-rh__catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.regles-rh__catalog-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.regles-rh__poste-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.regles-rh__poste-tag {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1a1a2e;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.regles-rh__catalog-row {
  display: grid;
  grid-template-columns: 140px 1fr minmax(180px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.regles-rh__catalog-row input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
}

.regles-rh__vecteur-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.regles-rh__vecteur-chip {
  font-size: 11px;
  white-space: nowrap;
}

.user-qual-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.user-qual-badge--formation {
  background: #dbeafe;
  color: #1d4ed8;
}

.user-qual-badge--chauffeur {
  background: #fef3c7;
  color: #b45309;
}

.user-qual-badge--junior {
  background: #f1f5f9;
  color: #475569;
}

.user-qual-badge--senior {
  background: #ede9fe;
  color: #6d28d9;
}

.user-qual-form {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.user-qual-form__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.user-qual-form__formations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-qual-form__formation {
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.user-qual-form__formation span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-qual-form__formation small {
  color: #64748b;
  font-size: 11px;
}

@media (max-width: 800px) {
  .regles-rh__catalog-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Facturation ───────────────────────────────────────────── */
.fact-page .page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.fact-page .page-header h1 { font-size: 22px; font-weight: 800; }
.fact-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.fact-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.fact-stat__val { font-size: 24px; font-weight: 800; color: #111827; }
.fact-stat--accent { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.fact-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.fact-tabs { display: flex; gap: 4px; }
.fact-tabs button { padding: 8px 16px; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.fact-tabs button.active { background: #dc2626; color: #fff; border-color: #dc2626; }
.fact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fact-settings { display: flex; flex-direction: column; gap: 16px; }
.fact-settings .card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; }
.fact-settings .card h2 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: #374151; }
.fact-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.fact-calc-options { margin-bottom: 16px; }
.fact-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fact-lines { margin: 16px 0; }
.fact-totals { text-align: right; font-size: 14px; line-height: 1.8; }
.fact-meta { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.fact-invoice-info { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #4b5563; margin-bottom: 12px; }
.fact-email-input { width: 100%; max-width: 200px; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; }
.fact-logo-help { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.fact-logo-row { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.fact-logo-preview { width: 220px; min-height: 80px; border: 2px dashed #e5e7eb; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fafafa; }
.fact-logo-preview img { max-width: 100%; max-height: 72px; object-fit: contain; }
.fact-logo-placeholder { font-size: 12px; color: #9ca3af; }
.fact-logo-actions { display: flex; flex-direction: column; gap: 8px; }
.fact-logo-upload { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.btn-link { background: none; border: none; color: #2563eb; cursor: pointer; font-size: 12px; margin-left: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

/* ─── Optimiser le jour ─────────────────────────────────────── */
.optimize-day-modal { max-width: 720px; }
.optimize-day-modal__loading {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.optimize-day-modal__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.optimize-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.optimize-stat--success .optimize-stat__value { color: #16a34a; }
.optimize-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.optimize-stat__label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}
.optimize-day-modal__intro {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}
.optimize-day-modal__empty {
  padding: 20px;
  text-align: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #166534;
  font-size: 14px;
}
.optimize-day-modal__section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.optimize-day-modal__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.optimize-day-modal__section--warn h3 { color: #b45309; }
.optimize-changes-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: auto;
  max-height: 280px;
}
.optimize-changes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.optimize-changes-table th,
.optimize-changes-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.optimize-changes-table th {
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  position: sticky;
  top: 0;
}
.optimize-changes-table__sub {
  font-size: 11px;
  color: #94a3b8;
}
.optimize-changes-table__reason {
  color: #64748b;
  font-size: 12px;
  max-width: 180px;
}
.optimize-vecteur-change {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.optimize-vecteur-change__from { color: #94a3b8; text-decoration: line-through; }
.optimize-vecteur-change__arrow { color: #cbd5e1; }
.optimize-vecteur-change__to { font-weight: 600; color: #16a34a; }
.optimize-skipped-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .optimize-day-modal__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Rapports prestation dispatch ── */
.dispatch-rapports-page .page-subtitle {
  color: #64748b;
  margin-top: 4px;
  font-size: 14px;
}
.dispatch-rapports-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}
.dispatch-rapports-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #64748b;
}
.dispatch-rapports-loading,
.dispatch-rapports-empty {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}
.dispatch-rapports-empty .btn { margin-top: 12px; }
.dispatch-rapports-list {
  display: grid;
  gap: 12px;
}
.dispatch-rapport-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dispatch-rapport-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.dispatch-rapport-card--brouillon {
  border-left: 4px solid #f59e0b;
}
.dispatch-rapport-card--publie {
  border-left: 4px solid #16a34a;
}
.dispatch-rapport-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dispatch-rapport-card__date {
  font-weight: 600;
  color: #0f172a;
}
.dispatch-rapport-card__title {
  margin: 8px 0 0;
  font-size: 15px;
}
.dispatch-rapport-card__meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}
.dispatch-rapport-card__excerpt {
  margin: 10px 0 0;
  font-size: 13px;
  color: #475569;
  white-space: pre-wrap;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dispatch-rapport-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
}
.dispatch-rapport-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dispatch-rapport-detail__meta {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}
.dispatch-rapport-detail__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dispatch-rapport-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}
.dispatch-rapport-stat {
  font-size: 12px;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
}
.dispatch-rapport-stat strong {
  color: #0f172a;
  margin-right: 4px;
}
.dispatch-rapport-block {
  margin-bottom: 20px;
}
.dispatch-rapport-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.dispatch-rapport-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
}
.dispatch-rapport-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  max-width: 900px;
}
.dispatch-rapport-form__context {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dispatch-rapport-form .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Planning & RH ── */
.planning-rh-page .page-subtitle,
.desiderata-page .page-subtitle { color: #64748b; margin-top: 4px; font-size: 14px; }
.planning-rh-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.planning-rh-tabs button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.planning-rh-tabs button.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.planning-rh-loading,
.planning-rh-empty,
.desiderata-empty {
  padding: 32px;
  text-align: center;
  color: #64748b;
}
.planning-rh-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .planning-rh-grid { grid-template-columns: 1fr; }
}
.planning-rh-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}
.planning-rh-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.planning-rh-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.planning-rh-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}
.planning-rh-card--active { border-color: #dc2626; background: #fff; }
.planning-rh-card__meta { font-size: 11px; color: #64748b; }
.planning-rh-detail-meta { color: #64748b; font-size: 13px; margin-bottom: 12px; }
.planning-rh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }

.planning-rh-hint {
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
}

.planning-rh-synthese {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
}

.planning-rh-synthese h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.planning-rh-synthese__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.planning-rh-synthese__kpis > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.planning-rh-synthese__kpis strong {
  font-size: 18px;
}

.planning-rh-synthese__kpis span {
  font-size: 12px;
  color: #64748b;
}

.planning-rh-synthese__kpis .is-warn strong {
  color: #b45309;
}

.planning-rh-synthese__block {
  margin-top: 10px;
}

.planning-rh-synthese__block h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.planning-rh-synthese__names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.planning-rh-synthese__heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.planning-rh-synthese__heatmap li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  font-size: 12px;
}

@media (max-width: 800px) {
  .planning-rh-synthese__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.planning-rh-preview {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.planning-rh-preview__rh {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
}
.planning-rh-preview__rh.is-off {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.planning-rh-warnings {
  margin: 10px 0;
  padding-left: 18px;
  color: #b45309;
  font-size: 12px;
  line-height: 1.5;
}
.planning-rh-preview-list { max-height: 280px; overflow-y: auto; }
.planning-rh-preview-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.planning-rh-regles { display: flex; flex-direction: column; gap: 16px; }
.planning-rh-regles .is-warn-text {
  color: #c2410c;
  font-weight: 700;
}
.desiderata-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.desiderata-banner__warn { color: #b45309; font-weight: 600; }

.desiderata-cible {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.desiderata-cible label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.desiderata-cible .form-input { width: 120px; }

.desiderata-cal {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px 18px;
  max-width: 720px;
}

.desiderata-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.desiderata-cal__nav strong {
  font-size: 16px;
  text-transform: capitalize;
  color: #0f172a;
}

.desiderata-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.desiderata-cal__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 4px 0;
}

.desiderata-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.desiderata-cal__day {
  min-height: 72px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.desiderata-cal__day:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #fff;
}

.desiderata-cal__day:disabled {
  cursor: default;
  opacity: 0.35;
}

.desiderata-cal__day.is-out-month { opacity: 0.35; }
.desiderata-cal__day.is-out-period { opacity: 0.25; cursor: not-allowed; }
.desiderata-cal__day.is-today { box-shadow: inset 0 0 0 2px #0f172a; }
.desiderata-cal__day.is-repos {
  background: #fef2f2;
  border-color: #fecaca;
}
.desiderata-cal__day.is-pref {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.desiderata-cal__num {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.desiderata-cal__tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
}

.desiderata-cal__tag.is-pref {
  background: #d1fae5;
  color: #047857;
}

.desiderata-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
}

.desiderata-cal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.desiderata-cal__swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  display: inline-block;
}

.desiderata-cal__swatch.is-repos { background: #fecaca; border-color: #f87171; }
.desiderata-cal__swatch.is-pref { background: #a7f3d0; border-color: #34d399; }

.desiderata-modal__statut {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desiderata-modal__statut-btn {
  text-align: left;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.desiderata-modal__statut-btn.is-active {
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px #0f172a;
}

.desiderata-modal__statut-btn.is-active.is-repos {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
  box-shadow: none;
}

.desiderata-modal__statut-btn.is-active.is-pref {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
  box-shadow: none;
}

.desiderata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.desiderata-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.desiderata-day:hover:not(:disabled) { border-color: #94a3b8; }
.desiderata-day:disabled { opacity: 0.55; cursor: not-allowed; }
.desiderata-day--weekend { background: #f8fafc; }
.desiderata-day--repos {
  background: #fef3c7;
  border-color: #f59e0b;
}
.desiderata-day__label { font-size: 12px; text-align: center; }
.desiderata-day__tag {
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
}

/* ─── Module Check / Inventaire ─────────────────────────────── */
.check-page { max-width: 1100px; }
.check-page .page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.check-page .page-header h1 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.check-back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px;
  color: #64748b; font-size: 13px; font-weight: 500; text-decoration: none;
}
.check-back:hover { color: #dc2626; }

.check-card {
  background: #fff; border: 1px solid #e8ecf1; border-radius: 16px;
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.check-card h2, .check-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #0f172a; }
.check-card--comment { background: #f8fafc; border-style: dashed; }
.check-reglages { display: flex; flex-direction: column; gap: 0; max-width: 680px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.check-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-empty {
  padding: 48px 24px; text-align: center; color: #64748b;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-radius: 16px; border: 1px dashed #cbd5e1;
}
.check-table-wrap {
  overflow-x: auto; background: #fff; border: 1px solid #e8ecf1;
  border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.check-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.check-table th, .check-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.check-table th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.check-table tbody tr:hover { background: #fafbfc; }
.check-table__sub { font-size: 12px; margin-top: 3px; color: #94a3b8; }
.check-table__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.check-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.check-stat {
  background: #fff; border: 1px solid #e8ecf1; border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.check-stat span { font-size: 28px; font-weight: 800; line-height: 1; color: #0f172a; }
.check-stat small { color: #64748b; font-size: 12px; font-weight: 500; }
.check-stat--warn span { color: #d97706; }
.check-stat--missing span { color: #dc2626; }
.check-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.check-badge--ok { background: #dcfce7; color: #166534; }
.check-badge--warn { background: #fef3c7; color: #b45309; }
.check-badge--missing { background: #fee2e2; color: #b91c1c; }
.check-badge--muted { background: #f1f5f9; color: #64748b; }
.check-filters { margin-bottom: 16px; }

/* ── Éditeur modèle ── */
.check-editor__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.check-editor__aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.check-editor__toolbar { display: flex; gap: 8px; }
.check-editor__active { align-self: end; padding-bottom: 8px; }
.check-section-editor { padding: 0; overflow: hidden; }
.check-section-editor__head {
  display: flex; gap: 10px; align-items: center; padding: 16px 18px;
  background: linear-gradient(180deg, #f8fafc, #fff); border-bottom: 1px solid #eef2f6;
}
.check-section-editor__badge {
  width: 28px; height: 28px; border-radius: 8px; background: #dc2626; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.check-section-editor__title { font-weight: 700; flex: 1; border: none; background: transparent; padding-left: 0; }
.check-section-editor__title:focus { box-shadow: none; background: #fff; border: 1px solid #e2e8f0; padding-left: 12px; border-radius: 8px; }
.check-section-editor__count { font-size: 12px; color: #94a3b8; font-weight: 600; white-space: nowrap; }
.check-section-editor__actions { display: flex; gap: 4px; }
.check-section-editor__add { margin: 12px 18px 18px; }
.check-section-editor__add-section { width: 100%; margin-bottom: 8px; }
.check-q-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 0; }
.check-q-card {
  border: 1px solid #e8ecf1; border-radius: 12px; padding: 14px;
  background: #fafbfc; transition: border-color 0.15s, box-shadow 0.15s;
}
.check-q-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); }
.check-q-card__top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.check-q-card__num {
  font-size: 11px; font-weight: 800; color: #64748b; background: #e2e8f0;
  padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
}
.check-q-card__label { flex: 1; font-weight: 600; }
.check-q-card__remove { color: #94a3b8; }
.check-q-card__remove:hover { color: #dc2626; }
.check-q-card__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.check-q-card__field { display: flex; flex-direction: column; gap: 4px; }
.check-q-card__field > span { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em; }
.check-q-card__toggle {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; cursor: pointer;
}
.check-q-card__toggle--photo { border-color: #fde68a; background: #fffbeb; }

/* ── Formulaire ambulancier / aperçu ── */
.check-preview {
  background: #fff; border: 1px solid #e8ecf1; border-radius: 18px;
  overflow: hidden; box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.check-preview--compact { box-shadow: none; border-radius: 12px; }
.check-preview--compact .check-preview__section-head { padding: 10px 12px; }
.check-preview--compact .check-preview__section-body { padding: 0 12px 12px; }
.check-preview__hero {
  padding: 20px 22px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff;
}
.check-preview__header h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #fff; }
.check-preview__desc { margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.5; }
.check-progress { margin-top: 16px; }
.check-progress--inline { margin-top: 14px; }
.check-progress__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600; color: #cbd5e1; margin-bottom: 8px;
}
.check-progress__warn { color: #fbbf24; }
.check-progress__track { height: 6px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; }
.check-progress__bar { height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 999px; transition: width 0.25s ease; }
.check-preview__sections { padding: 8px; }
.check-preview__section {
  margin-bottom: 8px; border: 1px solid #eef2f6; border-radius: 14px;
  background: #fff; overflow: hidden;
}
.check-preview__section-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: none; background: #f8fafc; cursor: pointer; text-align: left;
  transition: background 0.15s;
}
.check-preview__section-head:hover { background: #f1f5f9; }
.check-preview__section-icon {
  width: 32px; height: 32px; border-radius: 10px; background: #e2e8f0; color: #475569;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.check-preview__section--open .check-preview__section-icon { background: #dc2626; color: #fff; }
.check-preview__section-title { flex: 1; font-size: 15px; font-weight: 700; color: #0f172a; }
.check-preview__section-count {
  font-size: 12px; font-weight: 700; color: #64748b; background: #e2e8f0;
  padding: 4px 10px; border-radius: 999px;
}
.check-preview__section-chevron {
  color: #94a3b8; font-size: 18px; transition: transform 0.2s; display: inline-block;
}
.check-preview__section--open .check-preview__section-chevron { transform: rotate(90deg); }
.check-preview__section-body { padding: 8px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.check-preview__question { border-radius: 12px; transition: box-shadow 0.15s; }

.check-field {
  padding: 14px 16px; border: 1px solid #e8ecf1; border-radius: 12px;
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.check-field--done { border-color: #bbf7d0; background: #fafffe; }
.check-field--warn { border-color: #fcd34d; background: #fffdf5; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12); }
.check-field--readonly { background: #f8fafc; }
.check-field__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.check-field__num {
  width: 26px; height: 26px; border-radius: 8px; background: #f1f5f9; color: #64748b;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.check-field--done .check-field__num { background: #dcfce7; color: #166534; }
.check-field--warn .check-field__num { background: #fef3c7; color: #b45309; }
.check-field__label { flex: 1; font-size: 15px; font-weight: 600; color: #0f172a; line-height: 1.4; min-width: 0; }
.check-field__badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 6px; flex-shrink: 0;
}
.check-field__badge--ok { background: #dcfce7; color: #166534; }
.check-field__badge--warn { background: #fef3c7; color: #b45309; }
.check-field__badge--qty { background: #e0f2fe; color: #0369a1; }
.check-field__hint { display: block; font-size: 12px; color: #94a3b8; margin-top: 4px; margin-bottom: 8px; }
.check-field__control .mx-input, .check-field__control .mx-textarea { width: 100%; }

.check-yn-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check-yn-btn {
  position: relative; padding: 12px 10px; border: 2px solid #e2e8f0; border-radius: 12px;
  background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; text-align: center;
  transition: all 0.15s;
}
.check-yn-btn input { position: absolute; opacity: 0; pointer-events: none; }
.check-yn-btn--yes.check-yn-btn--active { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
.check-yn-btn--no.check-yn-btn--active { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }
.check-yn-btn--na.check-yn-btn--active { border-color: #64748b; background: #f8fafc; color: #334155; }
.check-field__qty { max-width: 140px; font-size: 18px; font-weight: 700; text-align: center; }
.check-note-group { display: flex; gap: 8px; flex-wrap: wrap; }
.check-note-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid #e2e8f0;
  background: #fff; font-weight: 800; font-size: 15px; cursor: pointer; transition: all 0.15s;
}
.check-note-btn--active { background: #dc2626; color: #fff; border-color: #dc2626; transform: scale(1.05); }

.check-traceabilite {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #dbeafe; background: linear-gradient(180deg, #f8fbff, #fff);
}
.check-traceabilite__prev {
  margin: 0 0 10px; font-size: 12px; color: #64748b;
}
.check-traceabilite__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px;
}
.check-traceabilite__field span {
  display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px;
}
.check-traceabilite--readonly {
  display: flex; flex-wrap: wrap; gap: 8px; border-color: #e2e8f0; background: #f8fafc;
}
.check-traceabilite__tag {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #e0f2fe; color: #0369a1;
}
.check-traceabilite-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.check-traceabilite-panel h3 { margin: 0 0 6px; font-size: 14px; }
.check-traceabilite-table-wrap { max-height: 220px; overflow: auto; margin-top: 10px; }
.check-traceabilite-table { font-size: 12px; }
.check-traceabilite-table th, .check-traceabilite-table td { padding: 8px 10px; }

/* ── Photo anomalie ── */
.check-anomalie-photo {
  margin-top: 10px; padding: 14px; border-radius: 12px;
  border: 1px dashed #fbbf24; background: linear-gradient(180deg, #fffbeb, #fff);
}
.check-anomalie-photo__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.check-anomalie-photo__icon { font-size: 22px; line-height: 1; }
.check-anomalie-photo__head strong { display: block; font-size: 14px; color: #92400e; }
.check-anomalie-photo__head p { margin: 4px 0 0; font-size: 12px; color: #b45309; }
.check-anomalie-photo__dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 20px; border: 2px dashed #fcd34d; border-radius: 12px; background: #fff;
  cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s;
}
.check-anomalie-photo__dropzone:hover { border-color: #f59e0b; background: #fffef5; }
.check-anomalie-photo__dropzone-icon {
  width: 36px; height: 36px; border-radius: 50%; background: #fef3c7; color: #b45309;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 300;
}
.check-anomalie-photo__dropzone small { color: #94a3b8; font-size: 11px; }
.check-anomalie-photo__preview img {
  width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 10px;
  border: 1px solid #fde68a;
}

.check-photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.check-photo-gallery__item { margin: 0; }
.check-photo-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid #e5e7eb; }
.check-photo-gallery__item figcaption { font-size: 12px; color: #64748b; margin-top: 8px; font-weight: 500; }

.check-modal { max-width: 640px; width: 100%; }
.btn-block { width: 100%; }

/* ── Page ambulancier ── */
.amb-check { max-width: 680px; margin: 0 auto; padding-bottom: 32px; }
.amb-check__hero {
  margin-bottom: 20px; padding: 20px 22px; border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
}
.amb-check__hero-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.amb-check__eyebrow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin-bottom: 6px; }
.amb-check__hero h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: #fff; }
.amb-check__meta { margin: 0; color: #94a3b8; font-size: 14px; }
.amb-check__progress-ring {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.amb-check__progress-ring strong { font-size: 18px; line-height: 1; color: #4ade80; }
.amb-check__progress-ring small { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.amb-check__form { display: flex; flex-direction: column; gap: 16px; }
.amb-check__footer {
  position: sticky; bottom: 12px; z-index: 5; padding-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(248,250,252,0.95) 30%);
}
.amb-check__submit { width: 100%; padding: 16px 20px; font-size: 16px; font-weight: 700; border-radius: 14px; box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25); }

.amb-check-banner { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.amb-check-banner__item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 14px; background: #fff7ed; border: 1px solid #fdba74;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.08);
}
.amb-check-banner__item--required { border-color: #f87171; background: #fef2f2; }
.amb-check-banner__item--ok { background: #f0fdf4; border-color: #86efac; color: #166534; font-size: 13px; }
.amb-check-banner--done { margin-bottom: 16px; }
.amb-check-list { display: flex; flex-direction: column; gap: 12px; }
.amb-check-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; background: #fff; border: 1px solid #e8ecf1; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.amb-check-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.amb-check-card--done { opacity: 0.88; }
.amb-check-card__last { font-size: 12px; color: #64748b; margin: 6px 0 0; }

@media (max-width: 900px) {
  .check-editor__layout { grid-template-columns: 1fr; }
  .check-editor__aside { position: static; }
  .check-stats { grid-template-columns: repeat(2, 1fr); }
  .check-grid-2 { grid-template-columns: 1fr; }
  .check-yn-group { grid-template-columns: 1fr; }
  .check-q-card__grid { grid-template-columns: 1fr 1fr; }
  .amb-check__hero-main { flex-direction: column; }
}

/* ── Gestion véhicules ── */
.vehicules-page {
  height: 100vh;
  max-width: none;
  padding: 14px 18px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}

.vehicules-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.vehicules-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.vehicules-back {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
}
.vehicules-back:hover {
  color: #1e3a5f;
}
.vehicules-schema-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.vehicules-schema-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border: 1.5px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.vehicules-schema-mode:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #fff;
}
.vehicules-schema-mode.is-active {
  border-color: #1e3a5f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.vehicules-schema-mode strong {
  font-size: 15px;
  color: #0f172a;
}
.vehicules-schema-mode span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}
.vehicules-schema-assoc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.vehicules-schema-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.vehicules-schema-row.has-schema {
  border-color: #93c5fd;
  background: #f8fbff;
}
.vehicules-schema-row__thumb {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  background: #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #64748b;
}
.vehicules-schema-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicules-schema-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vehicules-schema-row__main strong {
  font-size: 14px;
}
.vehicules-schema-row__main span {
  font-size: 12px;
  color: #64748b;
}
.vehicules-schema-row__main em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}
.vehicules-schema-row__main em.is-custom {
  color: #1d4ed8;
}
.vehicules-schema-row__main em.is-basic {
  color: #64748b;
}
.vehicules-schema-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: flex-start;
}
.vehicules-schema-row__actions .is-disabled {
  opacity: 0.6;
  pointer-events: none;
}
.vehicules-schema-picker {
  position: relative;
}
.vehicules-schema-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 260px;
  max-width: min(320px, 90vw);
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vehicules-schema-picker__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  color: inherit;
}
.vehicules-schema-picker__option:hover {
  background: #f1f5f9;
}
.vehicules-schema-picker__option.is-selected {
  background: #e0f2fe;
}
.vehicules-schema-picker__option strong {
  font-size: 13px;
}
.vehicules-schema-picker__option span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.vehicules-schema-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.vehicules-schema-catalog__item {
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
button.vehicules-schema-catalog__item:hover {
  border-color: #94a3b8;
  background: #fff;
}
.vehicules-schema-catalog__item.is-selected {
  border-color: #1e3a5f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.vehicules-schema-catalog__item.is-muted {
  cursor: default;
  opacity: 0.85;
}
.vehicules-schema-catalog__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicules-schema-catalog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.vehicules-schema-catalog__thumb.is-empty {
  background: #eef2f7;
  color: #94a3b8;
  font-size: 28px;
  font-weight: 300;
}
.vehicules-schema-catalog__item strong {
  font-size: 14px;
}
.vehicules-schema-catalog__item span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.vehicules-schema-catalog-preview {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.vehicules-schema-catalog-preview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.vehicules-schema-catalog-preview__head h3 {
  margin: 0;
  font-size: 16px;
}
.vehicules-reglages {
  overflow: auto;
}
@media (max-width: 720px) {
  .vehicules-schema-row {
    flex-wrap: wrap;
  }
  .vehicules-schema-row__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.vehicules-toolbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.vehicules-toolbar__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.vehicules-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.vehicules-pill strong { color: #0f172a; font-weight: 800; }
.vehicules-pill--warn { border-color: #fde68a; background: #fffbeb; }
.vehicules-pill--warn strong { color: #b45309; }

.vehicules-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vehicules-board--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicules-loading { margin: 0; color: #64748b; font-size: 13px; }

.vehicules-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.vehicules-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
}
.vehicules-col__head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}
.vehicules-col__count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.vehicules-col__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vehicules-col__empty {
  margin: 0;
  padding: 20px 10px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.vehicule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.vehicule-row:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.vehicule-row__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #94a3b8;
}
.vehicule-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicule-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vehicule-row__name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vehicule-row__plate {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.vehicule-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}
.vehicule-row__off { color: #dc2626; font-weight: 700; }
.vehicule-row__warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
}

@media (max-width: 900px) {
  .vehicules-board { grid-template-columns: 1fr; }
  .vehicules-page { height: auto; overflow: visible; }
}

.vehicule-detail__hero { margin-bottom: 20px; }
.vehicule-detail__hero-main { display: flex; gap: 24px; align-items: flex-start; margin-top: 12px; }
.vehicule-detail__photo-wrap { position: relative; flex-shrink: 0; }
.vehicule-detail__photo {
  width: 200px; height: 140px; object-fit: cover; border-radius: 14px; border: 1px solid #e5e7eb;
}
.vehicule-detail__photo--empty {
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  background: #f8fafc;
}
.vehicule-detail__photo-btn {
  display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: #2563eb; cursor: pointer; text-align: center;
}

.vehicule-tabs {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.vehicule-tabs__btn {
  padding: 10px 16px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.vehicule-tabs__btn--active { background: #0f172a; color: #fff; border-color: #0f172a; }

.vehicule-panel-stack { display: flex; flex-direction: column; gap: 16px; }
.vehicule-anomalie-list, .vehicule-historique-list { display: flex; flex-direction: column; gap: 12px; }
.vehicule-anomalie, .vehicule-historique {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; background: #fff;
}
.vehicule-anomalie--resolved { opacity: 0.75; }
.vehicule-anomalie__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vehicule-anomalie__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vehicule-anomalie__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.vehicule-historique__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer; text-align: left; padding: 0;
}
.vehicule-historique__meta { display: block; font-size: 12px; color: #64748b; margin-top: 4px; }
.vehicule-historique__body { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }

.vehicule-gallery, .vehicule-pieces {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0;
}
.vehicule-gallery img, .vehicule-pieces img {
  width: 100px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb;
}
.vehicule-piece__doc {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-radius: 8px; background: #f8fafc; border: 1px solid #e5e7eb; font-size: 13px;
  text-decoration: none; color: #334155;
}

.check-q-card__field--wide { grid-column: 1 / -1; }

/* ── Stock / Inventaire catalogue ── */
.stock-page { max-width: 1200px; padding: 20px 24px; margin: 0 auto; }
.stock-toolbar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.stock-toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stock-toolbar h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.stock-board {
  display: grid; gap: 14px;
}
.stock-col {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
}
.stock-col__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #eef2f6;
}
.stock-col__head h2 { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; color: #475569; }
.stock-col__count { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; }
.stock-col__list { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.stock-col__empty { margin: 0; padding: 16px; text-align: center; color: #94a3b8; font-size: 12px; }
.stock-row {
  display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border: 1px solid #eef2f6; border-radius: 10px; text-decoration: none; color: inherit;
  background: #fafbfc; transition: border-color 0.12s, box-shadow 0.12s;
}
.stock-row:hover { border-color: #cbd5e1; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,0.06); }
.stock-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stock-row__main strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-row__sub { font-size: 11px; color: #64748b; }
.stock-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 10px; color: #94a3b8; font-weight: 600; }
.stock-detail__hero { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0 16px; flex-wrap: wrap; }
.stock-detail__hero h1 { margin: 0; font-size: 22px; font-weight: 800; }
.stock-detail__stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-size: 12px; color: #64748b;
}
.stock-pill strong { color: #0f172a; }
.stock-pill--warn { border-color: #fde68a; background: #fffbeb; }
.stock-pill--warn strong { color: #b45309; }
.stock-alertes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stock-alert {
  font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  background: #fef3c7; color: #b45309;
}
.stock-alert--stock_bas { background: #fee2e2; color: #b91c1c; }
.stock-alert--perime { background: #fecaca; color: #991b1b; }
.stock-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.stock-tabs--wrap { row-gap: 10px; }
.stock-tabs__btn {
  padding: 9px 14px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff;
  font-weight: 600; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.stock-tabs__btn--active { background: #0f172a; color: #fff; border-color: #0f172a; }
.stock-tabs__btn--active .stock-tabs__count { background: rgba(255,255,255,0.2); color: #fff; }
.stock-tabs__btn--add { border-style: dashed; color: #64748b; }
.stock-tabs__btn--meta { font-size: 12px; }
.stock-tabs__count {
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px;
  background: #e2e8f0; color: #475569; line-height: 1;
}
.stock-tabs__sep {
  width: 1px; height: 24px; background: #e2e8f0; margin: 0 4px; flex-shrink: 0;
}
.stock-panel-stack { display: flex; flex-direction: column; gap: 14px; }
.stock-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.stock-panel-head h3 { margin: 0; }
.stock-form-panel { border: 1px dashed var(--border, #d8dee8); background: var(--surface-muted, #f8fafc); }
.stock-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.stock-article-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.stock-article-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.stock-article-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.stock-article-card__media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}
.stock-article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stock-article-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
}
.stock-article-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.stock-article-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
}
.stock-article-card__name {
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stock-article-card__sku {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-article-card__sku--empty { color: #94a3b8; font-style: italic; }
.stock-article-card__meta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
}
.stock-article-card__qty {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.stock-article-card__qty--warn { color: #dc2626; }
.stock-article-card__seuil { font-size: 10px; color: #94a3b8; font-weight: 600; }
.stock-article-card__qr {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.stock-article-card__qr:hover { background: #fff; color: #0f172a; }
.stock-product-page { max-width: 960px; }

/* Fiche article — layout horizontal type GestFit */
.stock-product-sheet {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px 32px;
  align-items: center;
  padding: 24px 28px;
  margin: 12px 0 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.stock-product-sheet__photo-wrap { flex-shrink: 0; }
.stock-product-sheet__photo {
  display: block;
  width: 140px;
  height: 140px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
}
.stock-product-sheet__photo:disabled { cursor: default; }
.stock-product-sheet__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stock-product-sheet__photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #64748b;
}
.stock-product-sheet__main { min-width: 0; }
.stock-product-sheet__main h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.stock-product-sheet__supplier {
  margin: 0 0 8px;
  font-size: 15px;
  color: #475569;
}
.stock-product-sheet__supplier strong { color: #0f172a; font-weight: 600; }
.stock-product-sheet__stock {
  margin: 0 0 6px;
  font-size: 14px;
  color: #334155;
}
.stock-product-sheet__stock--warn { color: #dc2626; }
.stock-product-sheet__seuil { color: #94a3b8; }
.stock-product-sheet__badge-warn {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
}
.stock-product-sheet__meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.stock-product-sheet__meta strong { color: #0f172a; }
.stock-product-expiry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
}
.stock-product-expiry strong { color: #0f172a; }
.stock-product-expiry--ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.stock-product-expiry--warn { background: #fffbeb; border: 1px solid #fde68a; }
.stock-product-expiry--bad { background: #fef2f2; border: 1px solid #fecaca; }
.stock-product-sheet__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.stock-product-sheet__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stock-product-sheet__qr span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.stock-product-sheet__qr-placeholder {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 8px;
  color: #94a3b8;
}
.stock-qr-svg--sheet svg { width: 100px; height: 100px; display: block; }
.stock-product-sheet__qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}
.stock-product-sheet__qr-actions .btn { min-width: 0; padding: 4px 10px; font-size: 11px; }
.stock-product-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px;
}
.stock-product-sheet__actions .btn { width: 100%; justify-content: center; }

.stock-product-move {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.stock-product-move h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.stock-product-move__hint {
  margin: 0 0 16px;
  font-size: 13px;
}
.stock-product-move__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stock-product-section {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.stock-product-section h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}
.stock-product-dl__full { grid-column: 1 / -1; }
.stock-product-mvt__table { font-size: 13px; }
.stock-mvt-qty--in { color: #15803d; font-weight: 700; }
.stock-mvt-qty--out { color: #dc2626; font-weight: 700; }
.stock-mvt-note {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-move-modal {
  padding: 20px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stock-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}
.stock-lot-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.stock-lot-pick--inline { max-width: 480px; }
.stock-lot-pick__option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}
.stock-lot-pick__option input { accent-color: var(--primary, #dc2626); }
.stock-lot-pick__new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-left: 24px;
}
.stock-lot-pick__new--solo {
  padding-left: 0;
  max-width: 420px;
}
@media (max-width: 640px) {
  .stock-lot-pick__new { grid-template-columns: 1fr; padding-left: 0; }
}

.stock-lots-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}
.stock-lots-section__empty { margin: 0; }
.stock-lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.stock-lot-card {
  position: relative;
  min-height: 148px;
  padding: 14px 16px 48px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stock-lot-card__num {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}
.stock-lot-card__zone {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.stock-lot-card__top {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-lot-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.stock-lot-card__badge--ok { background: #dcfce7; color: #15803d; }
.stock-lot-card__badge--warn { background: #fef3c7; color: #b45309; }
.stock-lot-card__badge--bad { background: #fee2e2; color: #dc2626; }
.stock-lot-card__exp {
  margin-top: auto;
  padding-top: 10px;
}
.stock-lot-card__exp small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.stock-lot-card__exp strong {
  font-size: 14px;
  color: #334155;
}
.stock-lot-card__qty {
  position: absolute;
  bottom: 14px;
  right: 16px;
  text-align: right;
}
.stock-lot-card__qty strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}
.stock-lot-card__qty span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.stock-article-form--edit {
  display: block;
  padding: 20px 28px 8px;
}
.stock-article-form--edit .stock-article-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

@media (max-width: 768px) {
  .stock-product-sheet {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .stock-product-sheet__photo-wrap { display: flex; justify-content: center; }
  .stock-product-sheet__aside {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stock-product-sheet__actions { flex-direction: row; width: auto; }
  .stock-article-form--edit .stock-article-form__fields { grid-template-columns: 1fr; }
}
.stock-inline-form { display: flex; gap: 8px; align-items: center; }
.stock-inline-form .mx-input { flex: 1; }
.stock-form-actions { grid-column: 1 / -1; }
.stock-qty--warn { color: #dc2626; font-weight: 700; }
.stock-zones-list { display: flex; flex-direction: column; gap: 8px; }
.stock-zone-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 1px solid #eef2f6; border-radius: 8px; background: #fafbfc;
}
.stock-mvt-note { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-modal { max-width: 480px; width: 100%; }
.stock-modal--wide { max-width: 560px; }
.stock-modal--article {
  max-width: 800px;
  max-height: 92vh;
  overflow: hidden;
}
.stock-modal--article .modal-header {
  padding: 22px 28px;
}
.stock-modal--article form {
  display: flex;
  flex-direction: column;
  max-height: calc(92vh - 72px);
}
.stock-modal--article .stock-article-form {
  padding: 28px 28px 12px;
  overflow-y: auto;
  flex: 1;
}
.stock-modal--article .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}
.mx-field--full { grid-column: 1 / -1; }
.stock-article-form {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px 40px;
  align-items: start;
}
.stock-modal--article .mx-field {
  gap: 7px;
}
.stock-modal--article .mx-label {
  margin-bottom: 1px;
}
.stock-article-form__photo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding-top: 4px;
}
.stock-article-form__photo-box {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}
.stock-article-form__photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stock-article-form__photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #64748b;
}
.stock-article-card__supplier {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-product-infos { margin-bottom: 0; }
.stock-product-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}
.stock-product-dl > div { min-width: 0; }
.stock-product-dl dt {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.stock-product-dl dd {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
  word-break: break-word;
}
.stock-article-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}
.stock-article-form__qr-note {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-size: 12px;
  color: #0369a1;
  line-height: 1.45;
}
.stock-product-qr { margin-bottom: 14px; }
.stock-product-qr__body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.stock-product-qr__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.stock-product-qr__token {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}
.stock-qr-svg svg { display: block; max-width: 200px; height: auto; }
@media (max-width: 640px) {
  .stock-article-form { grid-template-columns: 1fr; gap: 24px; }
  .stock-article-form__fields { grid-template-columns: 1fr; gap: 18px; }
  .stock-modal--article .stock-article-form { padding: 20px 20px 8px; }
  .stock-modal--article .modal-actions { padding: 16px 20px 20px; }
  .stock-product-dl { grid-template-columns: 1fr; }
}
.stock-detail__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stock-qty-input { max-width: 90px; }
.stock-reglages-form { max-width: 520px; }
.stock-reglages-page { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.stock-reglages-section { margin: 0; }
.stock-reglages-section h2 { margin: 0 0 8px; font-size: 16px; }
.stock-reglages-section__hint { margin: 0 0 16px; font-size: 13px; }
.stock-reglages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.stock-reglages-toggle .checkbox-label { margin-top: 6px; font-size: 14px; }
.stock-reglages-actions { display: flex; justify-content: flex-end; }
.stock-reglages-table .mx-select { min-width: 200px; }
.stock-reglages-current { margin: 8px 0 0; }
.stock-responsables-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 0;
}
.stock-responsables-picker--compact {
  max-height: 160px;
}
.stock-responsables-picker__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  cursor: pointer;
  font-size: 14px;
}
.stock-responsables-picker__item:hover { border-color: #cbd5e1; }
.stock-responsables-picker__item input { margin-top: 3px; accent-color: var(--primary, #dc2626); }
.stock-responsables-picker__item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stock-responsables-picker__item small { font-size: 11px; color: #64748b; }
.stock-responsables-picker__count { margin: 4px 0 0; font-size: 12px; }
.stock-reglages-emplacements { display: flex; flex-direction: column; gap: 16px; }
.stock-reglages-emplacement {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafbfc;
}
.stock-reglages-emplacement__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 10px;
}
.stock-reglages-emplacement__head strong { color: #0f172a; }
@media (max-width: 640px) {
  .stock-reglages-grid { grid-template-columns: 1fr; }
}
.stock-commande-form { margin-bottom: 20px; }

/* Catalogue boutique commandes */
.stock-catalog-shop { padding-bottom: 80px; }
.stock-catalog-shop__toolbar { margin-bottom: 20px; padding: 16px 20px; }
.stock-catalog-shop__filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.4fr) minmax(200px, 1.2fr);
  gap: 16px 20px;
  align-items: end;
}
.stock-catalog-shop__loading,
.stock-catalog-shop__empty { padding: 24px 0; text-align: center; }
.stock-catalog-shop__sections { display: flex; flex-direction: column; gap: 28px; }
.stock-catalog-shop__cat {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stock-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.stock-catalog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.stock-catalog-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.stock-catalog-card--in-cart {
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px #fecaca;
}
.stock-catalog-card__media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}
.stock-catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stock-catalog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #64748b;
}
.stock-catalog-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  text-transform: uppercase;
}
.stock-catalog-card__badge--cart {
  left: auto;
  right: 10px;
  background: #dc2626;
  color: #fff;
}
.stock-catalog-card__body {
  flex: 1;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stock-catalog-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stock-catalog-card__supplier {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-catalog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}
.stock-catalog-card__price {
  font-size: 14px;
  color: #0f172a;
}
.stock-catalog-card__stock {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.stock-catalog-card__stock--low { color: #dc2626; font-weight: 600; }
.stock-catalog-card__actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px 12px;
}
.stock-catalog-card__step {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.stock-catalog-card__step:first-child { border-radius: 10px 0 0 10px; }
.stock-catalog-card__step--add {
  border-radius: 0 10px 10px 0;
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.stock-catalog-card__step--add:hover { background: #b91c1c; }
.stock-catalog-card__step:disabled { opacity: 0.4; cursor: not-allowed; }
.stock-catalog-card__qty {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  -moz-appearance: textfield;
}
.stock-catalog-card__qty::-webkit-outer-spin-button,
.stock-catalog-card__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-catalog-cart-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}
.stock-catalog-cart-bar__info { font-size: 15px; }

.stock-commande-recap__body { padding: 0 24px 8px; }
.stock-commande-recap__meta {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 14px;
}
.stock-commande-recap__meta p { margin: 0 0 6px; }
.stock-commande-recap__meta p:last-child { margin-bottom: 0; }
.stock-commande-recap__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(50vh, 420px);
  overflow-y: auto;
}
.stock-commande-recap__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.stock-commande-recap__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #64748b;
}
.stock-commande-recap__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stock-commande-recap__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stock-commande-recap__info strong {
  font-size: 14px;
  color: #0f172a;
}
.stock-commande-recap__info .text-muted { font-size: 11px; }
.stock-commande-recap__line-price { font-size: 12px; color: #64748b; }
.stock-commande-recap__qty {
  text-align: right;
  white-space: nowrap;
}
.stock-commande-recap__qty strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  color: #0f172a;
}
.stock-commande-recap__qty span { font-size: 11px; color: #94a3b8; font-weight: 600; }
.stock-commande-recap__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}
.stock-commande-recap__total strong { font-size: 16px; color: #0f172a; }

@media (max-width: 768px) {
  .stock-catalog-shop__filters { grid-template-columns: 1fr; }
  .stock-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .stock-catalog-cart-bar { flex-direction: column; align-items: stretch; }
  .stock-catalog-cart-bar .btn { width: 100%; justify-content: center; }
}

.stock-commande-list { display: flex; flex-direction: column; gap: 12px; }
.stock-commande-card {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; background: #fafbfc;
}
.stock-commande-card header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.stock-commande-card ul { margin: 0; padding-left: 18px; font-size: 13px; }
.stock-commande-note { font-size: 12px; color: #64748b; margin: 8px 0 0; }
.stock-commande-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stock-commande-statut {
  margin-left: 8px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: #e2e8f0; color: #475569; text-transform: uppercase;
}
.stock-commande-statut--en_attente { background: #fef3c7; color: #b45309; }
.stock-commande-statut--livree { background: #dcfce7; color: #166534; }
.stock-commande-statut--annulee { background: #fee2e2; color: #b91c1c; }
.stock-inventaire-zones { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stock-zone-done { border-color: #86efac !important; }
.stock-inventaire-zone-title { font-size: 16px; margin: 0 0 12px; }
.stock-inventaire-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.stock-inventaire-lot {
  display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px;
}
.stock-quick-page { max-width: 640px; }
.stock-quick-hero h1 { margin: 8px 0 4px; }
.stock-quick-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stock-quick-move-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stock-qr-panel { text-align: center; }
.stock-qr-svg svg { max-width: 220px; height: auto; }

.stock-scan-page { max-width: 480px; }
.stock-scan-page__header { margin: 12px 0 20px; }
.stock-scan-page__header h1 { margin: 0 0 8px; font-size: 22px; }
.stock-scan-page__camera {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 1;
  max-width: 100%;
}
.stock-scan-page__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stock-scan-page__tip { font-size: 13px; margin-top: 16px; text-align: center; }

.stock-inventaire-modal__body { padding: 0 24px 8px; }
.stock-inventaire-modal__article {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.stock-inventaire-modal__photo {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
}
.stock-inventaire-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.stock-inventaire-modal__article h3 { margin: 0 0 4px; font-size: 18px; }
.stock-inventaire-modal__hint { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.stock-inventaire-modal__lots { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.stock-inventaire-modal__lot {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafbfc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.stock-inventaire-modal__lot-info {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}
.stock-inventaire-modal__lot-info strong { color: #0f172a; }
.stock-inventaire-modal__lot-info span { color: #64748b; }

.vehicule-stock-panel__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.vehicule-stock-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vehicule-stock-panel__empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.stock-appro-ligne {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}
.stock-appro-ligne:last-child { border-bottom: none; }
.stock-appro-ligne h3 { margin: 0 0 4px; font-size: 15px; }
.stock-appro-ligne__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .stock-inventaire-modal__lot { grid-template-columns: 1fr; }
  .stock-appro-ligne__fields { grid-template-columns: 1fr; }
}

@media (max-width: 900px) { .stock-board { grid-template-columns: 1fr; } }

.vehicule-modal { max-width: 560px; width: 100%; }

.vehicule-schema {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vehicule-schema__vues {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: 3px;
  background: #e8eef5;
  border-radius: 10px;
  overflow-x: auto;
}
.vehicule-schema__vue-btn {
  flex: 1 1 0;
  min-width: 56px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.vehicule-schema__vue-btn:hover {
  color: #1e3a5f;
  background: rgba(255, 255, 255, 0.55);
}
.vehicule-schema__vue-btn.is-active {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.vehicule-schema__canvas {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 11 / 7;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
  border: 1px solid #c5d0de;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.vehicule-schema__canvas.is-portrait {
  aspect-ratio: 3 / 4;
  max-width: 320px;
}
.vehicule-schema__canvas.is-editable {
  cursor: crosshair;
}
.vehicule-schema__canvas-label {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  pointer-events: none;
}
.vehicule-schema__fond {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  padding: 28px 16px 12px;
  box-sizing: border-box;
  background: #fff;
}
.vehicule-schema__bubble {
  --bubble-color: #ca8a04;
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -30px 0 0 -15px;
  border: none;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--bubble-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.vehicule-schema__bubble.is-active {
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.45), 0 2px 10px rgba(15, 23, 42, 0.35);
  z-index: 3;
}
.vehicule-schema__bubble.is-draft {
  outline: 2px dashed rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
}
.vehicule-schema__bubble::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.vehicule-schema__bubble-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.vehicule-schema__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 480px;
  margin: 0 auto;
}
.vehicule-schema__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.vehicule-schema__legend-item i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.vehicule-schema__hint {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.vehicule-schema__form,
.vehicule-schema__inspect {
  padding: 14px 16px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.vehicule-schema__form h4,
.vehicule-schema__inspect h4 {
  margin: 0;
  font-size: 15px;
}
.vehicule-schema__inspect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.vehicule-schema__inspect-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.vehicule-schema__inspect-tab {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vehicule-schema__inspect-tab.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.vehicule-schema__inspect-meta {
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}
.vehicule-schema__inspect-meta > div {
  display: grid;
  gap: 2px;
}
.vehicule-schema__inspect-meta dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.vehicule-schema__inspect-meta dd {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.4;
}
.vehicule-schema__inspect-desc dd {
  white-space: pre-wrap;
}
.vehicule-schema__gravite-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.vehicule-schema__form-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.4;
}
.vehicule-schema__photo-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vehicule-schema__photo-field input[type='file'] {
  font-size: 13px;
}
.vehicule-schema__photo-preview,
.vehicule-schema__photos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.vehicule-schema__photo-preview img,
.vehicule-schema__photos img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.vehicule-schema__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.vehicule-degats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vehicule-degats-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.vehicule-degats-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.vehicule-degats-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ─── Inbox dégâts admin ─────────────────────────────────────── */
.check-page.degats-inbox {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px 24px 32px;
  box-sizing: border-box;
}

.degats-inbox__toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.degats-inbox__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.degats-inbox__count {
  --count-color: #64748b;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--count-color);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.degats-inbox__count strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.degats-inbox__count span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.degats-inbox__count.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.degats-inbox__filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
}

.degats-inbox__filters .mx-input,
.degats-inbox__filters .mx-select {
  min-width: 0;
  width: 100%;
}

.degats-inbox__empty {
  padding: 32px 16px;
  text-align: center;
}

.degats-inbox__layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.degats-inbox__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.degats-inbox__group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.degats-inbox__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: #0f172a;
}

.degats-inbox__group-head:hover {
  background: #f1f5f9;
}

.degats-inbox__group-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.degats-inbox__group-chevron {
  color: #64748b;
  width: 14px;
  flex-shrink: 0;
}

.degats-inbox__group-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.degats-inbox__group-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e2e8f0;
}

.degats-inbox__card {
  --gravite-color: #ca8a04;
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding: 12px 12px 12px 10px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-left: 4px solid var(--gravite-color);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  box-sizing: border-box;
}

.degats-inbox__card:last-child {
  border-bottom: none;
}

.degats-inbox__card:hover {
  background: #f8fafc;
}

.degats-inbox__card.is-active {
  background: #eff6ff;
}

.degats-inbox__card-main {
  flex: 1;
  min-width: 0;
}

.degats-inbox__card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.degats-inbox__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.degats-inbox__card-sub {
  font-size: 12px;
  line-height: 1.35;
}

.degats-inbox__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  align-self: center;
  background: #f1f5f9;
}

.degats-inbox__pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.degats-inbox__statut {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.degats-inbox__statut--ouverte {
  background: #fee2e2;
  color: #b91c1c;
}

.degats-inbox__statut--en_cours {
  background: #ffedd5;
  color: #c2410c;
}

.degats-inbox__statut--resolue {
  background: #dcfce7;
  color: #15803d;
}

.degats-inbox__detail {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 18px 18px 20px;
  min-height: 320px;
  min-width: 0;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.degats-inbox__back {
  display: none;
}

.degats-inbox__detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.degats-inbox__detail-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.degats-inbox__detail-head a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.degats-inbox__detail-head a:hover {
  text-decoration: underline;
}

.degats-inbox__detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.degats-inbox__meta {
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.degats-inbox__meta > div {
  display: grid;
  gap: 2px;
}

.degats-inbox__meta dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.degats-inbox__meta dd {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
}

.degats-inbox__desc {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
}

.degats-inbox__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.degats-inbox__photos a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.degats-inbox__photos img {
  display: block;
  width: 140px;
  height: 105px;
  object-fit: cover;
  background: #f1f5f9;
}

.degats-inbox__schema {
  margin-bottom: 16px;
  min-width: 0;
}

.degats-inbox__schema .vehicule-schema__vues,
.degats-inbox__schema .vehicule-schema__canvas,
.degats-inbox__schema .vehicule-schema__legend {
  max-width: 100%;
}

.degats-inbox__schema h3,
.degats-inbox__actions h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.degats-inbox__actions {
  padding: 14px 16px;
}

.degats-inbox__actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.degats-inbox__actions-row .form-group {
  margin: 0;
  min-width: 0;
}

.degats-inbox__actions-row .form-group select,
.degats-inbox__actions-row .mx-select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.degats-inbox__actions-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 900px) {
  .check-page.degats-inbox {
    padding: 14px 14px 28px;
  }

  .degats-inbox__filters {
    grid-template-columns: 1fr;
  }

  .degats-inbox__layout {
    grid-template-columns: 1fr;
  }

  .degats-inbox__detail {
    display: none;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .degats-inbox__layout.show-detail .degats-inbox__list {
    display: none;
  }

  .degats-inbox__layout.show-detail .degats-inbox__detail {
    display: block;
  }

  .degats-inbox__back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .degats-inbox__actions-row {
    grid-template-columns: 1fr;
  }
}

.sidebar-logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sidebar-logo-client {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.pointage-page .page-header p {
  margin: 6px 0 0;
  color: #64748b;
}

.pointage-now,
.pointage-solde,
.pointage-page .card {
  padding: 20px;
}

.pointage-page .card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.pointage-now__times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.pointage-now__times span {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.pointage-now__times strong {
  font-size: 22px;
}

.pointage-now__actions,
.pointage-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pointage-flags {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #1a1a2e;
}

.pointage-solde {
  display: flex;
  gap: 24px;
}

.pointage-solde p { margin: 0; }

.pointage-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.pointage-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.pointage-form input,
.pointage-form select,
.pointage-page input[type="date"] {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.pointage-form__wide { grid-column: 1 / -1; }
.pointage-check { flex-direction: row !important; align-items: center; }

.pointage-table {
  width: 100%;
  border-collapse: collapse;
}

.pointage-table th,
.pointage-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #1a1a2e;
}

.pointage-ok {
  color: #047857;
  font-weight: 600;
}

.pointage-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 800px) {
  .pointage-now__times,
  .pointage-form {
    grid-template-columns: 1fr;
  }
}

.pointage-cal {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.pointage-cal__sheet,
.pointage-cal__detail {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pointage-cal__sheet {
  padding: 8px 8px 14px;
}

.pointage-cal__compteur {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 6px 12px;
  border-radius: 12px;
  background: #1a1a2e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pointage-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pointage-cal__head h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-align: center;
}

.pointage-cal__nav {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #f8fafc;
  color: #1a1a2e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pointage-cal__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 0 6px 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.pointage-cal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pointage-cal__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.pointage-cal__dot--travail { background: #2563eb; }
.pointage-cal__dot--conge { background: #059669; }
.pointage-cal__dot--absence { background: #ea580c; }
.pointage-cal__dot--rdv { background: #7c3aed; }
.pointage-cal__dot--ferie { background: #0891b2; }
.pointage-cal__dot--pending { background: #94a3b8; }

.pointage-cal__weekdays,
.pointage-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pointage-cal__weekdays {
  margin-bottom: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.pointage-cal__day {
  min-height: 52px;
  border: none;
  background: transparent;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 2px 0 4px;
  cursor: pointer;
}

.pointage-cal__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}

.pointage-cal__day.is-weekend .pointage-cal__num { color: #94a3b8; }
.pointage-cal__day.is-out { opacity: 0.38; }
.pointage-cal__day.is-conge .pointage-cal__num { background: #d1fae5; color: #047857; }
.pointage-cal__day.is-absence .pointage-cal__num { background: #ffedd5; color: #c2410c; }
.pointage-cal__day.is-ferie .pointage-cal__num { background: #cffafe; color: #0e7490; }
.pointage-cal__day.is-today .pointage-cal__num { box-shadow: inset 0 0 0 2px #dc2626; color: #dc2626; }
.pointage-cal__day.is-selected .pointage-cal__num { background: #1a1a2e; color: #fff; box-shadow: none; }
.pointage-cal__day.is-today.is-selected .pointage-cal__num { background: #dc2626; color: #fff; }
.pointage-cal__day.is-selected.is-conge .pointage-cal__num { background: #059669; color: #fff; }
.pointage-cal__day.is-selected.is-absence .pointage-cal__num { background: #ea580c; color: #fff; }

.pointage-cal__marks {
  display: flex;
  gap: 3px;
  min-height: 7px;
  align-items: center;
}

.pointage-cal__detail {
  margin-top: 12px;
  padding: 16px;
}

.pointage-cal__detail h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.pointage-cal__events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pointage-cal__event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: inset 4px 0 0 #cbd5e1;
}

.pointage-cal__event strong {
  font-size: 14px;
  font-weight: 700;
}

.pointage-cal__event span {
  color: #475569;
  font-size: 13px;
}

.pointage-cal__event--travail { box-shadow: inset 4px 0 0 #2563eb; background: #eff6ff; }
.pointage-cal__event--pointe { box-shadow: inset 4px 0 0 #1a1a2e; }
.pointage-cal__event--conge { box-shadow: inset 4px 0 0 #059669; background: #ecfdf5; }
.pointage-cal__event--absence { box-shadow: inset 4px 0 0 #ea580c; background: #fff7ed; }
.pointage-cal__event--ferie { box-shadow: inset 4px 0 0 #0891b2; background: #ecfeff; }
.pointage-cal__event--pending { box-shadow: inset 4px 0 0 #94a3b8; }
.pointage-cal__event--rdv { box-shadow: inset 4px 0 0 #7c3aed; background: #f5f3ff; }
.pointage-cal__event--sup { box-shadow: inset 4px 0 0 #b45309; background: #fffbeb; }

.pointage-cal__sup {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.pointage-cal__sup > p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.pointage-cal__sup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pointage-cal__sup label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.pointage-cal__sup input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1a1a2e;
  font-size: 16px;
  background: #fff;
}

.pointage-cal__sup .btn {
  margin-top: 10px;
}

.pointage-cal__sup-status {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.pointage-cal__sup-status--error { color: #b91c1c; }

.pointage-sup-modal { width: min(440px, calc(100vw - 32px)); }
.pointage-sup-modal .modal-body label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.pointage-sup-modal textarea,
.pointage-sup-modal input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
}
.pointage-sup-modal .modal-footer {
  margin: 4px -20px -20px;
  padding: 12px 20px;
}

.pointage-cal__empty {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.pointage-cal__detail .btn {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 12px;
  font-size: 15px;
}

@media (min-width: 960px) {
  .pointage-cal {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
  }

  .pointage-cal__sheet {
    padding: 22px 24px 28px;
  }

  .pointage-cal__head h1 {
    font-size: 32px;
  }

  .pointage-cal__nav {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .pointage-cal__legend {
    font-size: 13px;
    gap: 8px 18px;
    margin-bottom: 18px;
  }

  .pointage-cal__dot {
    width: 9px;
    height: 9px;
  }

  .pointage-cal__weekdays {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .pointage-cal__day {
    min-height: 104px;
    gap: 8px;
    padding-top: 10px;
  }

  .pointage-cal__num {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .pointage-cal__detail {
    margin-top: 0;
    position: sticky;
    top: 16px;
  }

  .pointage-cal__compteur {
    width: fit-content;
    margin: 0 0 16px auto;
    padding: 0 18px;
  }
}

.pointage-compteur {
  max-width: 980px;
}

.pointage-compteur__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pointage-compteur__head h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  text-align: center;
}

.pointage-compteur__head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.pointage-compteur__head button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #1a1a2e;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pointage-compteur__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pointage-compteur__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pointage-compteur__card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.pointage-compteur__card strong {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.pointage-compteur__card small {
  color: #64748b;
  font-size: 12px;
}

.pointage-compteur__card--conges strong { color: #059669; }
.pointage-compteur__card--recup strong { color: #2563eb; }
.pointage-compteur__card--attente strong { color: #ea580c; }
.pointage-compteur__card--validees strong { color: #1a1a2e; }
.pointage-compteur__card--maladie strong { color: #ea580c; }
.pointage-compteur__card--absence strong { color: #7c3aed; }

.pointage-compteur__list {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pointage-compteur__list h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.pointage-compteur__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.pointage-compteur__row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pointage-compteur__row strong {
  font-size: 15px;
}

.pointage-compteur__row span,
.pointage-compteur__empty {
  color: #64748b;
  font-size: 13px;
}

.pointage-compteur__row b {
  flex-shrink: 0;
  font-size: 14px;
  text-align: right;
}

@media (min-width: 800px) {
  .pointage-compteur__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
