/* GestiCash Pro — interface. Bleu nuit (confiance), vert émeraude (argent qui circule), or (valeur). */
:root {
  --navy: #0a1a3d; --navy2: #102a5c; --navy3: #1b3b7a; --em: #0ea371; --em2: #3ee6a8; --gold: #e0a516; --gold2: #ffe08a;
  --ink: #0f1b33; --muted: #5b6785; --line: #e3e8f2; --bg: #f3f6fb; --card: #fff; --soft: #f7f9fd;
  --ok: #047857; --ok-bg: #e8f8f1; --bad: #c0262d; --bad-bg: #fdeeee; --warn: #a45f06; --warn-bg: #fff6e3; --info-bg: #eaf1ff;
  --r: 14px; --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 8px 24px -12px rgba(15, 27, 51, .18);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy3); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--em); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Connexion */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { background: radial-gradient(120% 90% at 0% 0%, #1d4592 0%, var(--navy) 60%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-brand .mark { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.login-brand .mark img { width: 52px; height: 52px; }
.login-brand h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; max-width: 520px; }
.login-brand p { color: #c3cfe8; font-size: 17px; max-width: 480px; margin: 0; }
.login-brand ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: #dfe7f7; }
.login-brand li::before { content: "✓"; color: var(--em2); font-weight: 900; margin-right: 10px; }
.nets { display: flex; gap: 12px; }
.nets img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.login-form { display: grid; place-items: center; padding: 32px; }
.login-form form { width: min(400px, 100%); }
.login-form h2 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.login-form .sub { color: var(--muted); margin: 0 0 26px; }
@media (max-width: 880px) { .login { grid-template-columns: 1fr; } .login-brand { padding: 28px 24px; gap: 18px; } .login-brand h1 { font-size: 26px; } .login-brand ul, .login-brand .nets { display: none; } }

/* ---------- Champs */
label { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--navy3); outline: none; box-shadow: 0 0 0 4px rgba(27, 59, 122, .12); }
input.big { font-size: 30px; font-weight: 800; padding: 14px 16px; letter-spacing: -.01em; }
.pw { position: relative; } .pw input { padding-right: 52px; }
.pw .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--soft); font-size: 18px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 650; white-space: nowrap; }
.btn:hover { border-color: #c6d0e3; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--navy2); border-color: var(--navy2); color: #fff; }
.btn.primary:hover { background: var(--navy3); }
.btn.go { background: linear-gradient(135deg, #12b57f, var(--em)); border-color: var(--em); color: #fff; }
.btn.danger { color: var(--bad); border-color: #f2c6c8; }
.btn.block { width: 100%; min-height: 52px; font-size: 16px; margin-top: 20px; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 12px 0; }
.ok-box { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 12px 0; }

/* ---------- Coque de l'application */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #c9d4ea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; }
.side .mark { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 800; font-size: 17px; }
.side .mark img { width: 36px; height: 36px; }
.side .mark small { display: block; font-size: 11px; font-weight: 600; color: var(--em2); letter-spacing: .08em; text-transform: uppercase; }
.side nav { display: grid; gap: 2px; }
.side nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font-weight: 600; text-align: left; }
.side nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav button.on { background: rgba(62, 230, 168, .12); color: #fff; box-shadow: inset 3px 0 0 var(--em2); }
.side nav .ic { width: 20px; text-align: center; font-size: 17px; }
.side .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6f7fa3; margin: 16px 12px 6px; }
.side .foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.side .foot b { color: #fff; display: block; }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: rgba(243, 246, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.top .sp { flex: 1; }
.top select { width: auto; min-width: 200px; padding: 8px 12px; font-size: 14px; font-weight: 650; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--soft); border: 1px solid var(--line); }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe8d6; }
.chip.off { background: var(--bad-bg); color: var(--bad); border-color: #f2c6c8; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.page { padding: 24px 28px 90px; max-width: 1320px; }
.tabbar { display: none; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; } .side { display: none; }
  .top { padding: 10px 14px; } .top h1 { font-size: 17px; } .top select { min-width: 0; max-width: 46vw; }
  .page { padding: 14px 14px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 650; color: var(--muted); padding: 4px 0; min-height: 52px; }
  .tabbar button .ic { font-size: 20px; }
  .tabbar button.on { color: var(--navy2); }
  .tabbar button.op .ic { background: linear-gradient(135deg, #12b57f, var(--em)); color: #fff; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 8px 18px -6px rgba(14, 163, 113, .7); }
}

/* ---------- Cartes et grilles */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1150px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } .g4 { gap: 10px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.card h2 .sp { flex: 1; }
.section { margin-top: 22px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 650; }
.kpi b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; }
.kpi small { color: var(--muted); font-weight: 600; }
.kpi.hero { background: linear-gradient(135deg, var(--navy2), var(--navy)); color: #fff; border: 0; }
.kpi.hero span, .kpi.hero small { color: #b9c7e6; }
@media (max-width: 620px) { .kpi b { font-size: 20px; } .card { padding: 16px; } }

/* Trésorerie : espèces et UV par réseau */
.till { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1150px) { .till { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .till { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bal { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #fff; padding: 16px; box-shadow: var(--shadow); }
.bal .head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.bal .head img, .netlogo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
.bal .cashic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-bg); font-size: 18px; }
.bal b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 12px; }
.bal small { color: var(--muted); font-weight: 600; font-size: 12px; }
.bal.low { border-color: #f3c98a; background: linear-gradient(0deg, var(--warn-bg), #fff 70%); }
.bal.low small { color: var(--warn); }
.bal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--em)); }
.bal.net-wave { --c: #1dc8ff; } .bal.net-orange { --c: #ff7900; } .bal.net-mtn { --c: #ffcb05; } .bal.net-moov { --c: #0066b3; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-weight: 600; margin-bottom: 8px; }
.alert.bad { background: var(--bad-bg); color: var(--bad); }

/* Tableaux */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid #eef1f7; vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--soft); }
td.r, th.r { text-align: right; }
.cell-net { display: flex; align-items: center; gap: 8px; } .cell-net img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe8d6; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: #f2c6c8; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: #f3dca8; }
tr.cancelled td { color: #9aa3b8; } tr.cancelled td .amt { text-decoration: line-through; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; padding: 9px 12px; font-size: 14px; }
.toolbar .sp { flex: 1; }

/* ---------- Nouvelle opération */
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 10px; font-weight: 750; display: grid; gap: 4px; justify-items: center; }
.seg button .ic { font-size: 22px; }
.seg button small { font-weight: 600; color: var(--muted); font-size: 11px; }
.seg button.on { border-color: var(--navy2); background: var(--info-bg); box-shadow: 0 0 0 3px rgba(16, 42, 92, .1); }
@media (max-width: 620px) { .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.netpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.netpick button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.netpick button img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.netpick button.on { border-color: var(--navy2); box-shadow: 0 0 0 3px rgba(16, 42, 92, .12); background: var(--info-bg); }
.netpick button small { color: var(--muted); font-weight: 600; font-size: 11px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button { border: 1px solid var(--line); background: var(--soft); border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.tabs { display: inline-flex; background: #e9eef7; padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.summary { position: sticky; top: 80px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary .line span { color: var(--muted); font-weight: 600; }
.summary .total { font-size: 28px; font-weight: 850; letter-spacing: -.02em; }
.summary .effect { margin-top: 14px; display: grid; gap: 8px; }
.summary .effect div { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-weight: 650; }
.plus { color: var(--ok); } .minus { color: var(--bad); }

/* ---------- Fenêtres */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(10, 26, 61, .45); display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 24px; box-shadow: 0 30px 80px rgba(10, 26, 61, .35); }
.modal h3 { margin: 0 0 6px; font-size: 20px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0; }
.dl dt { color: var(--muted); font-weight: 600; } .dl dd { margin: 0; font-weight: 650; text-align: right; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; background: var(--navy); color: #fff; padding: 13px 20px; border-radius: 12px; font-weight: 650; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); max-width: 92vw; }
.toast.bad { background: var(--bad); }
@media (max-width: 980px) { .toast { bottom: 90px; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 14px; }
.checks input { width: auto; }
.gap-pos { color: var(--ok); font-weight: 800; } .gap-neg { color: var(--bad); font-weight: 800; } .gap-zero { color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.loading { padding: 60px; text-align: center; color: var(--muted); }

/* Ajustements après contrôle visuel */
.card h2.section { margin-top: 22px; }
td.num, td.r, .netpick small, .chip { white-space: nowrap; }
#t-rows select { min-width: 140px; } #t-rows input { min-width: 90px; }
@media (max-width: 980px) {
  .top { gap: 8px; } .top .chip { padding: 5px 9px; font-size: 12px; } .top > .chip:last-child { display: none; }
  .chip .lbl { display: none; }
}

/* ---------- Rapports (Lot 2) */
.rep-bar { padding: 14px 18px; } .rep-bar .toolbar { margin-bottom: 6px; } .rep-scope { margin: 0; font-weight: 600; }
.rep-mini { display: flex; flex-wrap: wrap; gap: 8px; } .rep-mini .badge { font-size: 13px; padding: 6px 12px; }
.rep-note { font-size: 12px; font-weight: 600; }
.rep-tabs { flex-wrap: wrap; } .rep h4 { margin: 20px 0 8px; font-size: 15px; }
tfoot th { color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; border-top: 2px solid var(--line); border-bottom: 0; }
td .muted { font-size: 12px; }
/* Graphique : une série, barres fines arrondies en haut, 2 px d'écart, grille discrète */
.bars { position: relative; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); align-items: end; height: 220px; padding: 22px 0 0; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 22px / 100% 49.5px; }
.bars-max { position: absolute; top: 0; left: 0; font-size: 12px; color: var(--muted); font-weight: 650; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 1px; outline: none; cursor: default; }
.bar i { display: block; width: min(100%, 34px); min-height: 0; background: var(--em); border-radius: 4px 4px 0 0; transition: background .15s; }
.bar i.zero { min-height: 0; }
.bar:hover i, .bar:focus i { background: var(--navy3); }
.bar:focus-visible { outline: 2px solid var(--navy3); outline-offset: -2px; border-radius: 4px; }
.bar span { position: absolute; bottom: -22px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.bars { margin-bottom: 26px; }
.tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 8px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: pre-line; pointer-events: none; z-index: 5; box-shadow: 0 8px 20px rgba(10, 26, 61, .25); }
.modal.wide { width: min(820px, 100%); }
#print { display: none; }

/* ---------- Impression : A4 pour les rapports, ticket 80 mm pour les reçus */
@page { size: A4; margin: 12mm; }
#print.measure { display: block; position: absolute; left: -9999px; top: 0; width: 72mm; }
@media print {
  body.is-printing > :not(#print) { display: none !important; }
  body.is-printing { background: #fff; font-size: 11px; }
  body.is-printing #print { display: block; color: #000; }
  #print.receipt { width: 72mm; margin: 0 auto; }
  #print .tbl-wrap { overflow: visible; margin: 0; }
  #print table { font-size: 10.5px; page-break-inside: auto; } #print tr { page-break-inside: avoid; }
  #print th, #print td { padding: 5px 6px; } #print .cell-net img { width: 16px; height: 16px; }
  #print .badge { border: 1px solid #999; background: none; color: #000; }
  #print .click { cursor: default; } #print .hint { display: none; }
}
.doc-h { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #0a1a3d; padding-bottom: 10px; margin-bottom: 14px; }
.doc-h img { width: 40px; height: 40px; } .doc-h b { display: block; font-size: 17px; } .doc-h span { color: #444; font-weight: 600; }
.doc-sub { margin-left: auto; text-align: right; font-weight: 600; color: #333; }
.doc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.doc-kpis div { border: 1px solid #ccd; border-radius: 6px; padding: 8px; } .doc-kpis span { display: block; color: #555; font-size: 10px; } .doc-kpis b { font-size: 15px; } .doc-kpis small { display: block; color: #555; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; } .doc-sign div { border-top: 1px solid #000; padding-top: 6px; height: 60px; font-weight: 600; }
.doc-f { margin-top: 18px; color: #666; font-size: 9.5px; border-top: 1px solid #ccc; padding-top: 6px; }
.rc { font-family: "Segoe UI", Arial, sans-serif; font-size: 11.5px; color: #000; text-align: center; }
.rc-logo { width: 34px; height: 34px; } .rc-org { display: block; font-size: 14px; } .rc-pt { color: #222; margin: 2px 0 6px; }
.rc-title { font-weight: 800; letter-spacing: .2em; border-top: 1px dashed #000; border-bottom: 1px dashed #000; padding: 4px 0; margin: 6px 0; }
.rc-l { display: flex; justify-content: space-between; gap: 8px; text-align: left; padding: 1.5px 0; } .rc-l b { text-align: right; word-break: break-all; }
.rc-sep { border-top: 1px dashed #000; margin: 5px 0; }
.rc-big { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 5px 0; margin: 5px 0; font-weight: 700; } .rc-big b { font-size: 16px; }
.rc-thanks { margin: 8px 0 0; }
@media (max-width: 620px) { .bars { height: 180px; } .rep-bar .toolbar input[type=date] { flex: 1; } }
@media print { .noprint { display: none !important; } }
a.btn { text-decoration: none; color: inherit; }

/* ---------- Demandes clients (Lot 3) */
.nb { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.tabbar .nb { position: absolute; margin: 0; transform: translate(14px, -4px); min-width: 18px; height: 18px; font-size: 11px; }
.tabbar button { position: relative; }
.rq-list { display: grid; gap: 10px; }
.rq { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rq-no { font-size: 24px; font-weight: 900; color: var(--navy); min-width: 74px; letter-spacing: -.02em; }
.rq-top { display: flex; align-items: center; gap: 8px; } .rq-top img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.rq-meta { font-size: 13.5px; margin-top: 2px; }
.rq-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.rq-taken { border-color: #9fd9c1; background: linear-gradient(90deg, var(--ok-bg), #fff 40%); }
.rq-disputed { border-color: #f2c6c8; background: linear-gradient(90deg, var(--bad-bg), #fff 40%); }
.rq-dispute { margin-top: 6px; color: var(--bad); font-weight: 650; }
.rq-list .rq:first-child.rq-pending { border-color: var(--navy3); box-shadow: 0 0 0 3px rgba(27, 59, 122, .08); }
.alert .btn { margin-left: auto; }
@media (max-width: 620px) { .rq { grid-template-columns: auto 1fr; } .rq-act { grid-column: 1 / -1; justify-content: stretch; } .rq-act .btn { flex: 1; } .rq-no { font-size: 20px; min-width: 60px; } }
.modal .quick { margin: 10px 0 0; }
.qr-box { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; margin-top: 12px; }
.qr svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 620px) { .qr-box { grid-template-columns: 1fr; } .qr { max-width: 240px; margin: 0 auto; } }
/* Affiche A4 du QR code */
.poster { text-align: center; color: #0a1a3d; padding: 8mm 6mm; border: 3px solid #0a1a3d; border-radius: 10mm; min-height: 262mm; display: flex; flex-direction: column; align-items: center; }
.poster-logo { width: 22mm; height: 22mm; } .poster-org { font-size: 22pt; font-weight: 800; margin-top: 3mm; } .poster-pt { font-size: 14pt; color: #333; }
.poster h1 { font-size: 30pt; margin: 8mm 0 2mm; letter-spacing: -.01em; } .poster-sub { font-size: 15pt; margin: 0; color: #333; }
.poster-qr { width: 95mm; margin: 8mm auto 6mm; } .poster-qr svg { width: 100%; height: auto; display: block; }
.poster-steps { list-style: none; padding: 0; margin: 0 auto; text-align: left; display: grid; gap: 3mm; font-size: 14pt; font-weight: 600; }
.poster-steps b { display: inline-grid; place-items: center; width: 9mm; height: 9mm; border-radius: 50%; background: #0ea371; color: #fff; margin-right: 4mm; }
.poster-nets { display: flex; gap: 5mm; justify-content: center; margin-top: 8mm; } .poster-nets img { width: 16mm; height: 16mm; border-radius: 4mm; object-fit: cover; }
.poster-url { margin-top: auto; padding-top: 5mm; font-size: 9pt; color: #555; word-break: break-all; }

/* ---------- Poste d'appel (Lot 4) */
.callbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; }
.callbar > div { display: flex; align-items: center; gap: 10px; } .callbar b { font-size: 18px; }
.btn.callnext { background: linear-gradient(135deg, #ffd45e, var(--gold)); border-color: var(--gold); color: #3b2a00; font-size: 17px; min-height: 54px; padding: 10px 22px; box-shadow: 0 10px 22px -12px rgba(224, 165, 22, .9); }
.btn.callnext small { font-weight: 700; opacity: .75; }
.rq-top .badge { font-size: 11.5px; padding: 2px 8px; }
@media (max-width: 620px) { .callbar .btn.callnext { width: 100%; } }
.rq-top { flex-wrap: wrap; row-gap: 4px; } .rq-top b, .rq-top .num { white-space: nowrap; } .rq-act .btn { white-space: nowrap; }
