.wg-module{max-width:1600px;margin:auto;padding:28px;color:var(--wx-ink-700,#203652);font-size:14px}.wg-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:24px}.wg-heading h1{font-size:26px;font-weight:650;letter-spacing:-.025em;margin:6px 0;color:var(--wx-ink-900,#0f172a)}.wg-heading p{color:var(--wx-ink-500,#647791)}.wg-kicker{font-size:11px;letter-spacing:.14em;font-weight:700;text-transform:uppercase;color:var(--wx-primary,#2f6be6)}.wg-module button{border:1px solid var(--wx-line,#dce4ef);border-radius:8px;padding:8px 12px;background:#fff;font-weight:600;font-size:12px;color:var(--wx-ink-700,#203652);box-shadow:0 1px 2px rgba(15,23,42,.05);transition:background-color .15s ease,border-color .15s ease,color .15s ease}.wg-module button:hover{background:var(--wx-surface-2,#f8fafc);border-color:var(--wx-ink-300,#cbd5e1)}.wg-module button:disabled{opacity:.45;cursor:not-allowed}.wg-module .wg-primary{background:var(--wx-primary,#2f6be6);color:#fff;border-color:transparent;box-shadow:0 1px 2px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.12)}.wg-module .wg-primary:hover{background:var(--wx-primary-hover,#245ad0);border-color:transparent}.wg-tabs,.wg-toolbar,.wg-actions,.wg-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.wg-tabs{margin:20px 0;gap:4px;padding:4px;border-radius:10px;background:var(--wx-surface-2,#f8fafc);border:1px solid var(--wx-line-soft,#eef2f6);width:fit-content;max-width:100%}.wg-tabs button{border:0;background:transparent;box-shadow:none;color:var(--wx-ink-500,#64748b);padding:7px 14px}.wg-tabs button:hover{background:transparent;color:var(--wx-ink-900,#0f172a)}.wg-tabs button.active{background:#fff;color:var(--wx-ink-900,#0f172a);box-shadow:0 1px 2px rgba(15,23,42,.06),0 1px 3px rgba(15,23,42,.05)}.wg-toolbar{margin:20px 0}.wg-toolbar h2{font-size:18px;font-weight:700;flex:1}.wg-module input,.wg-module select,.wg-module textarea{border:1px solid #d6dce6;border-radius:8px;padding:9px 12px;min-height:38px;background:white;max-width:100%;font-size:13px;min-width:0;box-shadow:0 1px 2px rgba(15,23,42,.05)}.wg-module input:focus,.wg-module select:focus,.wg-module textarea:focus{outline:none;border-color:var(--wx-primary,#2f6be6);box-shadow:0 0 0 3px var(--wx-primary-ring,rgba(47,107,230,.18))}.wg-module label{display:block;font-size:12px;font-weight:500;color:var(--wx-ink-500,#556c89)}.wg-module label>input,.wg-module label>select,.wg-module label>textarea{display:block;width:100%;margin-top:6px}.wg-module .wg-checkboxes input{display:inline;width:auto;margin-right:6px}.wg-checkboxes{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0}.wg-error,.wg-notice{padding:14px 16px;border-radius:10px;margin:16px 0;font-size:13px;border:1px solid transparent}.wg-error{background:var(--wx-danger-soft,#fff0ee);color:var(--wx-danger,#a03528);border-color:#fecaca}.wg-notice{background:var(--wx-success-soft,#eaf5ee);color:var(--wx-success,#24683e);border-color:#bbf7d0}.wg-panel{border:1px solid var(--wx-line,#dfe6ef);border-radius:12px;background:white;padding:22px;margin:20px 0;box-shadow:0 1px 2px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.05)}.wg-panel header{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--wx-line-soft,#edf0f5);padding-bottom:16px;margin-bottom:20px}.wg-panel h2,.wg-panel h3{font-weight:650;letter-spacing:-.01em;color:var(--wx-ink-900,#0f172a)}.wg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.wg-wide{grid-column:1/-1}.wg-module textarea{min-height:100px}.wg-editor footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;font-size:12px;color:#6c7e95}.wg-lines{display:grid;grid-template-columns:3fr 1fr 1fr auto;gap:14px;align-items:end;margin:15px 0}.wg-file{margin:20px 0}.wg-muted{font-size:12px;color:#73839a}.wg-kanban{display:flex;overflow-x:auto;gap:14px;padding-bottom:20px;align-items:flex-start}.wg-column{width:272px;min-width:272px;background:var(--wx-surface-2,#f8fafc);border:1px solid var(--wx-line,#e4e8ef);border-radius:12px;padding:12px}.wg-column h2{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--wx-ink-500,#64748b);display:flex;justify-content:space-between;align-items:center;margin:4px 2px 14px}.wg-column h2 span{background:white;border:1px solid var(--wx-line,#e4e8ef);padding:1px 8px;border-radius:999px;font-size:12px;color:var(--wx-ink-700,#334155)}.wg-column article{background:white;border:1px solid var(--wx-line,#dfe5ef);border-radius:10px;padding:14px;margin:10px 0;box-shadow:0 1px 2px rgba(15,23,42,.05);transition:box-shadow .15s ease,transform .15s ease}.wg-column article:hover{box-shadow:0 4px 12px -4px rgba(15,23,42,.12);transform:translateY(-1px)}.wg-column h3{font-size:14px;font-weight:650;margin:8px 0;color:var(--wx-ink-900,#0f172a)}.wg-column p,.wg-column small{font-size:12px;color:#6b7d94;margin:8px 0}.wg-column select{width:100%;margin:12px 0}.wg-badges span{padding:2px 8px;font-size:12px;font-weight:600;background:var(--wx-primary-soft,#eef3fa);color:var(--wx-primary-hover,#245ad0);border-radius:999px}.wg-late{color:#ab4933!important}.wg-actions button{font-size:12px;padding:6px 8px}.wg-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.wg-cards .wg-panel{margin:0}.wg-cards p{margin:8px 0;font-size:13px}.wg-table{background:white;border:1px solid var(--wx-line,#dfe6ef);border-radius:12px;overflow:auto;box-shadow:0 1px 2px rgba(15,23,42,.04)}.wg-module table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.wg-module th{background:var(--wx-surface-2,#f8fafc);padding:12px 14px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--wx-ink-500,#6a7c94);border-bottom:1px solid var(--wx-line,#e4e8ef)}.wg-module td:first-child{white-space:nowrap}.wg-module td{padding:14px;border-top:1px solid var(--wx-line-soft,#edf0f5);font-variant-numeric:tabular-nums}.wg-module tbody tr:hover td{background:var(--wx-surface-2,#f8fafc)}.wg-module td small{display:block;color:#71829a;margin-top:5px}.wg-empty{padding:25px;color:#8090a5;font-size:12px;text-align:center}.wg-history{padding:12px;border-bottom:1px solid #edf0f5;font-size:12px}.wg-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.wg-metrics div{background:white;padding:22px;border:1px solid var(--wx-line,#dfe6ef);border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.05)}.wg-metrics small{display:block;color:#73859d}.wg-metrics strong{display:block;font-size:26px;font-weight:650;letter-spacing:-.02em;margin-top:10px;font-variant-numeric:tabular-nums;color:var(--wx-ink-900,#0f172a)}.wg-totals{max-width:350px;margin:20px 0 20px auto}.wg-totals p{display:flex;justify-content:space-between;padding:5px 0}.wg-pre{white-space:pre-wrap;margin:20px 0}.wg-signatures{display:flex;justify-content:space-between;min-height:130px;margin-top:50px}.wg-print p{margin:12px 0}@media(max-width:800px){.wg-module{padding:16px}.wg-heading{display:block}.wg-heading label{margin-top:14px}.wg-grid,.wg-cards{grid-template-columns:1fr}.wg-lines{grid-template-columns:1fr 1fr}.wg-lines label:first-child{grid-column:1/-1}.wg-metrics{grid-template-columns:1fr}.wg-toolbar input{width:100%}.wg-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:10px}.wg-tabs button{white-space:nowrap}.wg-editor footer{align-items:flex-start}.wg-editor footer span{max-width:50%}}@media print{body *{visibility:hidden}.wg-print,.wg-print *{visibility:visible}.wg-print{position:absolute;left:0;top:0;width:100%;border:0;margin:0;padding:20px}.wg-print button{display:none}.wg-print tr{break-inside:avoid}.wg-print header{display:block}.wg-print .wg-grid{grid-template-columns:1fr 1fr}}
.wg-statut{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.wg-statut--payee{background:#ecfdf3;color:#15803d}.wg-statut--attente{background:#eaf1fe;color:#2f6be6}.wg-statut--retard{background:#fef2f2;color:#b91c1c}.wg-statut--brouillon{background:#f1f5f9;color:#64748b}.wg-statut--annulee{background:#f1f5f9;color:var(--wx-ink-500,#64748b);text-decoration:line-through}
.wg-statut--payee-texte{color:#15803d}
.wg-badges .wg-badge-ats{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;text-decoration:none}.wg-badges .wg-badge-ats:hover{background:#ffedd5}
.wg-metrics--4{grid-template-columns:repeat(4,1fr)}.wg-metrics span{display:block;margin-top:4px;font-size:12px;color:var(--wx-ink-500,#64748b)}
.wg-module td small{font-weight:500}.wg-module td.wg-late small{color:#b91c1c}
@media(max-width:1100px){.wg-metrics--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mobile (≤ 640 px) — audit du 21/09/2026 : textes ≥ 12 px, cibles ≥ 40 px,
   tuiles en une colonne, kanban en colonnes plein écran avec accroche. */
@media(max-width:640px){
.wg-module{padding:14px 12px;font-size:15px}
.wg-heading h1{font-size:22px}
.wg-kicker{font-size:12px}
.wg-module button{font-size:13px;min-height:40px;padding:9px 14px}
.wg-actions{gap:6px}.wg-actions button{font-size:12px;min-height:40px;padding:8px 12px}
.wg-tabs{width:100%;margin:14px 0}.wg-tabs button{min-height:38px;padding:8px 12px;font-size:13px}
.wg-badges span{font-size:12px;padding:4px 10px}
.wg-metrics,.wg-metrics--4{grid-template-columns:minmax(0,1fr);gap:10px}
.wg-metrics div{padding:16px;min-width:0}.wg-metrics strong{font-size:22px;margin-top:6px;overflow-wrap:anywhere}.wg-metrics span,.wg-metrics small{font-size:12px}
.wg-module input,.wg-module select,.wg-module textarea{font-size:16px;min-height:44px}
.wg-module label{font-size:13px}
.wg-toolbar{gap:10px}.wg-toolbar h2{font-size:17px;flex-basis:100%}
.wg-kanban{scroll-snap-type:x mandatory;gap:10px;margin:0 -12px;padding:0 12px 16px}
.wg-column{width:86vw;min-width:86vw;scroll-snap-align:start}
.wg-column h2{font-size:12px}.wg-column h2 span{font-size:12px}
.wg-column h3{font-size:15px}.wg-column p,.wg-column small{font-size:13px}
.wg-column article{padding:14px 12px}
.wg-module table{font-size:13px}.wg-module th{font-size:12px;padding:10px 12px}.wg-module td{padding:12px}.wg-module td small{font-size:12px}
.wg-muted,.wg-empty,.wg-history,.wg-editor footer,.wg-error,.wg-notice{font-size:13px}
.wg-statut{font-size:12px}
.wg-panel{padding:16px}.wg-modale header{margin:-16px -16px 16px;padding:14px 16px}
.wg-voile{padding:0}.wg-modale{max-height:100vh;border-radius:0}
.wg-lines{grid-template-columns:1fr}.wg-lines label:first-child{grid-column:auto}
.wg-totals{max-width:none}
.wg-signatures{flex-direction:column;gap:24px;min-height:0}
/* Listes (contrats, factures, encaissements) en cartes : une ligne = une carte, libellé de colonne repris via data-label. */
.wg-table{overflow:visible}
.wg-table table,.wg-table tbody,.wg-table tr,.wg-table td{display:block;width:100%;box-sizing:border-box}
.wg-table thead{display:none}
.wg-table tr{padding:8px 14px 12px;border-top:1px solid var(--wx-line,#e4e8ef)}
.wg-table tr:first-child{border-top:0}
.wg-table td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:6px 0;border:0;text-align:right;white-space:normal}
.wg-table td::before{content:attr(data-label);flex:0 0 42%;text-align:left;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--wx-ink-500,#6a7c94)}
.wg-table td:first-child::before{display:none}
.wg-table td:first-child{display:block;text-align:left;padding-top:8px}
.wg-table td:first-child strong{font-size:15px}
.wg-table td small{display:inline;margin:0 0 0 6px}
.wg-table td:first-child small{display:block;margin:2px 0 0}
.wg-table tbody tr:hover td{background:transparent}
.wg-table td.wg-cell-actions{display:block;padding:10px 0 0}
.wg-table td.wg-cell-actions::before{display:none}
.wg-table td.wg-cell-actions .wg-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wg-table td.wg-cell-actions button{margin:0;width:100%}
}
/* Éditeur, historique et aperçu s'ouvrent au-dessus de la liste (auparavant rendus en bas de page, hors écran). */
.wg-voile{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px 16px;background:rgba(11,26,54,.45);backdrop-filter:blur(6px);overflow-y:auto}
.wg-modale{width:100%;max-width:760px;max-height:88vh;overflow-y:auto;margin:0!important;box-shadow:0 24px 48px -16px rgba(15,23,42,.28),0 8px 16px -8px rgba(15,23,42,.1)}
.wg-modale--large{max-width:900px}
.wg-modale header{position:sticky;top:0;z-index:1;background:#fff;margin:-22px -22px 20px;padding:16px 22px}
@media print{.wg-voile{position:static;padding:0;background:none;backdrop-filter:none}.wg-modale{max-height:none;overflow:visible;box-shadow:none}.wg-modale header{position:static}}
/* Bouton de dépôt de scan (accusé de réception, pièce de règlement) : un <label> stylé comme .wg-module button, l'<input type=file> réel est masqué. */
.wg-file-btn{display:inline-flex;align-items:center;border:1px solid var(--wx-line,#dce4ef);border-radius:8px;padding:6px 10px;background:#fff;font-weight:600;font-size:12px;color:var(--wx-ink-700,#203652);box-shadow:0 1px 2px rgba(15,23,42,.05);cursor:pointer;white-space:nowrap;margin:0}
.wg-file-btn:hover{background:var(--wx-surface-2,#f8fafc);border-color:var(--wx-ink-300,#cbd5e1)}
.wg-file-btn input{display:none}
/* ── Document facture (aperçu + impression), modèle repris de l'intranet et modernisé ── */
.fx{--fx-navy:#173968;--fx-blue:#2f6be6;--fx-soft:#eaf1fe;--fx-line:#d6e2f5;--fx-ink:#0f172a;--fx-muted:#475569;position:relative;font-size:12.5px;color:var(--fx-ink);line-height:1.45}
.fx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:14px;margin-bottom:18px;border-bottom:3px solid var(--fx-blue)}
.fx-logo{height:56px;max-width:220px;object-fit:contain;display:block;margin-bottom:8px}
.fx-issuer{max-width:300px}.fx-issuer-name{font-size:20px;font-weight:800;color:var(--fx-navy);letter-spacing:-.02em}
.fx-issuer-addr{font-size:10.5px;color:var(--fx-muted);margin-top:4px}.fx-issuer-ids{font-size:10px;color:var(--fx-muted);margin-top:4px;display:flex;flex-wrap:wrap;gap:4px 12px}
.fx-title{text-align:right;position:relative}
.fx-badge{display:inline-block;background:var(--fx-navy);color:#fff;font-size:20px;font-weight:800;letter-spacing:.2em;padding:6px 18px;border-radius:6px;text-transform:uppercase}
.fx-num{font-size:13px;font-weight:700;color:var(--fx-blue);margin-top:6px;letter-spacing:.02em}
.fx-meta{display:grid;grid-template-columns:auto auto;gap:2px 10px;justify-content:end;margin:6px 0 0;font-size:10.5px;color:var(--fx-muted)}.fx-meta dt{text-align:right}.fx-meta dd{margin:0;color:var(--fx-ink);font-weight:600;text-align:left}
.fx-clearance{display:inline-block;margin-top:6px;padding:3px 8px;border-radius:4px;background:#dcfce7;color:#166534;font-size:10px;font-weight:700}
.fx-stamp{display:inline-block;margin-top:8px;padding:3px 12px;border:2px solid #15803d;border-radius:6px;color:#15803d;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;transform:rotate(-4deg)}
.fx-stamp--late{border-color:#b91c1c;color:#b91c1c}.fx-stamp--draft{border-color:#64748b;color:#64748b}.fx-stamp--void{border-color:#94a3b8;color:#94a3b8;text-decoration:line-through}
.fx-parties{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.fx-party{border:1px solid var(--fx-line);border-radius:8px;padding:12px 14px;background:#f5f8fe}.fx-party--client{background:#fff}
.fx-party-label{font-size:8.5px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;color:var(--fx-blue);margin-bottom:6px}
.fx-party-name{font-size:13.5px;font-weight:700;color:var(--fx-navy);margin-bottom:2px}.fx-party-info{font-size:10.5px;color:var(--fx-muted)}
.fx-party-ids{font-size:10px;color:var(--fx-muted);margin-top:6px;padding-top:5px;border-top:1px solid var(--fx-line);display:flex;flex-wrap:wrap;gap:3px 12px}
.fx-object{margin:0 0 10px;padding:8px 12px;border-left:3px solid var(--fx-blue);background:var(--fx-soft);font-weight:600;font-size:12.5px}.fx-object span{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--fx-blue);margin-right:8px}.fx-object em{font-style:normal;color:var(--fx-muted);font-weight:500}
.fx table{border-collapse:collapse}
.fx-lines{width:100%}.fx-lines th{background:var(--fx-navy)!important;color:#fff;padding:8px 11px;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:none;border:0}
.fx-lines td{padding:9px 11px;border-bottom:1px solid #e6eefc;font-size:12px}.fx-lines tbody tr:nth-child(even) td{background:#f8fbff}
.fx .c{text-align:center}.fx .r{text-align:right}.fx-lines th.r,.fx-lines td.r{text-align:right}.fx-lines th.c,.fx-lines td.c{text-align:center}
.fx-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-top:14px}
.fx-arrete{flex:1;min-width:0;padding:10px 14px;background:#dbeafe;border:1px solid var(--fx-line);border-left:4px solid var(--fx-blue);border-radius:6px;font-size:11px;color:#1e3a5f}.fx-arrete strong{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--fx-navy);margin-bottom:3px}.fx-arrete span{font-style:italic}
.wg-module .fx-totals{width:300px;min-width:300px;flex:none}.wg-module .fx-lines{width:100%}.wg-module .fx-regl{width:100%}.fx-totals td{padding:6px 12px;font-size:12px;border:0}.fx-totals td:first-child{color:var(--fx-muted)}.fx-totals td:last-child{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.fx-totals tr.tva td{background:#f5f8fe;border-top:1px solid var(--fx-line);border-bottom:1px solid var(--fx-line)}
.fx-totals tr.ttc td{background:var(--fx-blue);color:#fff!important;font-size:13.5px;font-weight:800;padding:9px 12px}
.fx-totals tr.ras td{background:#fff8f0;color:#92400e}.fx-totals tr.ras td:last-child{color:#c2410c}
.fx-totals tr.net td{background:var(--fx-navy);color:#fff!important;font-weight:800;font-size:13px;padding:9px 12px}
.fx-totals tr.paid td{color:#15803d}.fx-totals tr.due td{border-top:2px solid var(--fx-navy);font-weight:800;color:var(--fx-navy)!important;font-size:13px}
.fx-cond{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:16px;padding-top:12px;border-top:2px solid var(--fx-blue);font-size:10.5px;color:var(--fx-muted)}
.fx-cond-title{font-weight:700;color:var(--fx-navy);margin-bottom:4px;font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.fx-regl{width:100%}.fx-regl td{padding:3px 6px 3px 0;font-size:10.5px;border-bottom:1px solid #e6eefc}
.fx-pre{white-space:pre-wrap;margin-top:4px}
.fx-rib{margin-top:16px;border:1.5px solid var(--fx-line);border-radius:8px;overflow:hidden;font-size:11px;page-break-inside:avoid}
.fx-rib-head{background:var(--fx-navy);color:#fff;padding:7px 14px;font-weight:700;font-size:10.5px;letter-spacing:.04em}
.fx-rib-body{display:grid;grid-template-columns:1fr 1.2fr}.fx-rib-body>div{padding:10px 14px}.fx-rib-body>div:first-child{border-right:1px solid var(--fx-line)}
.fx-rib-body>div>div{display:flex;gap:10px;margin-bottom:5px}.fx-rib-body span{color:var(--fx-muted);width:90px;flex:none}.fx-rib-body strong{color:var(--fx-navy)}.fx .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em}
.fx-rib-note{font-size:9.5px;color:var(--fx-muted);display:block!important}
.fx-foot{margin-top:18px;border-top:1.5px solid var(--fx-line);padding-top:8px;display:flex;justify-content:space-between;align-items:flex-end;font-size:8.5px;color:var(--fx-muted);line-height:1.6}.fx-foot strong{color:var(--fx-navy)}
.wg-print header h2{font-size:16px}
@media print{@page{size:A4 portrait;margin:14mm 16mm 18mm}.fx{font-size:11.5px}.wg-print header{display:none!important}.fx-head,.fx-lines th,.fx-totals tr.ttc td,.fx-totals tr.net td,.fx-rib-head,.fx-party,.fx-arrete,.fx-object{-webkit-print-color-adjust:exact;print-color-adjust:exact}.fx-stamp{transform:none}}
/* Mobile (≤ 640 px) — panneaux plein écran et document de facture en une colonne (écran uniquement ; l'impression garde la mise en page A4). */
@media screen and (max-width:640px){
.wg-voile{padding:0;align-items:stretch}
.wg-modale,.wg-modale--large{max-width:none;max-height:none;min-height:100vh;border-radius:0;padding:16px}
.wg-modale header{margin:-16px -16px 16px;padding:12px 16px}
.wg-panel header{flex-wrap:wrap}
.fx{font-size:12px}
.fx-head{flex-direction:column;gap:12px}.fx-meta{justify-content:start}
.fx-parties,.fx-cond,.fx-rib-body{grid-template-columns:1fr}
.fx-issuer{max-width:none}
.fx-lines{table-layout:fixed;width:100%}
.fx-lines th,.fx-lines td{padding:7px 5px;overflow-wrap:anywhere;white-space:normal;font-size:11px}
.fx-lines th.c:first-child,.fx-lines td.c:first-child{width:6%}.fx-lines th.c,.fx-lines td.c{width:11%;white-space:nowrap}.fx-lines th.r,.fx-lines td.r{width:24%}.fx-lines th{font-size:9.5px;letter-spacing:.02em}.fx-lines td.r{white-space:nowrap;overflow-wrap:normal;font-size:10.5px}
.fx-bottom{flex-direction:column}.fx-totals{width:100%;min-width:0}
.fx-foot{flex-direction:column;align-items:flex-start;gap:6px}
}
/* Prime de placement : aperçu pendant la saisie et suivi des objectifs (parité intranet). */
.wg-apercu-prime{display:flex;flex-direction:column;gap:4px;margin:16px 0;padding:14px 16px;border-radius:10px;border:1px solid #bbf7d0;border-left:4px solid var(--wx-success,#24683e);background:var(--wx-success-soft,#eaf5ee);color:#14532d;font-size:13px}
.wg-apercu-prime strong{font-size:15px}
.wg-apercu-prime.is-hors-grille{border-color:#fecaca;border-left-color:var(--wx-danger,#a03528);background:var(--wx-danger-soft,#fff0ee);color:#7f1d1d}
.wg-objectifs{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:16px 0}
.wg-objectif{border:1px solid var(--wx-line,#dfe6ef);border-radius:10px;background:#fff;padding:12px 14px}
.wg-objectif-tete{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-bottom:8px}
.wg-objectif small{display:block;margin-top:6px;font-size:12px;color:var(--wx-ink-500,#64748b)}
.wg-jauge{position:relative;height:8px;border-radius:999px;background:var(--wx-surface-2,#eef2f7);overflow:hidden}
.wg-jauge-min{position:absolute;top:0;bottom:0;left:0;border-right:2px dashed #94a3b8}
.wg-jauge-val{position:absolute;top:0;bottom:0;left:0;border-radius:999px}
.wg-jauge-val.est-bas{background:#f59e0b}.wg-jauge-val.est-ok{background:var(--wx-primary,#2f6be6)}.wg-jauge-val.est-max{background:var(--wx-success,#24683e)}
@media screen and (max-width:640px){.wg-objectifs{grid-template-columns:minmax(0,1fr)}}
/* « À payer ce mois-ci » : primes dues au titre du mois de paie sélectionné. */
.wg-versement{border:1px solid var(--wx-primary,#2f6be6);border-left:5px solid var(--wx-primary,#2f6be6);border-radius:14px;background:linear-gradient(180deg,var(--wx-primary-soft,#eef3fa) 0%,#fff 62%);padding:18px 20px;margin:4px 0 22px}
.wg-versement.est-solde{border-color:var(--wx-success,#24683e);border-left-color:var(--wx-success,#24683e);background:linear-gradient(180deg,var(--wx-success-soft,#eaf5ee) 0%,#fff 62%)}
.wg-versement.est-vide{border-color:var(--wx-line,#dfe6ef);border-left-color:var(--wx-line,#dfe6ef);background:#fff}
.wg-versement>header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}
.wg-versement h2{font-size:19px;font-weight:700;margin:4px 0 0;color:var(--wx-ink-900,#0f172a)}
.wg-versement-mois select{min-width:190px}
.wg-versement-total{display:flex;flex-wrap:wrap;align-items:flex-end;gap:26px;padding-bottom:16px;border-bottom:1px solid var(--wx-line-soft,#e7edf5)}
.wg-versement-total small{display:block;font-size:12px;color:var(--wx-ink-500,#647791)}
.wg-versement-total strong{display:block;font-size:30px;font-weight:700;letter-spacing:-.02em;margin-top:2px;font-variant-numeric:tabular-nums;color:var(--wx-ink-900,#0f172a)}
.wg-versement-total span{display:block;font-size:12px;color:var(--wx-ink-500,#73859d);margin-top:2px}
.wg-versement-total button{margin-left:auto}
.wg-versement-liste{list-style:none;margin:0;padding:0}
.wg-versement-liste li{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--wx-line-soft,#eef2f6)}
.wg-versement-liste li:last-child{border-bottom:0}
.wg-versement-qui{flex:1;min-width:220px}
.wg-versement-qui strong{display:block;font-size:14px;color:var(--wx-ink-900,#0f172a)}
.wg-versement-qui small{display:block;font-size:12px;color:var(--wx-ink-500,#73859d);margin-top:2px}
.wg-versement-montant{display:flex;align-items:center;gap:10px}
.wg-versement-montant strong{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
@media screen and (max-width:640px){.wg-versement{padding:14px}.wg-versement-total{gap:14px}.wg-versement-total strong{font-size:24px}.wg-versement-total button{margin-left:0;width:100%}.wg-versement-liste li{align-items:flex-start}.wg-versement-montant{width:100%;justify-content:space-between}}
/* Refonte des écrans (16/11/2026) : une action principale par ligne, le reste dans un menu « Plus » ; barre d'outils des factures ; indicateurs repliables. Aucune couleur nouvelle. */
.wg-plus{position:relative;display:inline-block}
.wg-plus>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--wx-line,#dce4ef);border-radius:8px;padding:8px 12px;background:#fff;font-weight:600;font-size:13px;color:var(--wx-ink-700,#203652);min-height:40px;box-shadow:0 1px 2px rgba(15,23,42,.04);user-select:none}
.wg-plus>summary::-webkit-details-marker{display:none}
.wg-plus>summary::after{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.wg-plus>summary:hover,.wg-plus[open]>summary{background:var(--wx-surface-2,#f8fafc);border-color:var(--wx-ink-300,#cbd5e1)}
.wg-plus>summary:focus-visible{outline:2px solid var(--wx-primary,#2f6be6);outline-offset:2px}
.wg-plus__menu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:230px;display:flex;flex-direction:column;gap:2px;padding:6px;border:1px solid var(--wx-line,#dfe6ef);border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.14);text-align:left}
.wg-plus__menu button{border:0;background:transparent;box-shadow:none;text-align:left;width:100%;border-radius:8px;padding:9px 10px;font-weight:500;font-size:13px;min-height:0;white-space:nowrap}
.wg-plus__menu button:hover:not(:disabled){background:var(--wx-surface-2,#f1f5f9)}
.wg-plus__menu hr{border:0;border-top:1px solid var(--wx-line-soft,#edf0f5);margin:4px 2px}
.wg-plus__menu .wg-plus__danger{color:#b91c1c}
.wg-plus--filtres .wg-plus__menu{right:auto;left:0;padding:14px;gap:12px;min-width:270px}
.wg-plus--filtres .wg-plus__menu label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}
.wg-table:has(.wg-plus[open]){overflow:visible}
.wg-barre{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.wg-barre>input{flex:1 1 280px;max-width:420px}
.wg-barre__espace{flex:1 1 0}
.wg-cell-actions .wg-actions{flex-wrap:nowrap;justify-content:flex-end;white-space:nowrap}
.wg-cell-actions .wg-actions>button{font-size:13px;padding:9px 14px;min-height:40px}
.wg-plus-indic{margin:12px 0}
.wg-plus-indic>summary{cursor:pointer;color:var(--wx-ink-500,#64748b);font-size:13px;font-weight:600;padding:4px 0}
.wg-plus-indic>.wg-metrics,.wg-plus-indic>.wg-table{margin-top:10px}
.wg-metrics--2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){.wg-plus{display:block}.wg-plus>summary{width:100%;justify-content:center}.wg-plus__menu{position:static;box-shadow:none;margin-top:6px;min-width:0}.wg-barre__espace{display:none}.wg-barre>input{max-width:none}.wg-cell-actions .wg-actions{display:grid;grid-template-columns:1fr 1fr;white-space:normal}.wg-metrics--2{grid-template-columns:minmax(0,1fr)}.wg-plus__menu button{white-space:normal}}
.wg-plus--haut>.wg-plus__menu{top:auto;bottom:calc(100% + 6px)}
.wg-kanban .wg-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.wg-kanban .wg-actions>button,.wg-kanban .wg-plus>summary{font-size:12px;min-height:34px;padding:6px 12px}
.wg-toolbar .wg-actions{flex-wrap:wrap}

/* Module « Tâches » : jauge des postes (72 h par étape, trois jours), suivi de réalisation, lignes de tâches. Couleurs de l'application uniquement (vert, orange, rouge, bleu principal). */
.wt-section{margin:22px 0}
.wt-detail{font-size:12px;color:var(--wx-ink-500,#64748b);margin:4px 0}
.wt-postes{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-top:12px}
.wt-poste{background:#fff;border:1px solid var(--wx-line,#dfe5ef);border-radius:12px;padding:16px;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.wt-poste__entete{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:12px}
.wt-poste__entete h3{font-size:14px;font-weight:650;color:var(--wx-ink-900,#0f172a);margin:0}
.wt-poste__entete small{display:block;color:var(--wx-ink-500,#64748b);margin-top:2px}
.wt-poste__texte{font-size:13px;margin:10px 0 2px;color:var(--wx-ink-700,#203652)}
.wt-jauge{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.wt-jauge__seg{display:block;height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.wt-jauge__seg>i{display:block;height:100%;border-radius:999px;background:var(--wt-jauge-couleur)}
.wt-jauge--vert{--wt-jauge-couleur:var(--wx-success,#15803d)}
.wt-jauge--orange{--wt-jauge-couleur:var(--wx-warning,#b45309)}
.wt-jauge--rouge{--wt-jauge-couleur:var(--wx-danger,#b91c1c)}
.wt-jauge__jours{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;font-size:12px;color:var(--wx-ink-500,#64748b);margin-top:3px;text-align:center}
.wt-barre{display:block;height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin:10px 0 6px}
.wt-barre>i{display:block;height:100%;border-radius:999px;background:var(--wx-primary,#2f6be6)}
.wt-barre--fine{height:5px;margin:8px 0 2px}
.wg-metrics .wt-detail{display:block;margin-top:2px}
.wt-liste{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.wt-tache{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#fff;border:1px solid var(--wx-line,#dfe5ef);border-radius:12px;padding:14px 16px;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.wt-tache__corps{min-width:0;flex:1}
.wt-tache h3{font-size:14px;font-weight:650;margin:0 0 2px;color:var(--wx-ink-900,#0f172a)}
.wt-tache__description{font-size:13px;color:var(--wx-ink-700,#203652);margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.wt-tache--fermee{background:var(--wx-surface-2,#f8fafc)}
.wt-tache--fermee h3{text-decoration:line-through;color:var(--wx-ink-500,#64748b)}
.wt-tache--retard{border-left:3px solid var(--wx-danger,#b91c1c)}
.wt-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.wt-formulaire{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:480px){.wt-formulaire{grid-template-columns:minmax(0,1fr)}}
.wt-tache .wg-actions{flex-wrap:nowrap}
@media(max-width:640px){.wt-tache{flex-direction:column;align-items:stretch}.wt-tache .wg-actions{flex-wrap:wrap}}

/* Module « Tâches », partie 2 : récurrences, objectif et historique par semaine, carte du tableau de bord. */
.wt-poste__pied{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--wx-line-soft,#edf0f5)}
.wt-jours{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wt-jours>span{font-size:12px;font-weight:500;color:var(--wx-ink-500,#556c89);margin-right:4px}
.wt-jour-choix{display:inline-flex!important;align-items:center;gap:4px;border:1px solid var(--wx-line,#dce4ef);border-radius:8px;padding:6px 10px;background:#fff;cursor:pointer}
.wg-module .wt-jour-choix>input{display:inline;width:auto;margin:0;min-height:0;box-shadow:none}
.wt-alerte-jour{padding:10px 12px;border-radius:10px;background:var(--wx-warning-soft,#fff7e6);color:var(--wx-warning,#b45309);font-size:13px;margin:10px 0}
.wt-objectif-badge{display:block;margin-top:6px}
.wt-histo{--objectif:80%;position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;align-items:end;height:150px;margin:14px 0 6px;padding:0 2px}
.wt-histo::before{content:"";position:absolute;left:0;right:0;bottom:calc(18px + (100% - 18px) * var(--objectif-n,0));border-top:1px dashed var(--wx-ink-300,#cbd5e1);pointer-events:none}
.wt-histo__col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%;min-width:0}
.wt-histo__barre{display:flex;align-items:flex-end;width:100%;max-width:34px;flex:1;border-radius:6px 6px 0 0;background:#eef2f7;overflow:hidden}
.wt-histo__barre>i{display:block;width:100%;border-radius:6px 6px 0 0;background:var(--wx-ink-300,#cbd5e1)}
.wt-histo__barre>i.wt-histo--ok{background:var(--wx-success,#15803d)}
.wt-histo__barre>i.wt-histo--ko{background:var(--wx-warning,#b45309)}
.wt-histo small{font-size:9.5px;color:var(--wx-ink-500,#64748b);white-space:nowrap}
.wg-module .wt-rappel{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;color:var(--wx-ink-700,#203652)}
.wg-module .wt-rappel>input{display:inline;width:auto;margin:0;min-height:0}
.wt-resume__chiffres{margin-top:12px;font-size:13px;color:var(--wx-ink-700,#203652)}
.wt-resume__chiffres p{margin:3px 0}
.wt-resume__alerte{color:var(--wx-danger,#b91c1c)}
.wt-resume__liste{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.wt-resume__liste li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--wx-line,#dfe5ef);border-radius:10px}
.wt-resume__titre{min-width:0;font-size:13px;font-weight:600;color:var(--wx-ink-900,#0f172a);overflow-wrap:anywhere}
.wt-resume__titre small{font-weight:500;color:var(--wx-ink-500,#64748b)}
.wt-resume__semaine{margin-top:12px}
@media(max-width:640px){.wt-histo small{font-size:8px}.wt-resume__liste li{flex-direction:column;align-items:stretch}}
