/* TransLink — feuille de style de l'application (source unique, modifiée à la main ; la charte d'origine reste dans
   maquettes\assets\translink.css à titre de référence). Variables en tête, composants, puis règles par page. */

/* =====================================================================
   TransLink — charte graphique des maquettes
   Palette : navy profond (structure), bleu électrique (action),
   cyan (identité "Link"), ambre / vert / rouge (statuts).
   ===================================================================== */
:root {
  --navy-900: #0b1d33;
  --navy-800: #10294a;
  --navy-700: #163761;
  --navy-600: #1f4b82;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-100: #cffafe;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-800: #166534;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --red-800: #991b1b;
  --purple-600: #7c3aed;
  --purple-100: #ede9fe;
  --purple-800: #5b21b6;
  /* Nuances intermédiaires (bordures d'alerte, pastilles) : évitent les couleurs codées en dur dans les pages */
  --red-200: #fecaca;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --blue-200: #bfdbfe;
  --blue-800: #1e40af;
  --green-200: #bbf7d0;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --bg: #eef2f7;
  --card: #ffffff;
  --text: var(--gray-800);
  --muted: var(--gray-500);
  --line: var(--gray-200);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --sidebar-w: 236px;
  --topbar-h: 60px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Consolas", "Cascadia Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--navy-800); }
h1 { font-size: 22px; letter-spacing: -.2px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }

