/* Habillage repris de l'admin Padel Events Club (palette bleu nuit + orange, Poppins hébergée ici). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700.woff2) format('woff2'); }

:root {
  color-scheme: light dark;
  --navy-950: #081726; --navy-900: #0d2a4a; --navy-800: #123a66; --navy-700: #195190;
  --sky: #1479c6; --orange: #e96d0a;
  --ok: #16a34a; --warn: #e96d0a; --off: #dc2626; --violet: #9333ea;
  --bg: light-dark(#e9eff6, #0a1522);
  --card: light-dark(#ffffff, #0f2036);
  --topbar: light-dark(#ffffff, #0d1c2e);
  --text: light-dark(#1d2b3d, #e3ecf6);
  --ink: light-dark(#0d2a4a, #ffffff);
  --head: light-dark(#123a66, #ffffff);
  --muted: light-dark(#64748b, #9db0c6);
  --line: light-dark(#d3deeb, rgb(255 255 255 / .12));
  --sky-soft: light-dark(#e4f0fb, #11263d);
  --orange-soft: light-dark(#fdf0e3, #3a2410);
  --hover: light-dark(#f1f7fd, #10243a);
  --tool: light-dark(#f7fafd, #0f2036);
  --field-ring: light-dark(#b9cbe0, rgb(255 255 255 / .22));
  --primary: light-dark(#195190, #5aa9ea);
  --primary-d: light-dark(#123a66, #7fbcef);
  --link: light-dark(#1479c6, #7cc0f2);
  --radius: 1rem; --field: .75rem;
  --shadow: 0 1px 2px rgb(13 42 74 / .06), 0 10px 28px -14px rgb(13 42 74 / .22);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 'Poppins', system-ui, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--link); }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); margin: .2rem 0 1rem; line-height: 1.25; }
h2 { font-size: 1.1rem; font-weight: 700; color: var(--head); margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.r { text-align: right; }

/* ─── Structure : menu latéral + zone de contenu ─── */
.shell { display: grid; grid-template-columns: 16.5rem 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); color: #d6e4f5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .25) transparent; }
.sidebar .brand { display: flex; align-items: center; gap: .65rem; height: 4.25rem; padding: 0 1rem; background: #fff; border-bottom: 3px solid var(--orange); text-decoration: none; color: var(--navy-900); }
.sidebar .brand img { width: 2.4rem; height: 2.4rem; flex: none; }
.sidebar .brand strong { display: block; white-space: nowrap; font-size: .9rem; line-height: 1.15; font-weight: 700; }
.sidebar .brand small { display: block; font-size: .7rem; color: #64748b; line-height: 1.2; }
.sidebar nav { padding: .75rem .6rem 1rem; flex: 1; }
.navgroup { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f6ab6a; padding: .9rem .7rem .3rem; }
.navgroup:first-child { padding-top: .2rem; }
.sidebar nav a { display: flex; align-items: center; gap: .65rem; padding: .4rem .7rem; border-radius: .6rem; color: #d6e4f5; text-decoration: none; font-size: .9rem; transition: background .15s, transform .15s; }
.sidebar nav a svg { width: 1.2rem; height: 1.2rem; flex: none; }
.sidebar nav a:hover { background: rgb(255 255 255 / .09); transform: translateX(2px); }
.sidebar nav a.active { background: var(--orange); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -6px rgb(233 109 10 / .7); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; height: 4.25rem; padding: 0 1.5rem; background: var(--topbar); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--orange), var(--sky)) 1; box-shadow: 0 4px 18px -10px rgb(13 42 74 / .35); }
.topbar .spacer { flex: 1; }
.menubtn { display: none; cursor: pointer; color: var(--primary); padding: .25rem; }
.menubtn svg { width: 1.6rem; height: 1.6rem; display: block; }
#menutoggle { position: absolute; opacity: 0; pointer-events: none; }
.usermenu { display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.usermenu a { text-decoration: none; font-weight: 500; }
.sigle { background: var(--sky-soft); color: var(--primary); border-radius: .4rem; padding: .05rem .45rem; font-size: .75rem; font-weight: 700; }
.container { width: 100%; max-width: 1700px; margin: 0; padding: 1.5rem 1.5rem 3rem; }

/* ─── Cartes ─── */
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--navy-700); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.4rem; margin-bottom: 1.1rem; }
.narrow { max-width: 560px; }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ─── Formulaires ─── */
label { display: block; margin-bottom: .8rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
label.check { display: flex; gap: .5rem; align-items: center; color: var(--text); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
  display: block; width: 100%; margin-top: .25rem; padding: .55rem .75rem; font: inherit; color: var(--text);
  background: var(--card); border: 0; border-radius: var(--field); box-shadow: 0 0 0 1px var(--field-ring);
}
input:focus, select:focus { outline: 0; box-shadow: 0 0 0 2px var(--sky), 0 0 0 5px rgb(20 121 198 / .15); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
fieldset { border: 1px solid var(--line); border-radius: var(--field); margin: 0 0 .8rem; padding: .5rem .8rem; }
legend { color: var(--muted); font-size: .85rem; padding: 0 .3rem; }
input[type=file] { display: block; margin-top: .3rem; max-width: 100%; }

button, .button { font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .45rem .9rem; border-radius: .5rem; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; display: inline-block; }
button:hover, .button:hover { background: var(--hover); }
button.primary, .button.primary { background: var(--navy-700); border-color: var(--navy-700); color: #fff; box-shadow: 0 1px 2px rgb(25 81 144 / .35); }
button.primary:hover, .button.primary:hover { background: var(--navy-800); }
button.link { border: 0; background: none; color: var(--link); padding: 0; font-weight: 500; box-shadow: none; }
button.link:hover { background: none; text-decoration: underline; }
form.inline { display: inline; }

.flash { padding: .7rem 1rem; border-radius: var(--field); margin-bottom: 1rem; border: 1px solid var(--line); border-left-width: 6px; background: var(--card); box-shadow: var(--shadow); }
.flash.success { border-left-color: var(--ok); }
.flash.error { border-left-color: var(--off); }
.flash.info { border-left-color: var(--sky); }
.flash.warning { border-left-color: var(--orange); }
.secret { word-break: break-all; font-size: 1rem; }
code { background: var(--sky-soft); padding: .05rem .35rem; border-radius: .35rem; font-size: .88em; }

.badge { display: inline-block; padding: 0 .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--line); color: var(--muted); }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.off { background: color-mix(in srgb, var(--off) 18%, transparent); color: var(--off); }

/* ─── Tableaux : en-tête bleu clair, ligne survolée ─── */
.tablewrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.table th, .table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; background: var(--sky-soft); color: var(--head); }
.table tbody tr:hover { background: var(--hover); }
.table.small { font-size: .88rem; }
.table tr.inactive td { opacity: .55; }
.table td.c { text-align: center; }
.table td input[type=text] { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; padding: .75rem 1rem; background: var(--tool); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { margin: 0; }
.pager { display: flex; gap: 1rem; align-items: center; }

/* ─── Chiffres clés : liseré gauche, une couleur par carte ─── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin: 1rem 0; }
a.tile { color: inherit; text-decoration: none; }
.tile { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--navy-700); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -16px rgb(13 42 74 / .4); }
.tile:nth-child(5n+2) { border-left-color: var(--orange); }
.tile:nth-child(5n+3) { border-left-color: var(--sky); }
.tile:nth-child(5n+4) { border-left-color: var(--ok); }
.tile:nth-child(5n+5) { border-left-color: var(--violet); }
.tile .n { font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tile > span:nth-child(2) { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tile.disabled { opacity: .7; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
dl.sum { grid-template-columns: 1fr max-content; }

/* ─── Onglets (pastilles) ─── */
.tabs { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: .5rem 0 1rem; }
.tabs a { text-decoration: none; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--card); font-size: .88rem; font-weight: 500; }
.tabs a:hover { background: var(--hover); }
.tabs a.active { background: var(--sky-soft); border-color: var(--sky); color: var(--primary); font-weight: 700; }
.tabs .count { opacity: .8; font-size: .78rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; color: var(--link); font-weight: 500; }
.qr { background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: var(--field); display: block; }

/* ─── Page de connexion : fond bleu nuit, carte blanche avec filet orange ─── */
body.authpage { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%); }
.authbox { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6); padding: 1.6rem; }
.authbox .logo { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.authbox .logo img { width: 2.8rem; height: 2.8rem; flex: none; }
.authbox .logo strong { display: block; font-size: 1.05rem; line-height: 1.2; color: var(--ink); }
.authbox .logo small { color: var(--muted); font-size: .78rem; }
.authbox h1 { font-size: 1.3rem; margin-bottom: .4rem; }

/* ─── Mobile : le menu devient un tiroir ─── */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 16rem; transform: translateX(-100%); transition: transform .2s; }
  #menutoggle:checked ~ .shell .sidebar { transform: none; }
  .menubtn { display: block; }
  .usermenu .uname { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ─── Fiche facture : PDF à gauche, données à droite ─── */
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.split { display: block; }
.split.withpdf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; align-items: start; }
.pdfpane { position: sticky; top: 1rem; padding: 0; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 2rem); }
.pdfbar { display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; background: var(--tool); border-bottom: 1px solid var(--line); }
.pdfbar button { padding: .2rem .65rem; }
.pdfscroll { flex: 1; overflow: auto; padding: .5rem; background: light-dark(#c9d5e3, #07101a); }
.pdfpage { display: block; margin: 0 auto .6rem; background: #fff; box-shadow: 0 2px 10px rgb(13 42 74 / .3); }
.datapane { min-width: 0; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 .75rem; }
[hidden] { display: none !important; }
.xmltree { font: .82rem/1.5 ui-monospace, Consolas, monospace; overflow-x: auto; }
.xmltree details { margin-left: 1rem; }
.xmltree > details { margin-left: 0; }
.xmltree summary { cursor: pointer; color: var(--text); }
.xleaf { margin-left: 1rem; }
.xn { color: var(--primary); font-weight: 600; }
.xa { color: var(--violet); }
.xv { color: var(--text); word-break: break-word; }
.xmlraw { margin: 0; overflow: auto; max-height: 70vh; font: .8rem/1.45 ui-monospace, Consolas, monospace; background: var(--tool); padding: .75rem; border-radius: var(--field); }
@media (max-width: 1100px) {
  .split.withpdf { grid-template-columns: 1fr; }
  .pdfpane { position: static; height: 70vh; }
}

.datapane .card { margin-bottom: 1.25rem; }
.datapane .table.small th, .datapane .table.small td { padding: .5rem .55rem; }
.datapane dl.sum { max-width: 26rem; }

/* ─── Fiche facture : mise en page selon la largeur de l'écran ───
   petit : une colonne · moyen : résumé en haut (en-tête | récapitulatif), lignes, puis PDF ·
   grand (avec PDF) : PDF fixe à gauche, données à droite. */
.contents { display: contents; }
.facture { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1.25rem; align-items: start;
  grid-template-areas: "tabs" "alerts" "head" "recap" "lines" "pdf" "hist" "xml"; }
.facture .card { margin-bottom: 1.25rem; }
.facture .a-tabs { grid-area: tabs; }
.facture .a-alerts { grid-area: alerts; }
.facture .a-head { grid-area: head; }
.facture .a-recap { grid-area: recap; }
.facture .a-lines { grid-area: lines; }
.facture .a-pdf { grid-area: pdf; position: static; height: 75vh; min-height: 24rem; }
.facture .a-hist { grid-area: hist; }
.facture .a-xml { grid-area: xml; min-width: 0; }
.facture .a-head, .facture .a-recap, .facture .a-lines, .facture .a-hist { min-width: 0; }
.facture dl.sum { max-width: none; }
@media (min-width: 900px) {
  .facture { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-areas: "tabs tabs" "alerts alerts" "head recap" "lines lines" "pdf pdf" "hist hist" "xml xml"; }
  .facture .a-head, .facture .a-recap { align-self: stretch; }
}
@media (min-width: 1500px) {
  .facture.withpdf { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "pdf tabs" "pdf alerts" "pdf head" "pdf lines" "pdf recap" "pdf hist" "pdf xml"; }
  .facture.withpdf .a-pdf { position: sticky; top: 1rem; height: calc(100vh - 2rem); }
  .facture.withpdf dl.sum { max-width: 26rem; }
}

/* Phase 4 : décisions par ligne */
.linedecision { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; min-width: 16rem; }
.linedecision input { flex: 1 1 100%; font-size: .8rem; }
.linedecision button { padding: .2rem .55rem; font-size: .75rem; }
button.ok { color: var(--ok); border-color: var(--ok); }
button.warn { color: var(--warn); border-color: var(--warn); }
button.off { color: var(--off); border-color: var(--off); }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions.validation { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
form.assignrow { display: inline-flex; flex-wrap: nowrap; align-items: stretch; gap: .35rem; margin: 0; }
form.assignrow select { width: auto; min-width: 6.5rem; height: 2rem; padding: 0 1.8rem 0 .6rem; font-size: .82rem; margin: 0; }
form.assignrow button { height: 2rem; padding: 0 .8rem; font-size: .8rem; line-height: 1; white-space: nowrap; }
.dirline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* Mode « voir comme » (super-admin) */
.impersonation { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; padding: .6rem 1.5rem; background: var(--orange); color: #fff; font-size: .88rem; }
.impersonation button { background: #fff; color: var(--navy-900); border-color: #fff; padding: .25rem .8rem; }
button.small { padding: .15rem .55rem; font-size: .75rem; }
.validate-final { flex: 1 1 100%; margin-top: .4rem; }
.invcomment { display: block; font-size: .85rem; }
.invcomment textarea { width: 100%; margin-top: .25rem; font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--field); background: var(--card); color: var(--text); resize: vertical; }
.finalbuttons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .6rem; }

/* Fournisseurs : cases directions compactes, ligne basse */
.dircheck { display: inline-flex; align-items: center; gap: .25rem; margin: 0 .6rem 0 0; font-size: .85rem; white-space: nowrap; }
.dircheck input { margin: 0; }

form.assignrow input[type=text] { width: 16rem; max-width: 100%; height: 2rem; padding: 0 .6rem; font-size: .85rem; margin: 0; }
form.assignrow { align-items: center; }
form.stack { display: grid; gap: .8rem; max-width: 42rem; }
form.stack label { display: grid; gap: .25rem; font-size: .85rem; }
form.stack input[type=text] { width: 100%; }

.tablewrap + form.tokenform { margin-top: 1.5rem; }

/* ─── Listes « propres » : barre d'outils, tableau aéré, pastilles, menu ⋮ ─── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: .15rem; padding: .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); margin: .5rem 0 1.1rem; max-width: 100%; }
.tabs a { border: 0; background: transparent; padding: .35rem .9rem; display: inline-flex; align-items: center; gap: .45rem; }
.tabs a.active { background: var(--sky-soft); color: var(--primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sky) 40%, transparent); }
.tabs .count { opacity: 1; min-width: 1.5rem; text-align: center; padding: 0 .4rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--line); color: var(--muted); }
.tabs .count.st-non_assignee, .tabs .count.st-en_attente, .tabs .count.st-a_completer { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tabs .count.st-a_valider { background: color-mix(in srgb, var(--sky) 18%, transparent); color: var(--sky); }
.tabs .count.st-validee, .tabs .count.st-transmise { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.tabs .count.st-refusee, .tabs .count.st-contestee { background: color-mix(in srgb, var(--off) 18%, transparent); color: var(--off); }

.listcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.listbar { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; padding: .8rem 1rem; }
.searchbox { position: relative; margin: 0; }
.searchbox svg { position: absolute; left: .7rem; top: 50%; width: 1.05rem; height: 1.05rem; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.searchbox input[type=search] { width: 19rem; max-width: 100%; margin: 0; padding: .5rem .8rem .5rem 2.2rem; font: inherit; font-size: .88rem; color: var(--text); background: var(--card); border: 0; border-radius: var(--field); box-shadow: 0 0 0 1px var(--field-ring); }
.searchbox input[type=search]:focus { outline: 0; box-shadow: 0 0 0 2px var(--sky), 0 0 0 5px rgb(20 121 198 / .15); }
.iconbtn { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; color: var(--muted); }
.iconbtn::-webkit-details-marker { display: none; }
.iconbtn:hover, details[open] > .iconbtn { background: var(--hover); color: var(--primary); }
.iconbtn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
details.colmenu, details.rowmenu { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 15; min-width: 12.5rem; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: .8rem; box-shadow: 0 18px 40px -12px rgb(13 42 74 / .4); display: grid; gap: .1rem; text-align: left; }
.pop strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .2rem .5rem .35rem; }
.pop label { margin: 0; padding: .25rem .5rem; border-radius: .5rem; }
.pop label:hover, .pop a:hover { background: var(--hover); }
.pop label input { margin: 0; }
.pop a { padding: .4rem .6rem; border-radius: .5rem; text-decoration: none; color: var(--text); font-size: .88rem; white-space: nowrap; }

.tablewrap.flat { box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); overflow: visible; }
.tablewrap.flat .table { border: 0; border-radius: 0; }
.table.list th { background: var(--tool); padding: .8rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table.list td { padding: 1.05rem 1rem; vertical-align: middle; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.table.list tbody tr:last-child td { border-bottom: 0; }
.table.list a.strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.table.list a.strong:hover { color: var(--link); text-decoration: underline; }
.table.list .recu { font-size: .85rem; line-height: 1.35; }
.table.list .menucol { width: 2.6rem; padding-left: 0; text-align: right; }
.table.list .emptyrow { text-align: center; padding: 2.5rem 1rem; }
.sortlink { color: inherit; text-decoration: none; }
.sortlink span { opacity: .35; font-size: .68rem; margin-left: .15rem; }
.sortlink.on span, .sortlink:hover span { opacity: 1; color: var(--orange); }
.badge.st { padding: .12rem .65rem; background: var(--line); }
.badge.st::before { content: ''; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; margin-right: .4rem; vertical-align: .05em; }
.listfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
.listfoot .pager { display: flex; gap: .6rem; align-items: center; }
.listfoot .perpage label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.listfoot .perpage select { width: auto; margin: 0; padding: .3rem 1.8rem .3rem .6rem; }
@media (max-width: 700px) { .listbar { justify-content: stretch; } .searchbox { flex: 1; } .searchbox input[type=search] { width: 100%; } }

/* ─── Fiche fournisseur (formulaire en cartes) ─── */
.crumbs { margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; align-items: start; }
.formgrid .card { margin-bottom: 1.25rem; }
.formgrid .card.wide, .formgrid .formbar { grid-column: 1 / -1; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.req { color: var(--off); }
.formbar { display: flex; justify-content: flex-end; gap: .6rem; }
button.danger { background: var(--off); border-color: var(--off); color: #fff; }
button.danger:hover { background: color-mix(in srgb, var(--off) 85%, #000); }
input[type=search] { font: inherit; }
@media (max-width: 1000px) { .formgrid, .cols2, .cols3 { grid-template-columns: 1fr; } }
.table.list .who { font-weight: 500; }
form.assignrow select.assignsel { min-width: 15rem; max-width: 100%; }
