.pay-panel{box-sizing:border-box;border:1px solid var(--line,#D7D6DA);border-radius:16px;padding:20px;margin:18px 0;background:var(--card,#fff);color:var(--text,#212023)}
.pay-panel>header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px}
.pay-panel h3{font-size:20px;margin:5px 0;overflow-wrap:anywhere}
.pay-test{font-size:12px;font-weight:700;border-radius:999px;padding:5px 10px;background:#fff4d6;color:#6b4e00}
.pay-amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:14px 0}
.pay-amounts div{padding:12px;border-radius:10px;background:var(--bg,#F5F4F8)}
.pay-amounts dt{font-size:12px;opacity:.75}
.pay-amounts dd{margin:4px 0 0;font-size:18px;font-weight:700}
.pay-amounts dd.pay-amount-split{margin-top:2px;font-size:12px;font-weight:500;opacity:.8}
.pay-note{font-size:14px;line-height:1.6;margin:10px 0}
.pay-ok{color:#1f6b3a;font-weight:600}
.pay-steps{list-style:none;padding:0;margin:14px 0;display:grid;gap:10px}
.pay-steps li{display:flex;gap:12px;align-items:flex-start}
.pay-steps li div{display:grid;gap:3px;font-size:14px;line-height:1.5}
.pay-step-dot{flex:0 0 14px;height:14px;margin-top:4px;border-radius:50%;border:2px solid #937FBE}
.pay-steps li[data-state="done"] .pay-step-dot{background:#937FBE}
.pay-steps li[data-state="current"] .pay-step-dot{box-shadow:0 0 0 4px rgba(147,127,190,.25)}
.pay-lines,.pay-ops{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.pay-lines li{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;border-radius:10px;background:var(--bg,#F5F4F8)}
.pay-lines li>div{flex:1 1 180px;display:grid;gap:2px;font-size:14px;min-width:0;overflow-wrap:anywhere}
.pay-status{font-size:12px;font-weight:700;border-radius:999px;padding:5px 10px;background:#ece8f6;color:#4b3b78}
.pay-status[data-status="released"],.pay-status[data-status="settled"]{background:#e3f4e8;color:#1f6b3a}
.pay-status[data-status="contested"],.pay-status[data-status="escalated"],.pay-status[data-status="awaiting_athlete"],.pay-status[data-status="awaiting_brand"]{background:#fbe9e5;color:#8f2e1c}
.pay-status[data-status="refunded"]{background:var(--bg,#F5F4F8);color:inherit}
.pay-contest{margin:14px 0;padding:14px;border-radius:12px;border:1px solid #c8553d}
.pay-contest>header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.pay-form{display:grid;gap:10px;margin-top:12px}
.pay-form fieldset{border:0;padding:0;margin:0;display:grid;gap:8px}
.pay-form legend{font-size:13px;margin-bottom:6px}
.pay-form label{display:grid;gap:7px;font-size:13px;min-width:0}
.pay-form label.pay-check{display:flex;gap:8px;align-items:center;min-height:44px}
.pay-form select,.pay-form textarea{box-sizing:border-box;min-width:0;width:100%;font:inherit;font-size:16px;border:1px solid var(--line,#D7D6DA);background:var(--bg,#F9F8FB);color:inherit;border-radius:9px;padding:11px;min-height:44px}
.pay-form small{font-size:12px;line-height:1.6;opacity:.8}
.pay-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.pay-actions button,.pay-panel button{min-height:44px}
.pay-chargeback{margin:14px 0;padding:14px;border-radius:12px;border:1px solid #c8553d;background:#fbe9e5;color:#5c1d10;font-size:14px;line-height:1.6}
.pay-chargeback[data-status="won"]{border-color:#1f6b3a;background:#e3f4e8;color:#163f24}
.pay-chargeback p{margin:6px 0 0}
.pay-kyc{margin:14px 0;padding:14px;border-radius:12px;background:#fff8e6}
.pay-ops li{font-size:13px}
html[data-theme="dark"] .pay-test{background:#4a3a08;color:#ffe8a6}
html[data-theme="dark"] .pay-kyc{background:#3a3010}
html[data-theme="dark"] .pay-chargeback{background:#3d1d16;color:#ffd9cf}
html[data-theme="dark"] .pay-chargeback[data-status="won"]{background:#16301f;color:#cdeed7}
html[data-theme="dark"] .pay-status{background:#2e2645;color:#e3dbff}
@media(max-width:600px){.pay-panel{padding:15px}.pay-amounts dd{font-size:16px}}
html[data-theme="dark"] .pay-status[data-status="released"],html[data-theme="dark"] .pay-status[data-status="settled"]{background:#173d25;color:#c9f0d5}
html[data-theme="dark"] .pay-status[data-status="contested"],html[data-theme="dark"] .pay-status[data-status="escalated"],html[data-theme="dark"] .pay-status[data-status="awaiting_athlete"],html[data-theme="dark"] .pay-status[data-status="awaiting_brand"]{background:#4a2018;color:#ffd9cf}

/* Supporting images, amendments. */
.pay-file{display:grid;gap:6px;font-size:.9rem}
.pay-evidence{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:6px 0}
.pay-evidence img{width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--line,#d8dee3)}
.pay-amend{display:grid;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line,#d8dee3)}
.pay-amend h4{margin:0}
.pay-amend fieldset{border:0;padding:0;margin:0;display:grid;gap:8px;min-width:0}
.pay-amend legend{font-weight:600;margin-bottom:4px}
.pay-amend-pending{display:grid;gap:8px;padding:12px;border-radius:10px;background:var(--soft,#f3f1f7)}
/* Agreed dates with their « Proposer un ajustement », and old → new before sending (review 2026-10-22 N37). */
.pay-amend-dates{list-style:none;padding:0;margin:0;display:grid}
.pay-amend-dates li{display:grid;justify-items:start;padding-top:6px;font-size:14px;line-height:1.5;min-width:0}
.pay-amend-dates li+li{border-top:1px solid var(--line,#D7D6DA)}
.pay-amend-dates li>span{min-width:0;overflow-wrap:anywhere}
.pay-nowrap{white-space:nowrap}
.pay-panel .pay-adjust{border:0;background:none;padding:0;min-height:44px;font:inherit;font-size:13px;font-weight:650;color:var(--es-accent-ink,var(--sg-accent,#7159a5));cursor:pointer;text-align:left}
.pay-panel .pay-adjust:focus-visible{outline:3px solid #937FBE;outline-offset:3px;border-radius:6px}
.pay-amend-changes:empty{display:none}
.pay-amend-changes{display:grid;gap:4px;font-size:14px;line-height:1.5}
.pay-amend-changes p{margin:0}
.pay-amend-changes ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.pay-amend-changes li{display:grid;gap:1px;min-width:0;overflow-wrap:anywhere}
.pay-amend-from{color:var(--sg-muted,var(--muted,#716979))}
.pay-mono{font-family:ui-monospace,Menlo,monospace}
.pay-details{margin:14px 0;border-top:1px solid var(--line,#D7D6DA);padding-top:4px}
.pay-details>summary{cursor:pointer;min-height:44px;padding:11px 0;box-sizing:border-box;font-size:13px;font-weight:650}
.pay-details>summary:focus-visible{outline:3px solid #937FBE;outline-offset:3px;border-radius:6px}
.pay-steps-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.pay-steps-compact li{display:grid;align-content:start;justify-items:start;gap:7px;padding:10px;border:1px solid var(--line,#D7D6DA);border-radius:10px;min-width:0;font-size:12px;line-height:1.4}
.pay-steps-compact .pay-step-dot{margin:0}
.pay-step-state{font-size:11px;color:var(--muted,#716979)}
.pay-next{display:grid;gap:5px;padding:13px 14px;border-radius:12px;background:var(--bg,#F5F4F8);font-size:13px;line-height:1.5}
.pay-next b{font-size:14px}.pay-next span{overflow-wrap:anywhere}
.pay-operation-cards li{display:grid;gap:4px;padding:12px;border:1px solid var(--line,#D7D6DA);border-radius:10px}
.pay-operation-cards small{font-size:12px;line-height:1.5}
@media(max-width:420px){.pay-steps-compact li{padding:8px 6px;font-size:11px}.pay-steps-compact .pay-step-state{font-size:10px}}

/* In the shared file, amounts and operations are rows, not cards within cards. */
.pay-compact .pay-amounts>div,.pay-compact .pay-lines>li,.pay-compact .pay-operation-cards>li{padding:10px 0;border:0;border-radius:0;background:transparent}
.pay-compact .pay-lines>li+li,.pay-compact .pay-operation-cards>li+li{border-top:1px solid var(--line,#D7D6DA)}
.pay-compact .pay-next,.pay-compact .pay-amend-pending{padding:0;border-radius:0;background:transparent}
.pay-compact .pay-details>.pay-amend{margin-top:0;padding-top:0;border-top:0}
.pay-compact .pay-simulation,.pay-compact .pay-deadline{font-size:13px;line-height:1.4;color:var(--sg-muted,var(--muted));background:none;border:0;padding:0}
.pay-compact .pay-deadline{margin:0 0 12px}
/* F1: identity and IBAN asked once, above the partnerships, from the first brand payment received. */
#app .pay-early{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px;padding:14px 16px;border-radius:14px;background:var(--sg-surface,rgba(99,66,240,.08));border:1px solid var(--sg-line,transparent)}
#app .pay-early p{margin:0;flex:1 1 220px;color:var(--sg-text,inherit);font-weight:600}
#app .pay-early .v29-main-btn{flex:0 0 auto}
/* The amendment in its bottom menu (Haize, 2026-11-11: every menu rises from the bottom like the notifications).
   Same fields as the other bottom menus; each deliverable is one block with its two values side by side.
   Haize's iPhone, 2026-11-12: the date fields ran past the menu, the two values of a deliverable overlapped and its title sat on
   the frame's line. The date fields are corrected for every bottom menu in confirm-sheet.css; here a group is a plain block
   (payment-panel.js, group()), never a fieldset with its legend, and its two values share a grid that cannot be pushed wider. */
html[data-theme] .sg-sheet .pay-sheet-form{display:grid;gap:14px;margin:0}
html[data-theme] .sg-sheet .pay-sheet-form>.pay-note{margin:0;color:var(--sg-muted);font-size:calc(.875rem * var(--elan-ui-scale,1));line-height:1.45}
html[data-theme] .sg-sheet .pay-sheet-form label{display:grid;gap:6px;min-width:0;margin:0;color:var(--sg-text);font:600 calc(.875rem * var(--elan-ui-scale,1))/1.35 var(--elan-ui-font,system-ui)}
html[data-theme] .sg-sheet .pay-sheet-form :is(input:not([type="checkbox"]):not([type="file"]),textarea){box-sizing:border-box;display:block;width:100%;min-width:0;min-height:48px;margin:0;padding:10px 14px;border:1px solid var(--sg-control);border-radius:10px;background:var(--sg-surface);color:var(--sg-text);font:400 16px/1.35 var(--elan-ui-font,system-ui)}
html[data-theme] .sg-sheet .pay-sheet-form textarea{resize:vertical;min-height:72px}
html[data-theme] .sg-sheet .pay-sheet-form :is(input:not([type="checkbox"]):not([type="file"]),textarea):focus-visible{outline:2px solid var(--sg-accent);outline-offset:1px}
html[data-theme] .sg-sheet .pay-sheet-form .pay-sheet-group{box-sizing:border-box;display:grid;gap:10px;min-width:0;margin:0;padding:12px;border:1px solid var(--sg-block-line,transparent);border-radius:14px;background:var(--sg-block,transparent);box-shadow:var(--sg-block-shadow,none)}
html[data-theme] .sg-sheet .pay-sheet-form .pay-sheet-group-title{margin:0;padding:0;color:var(--sg-text);font:650 calc(.9375rem * var(--elan-ui-scale,1))/1.35 var(--elan-ui-font,system-ui);overflow-wrap:anywhere}
html[data-theme] .sg-sheet .pay-sheet-form .pay-sheet-group-fields{display:grid;gap:4px;min-width:0}
html[data-theme] .sg-sheet .pay-amend-sheet .pay-sheet-group-fields{grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));align-items:end;gap:10px}
html[data-theme] .sg-sheet .pay-sheet-form .pay-amend-changes{padding:12px;border-radius:14px;background:color-mix(in srgb,var(--sg-live,#6342f0) 12%,transparent);color:var(--sg-text)}
html[data-theme] .sg-sheet .pay-sheet-form label.pay-check{display:flex;align-items:center;gap:12px;min-height:48px;font-weight:500}
html[data-theme] .sg-sheet .pay-sheet-form label.pay-check>input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--sg-accent)}
html[data-theme] .sg-sheet .pay-sheet-form .pay-file{font-weight:500;color:var(--sg-muted)}
html[data-theme] .sg-sheet .pay-sheet-form>small{color:var(--sg-muted);font-size:calc(.8125rem * var(--elan-ui-scale,1));line-height:1.5;opacity:1}
/* Haize, 2026-11-12: « j'ai deux fois, proposer un ajustement et en dessous, modifier l'accord. Enlève le modifier l'accord. »
   In the shared file, « Proposer un ajustement » (partnership-flow-ui.js) is the one way to the amendment: wherever that button
   shows, this panel's « Modifier l'accord » is not drawn, nor while the file is loading (it would appear, then vanish). It stays
   where the file has no such button (a file that could not be read, the request sheet before payment), so the amendment is
   never out of reach. A pending amendment is not inside this row. */
html[data-theme] #app .form-partnership-dialog:has([data-flow-adjust]:not([hidden]),.sf-host>.sf-loading) details[data-pay-amend-disclosure]{display:none!important}
/* A payment simply received says nothing in the file (Haize, 2026-11-16): left with only that hidden row, the block is not drawn. */
html[data-theme] #app .form-partnership-dialog:has([data-flow-adjust]:not([hidden]),.sf-host>.sf-loading) .pay-panel[data-pay-quiet]:not(:has(>:not(details[data-pay-amend-disclosure]))){display:none!important}