/* ---------- Coque : barre latérale + barre du haut ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column;
}
/* Barre de défilement du menu : fine, piste invisible, pouce cyan (le bleu du point de la société et du logo) qui s'affirme au survol */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, .62); border-radius: 99px; }
.sidebar:hover::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, .72); }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, .85); }
@supports not selector(::-webkit-scrollbar) {
  .sidebar { scrollbar-width: thin; scrollbar-color: rgba(34, 211, 238, .65) transparent; }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(34,211,238,.35);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand .word { font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1; }
.brand .word b { color: var(--cyan-400); font-weight: 800; }
.brand .sub { font-size: 10.5px; color: rgba(255,255,255,.55); letter-spacing: 1.4px; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
/* Titres de section du menu (Aujourd'hui, Quai Brignais, Expéditions…) : lisibles avant les entrées, pas après
   (David, 1er nov. 2026) — presque blancs, gras, précédés d'un trait cyan, séparés par un filet discret ; les entrées restent plus douces. */
.nav .section {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 14px 10px 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav .section:first-child { margin-top: 0; padding-top: 4px; border-top: 0; }
.nav .section::before { content: ""; width: 3px; height: 12px; border-radius: 99px; background: var(--cyan-400); box-shadow: 0 0 10px rgba(34,211,238,.45); flex: none; }
.nav a {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); padding: 9px 10px;
  border-radius: 9px; font-weight: 500; text-decoration: none; transition: background .12s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(37,99,235,.35); color: #fff; box-shadow: inset 3px 0 0 var(--cyan-400); }
.nav a .count { margin-left: auto; background: rgba(255,255,255,.14); border-radius: 99px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.nav a .count.alert { background: var(--red-600); }
.sidebar .footer { margin-top: auto; padding: 14px 10px 4px; font-size: 11.5px; color: rgba(255,255,255,.45); }
.sidebar .entity {
  margin: 4px 0 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.sidebar .entity .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-400); flex: none; }
.sidebar .entity .name { font-weight: 600; font-size: 13px; }
.sidebar .entity .chev { margin-left: auto; opacity: .6; }

.main { min-width: 0; }
.topbar {
  height: var(--topbar-h); background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 5;
}
.topbar h1 { font-size: 18px; }
.topbar .crumb { color: var(--muted); font-size: 13px; }
/* Page consacrée à un fournisseur ou un transporteur : sa pastille devant le nom */
.topbar .topbar-title.has-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .topbar-title.has-logo .t-text { min-width: 0; }
.topbar .topbar-title .t-logo .logo-dot { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.topbar .search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--gray-100);
  border-radius: 9px; padding: 7px 12px; width: 300px; color: var(--muted); font-size: 13px;
}
.topbar .search svg { width: 16px; height: 16px; }
.topbar .user { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.content { padding: 22px 24px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .lead { color: var(--muted); margin-top: 3px; }

/* ---------- Cartes ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.kpi .value { font-size: 30px; font-weight: 800; color: var(--navy-800); line-height: 1.1; letter-spacing: -.5px; }
.kpi .delta { font-size: 12px; color: var(--muted); }
.kpi .delta.up { color: var(--green-600); } .kpi .delta.down { color: var(--red-600); }
.kpi .accent { position: absolute; right: -10px; top: -10px; width: 70px; height: 70px; border-radius: 50%; opacity: .12; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 9px; white-space: nowrap;
  transition: background .12s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn[disabled]:active, .btn:disabled:active { transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-ghost:hover { background: var(--gray-50); }
.btn-soft { background: var(--blue-100); color: #1e40af; }
.btn-danger { background: #fff; color: var(--red-600); border-color: #fecaca; }
.btn-danger:hover { background: var(--red-100); }
.btn-success { background: var(--green-600); color: #fff; }
.btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
/* Écran tactile (iPad, 8 nov. 2026) : boutons un peu plus hauts, faciles à toucher au doigt ; rien ne change à la souris */
@media (pointer: coarse) {
  .btn { min-height: 40px; }
  .btn-sm { min-height: 36px; padding: 7px 12px; }
}
/* Ligne cliquable (app.js) : un appui n'importe où ouvre la ligne ou son détail ; les boutons restent pour le PC */
tr.row-click, .row-click[data-row] { cursor: pointer; }
tr.row-click:active > td, .row-click[data-row]:active { background: var(--gray-100); }
tr.row-click:hover > td { background: var(--gray-50); }

/* ---------- Badges de statut ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; white-space: nowrap; line-height: 1.4;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.nodot::before { display: none; }
/* Pastille « ✦ IA » : le traitement a été fait par le connecteur IA (à côté du statut, même forme, violet) */
.badge.st-ai { background: var(--purple-100); color: var(--purple-800); padding: 3px 8px; }
.st-prevu      { background: var(--gray-100); color: var(--gray-600); }
.st-prepa      { background: var(--blue-100); color: #1e40af; }
.st-pret       { background: var(--teal-100); color: #0f766e; }
.st-present    { background: var(--amber-100); color: var(--amber-800); }
.st-parti      { background: var(--green-100); color: var(--green-800); }
.st-nonvenu    { background: var(--red-100); color: var(--red-800); }
.st-retard     { background: var(--red-100); color: var(--red-800); }
.st-annule     { background: var(--gray-100); color: var(--gray-500); text-decoration: line-through; }
.st-reporte    { background: var(--purple-100); color: #5b21b6; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--gray-100); color: var(--gray-600); }
.tag.blue { background: var(--blue-100); color: #1e40af; }
.tag.cyan { background: var(--cyan-100); color: #155e75; }
.tag.amber { background: var(--amber-100); color: var(--amber-800); }
.tag.green { background: var(--green-100); color: var(--green-800); }
.tag.red { background: var(--red-100); color: var(--red-800); }

/* ---------- Tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--gray-50); font-weight: 700;
}
.tbl th.right { text-align: right; } /* en-têtes des colonnes numériques alignés sur leurs valeurs */
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--gray-50); }
.tbl td.mono { font-family: var(--mono); font-weight: 600; letter-spacing: .5px; }
/* Cellule de boutons : jamais de nowrap (règle maison) — les boutons passent à la ligne, alignés à droite */
.tbl .actions { text-align: right; }
.tbl .actions .btn { margin: 2px 0 2px 4px; }
/* Pagination sous un tableau (Flux, Archives, Suivi, Journal) */
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
/* Tableau plus large que l'écran (portable étroit, iPad en paysage) : la carte défile horizontalement, jamais la page */
.card:has(> table.tbl), .card:has(> table.soc-tbl), .card:has(> table.car-tbl) { overflow-x: auto; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--gray-700); }
.input, select.input, textarea.input {
  font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: 9px;
  background: #fff; color: var(--text); width: 100%;
}
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.help { font-size: 12px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.switch .tog { width: 36px; height: 20px; border-radius: 99px; background: var(--gray-300); position: relative; }
.switch .tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch .tog.on { background: var(--blue-600); } .switch .tog.on::after { left: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--gray-300); font-size: 12.5px; background: #fff; cursor: pointer; }
.chip.on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- Carrier logo placeholder ---------- */
.logo-dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; flex: none; }
/* Pastille portant le logo de la fiche transporteur : fond blanc, logo entier, mêmes dimensions que la pastille de couleur */
.logo-dot.has-logo { background: #fff !important; border: 1px solid var(--line); overflow: hidden; padding: 2px; box-sizing: border-box; position: relative; }
/* --lz : zoom du logo réglé sur la fiche (1 = tient dans la pastille, 1.3 = agrandi et rogné).
   Image centrée en absolu, toujours carrée : (pastille − bordure − 2 × 2 px) × zoom, quelle que soit la taille de la pastille
   (avant : la hauteur suivait la grille et l'image se déformait dans une petite pastille, 7 nov. 2026) */
.logo-dot.has-logo img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc((100% - 4px) * var(--lz, 1)); height: calc((100% - 4px) * var(--lz, 1)); max-width: none; object-fit: contain; display: block; }
/* Transporteur nommé = logo + nom en gras, partout (helper transport_chip / carrier_chip) */
.cchip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-800); min-width: 0; vertical-align: middle; }
.cchip .logo-dot { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
.cchip.lg .logo-dot { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.c-chrono { background: #1f8acb; } .c-colis { background: #f1c40f; color: #1a1a1a; } .c-dpd { background: #dc0032; }
.c-gls { background: #061ab1; } .c-mgt { background: #0f766e; } .c-tnt { background: #ff6600; } .c-ups { background: #351c15; } .c-free { background: var(--gray-500); }

/* ---------- Timeline (planning jour) ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-200); }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gray-300); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--gray-200); }
.tl-item.done::before { background: var(--green-600); box-shadow: 0 0 0 2px var(--green-100); }
.tl-item.now::before { background: var(--amber-500); box-shadow: 0 0 0 4px var(--amber-100); }
.tl-item.late::before { background: var(--red-600); box-shadow: 0 0 0 2px var(--red-100); }
.tl-time { font-weight: 800; font-size: 15px; color: var(--navy-800); font-variant-numeric: tabular-nums; }

/* ---------- Bannières ---------- */
.alert { border-radius: 10px; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.alert.warn { background: var(--amber-100); color: var(--amber-800); border: 1px solid #fde68a; }
.alert.danger { background: var(--red-100); color: var(--red-800); border: 1px solid #fecaca; }
.alert.info { background: var(--blue-100); color: #1e40af; border: 1px solid #bfdbfe; }
.alert.ok { background: var(--green-100); color: var(--green-800); border: 1px solid #bbf7d0; }

/* ---------- Mini-éléments ---------- */
.avatar-sm { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-200); color: var(--gray-700); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }
.progress { height: 8px; background: var(--gray-200); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--blue-600); border-radius: 99px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kbd { font-family: var(--mono); font-size: 11.5px; background: var(--gray-100); border: 1px solid var(--gray-300); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .topbar .search { display: none; }
}


/* =====================================================================
   TransLink — compléments à la charte pour l'application
   ===================================================================== */
.brand { text-decoration: none; color: #fff; }
.brand.has-logo { padding: 6px 4px 14px; }
.brand .logo-img { width: 100%; max-width: 208px; height: auto; display: block; }
.auth-brand .logo-img { display: block; margin: 0 auto; }
.brand:hover { text-decoration: none; }
.sidebar .entity { user-select: none; }
/* Contexte « Toutes les entités » : pastille bicolore dans le sélecteur, badge d'entité sur chaque ligne des listes */
/* « Toutes les entités » : même point bleu que les sociétés (David, 1er nov. 2026 : le point bicolore « coupé en deux » était moche) */
.sidebar .entity .dot.all { background: var(--cyan-400); }
/* Avis d'arrivage annoncé : bleu vif, et « en retard » rouge, utilisés par Logistique › Arrivages */
.badge.st-announced { background: var(--blue-100); color: #1e40af; }
.badge.st-announced::before { background: var(--blue-600); opacity: 1; }
.badge.st-late { background: var(--red-100); color: var(--red-800); }
.badge.st-late::before { background: var(--red-600); opacity: 1; }
.tag.ent { background: var(--navy-800); color: #fff; font-weight: 800; font-size: 10.5px; letter-spacing: .6px; padding: 2px 7px; border-radius: 6px; vertical-align: middle; }
.tag.ent[data-e="ADN"] { background: #0f766e; }
.alert.entity-focus form button.chip { font: inherit; font-size: 12.5px; }
/* En-têtes et corps de carte : mêmes marges intérieures hors d'une .card (fenêtres .modal, panneaux, formulaires) */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px; }
.modal > .card-body:last-child, .card > .card-body:last-child { padding-bottom: 18px; }

/* Barre du haut : recherche et cloche comme sur la maquette */
.topbar form.search { border: none; }
.topbar .search input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 13px; color: var(--text); outline: none; }
.topbar .search input::placeholder { color: var(--muted); }
.topbar-bell { position: relative; }
.topbar-bell .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-600); }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 9px; }
.btn-icon svg { width: 18px; height: 18px; }
.entity-switch { position: relative; }
.entity-switch summary { list-style: none; }
.entity-switch summary::-webkit-details-marker { display: none; }
.entity-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--navy-700); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 6px; margin-top: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.entity-menu form { margin: 0; }
.entity-menu button { width: 100%; text-align: left; background: none; border: none; color: #fff; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.entity-menu button small { color: rgba(255,255,255,.55); }
.entity-menu button:hover, .entity-menu button.on { background: rgba(255,255,255,.12); }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .uname { font-weight: 600; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.15); min-width: 200px; padding: 6px; z-index: 30; }
.user-menu .menu a, .user-menu .menu button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 7px; border: none; background: none; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; text-decoration: none; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--gray-100); }
.user-menu .menu svg { width: 16px; height: 16px; color: var(--muted); }
.user-menu .menu form { margin: 0; }

.alert.flash { position: relative; margin-bottom: 16px; padding-right: 40px; transition: opacity .4s; }
.alert.flash.fade { opacity: 0; }
/* Messages flottants quand la page garde sa position après un enregistrement (app.js, 11 nov. 2026) */
.flash-dock { position: fixed; top: 76px; right: 24px; z-index: 1000; display: grid; gap: 8px; width: min(520px, calc(100vw - 48px)); pointer-events: none; }
.flash-dock .alert.flash { margin: 0; pointer-events: auto; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); }
@media (max-width: 700px) { .flash-dock { top: 64px; left: 16px; right: 16px; width: auto; } }
.alert .close { position: absolute; right: 8px; top: 6px; background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.alert .close:hover { opacity: 1; }

.field .err { color: var(--red-600); font-size: 12.5px; }
.input.is-invalid { border-color: var(--red-600); }
label.switch { cursor: pointer; padding: 9px 0; }
label.switch input { width: 18px; height: 18px; accent-color: var(--blue-600); }

.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: #c6ccd8; display: block; margin: 0 auto 10px; }
.log-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: baseline; }
.log-row:last-child { border-bottom: none; }
.log-row > span:first-child { flex: none; width: 76px; }

/* Pages d'authentification */
.auth-body { background: radial-gradient(1200px 600px at 20% -10%, #1f4b82 0%, var(--navy-900) 55%); min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-wrap { width: 100%; max-width: 460px; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 20px; }
.auth-brand .mark { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(34,211,238,.35); }
.auth-brand .mark svg { width: 24px; height: 24px; }
.auth-brand .word { font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1; }
.auth-brand .word b { color: var(--cyan-400); }
.auth-brand .sub { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: 1.4px; text-transform: uppercase; margin-top: 4px; }
.auth-card { padding: 28px 30px; }
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card p { margin: 0 0 18px; }
.auth-card .btn-lg { width: 100%; justify-content: center; }
.auth-foot { text-align: center; color: rgba(255,255,255,.45); font-size: 12px; margin-top: 18px; }
.auth-body .alert { margin-bottom: 14px; }

/* Avatars */
.avatar-img { border-radius:50%; object-fit:cover; flex:none; background:var(--gray-200); display:inline-block; vertical-align:middle; }
.avatar-ini { border-radius:50%; background:var(--navy-700); color:#fff; display:inline-grid; place-items:center; font-weight:700; flex:none; vertical-align:middle; }
.topbar .user .avatar-img, .topbar .user .avatar-ini { box-shadow:0 0 0 2px #fff, 0 0 0 3px var(--gray-200); }

/* Poste de scan */
.daybar { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.daybar .p { flex:none; width:210px; background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:12px 14px; border:2px solid transparent; color:var(--text); text-decoration:none; display:block; }
.daybar .p:hover { text-decoration:none; border-color:var(--gray-300); }
.daybar .p.sel { border-color:var(--blue-600); }
.daybar .p .t { font-weight:800; font-size:16px; color:var(--navy-800); }
.stepper { display:flex; align-items:center; }
.step { display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--muted); white-space:nowrap; }
.step .n { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background:var(--gray-200); color:var(--gray-600); font-size:12px; font-weight:800; }
.step.done .n { background:var(--green-600); color:#fff; }
.step.cur .n { background:var(--blue-600); color:#fff; box-shadow:0 0 0 4px var(--blue-100); }
.step.cur { color:var(--navy-800); }
.step-sep { width:34px; height:2px; background:var(--gray-200); margin:0 6px; }
.step-sep.done { background:var(--green-600); }
.scanbox { background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 22px; min-width:0; }
.scan-input { display:flex; align-items:center; gap:12px; border:3px solid var(--blue-600); border-radius:14px; padding:10px 16px; background:#f5f9ff; transition:box-shadow .15s, border-color .15s, background .15s; }
.scan-input svg { width:26px; height:26px; color:var(--blue-600); flex:none; }
.scan-input input { flex:1; min-width:0; border:none; outline:none; background:transparent; font:inherit; font-size:26px; font-family:var(--mono); letter-spacing:1px; text-transform:uppercase; }
.scan-input input::placeholder { text-transform:none; font-family:var(--font); font-size:18px; color:#9aa3b2; letter-spacing:0; }
.scan-input input:disabled { color:var(--muted); }
.scan-input .hint { font-size:12px; color:var(--muted); white-space:nowrap; }
.scan-input.flash-ok { border-color:var(--green-600); background:var(--green-100); box-shadow:0 0 0 5px rgba(22,163,74,.2); }
.scan-input.flash-err { border-color:var(--red-600); background:var(--red-100); box-shadow:0 0 0 5px rgba(220,38,38,.2); animation:shake .3s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.feedback { margin-top:10px; min-height:22px; font-size:13.5px; }
.feedback .ok { color:var(--green-600); font-weight:600; } .feedback .err { color:var(--red-600); font-weight:600; } .feedback .warn { color:var(--amber-800); font-weight:600; }
.focus-warning { display:flex; align-items:center; justify-content:space-between; gap:12px; visibility:hidden; margin-top:8px; padding:8px 12px; background:#fff4e5; border:1px solid #ffd59a; color:#8a5a00; border-radius:8px; font-size:13px; }
#scan-app.unfocused .focus-warning { visibility:visible; }
/* Compteur du poste de scan : fond clair (le dégradé bleu foncé était trop agressif, retour de David 29/10) */
.counter-big { background:var(--blue-100); color:var(--navy-800); border:1px solid #bfdbfe; border-radius:var(--radius); padding:16px 18px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.counter-big .n { font-size:64px; font-weight:900; line-height:1; letter-spacing:-2px; color:#1e40af; transition:transform .15s; }
.counter-big .n.bump { transform:scale(1.15); }
.counter-big .l { font-size:12px; text-transform:uppercase; letter-spacing:1.5px; color:#1e40af; opacity:.85; margin-top:8px; }
.counter-big .sub { font-size:12.5px; color:var(--muted); margin-top:8px; }
.deadline { background:var(--gray-100); border:1px solid var(--line); color:var(--gray-700); border-radius:var(--radius); padding:14px 18px; display:flex; flex-direction:column; justify-content:center; gap:4px; }
.deadline .cd { font-size:30px; font-weight:900; font-variant-numeric:tabular-nums; }
.deadline.soon { background:var(--amber-100); border-color:#fde68a; color:var(--amber-800); }
.deadline.late { background:var(--red-100); border-color:#fecaca; color:var(--red-800); }
.deadline.late .cd { animation:blink 1.2s infinite; }
@keyframes blink { 50% { opacity:.45; } }
.unit-list td.code { font-family:var(--mono); font-weight:700; font-size:15px; letter-spacing:.6px; }
.unit-list tr.new td { animation:rowin 1.2s; }
@keyframes rowin { from { background:#dcfce7; } to { background:transparent; } }
.side .row { display:flex; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; }
.side .row:last-child { border-bottom:none; }
.side .row b { color:var(--navy-800); text-align:right; }
.log { font-size:12.5px; }
.log > div { padding:6px 0; border-bottom:1px dashed var(--line); display:flex; gap:10px; }
.log > div > span:first-child { color:var(--muted); font-variant-numeric:tabular-nums; width:40px; flex:none; }
dialog.dlg { border:none; border-radius:16px; padding:22px 26px; width:min(560px, 92vw); box-shadow:0 30px 80px rgba(15,23,42,.35); }
dialog.dlg-wide { width:min(1080px, 94vw); }
dialog.dlg::backdrop { background:rgba(11,29,51,.55); backdrop-filter:blur(2px); }
dialog.dlg h2 { font-size:18px; }
.sigbox { border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; }
.sigbox canvas { width:100%; height:160px; border:1.5px dashed var(--gray-300); border-radius:10px; background:#fafbfd; touch-action:none; display:block; margin:8px 0 4px; cursor:crosshair; }
label.switch.ack { font-size:15px; padding:10px 14px; background:var(--green-100); border-radius:10px; border:1px solid #bbf7d0; }
/* Fiche en pleine largeur : les informations d'un objet (livraison, palette, analyse…) se lisent en colonnes
   fluides au-dessus de son contenu, au lieu d'un panneau latéral étroit qui brimerait le tableau principal. */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; font-size: 13px; }
.facts > div > span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.facts > div > b { color: var(--navy-800); font-weight: 600; overflow-wrap: anywhere; }
/* Transporteur dans une fiche : le chip garde son rendu (logo à gauche du nom), le style des intitulés ne s'y applique pas */
.facts .cchip { display: inline-flex; font-size: 13px; text-transform: none; letter-spacing: normal; color: var(--navy-800); font-weight: 600; margin-bottom: 0; }
.facts > div.wide { grid-column: span 2; }
/* Débordements : un enfant de pile ou de grille ne doit jamais imposer la largeur naturelle de son tableau à la
   colonne (min-width:auto des flex/grid items). Les textes longs se gèrent au cas par cas dans chaque vue. */
.stack > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .card { min-width: 0; }

@media (max-width: 1100px) {
  #scan-app .grid-3 { grid-template-columns: 1fr !important; }
  #scan-app .grid-2 { grid-template-columns: 1fr !important; }
  .stepper { display:none; }
  .counter-big { flex-direction:row; gap:16px; padding:12px 18px; } .counter-big .n { font-size:40px; } .counter-big .l { margin-top:0; }
}

/* Statuts de passage (codes techniques) */
.st-planned { background: var(--gray-100); color: var(--gray-600); }
.st-preparing { background: var(--blue-100); color: #1e40af; }
.st-ready { background: var(--teal-100); color: #0f766e; }
.st-driver_present { background: var(--amber-100); color: var(--amber-800); }
.st-loading { background: var(--orange-100); color: #9a3412; }
.st-departed { background: var(--green-100); color: var(--green-800); }
.st-no_show { background: var(--red-100); color: var(--red-800); }
.st-cancelled { background: var(--gray-100); color: var(--gray-500); text-decoration: line-through; }
.st-postponed { background: var(--purple-100); color: #5b21b6; }
.st-empty { background: var(--gray-100); color: var(--gray-500); } /* passage « Sans colis » clos automatiquement (pas barré : ce n'est pas une annulation) */

/* =====================================================================
   Responsive (1er nov. 2026) — tout vit dans des media queries : le rendu PC (> 1100 px) ne change pas.
   Téléphone et tablette portrait (≤ 860 px) : menu en tiroir, bandeau compact, grilles sur une colonne,
   tableaux qui défilent dans leur carte au lieu d'écraser leurs colonnes.
   ===================================================================== */
.menu-btn, .nav-overlay, .sidebar .m-close, .sidebar .m-search { display: none; }

@media (max-width: 1100px) and (min-width: 861px) {
  /* Tablette paysage : menu visible, marges resserrées */
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar .search { width: 210px; }
  .content { padding: 18px 16px 40px; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  /* Fiches (commande, palette, suivi) : une seule colonne de faits, le « large » ne force plus une 2e colonne */
  .facts > div.wide { grid-column: 1 / -1; }
  /* Tiroir */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 320px); height: 100dvh; z-index: 40;
    padding: 16px 14px; transform: translateX(-104%); transition: transform .22s ease; overflow-y: auto;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.45); }
  body.nav-open { overflow: hidden; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(11,29,51,.55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  .sidebar .m-close { display: inline-grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
  .sidebar .m-close svg { width: 18px; height: 18px; }
  .sidebar .m-search { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
  .sidebar .m-search svg { width: 16px; height: 16px; flex: none; }
  .sidebar .m-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; }
  .sidebar .m-search input::placeholder { color: rgba(255,255,255,.5); }
  .nav a { padding: 11px 10px; font-size: 15px; }
  .sidebar .footer { padding-bottom: 20px; }
  /* Bandeau */
  .menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--gray-300); background: #fff; color: var(--navy-800); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .topbar { height: auto; min-height: 56px; padding: 8px 12px; gap: 10px; }
  .topbar .topbar-title { flex: 1; min-width: 0; }
  .topbar h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .crumb { display: none; }
  .topbar .user > div { display: none; }
  .topbar .user-menu .menu { right: 0; left: auto; }
  /* Contenu */
  .content { padding: 14px 12px 48px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 14px; }
  .page-head .flex { flex-wrap: wrap; }
  .page-head .lead { font-size: 13.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 12px; }
  .grid-4:has(> .kpi) { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .value { font-size: 24px; }
  .kpi .delta { font-size: 11.5px; }
  .card-head, form.card-head { flex-wrap: wrap; }
  .card-head > .flex { flex-wrap: wrap; }
  .card-body, .card.pad { padding: 14px; }
  .alert.entity-focus { flex-wrap: wrap; }
  .alert.entity-focus > .flex { flex-wrap: wrap; }
  .flex.between { flex-wrap: wrap; }
  /* Tableaux : la carte défile, les colonnes gardent leur largeur de lecture */
  .card:has(> table), .card:has(> form + table), .card:has(> .card-head + table), .card:has(> .card-body + table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.tbl:has(thead th:nth-child(5)) { min-width: 760px; }
  table.tbl:has(thead th:nth-child(7)) { min-width: 920px; }
  table.tbl.aligned { min-width: 1100px; }
  table.tbl.aligned th { overflow-wrap: normal; white-space: nowrap; }
  table.soc-tbl, table.car-tbl { min-width: 720px; }
  .tbl th, .tbl td { padding-left: 10px; padding-right: 10px; }
  .kpi .label { padding-right: 40px; } /* le libellé passe à la ligne avant la pastille d'icône du coin */
  /* Passages du jour : une carte par ligne */
  .daybar.wrap .pcard, .daybar.wrap .p { width: 100%; }
  .btn, .chip { white-space: nowrap; }
  input.input, select.input, textarea.input { font-size: 16px; } /* iOS : évite le zoom automatique à la saisie */
  /* Formulaires et blocs des pages (styles locaux des vues) : une colonne, rangées qui passent à la ligne */
  .flex { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr !important; gap: 6px 0 !important; }
  .legal { grid-template-columns: 1fr 1fr !important; }
  .filters { grid-template-columns: 1fr 1fr !important; }
  .filters .field.dates { grid-column: span 2; }
  .kpi-row { grid-template-columns: 1fr 1fr !important; }
  .searchbar { flex-wrap: wrap; padding: 10px 12px; }
  .searchbar input { min-width: 0; flex: 1 1 160px; }
  .searchbar .kbd, .searchbar .muted.small { display: none; }
  .rule-row { flex-wrap: wrap; }
  .rule-row .days { flex-wrap: wrap; }
  .days { flex-wrap: wrap; }
  .page-head > * { min-width: 0; max-width: 100%; }
  .lead, .help, .small.muted { overflow-wrap: anywhere; }
  .preview, .mono { max-width: 100%; overflow-wrap: anywhere; }
  select.input, input.input, textarea.input { max-width: 100%; }
  /* Tableaux et plannings hors des cas précédents : défilement dans la carte */
  .card:has(table), .card-body:has(> table), .card:has(> .week), .card:has(> .card-body > .week) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Planning : la grille des jours devient sa propre zone de défilement horizontal (colonnes de 150 px) */
  .week { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; padding-bottom: 6px; }
  :where(div, section):has(> table.tbl) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.tbl.lt, table.tbl.holidays, table.tbl.users, table.tbl.known, table.mails { min-width: 760px; }
  form.period { display: flex; flex-wrap: wrap; max-width: 100%; }
  form.period select.input { max-width: 100%; }
  .an-box .flex > .input { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .content { padding: 12px 10px 48px; }
  .topbar .user .avatar-img, .topbar .user .avatar-ini { width: 30px; height: 30px; }
}

/* ---------- Flux transports (/flux) : liste au fil de l'eau — tuiles-repères, barre de filtres unique, bandes En retard /
   Aujourd'hui / À venir / Passé, créneaux réguliers en pastilles dans le titre du jour (7 nov. 2026) ---------- */
.fx-tiles a.kpi { color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.fx-tiles a.kpi:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .10); transform: translateY(-1px); }
.fx-bar { padding: 12px 14px; }
.fx-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fx-filters > select.input { width: auto; flex: 1 1 165px; min-width: 0; max-width: 240px; }
.fx-search { flex: 2 1 240px; min-width: 200px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--gray-300); border-radius: 10px; padding: 0 12px; background: #fff; height: 38px; }
.fx-search:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.fx-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.fx-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: transparent; }
.fx-dates { display: inline-flex; gap: 6px; }
.fx-dates .input { width: auto; }
.fx-tools { display: inline-flex; gap: 6px; margin-left: auto; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fx-tbl .fx-c-kind { width: 44px; }
.fx-tbl th a { color: inherit; text-decoration: none; }
.fx-kind { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--gray-100); color: var(--gray-600); }
.fx-kind svg { width: 16px; height: 16px; }
.fx-kind.passage { background: var(--blue-100); color: #1e40af; }
.fx-kind.request { background: var(--teal-100); color: #0f766e; }
.fx-kind.expected { background: var(--amber-100); color: var(--amber-800); }
.fx-time { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--navy-800); font-weight: 600; }
.fx-ref a { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .3px; overflow-wrap: anywhere; }
.fx-who { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.fx-who .logo-dot { width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
.fx-name { font-weight: 600; color: var(--navy-800); overflow-wrap: anywhere; }
.fx-qty { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-warn { color: var(--amber-800); font-size: 14px; cursor: help; }
.fx-status .badge[title] { cursor: help; }
.fx-tbl tr.late td { background: #fff5f5; }
.fx-tbl tr.ko td { color: var(--gray-500); }
.fx-tbl tr.ko .fx-name { color: var(--gray-500); }
.fx-tbl .fx-band td { background: var(--navy-800); color: #fff; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; padding: 8px 14px; border-bottom: 0; }
.fx-tbl .fx-band td > span { vertical-align: middle; }
.fx-tbl .fx-band.late td { background: var(--red-600); }
.fx-tbl .fx-band.today td { background: var(--teal-600); }
.fx-tbl .fx-band.future td { background: var(--blue-600); }
.fx-band-n { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 11px; letter-spacing: 0; }
.fx-toggle { float: right; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; border-radius: 99px; padding: 2px 12px; font: inherit; font-size: 11px; letter-spacing: .4px; text-transform: none; cursor: pointer; }
.fx-toggle:hover { background: rgba(255, 255, 255, .14); }
.fx-tbl .fx-day td { background: var(--gray-50); padding: 7px 14px; border-bottom: 1px solid var(--line); }
.fx-tbl .fx-day.today td { background: var(--teal-100); }
.fx-day-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.fx-day-l { color: var(--navy-800); font-weight: 700; font-size: 12.5px; }
.fx-slots { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fx-slot { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; color: var(--gray-600); text-decoration: none; white-space: nowrap; }
.fx-slot:hover { border-color: var(--gray-300); color: var(--navy-800); }
.fx-slot .logo-dot { width: 18px; height: 18px; border-radius: 99px; font-size: 8px; }
.fx-slot .logo-dot.has-logo { padding: 1px; }
.fx-slot-t { font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.fx-slot-d svg { width: 12px; height: 12px; display: block; }
.fx-slot.done { border-color: #bbf7d0; background: #f0fdf4; }
.fx-slot.done .fx-slot-s { color: var(--green-800); }
.fx-slot.late { border-color: #fecaca; background: #fff5f5; }
.fx-slot.late .fx-slot-s { color: var(--red-800); }
.fx-slot.ko { opacity: .75; }
.fx-per { width: auto; padding: 4px 8px; font-size: 12.5px; }
@media (max-width: 860px) {
  .fx-filters > select.input { flex: 1 1 calc(50% - 8px); }
  .fx-tools { margin-left: 0; }
  .fx-tbl { min-width: 760px; }
}