/* Page de suivi OMS Leica : rouge Leica pour l'action et le retard, Outfit auto-hébergée (le CSP interdit Google Fonts). */
@font-face { font-family: Outfit; font-weight: 300 700; font-display: swap; src: url(fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 300 700; font-display: swap; src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f5f4f2; --card: #fff; --ink: #111; --mute: #6b6a62; --hair: #e2e2e0; --hair2: #d4d4d4;
  --mid: #8f8e86; --red: #cc0000; --red-dark: #a50000; --amber: #9a5b00; --radius: 6px;
}
html { scrollbar-color: var(--hair2) transparent; }
::selection { background: var(--ink); color: #fff; }
input, textarea, select { caret-color: var(--red); accent-color: var(--red); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1.5px solid var(--hair2); border-radius: 4px; background: var(--card); font: inherit; font-weight: 600; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--ink); }
body { font-family: Outfit, system-ui, sans-serif; font-size: 15px; background: var(--paper); color: var(--ink); }
.main-wrapper:has(.suivi), .main-wrapper:has(.import), .main-wrapper:has(.stats) { max-width: 1360px; }
.topbar { background: var(--ink); height: 56px; }
.topbar_brand img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.topbar_brand { font-weight: 600; gap: 10px; }
.topbar_nav a { font-weight: 500; opacity: .75; padding: 6px 0; border-bottom: 2px solid transparent; }
.topbar_nav a:hover, .topbar_nav a.is-active { opacity: 1; border-bottom-color: var(--red); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: 4px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .field:focus-visible, .row:focus-visible, .tabs_item:focus-visible, .fold > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn_primary { background: var(--red); color: #fff; }
.btn_primary:hover { background: var(--red-dark); }
.btn_ghost { background: var(--card); color: var(--ink); border-color: var(--hair2); }
.btn_ghost:hover { border-color: var(--ink); }
/* Étiquette Chronopost : « Imprimer » est le geste à faire d'abord (rouge) ; une fois imprimée, « Prêt à facturer » prend le relais */
.focus.is-imprime [data-print] { background: var(--card); color: var(--ink); border-color: var(--hair2); }
.focus.is-imprime .btn_facturer { background: var(--red); color: #fff; border-color: transparent; }
.focus.is-imprime .btn_facturer:hover { background: var(--red-dark); }
.btn_danger { background: var(--card); color: var(--red); border-color: var(--red); }
.btn_danger:hover { background: var(--red); color: #fff; }
.btn_xl { min-height: 56px; font-size: 17px; width: 100%; }
.btn kbd { font: inherit; font-size: 12px; padding: 0 6px; border: 1px solid currentColor; border-radius: 3px; opacity: .7; }

/* Onglets des files */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid var(--hair); scrollbar-width: none; }
.tabs_item { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: -1px; white-space: nowrap; font-weight: 500; color: var(--mute);
  text-decoration: none; border-bottom: 3px solid transparent; transition: color .15s; }
.tabs_item:hover { color: var(--ink); }
.tabs_item.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--red); }
.tabs_count { min-width: 24px; padding: 0 7px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.tabs_count.is-zero { background: #ebebea; color: #55544e; }
.tabs_item.is-active .tabs_count:not(.is-zero) { background: var(--red); }

.suivi_grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.suivi_side { position: sticky; top: 16px; }

/* Carte principale */
.focus { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; view-transition-name: focus; }
.focus_head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 28px; background: var(--ink); color: #fff; }
.chip.is-now { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chip.is-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.focus_num { margin: 4px 0; font-size: clamp(34px, 5vw, 60px); font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.focus_prod { margin: 0; font-size: 16px; color: #cfcdc7; }
.ring { position: relative; flex: none; width: 132px; height: 132px; }
.ring svg { display: block; width: 100%; height: 100%; }
.ring_track { stroke: #3a3a3a; }
.ring_val { stroke: #fff; transition: stroke-dasharray .6s cubic-bezier(.2, .8, .2, 1); }
.ring.is-urgent .ring_val { stroke: #f0a030; }
.ring.is-tres_urgent .ring_val, .ring.is-retard .ring_val { stroke: #ff4d4d; }
.ring_text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.ring.is-retard .ring_text { color: #ff7a7a; }
.ring.is-none .ring_val { display: none; }
.ring.is-none .ring_text { font-size: 11px; font-weight: 500; text-align: center; color: #cfcdc7; }
.focus_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 28px; border-bottom: 1px solid var(--hair); }
.focus_amount { margin-left: auto; font-size: 18px; font-weight: 600; }
.chip { padding: 2px 12px; border: 1px solid var(--hair2); border-radius: 999px; background: var(--paper); font-weight: 500; }
.chip.is-retard { background: var(--red); border-color: var(--red); color: #fff; }
.chip.is-tres_urgent { border-color: var(--red); color: var(--red); }
.chip.is-urgent { border-color: var(--amber); color: var(--amber); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 18px 28px 0; list-style: none; }
.steps_item { padding-top: 8px; border-top: 4px solid var(--hair); font-size: 14px; color: var(--mute); }
.steps_item.is-done { border-top-color: var(--ink); color: var(--ink); }
.steps_item.is-current { border-top-color: var(--red); color: var(--ink); font-weight: 600; }
.banner { margin: 18px 28px 0; padding: 12px 16px; border-radius: 4px; background: var(--paper); }
/* Commande multi-produits : le store attend de tout recevoir avant de fermer le colis */
.multi { margin: 18px 28px 0; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); }
.multi_title { margin: 0; font-size: 17px; font-weight: 600; }
.multi_wait { margin: 4px 0 12px; font-size: 16px; }
.multi_list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.multi_list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.recu { margin: 0; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; cursor: pointer; }
.multi_state { flex: none; font-size: 14px; color: var(--mute); }
.multi_state.is-ok { color: var(--ink); font-weight: 600; }
.serie { display: grid; gap: 8px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--hair2); border-radius: 4px; }
.serie legend { padding: 0 6px; font-weight: 500; }
.serie_req { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--red); }
.produits { max-width: 960px; }
.produits .page_title { font-size: clamp(32px, 4vw, 48px); font-weight: 300; letter-spacing: -.02em; }
.produits .tile { margin-top: 20px; }
.serie_form { display: flex; align-items: center; gap: 12px; margin: 0; }
.serie_state { min-width: 92px; font-weight: 600; }
.serie_state.is-on { color: var(--ink); }
.serie_state:not(.is-on) { color: var(--mute); font-weight: 400; }
.multi_list li:last-child { padding-bottom: 0; border-bottom: 0; }
.row_multi { margin-left: 8px; padding: 1px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.banner.is-red { background: #fdecec; color: var(--red-dark); }

.act { display: grid; gap: 16px; padding: 24px 28px 28px; }
.act_pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.act_info, .act_wait { margin: 0; color: var(--mute); }
.act_wait { padding: 8px 0; font-weight: 500; }
.stack { display: grid; gap: 12px; }
.fold > summary { list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] { grid-column: 1 / -1; }
.fold[open] > summary { margin-bottom: 12px; }
.fold[open] > form { animation: unfold .22s ease-out; }
.field_label { display: block; margin-bottom: 6px; font-weight: 500; }
.field { width: 100%; padding: 12px 14px; border: 1.5px solid var(--hair2); border-radius: 4px; background: #fff; font: inherit; }
.field:focus { outline: 3px solid rgba(204, 0, 0, .18); border-color: var(--red); }
textarea.field { resize: vertical; }
.field_pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field_pair.is-send { grid-template-columns: 1fr auto; align-items: end; }

/* File d'attente */
.queue { margin-top: 28px; }
.queue_title { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.queue_list { margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 118px 124px; gap: 16px; align-items: center; margin-top: 8px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 4px; color: inherit; text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.row:hover { transform: translateX(2px); box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
.row.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fafaf9; }
.row_main { display: grid; min-width: 0; }
.row_num { font-variant-numeric: tabular-nums; }
.row_prod { overflow: hidden; color: var(--mute); text-overflow: ellipsis; white-space: nowrap; }
.row_store { overflow: hidden; font-size: 13px; color: var(--mute); text-overflow: ellipsis; white-space: nowrap; }
.row_time { min-width: 72px; padding: 2px 10px; border: 1.5px solid transparent; border-radius: 999px; text-align: center; font-weight: 600; white-space: nowrap; }
.row_todo { margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.row_time.is-retard { background: var(--red); border-color: var(--red); color: #fff; }
.row_time.is-tres_urgent { border-color: var(--red); color: var(--red); }
.row_time.is-urgent { border-color: var(--amber); color: var(--amber); }
.row_time.is-wait { font-size: 13px; font-weight: 400; color: var(--mute); }
.hint { margin: 16px 0 0; font-size: 13px; color: var(--mute); }
.hint kbd { padding: 0 6px; border: 1px solid var(--hair2); border-radius: 3px; font: inherit; font-size: 12px; background: #fff; }

/* Volet de détail */
.block { margin-bottom: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); }
.block p { margin: 0 0 4px; }
.block_title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.block_strong { font-weight: 600; font-size: 16px; }
.lines { margin: 0; padding: 0; list-style: none; }
.lines_item { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.lines_item:last-child { border-bottom: 0; }
.lines_price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.timeline { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--hair); }
.timeline_item { position: relative; display: grid; padding: 0 0 12px 12px; }
.timeline_item::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
.timeline_item:first-child::before { background: var(--red); border-color: var(--red); }
.timeline_what { font-weight: 500; }
.timeline_meta, .timeline_note { font-size: 13px; color: var(--mute); }

.empty { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); text-align: center; }
.empty_title { margin: 0; font-size: 22px; font-weight: 500; }

/* Import */
.import { max-width: 960px; }
.import .page_title { font-size: clamp(32px, 4vw, 48px); font-weight: 300; letter-spacing: -.02em; }
.drop { display: grid; gap: 16px; margin-top: 24px; }
.drop_zone { display: grid; gap: 6px; padding: 56px 24px; border: 2px dashed var(--hair2); border-radius: var(--radius); background: var(--card); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; }
.drop_zone:hover, .drop.is-over .drop_zone { border-color: var(--red); background: #fff6f6; }
.drop:focus-within .drop_zone { outline: 3px solid var(--ink); outline-offset: 2px; }
.drop_title { font-size: clamp(24px, 3vw, 32px); font-weight: 300; letter-spacing: -.01em; }
.drop_dial { justify-self: center; margin-bottom: 8px; }
.drop_dial .tick, .drop_dial .tick.is-lit { stroke: var(--hair2); stroke-width: 1; transition: stroke .2s; }
.drop_dial .tick.is-major, .drop_dial .tick.is-major.is-lit { stroke: var(--mid); stroke-width: 1.5; }
.drop_dot { fill: var(--hair2); transition: fill .2s, transform .3s cubic-bezier(.2, .8, .2, 1); transform-origin: 36px 36px; }
.drop_zone:hover .drop_dial .tick, .drop.is-over .drop_dial .tick, .drop:focus-within .drop_dial .tick { stroke: var(--red); }
.drop_zone:hover .drop_dot, .drop.is-over .drop_dot, .drop:focus-within .drop_dot { fill: var(--red); transform: scale(1.6); }
.drop_hint { color: var(--mute); }
.drop_input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.report { margin: 24px 0; padding: 28px 32px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.report_line { margin: 0 0 12px; font-size: 20px; font-weight: 300; line-height: 1.4; }
.report_line strong { font-weight: 600; }
.drop_rules { max-width: 52ch; margin: 8px auto 0; font-size: 13px; color: var(--mute); }
.report_why { margin: 8px 0 20px; padding-left: 18px; color: #cfcdc7; }

/* Règle graduée : la graduation de l'objectif mise à plat. File : crans allumés = temps restant. Stats : part du SLA tenue. */
.regle { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.regle i { width: 3px; height: 9px; border-radius: 1px; background: var(--hair2); }
.regle i.maj { height: 16px; }
.regle i.on { background: var(--ink); }
.regle.is-urgent i.on { background: var(--amber); }
.regle.is-tres_urgent i.on, .regle.is-retard i.on { background: var(--red); }
.regle.is-none i { background: var(--hair); }
.regle.is-gris i.on { background: var(--mid); }
.regle.is-noir i.on { background: var(--ink); }
.regle.is-rouge i.on { background: var(--red); }

/* Statistiques admin : un bandeau sombre porte le cadran, le reste se lit en règles graduées */
.gauge { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 24px; padding: 32px 36px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.gauge_text { display: grid; gap: 16px; min-width: 0; }
.gauge_title { margin: 0; font-size: 28px; font-weight: 300; letter-spacing: -.01em; }
.period { display: flex; flex-wrap: wrap; gap: 6px; }
.period_item { padding: 6px 16px; border: 1.5px solid transparent; border-radius: 999px; color: #cfcdc7; font-weight: 500; text-decoration: none; transition: color .15s, border-color .15s; }
.period_item:hover { color: #fff; }
.period_item.is-active { border-color: #fff; color: #fff; }
.period_item:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gauge_lead { max-width: 36ch; margin: 4px 0 0; font-size: 22px; font-weight: 300; line-height: 1.35; }
.gauge_facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 8px 0 0; }
.gauge_facts dt { font-size: 13px; color: #b9b7b0; }
.gauge_facts dd { margin: 2px 0 0; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gauge_facts dd.is-late { color: #ff7a7a; }
.ring.is-big { width: 232px; height: 232px; }
.ring.is-big .ring_text { font-size: 52px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats_grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.stats_main, .stats_side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tile { padding: 22px 24px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); }
.tile .block_title { margin-bottom: 14px; }
.tile_note { margin: 14px 0 0; font-size: 13px; color: var(--mute); }
.tile_lead { margin: -6px 0 14px; color: var(--mute); }
.scale { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px; gap: 16px; margin-bottom: 6px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.scale_track { position: relative; grid-column: 2; height: 16px; }
.scale_track span { position: absolute; top: 0; white-space: nowrap; }
.scale .at-0 { left: 0; }
.scale .at-50 { left: 50%; transform: translateX(-50%); }
.scale_word { font-style: normal; }
.scale .at-80 { left: 80%; transform: translateX(-50%); color: var(--ink); font-weight: 600; }
.scale .at-100 { right: 0; }
.srows { margin: 0; padding: 0; list-style: none; }
.srow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px; gap: 6px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.srow:first-child { padding-top: 8px; }
.srow:last-child { padding-bottom: 4px; border-bottom: 0; }
.srow_name { margin: 0; font-size: 17px; font-weight: 600; }
.srow_pct { white-space: nowrap; font-size: 28px; font-weight: 300; text-align: right; font-variant-numeric: tabular-nums; }
.srow_facts { display: flex; flex-wrap: wrap; gap: 2px 14px; grid-column: 2 / -1; margin: 0; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.fact.is-main { color: var(--ink); font-weight: 600; }
.fact.is-alert { color: var(--red); font-weight: 600; }
.barre { display: block; width: 100%; height: 16px; border-radius: 3px; }
.barre_track { fill: var(--hair); }
.barre_fill { fill: var(--ink); }
.barre.is-low .barre_fill { fill: var(--red); }
.barre_seuil { stroke: var(--card); stroke-width: 2; }
.barre.is-thin { height: 8px; }
.late { color: var(--red); font-weight: 600; }
.flux { margin: 0; padding: 0; list-style: none; }
.flux_row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 32px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.flux_row:last-child { border-bottom: 0; }
.flux_row.is-zero .flux_name { color: var(--mute); }
.flux_n { text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 20px; margin: 0 0 8px; font-size: 13px; color: var(--mute); }
.legend_item { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 2px; background: var(--mid); }
.swatch.is-done { background: var(--ink); }
.chart_wrap { overflow-x: auto; scrollbar-width: thin; }
.chart { display: block; width: 100%; height: auto; }
.bar.is-in { fill: var(--mid); }
.bar.is-done { fill: var(--ink); }
.bar_n { font: 600 12px Outfit, system-ui, sans-serif; fill: var(--mute); }
.bar_n.is-done { fill: var(--ink); }
.axis { font: 500 12px Outfit, system-ui, sans-serif; fill: var(--ink); }
.axis.is-sub { font-weight: 400; fill: var(--mute); }
.baseline { stroke: var(--ink); stroke-width: 1; }

/* Graduation d'objectif autour de l'anneau : un cran par heure de SLA */
.tick { stroke: #4a4a4a; stroke-width: .7; stroke-linecap: round; }
.tick.is-major { stroke: #8a8880; stroke-width: 1.2; }
.tick.is-lit { stroke: #fff; }
.ring.is-urgent .tick.is-lit { stroke: #f0a030; }
.ring.is-tres_urgent .tick.is-lit, .ring.is-retard .tick.is-lit { stroke: #ff4d4d; }

/* Panneau de détail : un seul bloc, séparé par des filets */
.panel_side { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); }
.panel_side .block { margin: 0; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; }
.panel_side .block:last-child { border-bottom: 0; }

/* Messages : encadrés fins, sans liseré coloré */
.alert { border: 1px solid var(--hair2); border-left-width: 1px; border-radius: 4px; font-weight: 500; }
.alert.is-ok { background: #eef7f0; color: #1d5a31; border-color: #bcdcc6; }
.alert.is-error { background: #fdecec; color: var(--red-dark); border-color: #f0b8b8; }
.panel.is-danger { border-left-width: 1px; }

/* Geste « accepté » : le point rouge Leica s'étend sur la carte avant la commande suivante */
.focus { position: relative; }
.focus.is-accepting::after { content: ""; position: absolute; left: 50%; top: 56%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: var(--red); pointer-events: none; animation: dot .38s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes dot { from { transform: scale(0); opacity: 1; } to { transform: scale(60); opacity: 1; } }

/* Transitions entre commandes */
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes slide-out { to { opacity: 0; transform: translateX(-28px); } }
::view-transition-old(focus) { animation: .16s ease-in both slide-out; }
::view-transition-new(focus) { animation: .26s ease-out both slide-in; }
.focus.is-enter { animation: slide-in .26s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-old(focus), ::view-transition-new(focus) { animation: none !important; transition: none !important; }
}

@media (max-width: 1000px) {
  .stats_grid { grid-template-columns: minmax(0, 1fr); }
  .suivi_grid { grid-template-columns: minmax(0, 1fr); }
  .suivi_side { position: static; }
}
@media (pointer: coarse) { .hint { display: none; } }
@media (max-width: 640px) {
  .focus_head, .focus_meta, .act { padding-left: 18px; padding-right: 18px; }
  .steps { padding: 16px 18px 0; } .banner, .multi { margin: 16px 18px 0; }
  .steps_item { font-size: 11px; }
  .act_pair, .field_pair, .field_pair.is-send { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row_store, .row .regle { display: none; }
  .gauge { flex-direction: column; align-items: flex-start; padding: 24px 18px; }
  .ring.is-big { width: 180px; height: 180px; }
  .ring.is-big .ring_text { font-size: 40px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar_nav { gap: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .topbar_nav a { white-space: nowrap; }
  .topbar_user .button { padding: 4px 6px; font-size: 13px; }
  .chart_wrap .chart { min-width: 600px; }
  .scale { grid-template-columns: minmax(0, 1fr) 64px; }
  .scale_word { display: none; }
  .scale .at-100 { font-size: 0; }
  .scale .at-100::before { content: "100"; font-size: 12px; }
  .scale_track { grid-column: 1; }
  .srow { grid-template-columns: minmax(0, 1fr) 64px; }
  .srow_name, .srow_facts { grid-column: 1 / -1; }
  .topbar_name { display: none; }
  .topbar_user .text-size-small { display: none; }
}

.row_client { display: block; font-size: 13px; color: var(--mute); }
.is-old { color: var(--red); font-weight: 600; }
.is-recent { color: var(--ok); font-weight: 600; }
.serie[disabled] { opacity: .55; }

/* Recherche */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters_q { flex: 1 1 260px; min-width: 0; width: auto; }
.colis-difficulte { color: var(--retard, #b3261e); font-weight: 600; }
.colis-livre { color: var(--mute); }
