/* Premium supervisor workspaces. Every rule stays inside the supervisor role. */
body[data-app-role="superviseur"] .workspace-content{max-width:1540px;margin-inline:auto}
body[data-app-role="superviseur"] .card{min-width:0;border-color:#dceae4;box-shadow:0 12px 34px rgba(10,55,39,.055)}
body[data-app-role="superviseur"] .card-header h3{font-size:.95rem;letter-spacing:-.025em}
body[data-app-role="superviseur"] .button{min-height:36px;border-radius:8px}
body[data-app-role="superviseur"] .hero{background-image:linear-gradient(90deg,rgba(3,42,30,.98),rgba(4,50,36,.8) 48%,rgba(4,45,33,.54)),url('/assets/images/proof-field.webp');background-position:center 46%;background-size:cover}
body[data-app-role="superviseur"] .kpi-row{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
body[data-app-role="superviseur"] .kpi{min-height:92px;padding:12px}
body[data-app-role="superviseur"] .kpi b{font-size:1.45rem}

.supervisor-command,.supervisor-experts-workspace,.supervisor-clients-workspace,.supervisor-governance-workspace{display:grid;gap:14px;min-width:0}
.supervisor-command-grid{display:grid;grid-template-columns:minmax(330px,1.15fr) minmax(330px,1fr) minmax(235px,.72fr);gap:13px;align-items:start;min-width:0}
.supervisor-command-grid>section,.supervisor-command-grid>aside,.supervisor-expert-grid>aside,.supervisor-expert-grid>main,.supervisor-clients-grid>main,.supervisor-clients-grid>section,.supervisor-clients-grid>aside,.supervisor-governance-grid>aside,.supervisor-governance-grid>main{display:grid;gap:12px;min-width:0;align-content:start}
.supervisor-command-map .map{height:420px}
.supervisor-command-center .instrument-canvas{min-height:245px}

.supervisor-priority,.supervisor-activity,.supervisor-service,.supervisor-org-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid #e9f0ec;min-width:0}
.supervisor-priority:last-child,.supervisor-activity:last-child,.supervisor-service:last-child{border-bottom:0}
.supervisor-priority>span:nth-child(2),.supervisor-activity>span:nth-child(2),.supervisor-service>span:nth-child(2),.supervisor-org-card>span{display:grid;gap:3px;min-width:0}
.supervisor-priority strong,.supervisor-activity strong,.supervisor-service strong,.supervisor-org-card strong{font-size:.76rem;color:#193b2d;line-height:1.3}
.supervisor-priority small,.supervisor-activity small,.supervisor-service small,.supervisor-org-card small{font-size:.66rem;color:#71867c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.supervisor-priority-icon,.supervisor-job-icon,.supervisor-incident-shield{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#d4555c;background:#fff0f0;flex:none}
.supervisor-service>svg{width:30px;height:30px;padding:7px;border-radius:9px;color:#078251;background:#e7f7ee}
.supervisor-avatar,.supervisor-org-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,#dff7e8,#bfe8ce);font-size:.7rem;font-weight:850;color:#07563a}
.supervisor-org-card{padding:9px;border:1px solid #dfece6;border-radius:10px;background:#f8fcfa;margin-bottom:12px}

.supervisor-job-list{display:grid}.supervisor-job{display:grid;grid-template-columns:auto minmax(145px,1.4fr) minmax(90px,.7fr) auto auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e9f0ec;min-width:0}.supervisor-job:last-child{border-bottom:0}.supervisor-job>span:nth-child(2){display:grid;gap:3px;min-width:0}.supervisor-job strong{font-size:.75rem;color:#1b3d2f}.supervisor-job small,.supervisor-job-lock{font-size:.65rem;color:#72867d}.supervisor-job .button{min-height:30px;padding:5px 8px;font-size:.66rem}.supervisor-job .progress{min-width:75px}
.supervisor-action-list{display:grid;gap:8px}.supervisor-action-list .button{width:100%;justify-content:flex-start}
.supervisor-empty-metric{display:grid;gap:8px;padding:24px;border:1px dashed #c9ded3;border-radius:11px;background:#f6faf8;text-align:center}.supervisor-empty-metric strong{font:800 1rem Manrope,sans-serif;color:#29493a}.supervisor-empty-metric span{font-size:.72rem;color:#70847b;line-height:1.45}

.supervisor-expert-grid{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(450px,1.5fr) minmax(220px,.72fr);gap:13px;align-items:start;min-width:0}
.supervisor-expert-grid .table-scroll{max-height:330px}.supervisor-expert-grid .data-table{min-width:660px}

.supervisor-clients-grid{display:grid;grid-template-columns:minmax(370px,1.25fr) minmax(300px,.9fr) minmax(250px,.75fr);gap:13px;align-items:start;min-width:0}
.supervisor-clients-grid .map{height:392px}.supervisor-clients-grid .data-table{min-width:600px}
.supervisor-facts{display:grid;margin:0}.supervisor-facts>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e9f0ec}.supervisor-facts dt{font-size:.69rem;color:#71847b}.supervisor-facts dd{margin:0;text-align:right;font-size:.7rem;font-weight:750;color:#264739}
.supervisor-client-bottom{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,.6fr);gap:13px;min-width:0}.supervisor-client-bottom .instrument-canvas{min-height:250px}

.supervisor-governance-grid{display:grid;grid-template-columns:minmax(230px,.76fr) minmax(430px,1.45fr) minmax(250px,.8fr);gap:13px;align-items:start;min-width:0}
.supervisor-incident{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid transparent;border-radius:10px;background:#fff;text-align:left;color:inherit;cursor:pointer}.supervisor-incident:hover,.supervisor-incident:focus-visible,.supervisor-incident.active{border-color:#27a46d;background:#f0faf4;outline:0}.supervisor-incident>span:first-child{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fff0f0;color:#d34b57}.supervisor-incident>span:nth-child(2){display:grid;gap:3px;min-width:0}.supervisor-incident strong{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.supervisor-incident small{font-size:.62rem;color:#74877e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.supervisor-incident-detail{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start}.supervisor-incident-detail h3{margin:3px 0 5px;font-size:1rem}.supervisor-incident-detail p{margin:0;color:#5d756a;font-size:.74rem;line-height:1.5}.supervisor-incident-shield{background:#ffecee;color:#ce3343;width:42px;height:42px}.supervisor-resolution{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:18px 0}.supervisor-resolution span{position:relative;display:grid;place-items:center;gap:5px;height:48px;border-radius:9px;background:#edf3f0;color:#71847b;font-size:.72rem}.supervisor-resolution span:not(:last-child)::after{content:"";position:absolute;left:100%;width:4px;height:2px;background:#d2dfd8}.supervisor-resolution strong{font-size:.61rem}.supervisor-resolution .done{background:#dff6e8;color:#08784b}.supervisor-resolution .current{background:#e8f2ff;color:#2f72bb}
.supervisor-governance-bottom{display:grid;grid-template-columns:minmax(420px,1.4fr) minmax(270px,.85fr) minmax(220px,.65fr);gap:13px;align-items:start;min-width:0}.supervisor-governance-bottom .data-table{min-width:650px}

body[data-app-role="superviseur"] .rich-experience{margin-top:2px}
body[data-app-role="superviseur"] .rich-charts:has(.rich-metric-labview){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-app-role="superviseur"] .rich-metric-labview.instrument-panel{padding:0;border:0;background:transparent}
body[data-app-role="superviseur"] .rich-metric-labview .instrument-canvas{min-height:245px}
body[data-app-role="superviseur"] .rich-metric-labview:nth-child(5){grid-column:1/-1}

@media(max-width:1250px){
 .supervisor-command-grid,.supervisor-expert-grid,.supervisor-clients-grid,.supervisor-governance-grid{grid-template-columns:1fr 1.25fr}
 .supervisor-command-side,.supervisor-expert-grid>aside:last-child,.supervisor-clients-grid>aside,.supervisor-governance-grid>aside:last-child{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
 .supervisor-governance-bottom{grid-template-columns:1.3fr 1fr}.supervisor-governance-bottom>.card:last-child{grid-column:1/-1}
}
@media(max-width:900px){
 .supervisor-command-grid,.supervisor-expert-grid,.supervisor-clients-grid,.supervisor-governance-grid,.supervisor-client-bottom,.supervisor-governance-bottom{grid-template-columns:1fr}
 .supervisor-command-side,.supervisor-expert-grid>aside:last-child,.supervisor-clients-grid>aside,.supervisor-governance-grid>aside:last-child,.supervisor-governance-bottom>.card:last-child{grid-column:auto;grid-template-columns:1fr}
 .supervisor-command-map .map,.supervisor-clients-grid .map{height:300px}
 body[data-app-role="superviseur"] .rich-charts:has(.rich-metric-labview){grid-template-columns:1fr}
 body[data-app-role="superviseur"] .rich-metric-labview:nth-child(5){grid-column:auto}
}
@media(max-width:680px){
 body[data-app-role="superviseur"] .workspace-content,.premium-supervisor-workspace,.supervisor-experts-workspace,.supervisor-clients-workspace,.supervisor-governance-workspace{width:calc(100vw - 22px);max-width:calc(100vw - 22px);min-width:0}
 .supervisor-command-grid,.supervisor-expert-grid,.supervisor-clients-grid,.supervisor-governance-grid,.supervisor-governance-bottom,.supervisor-client-bottom,.supervisor-command-grid>*,.supervisor-expert-grid>*,.supervisor-clients-grid>*,.supervisor-governance-grid>*{min-width:0;max-width:100%}
 .supervisor-job{grid-template-columns:auto minmax(0,1fr) auto}.supervisor-job .progress{grid-column:2/-1}.supervisor-job .button,.supervisor-job-lock{grid-column:2/-1;justify-self:start}
 .supervisor-resolution{display:flex;overflow-x:auto;padding-bottom:4px}.supervisor-resolution span{min-width:92px}
 .supervisor-incident-detail{grid-template-columns:auto minmax(0,1fr)}.supervisor-incident-detail>.status{grid-column:2}
}
@media(prefers-reduced-motion:reduce){.supervisor-incident{transition:none}}
