/* COSTING 4.8.0 — organisation et administration */
.costing-chart{margin:0;width:100%;overflow:hidden}.costing-chart figcaption{font-size:1.05em;font-weight:700;margin:10px 0 20px}.costing-chart figcaption small{color:#56708c;margin-left:12px}.costing-chart svg{display:block;width:100%;height:auto;max-height:340px}.chart-bar{fill:#3c76af}.chart-bar:hover{fill:#164e84}.chart-axis{stroke:#b6c8dd;stroke-width:1}.chart-label{font-size:13px;fill:#44607d}.chart-value{font-size:12px;fill:#163551;font-weight:600}.chart-empty{background:#f1f5fa;border:1px dashed #9db5d0;padding:32px;border-radius:12px;text-align:center;color:#466587}.costing-chart details{margin-top:12px}.costing-chart table{width:100%}.dashboard-chart{margin:24px 0}.inventory-hero.hero{background:linear-gradient(120deg,#e6edf7,#f5efe5);color:#172d48}.inventory-hero.hero :is(p,.eyebrow){color:#39597d}.inventory-hero.hero .hero-count{background:#fff9;border:1px solid #c5d5e6;color:#284c70}.inventory-hero.hero .hero-count strong{color:#172d48}.inventory-hero.hero .button-link{color:#244b76}
#inventory-app .topbar{border:0;padding:0;margin:0 0 12px;min-height:0}.supplier-country-filter{max-width:320px;display:block!important;margin:16px 0 24px}.supplier-country-filter select{width:100%}.documents-history{margin-top:18px}.document-source{margin:22px 0}.document-source>summary{font-size:1.1em;font-weight:700;color:#244e7b;background:#e7f0fa;border:1px solid #c4d6eb;border-radius:12px;padding:16px;cursor:pointer}.document-review .toolbar{align-items:flex-start;gap:15px}.supplier-register td small{display:block}
#administration-app .topbar{padding:0;border:0;min-height:0;margin:0 0 10px}.portal-facts{display:grid;grid-template-columns:minmax(130px,220px) 1fr;gap:12px 20px;margin:22px 0}.portal-facts dt{color:#536b84}.portal-facts dd{margin:0;overflow-wrap:anywhere;font-weight:600}.account-types{display:flex;flex-wrap:wrap;gap:15px}.account-types>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px;background:#f0f5fc;border-radius:12px}.account-types strong{font-size:1.7em}.account-types span:last-child{color:#4c6480}.referral-banner{border-left:5px solid #4586b3;background:linear-gradient(130deg,#f0f6ff,#fff)}.referral-banner form{margin-top:24px;max-width:660px}.referral-banner input[readonly]{background:#f3f7fd;color:#285381}.workspace table small{display:block;line-height:1.5;margin-top:4px}.workspace input[type=checkbox]{width:18px}.workspace :is(.panel,.stat){min-width:0}#portal-dialog .dialog{max-height:90dvh;overflow:auto}.dialog .portal-facts{font-size:.95em}.workspace select[multiple]{min-height:220px;padding:10px}.workspace select[multiple] option{padding:5px 8px}.workspace .stats strong{overflow-wrap:anywhere}
@media(max-width:800px){.portal-facts{grid-template-columns:1fr;gap:5px}.portal-facts dd{margin-bottom:12px}.costing-chart svg{min-width:550px}.costing-chart{overflow-x:auto}.inventory-hero.hero{display:block}.inventory-hero.hero .hero-count{margin-top:20px}.account-types>div{width:100%}#administration-app .stats{grid-template-columns:1fr 1fr}.stats .stat strong{font-size:1.3em}}
@media print{.costing-chart{break-inside:avoid}.costing-chart details{display:none}#portal-dialog{display:none}}
.workspace [hidden]{display:none!important}
@media(min-width:801px){.inventory-hero.hero{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:26px;align-items:center}.inventory-hero.hero .hero-count{border-radius:14px;padding:24px;margin:0;text-align:center}.inventory-hero.hero .hero-count strong{display:block;margin:16px 0;font-size:2em}}

#supplier-form>.primary,#analyse-form>.primary,#analyse-form>button[type=submit]{margin-top:22px}#supplier-form>.primary+button{margin-left:10px}#supplier-form .form-grid,#analyse-form label{margin-bottom:12px}.portal-ai-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.portal-ai-summary .panel{margin:0}.portal-ai-summary h2{font-size:1.15rem}.portal-ai-summary strong{display:block;font-size:1.55rem;margin:12px 0}.portal-ai-summary dl{display:grid;grid-template-columns:1fr auto;gap:9px;font-size:.95rem}.portal-ai-summary dd{margin:0}.portal-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0}.portal-chart-grid>.panel{margin:0;padding:20px}.portal-chart-grid .costing-chart svg{max-height:220px;min-width:0}.portal-chart-grid .costing-chart figcaption{font-size:1rem;margin-bottom:10px}.portal-chart-grid .chart-empty{padding:20px}.account-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.account-steps>div{padding:16px;border-radius:12px;background:#eef4fb;border-top:3px solid #3c76af}.account-steps strong{display:block;margin-bottom:8px}.account-steps p{margin:0;line-height:1.5;font-size:.95rem}.account-timeline{list-style:none;padding:0}.account-timeline li{border-left:3px solid #9cbad7;padding:0 0 20px 18px}.account-timeline small{display:block;margin:5px 0;color:#55708b}.account-timeline p{margin:6px 0}.portal-support-actions{margin:18px 0}.portal-support-form{margin:20px 0}.portal-support-form button{margin-top:16px}@media(max-width:950px){.portal-ai-summary{grid-template-columns:1fr}.account-steps{grid-template-columns:1fr 1fr}}@media(max-width:720px){.portal-chart-grid{grid-template-columns:1fr}.account-steps{grid-template-columns:1fr}.portal-chart-grid .costing-chart{overflow:auto}.portal-chart-grid .costing-chart svg{min-width:420px}}

/* 4.8.8 — actions du compte client */
#administration-app .portal-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:22px 0 0}
#administration-app .portal-actions :is(button,.button-link){margin:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
#administration-app .portal-actions p{flex-basis:100%;margin:0;line-height:1.6}
#administration-app #billing-details:not(:empty){margin-top:22px}
@media(max-width:540px){#administration-app .portal-actions{align-items:stretch}#administration-app .portal-actions :is(button,.button-link){width:100%;box-sizing:border-box}}
