/* Interface privée de contrôle : aucune dépendance à un service graphique. */
#workspace{scroll-margin-top:110px}
body:not(.login-view){background:#f1f4f9;padding:0 0 0 248px;color:#22324c}
body:not(.login-view) .admin-sidebar{left:0;top:0;bottom:0;width:248px;border-radius:0;background:#112541;padding:32px 20px;box-shadow:none}
.sidebar-brand{align-items:flex-start;position:relative;padding-left:54px;min-height:44px;justify-content:center}.sidebar-brand img{position:absolute;left:0;top:0;width:42px;height:42px}.sidebar-brand strong{font-size:21px}.sidebar-brand span{font-size:11px}.admin-profile{margin:30px 0;padding:18px 0;border-block:1px solid #ffffff13}.admin-profile strong{font-size:13px}.admin-profile small{font-size:11px}.admin-sidebar nav{gap:7px}.admin-sidebar nav a{font-size:13px;padding:12px 14px;line-height:1.4}.admin-sidebar nav a.selected{background:#2b69d9;color:#fff}.sidebar-note{font-size:11px}
body:not(.login-view)>header{border-radius:0;background:#fff;padding:23px 36px;border-bottom:1px solid #e2e8f2;font-size:14px;position:sticky;top:0;z-index:2}body:not(.login-view) main{background:transparent;padding:30px 36px;border-radius:0;box-shadow:none;min-height:calc(100dvh - 86px)}
button{font-size:12px;padding:11px 15px;border-radius:8px;transition:background .15s,box-shadow .15s}button:hover{filter:brightness(.96)}.secondary{background:white;color:#345271;border:1px solid #dbe4f0}input,select{min-height:40px;font-size:13px;border-color:#d9e2ee;border-radius:8px}label{font-size:12px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8db6ff;outline-offset:3px}
.heading h1{font-size:30px;color:#162944}.heading p:not(.dashboard-kicker){font-size:13px}.dashboard-kicker,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#687e9b}.heading{margin-bottom:20px}.control-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 24px;padding:17px 20px;background:#fff;border:1px solid #e0e7f1;border-radius:12px}.control-toolbar>div{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.control-toolbar label{min-width:110px;font-size:11px}.control-toolbar button{min-height:40px}.live-status{font-size:12px;color:#60748f;white-space:nowrap}.live-status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#219a85;margin-right:7px}#last-refresh{font-size:11px;color:#657a96}
.dashboard-summary{grid-template-columns:1.25fr repeat(4,1fr);gap:14px;margin-bottom:24px}.dashboard-summary article{border-color:#e0e7f1;box-shadow:0 3px 10px #16325304;padding:20px;border-radius:12px}.card-caption{font-size:10px;letter-spacing:.7px}.owner-card h2{font-size:18px}.owner-card p{font-size:11px}.owner-badge{font-size:9px}.owner-avatar{width:48px;height:48px;font-size:18px}.stat-card strong{font-size:32px;margin:9px 0 6px}.stat-card small{font-size:11px;line-height:1.6}
.dashboard-panel{border-color:#e0e7f1;border-radius:14px;padding:24px;margin-bottom:24px;box-shadow:0 3px 14px #18385a03}.panel-title{margin-bottom:20px;align-items:center}.panel-title h2{font-size:20px;letter-spacing:-.3px;color:#223855}.panel-title>span{font-size:11px}.panel-title .eyebrow{margin:0 0 5px}.panel-title label{min-width:160px}.dashboard-panel>p{font-size:12px}.revenue-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-bottom:1px solid #e8edf5;padding:0 0 25px;margin:0 0 26px}.revenue-stats article{padding-right:20px;border-right:1px solid #e8edf5}.revenue-stats article:last-child{border:0}.revenue-stats span{font-size:12px;color:#6b7d96;display:block}.revenue-stats strong{font-size:27px;font-weight:700;color:#1e385b;display:block;margin:10px 0;overflow-wrap:anywhere}.revenue-stats small{font-size:11px;color:#7b8fa9;line-height:1.6;display:block}
.chart-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:20px}.chart-card{border:1px solid #e6ecf5;border-radius:12px;padding:20px;min-width:0}.chart-card h3{font-size:15px;margin:0 0 6px;color:#2a4568}.chart-card>p{font-size:11px;margin:0 0 12px}.chart-card svg{width:100%;display:block;overflow:visible}.chart-label{font:11px Segoe UI,Arial,sans-serif;fill:#7388a3}.chart-card circle:focus{fill:#306fea;outline:none;stroke:#bcd4ff;stroke-width:4}.chart-card details{padding:8px 0 0;background:none;border:0;box-shadow:none}.chart-card summary{font-size:11px;color:#4c719e}.chart-card .table-scroll{max-height:200px;margin-top:12px}.registrations-chart{grid-column:1/-1}.registrations-chart svg{max-height:210px}.donut{width:170px;height:170px;border-radius:50%;display:grid;place-items:center;margin:24px auto;box-shadow:0 0 0 8px #f8fafc}.donut>div{width:126px;height:126px;background:white;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.donut strong{font-size:30px;color:#253e60}.donut span{font-size:11px;color:#8a9ab0}.state-legend{display:grid;gap:6px}.legend-item{display:flex;align-items:center;gap:10px;background:#f8fafd;color:#59718e;padding:11px 12px;font-weight:400;text-align:left;width:100%}.legend-item i{width:8px;height:8px;border-radius:50%}.legend-item strong{margin-left:auto;color:#314d70}.legend-item:hover{background:#f0f5fc}.empty-state{color:#8a9bb2;font-size:12px!important;padding:32px 12px;margin:0;text-align:center;background:#fafbfd;border:1px dashed #dfe7f0;border-radius:8px}#report-warning:not(:empty){padding:12px 16px;background:#fff6e8;border-radius:8px;color:#987342;font-size:12px}
.renewal-list{display:grid;gap:10px;max-height:410px;overflow:auto}.renewal-item{display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid #e6ecf4;border-radius:10px;padding:16px 18px;background:#fbfcfe}.renewal-item strong{font-size:14px;color:#2b4668}.renewal-item p{font-size:11px;margin:6px 0 0}.renewal-item>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.renewal-item button{font-size:11px}.renewal-item button:first-child{background:#eaf1ff;color:#3263a6}.alert-counts{font-size:12px;color:#6b7e9a;margin-bottom:18px;padding:12px 16px;background:#f3f7fe;border-radius:8px}
.plan-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.plan-cards article{padding:24px;border:1px solid #dfe8f5;border-radius:12px;background:linear-gradient(150deg,#fff,#f5f8ff)}.plan-cards h3{font-size:16px;margin:0 0 15px;color:#294c7c}.plan-cards strong{font-size:25px;color:#235eae;overflow-wrap:anywhere}.plan-cards p{font-size:13px;margin:9px 0}.plan-cards small{display:block;font-size:11px;color:#6e86a8;margin:14px 0 20px}.plan-cards .empty-state{grid-column:1/-1}.plan-cards button{font-size:11px}
.forms details{padding:20px;border-radius:12px}.forms summary{font-size:14px}.table-scroll{border:1px solid #e7edf5;border-radius:8px}th{font-size:11px;font-weight:600;color:#657e9e;padding:14px 16px}td{font-size:12px;padding:16px;color:#3c5778}td small{font-size:10px;line-height:1.6}.registration-badge{color:#219d88}.dashboard-bottom{grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr)}.dashboard-bottom:has(>section[hidden]){grid-template-columns:1fr}.dashboard-panel #history{max-height:400px}.dashboard-panel #history p{font-size:12px;padding:13px 0}.filters input,.filters select{font-size:12px}.filters label{font-size:11px}.filters>span{font-size:11px}.filters{gap:12px}.company-insights{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}.company-insights p{font-size:11px!important;background:#f5f8fd;border-radius:8px;padding:10px;margin:0;overflow-wrap:anywhere}#detail-payments{border-top:1px solid #e0e8f4;margin-top:24px;padding-top:4px}#detail-payments p{border-bottom:1px solid #edf2f8;padding-bottom:8px}.limitation{font-size:11px;line-height:1.8}#company-detail{width:min(760px,calc(100% - 32px))}
@media(min-width:1600px){.chart-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,.8fr) minmax(0,1.2fr)}.registrations-chart{grid-column:auto}.registrations-chart svg{max-height:none}}
@media(max-width:1400px){.control-toolbar{align-items:flex-start;flex-direction:column}.dashboard-summary{grid-template-columns:repeat(3,1fr)}.owner-card{grid-column:span 2}.dashboard-bottom{grid-template-columns:1fr}.plan-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1050px){body:not(.login-view){padding-left:210px}body:not(.login-view) .admin-sidebar{width:210px;padding:24px 14px}body:not(.login-view) main{padding:24px}.chart-grid{grid-template-columns:1fr}.registrations-chart{grid-column:auto}.revenue-stats{gap:12px}.revenue-stats strong{font-size:23px}.heading h1{font-size:26px}.plan-cards{grid-template-columns:1fr}}
@media(max-width:800px){body:not(.login-view){padding:0}body:not(.login-view) .admin-sidebar{position:static;width:100%;padding:16px;border-radius:0}.sidebar-brand{padding-left:44px;min-height:34px}.sidebar-brand img{width:32px;height:32px}.sidebar-brand strong{font-size:18px}.admin-sidebar nav{margin-top:12px;display:flex;overflow:auto;padding-bottom:2px}.admin-sidebar nav a{font-size:12px;white-space:nowrap;padding:10px 12px}body:not(.login-view)>header{padding:16px 20px;position:static}body:not(.login-view) main{padding:20px}.dashboard-summary{grid-template-columns:repeat(2,1fr)}.owner-card{grid-column:auto}.control-toolbar{padding:16px}.control-toolbar>div{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.control-toolbar label{min-width:0}.control-toolbar button{font-size:11px}.revenue-stats{grid-template-columns:1fr}.revenue-stats article{border:0;border-bottom:1px solid #edf1f6;padding:0 0 14px}.revenue-stats strong{font-size:26px}.dashboard-panel{padding:20px}.panel-title h2{font-size:18px}.panel-title{flex-wrap:wrap}.renewal-item{align-items:flex-start;flex-direction:column}.chart-card{padding:16px}.company-insights{grid-template-columns:1fr}.live-status{white-space:normal}.dashboard-bottom{grid-template-columns:1fr}}
@media(max-width:460px){.dashboard-summary{grid-template-columns:1fr}.heading h1{font-size:24px}.control-toolbar>div{grid-template-columns:1fr}.heading{align-items:flex-start}.control-toolbar{gap:12px}.dashboard-panel{padding:16px}.panel-title label{min-width:0;width:100%}.chart-grid{gap:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}
