/* Jansen²B — toezichthouder v2.
 * Eén pagina-scroll. De interne PMS-kleuren, kaarten en iconentaal zijn leidend.
 * Alleen deze rolweergave krijgt deze lay-out; andere rollen blijven onaangetast.
 */
body.pms-external-preview .supervisor-workspace,
body.pms-external-preview .supervisor-progress-page{color:var(--text);font-family:var(--j2b-font);min-width:0}
body.pms-external-preview .supervisor-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:none}
body.pms-external-preview .supervisor-icon svg{width:100%;height:100%;display:block}
body.pms-external-preview .supervisor-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:4px 0 24px}
body.pms-external-preview .supervisor-stat{background:#fff;border:1px solid var(--j2b-border);border-radius:11px;padding:15px 17px;display:flex;align-items:center;gap:12px;min-width:0;box-shadow:0 2px 8px rgba(16,45,75,.025)}
body.pms-external-preview .supervisor-stat>.supervisor-icon{width:41px;height:41px;padding:10px;border-radius:10px;background:#eaf3f9;color:var(--j2b-navy)}
body.pms-external-preview .supervisor-stat-inner{display:flex;flex-direction:column;min-width:0;gap:3px}
body.pms-external-preview .supervisor-stat-inner strong{font-size:22px;font-weight:750;color:var(--j2b-navy);font-variant-numeric:tabular-nums}
body.pms-external-preview .supervisor-stat-inner span{font-size:12px;color:var(--muted)}
body.pms-external-preview .supervisor-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}
body.pms-external-preview .supervisor-section-title h2{font-size:19px;margin:0 0 3px;color:var(--j2b-navy)}
body.pms-external-preview .supervisor-section-title p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}
body.pms-external-preview .supervisor-show-all{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:#fff;border:1px solid #c8d9e6;border-radius:8px;padding:8px 11px;color:var(--j2b-navy);cursor:pointer;font-size:12px;font-weight:650}
body.pms-external-preview .supervisor-show-all .supervisor-icon{width:16px;height:16px}
body.pms-external-preview .supervisor-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#fff;border:1px solid var(--j2b-border);padding:11px 14px;margin:0 0 16px;border-radius:10px}
body.pms-external-preview .supervisor-search-label{display:flex;align-items:center;gap:8px;flex:1 1 270px;margin:0!important;border:1px solid #d3e1eb;border-radius:7px;padding:0 10px;background:#f9fbfd;min-width:0}
body.pms-external-preview .supervisor-search-label .supervisor-icon{width:17px;height:17px;color:#66839a}
body.pms-external-preview .supervisor-search-label input{width:100%;border:0;background:transparent;outline:0;padding:9px 3px;font-size:12px;min-width:0}
body.pms-external-preview .supervisor-filters>select{width:190px;max-width:100%;min-height:36px;padding:7px 9px;background:#fff;border-color:#d3e1eb;font-size:12px}
body.pms-external-preview .supervisor-results{margin-left:auto;font-size:11px;color:#5c7589;white-space:nowrap}
body.pms-external-preview .supervisor-sites{display:flex;flex-direction:column;gap:15px;min-width:0}
body.pms-external-preview .supervisor-site{background:#fff;border:1px solid var(--j2b-border);border-radius:12px;box-shadow:0 3px 13px rgba(15,42,66,.04);min-width:0;overflow:visible!important;height:auto!important;max-height:none!important}
body.pms-external-preview .supervisor-site-head{display:flex;align-items:center;gap:13px;padding:12px 16px;border-bottom:1px solid #e0e9f0;background:#f7fbfd;min-width:0;border-radius:12px 12px 0 0}
body.pms-external-preview .supervisor-site-art{display:grid;place-items:center;width:54px;height:52px;flex:none;border-radius:9px;background:linear-gradient(115deg,rgba(23,61,96,.86),rgba(33,124,172,.82)),url('/assets/pms-dashboard-header.png') center/cover;color:white}
body.pms-external-preview .supervisor-site-art .supervisor-icon{width:28px;height:28px}
body.pms-external-preview .supervisor-site-info{flex:1;min-width:0}
body.pms-external-preview .supervisor-site-info h3{margin:0;color:var(--j2b-navy);font-size:16px;font-weight:750;overflow-wrap:anywhere}
body.pms-external-preview .supervisor-site-info p{margin:4px 0 0;color:var(--muted);font-size:11px}
body.pms-external-preview .supervisor-site-head>.supervisor-bar{flex:0 1 170px;min-width:92px}
body.pms-external-preview .supervisor-site-actions{display:flex;align-items:center;gap:7px}
body.pms-external-preview .supervisor-site-actions :is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:5px;text-decoration:none;width:auto;min-height:34px;border:1px solid #c8d9e6;border-radius:7px;color:var(--j2b-navy);background:white;padding:6px 9px;font-size:11px;font-weight:650;cursor:pointer;white-space:nowrap}
body.pms-external-preview .supervisor-site-actions :is(button,a):hover{background:#e8f3fa;border-color:#94bfda}
body.pms-external-preview .supervisor-site-actions .supervisor-icon{width:16px;height:16px}
body.pms-external-preview .supervisor-site-toggle{width:34px!important;padding:6px!important}
body.pms-external-preview .supervisor-site-collapsed .supervisor-site-toggle .supervisor-icon{transform:rotate(-90deg)}
body.pms-external-preview .supervisor-site-houses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:13px 15px 16px!important;overflow:visible!important;max-height:none!important;height:auto!important;min-height:0!important;align-content:start!important}
body.pms-external-preview .supervisor-site-collapsed .supervisor-site-houses{display:none!important}
body.pms-external-preview .supervisor-bnr{display:flex;flex-direction:column;justify-content:space-between;gap:10px;background:#fff;border:1px solid #dce6ee;border-radius:9px;padding:12px 12px 10px;min-width:0;min-height:109px;box-shadow:0 1px 3px rgba(22,59,89,.025)}
body.pms-external-preview .supervisor-bnr:hover{border-color:#87b9d8;box-shadow:0 2px 9px rgba(23,61,96,.09)}
body.pms-external-preview .supervisor-bnr-top{display:flex;align-items:center;gap:10px;min-width:0}
body.pms-external-preview .supervisor-bnr-icon{width:34px;height:34px;padding:8px;border-radius:8px;background:#eaf3f9;color:var(--j2b-navy)}
body.pms-external-preview .supervisor-bnr-heading{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}
body.pms-external-preview .supervisor-bnr-heading strong{color:var(--j2b-navy);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pms-external-preview .supervisor-bnr-heading small{font-size:10px;color:#718395;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pms-external-preview .supervisor-pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 7px;font-weight:650;font-size:10px;white-space:nowrap;background:#f3f5f7;color:#536779;flex:none}
body.pms-external-preview .supervisor-pill .supervisor-icon{width:13px;height:13px}
body.pms-external-preview .supervisor-pill-done{background:#e3f5ec;color:#147348}
body.pms-external-preview .supervisor-pill-active{background:#e3f0fb;color:#1b669d}
body.pms-external-preview .supervisor-pill-pending{background:#fff4e3;color:#8e641e}
body.pms-external-preview .supervisor-bnr-bottom{display:flex;align-items:center;gap:10px;min-width:0}
body.pms-external-preview .supervisor-bar{display:inline-flex;align-items:center;gap:9px;min-width:0;flex:1}
body.pms-external-preview .supervisor-bar-track{display:block;flex:1;min-width:35px;height:8px;background:#e7eff4;border-radius:99px;overflow:hidden}
body.pms-external-preview .supervisor-bar-fill{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--j2b-blue),#53a7ca)}
body.pms-external-preview .supervisor-bar strong{font-size:11px;color:var(--j2b-navy);min-width:28px;text-align:right;font-variant-numeric:tabular-nums}
body.pms-external-preview .supervisor-open-bnr{display:inline-flex;align-items:center;gap:6px;width:auto;white-space:nowrap;border:0;background:transparent;color:var(--j2b-blue);font-size:11px;font-weight:700;padding:5px 0 5px 7px;cursor:pointer}
body.pms-external-preview .supervisor-open-bnr:hover{text-decoration:underline}
body.pms-external-preview .supervisor-open-bnr .supervisor-icon{width:14px;height:14px}
body.pms-external-preview .supervisor-bnr>.external-attention-object-badge{display:inline-flex;margin:0;align-self:start}
body.pms-external-preview .supervisor-workspace [hidden]{display:none!important}
body.pms-external-preview .supervisor-empty{background:#fff;border:1px dashed #a9c3d7;border-radius:9px;padding:18px;text-align:center;color:var(--muted)}
body.pms-external-preview .supervisor-workspace .external-attention-reminder{margin:0 0 15px}
body.pms-external-preview .supervisor-progress-page .card{border-color:var(--j2b-border);border-radius:11px;margin-bottom:15px}
body.pms-external-preview .supervisor-progress-page h3{font-size:15px;color:var(--j2b-navy);margin:0 0 15px}
body.pms-external-preview .supervisor-project-disciplines-grid,
body.pms-external-preview .supervisor-object-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
body.pms-external-preview .supervisor-project-discipline{display:flex;flex-direction:column;gap:11px;border:1px solid var(--j2b-border);border-radius:9px;padding:13px;min-width:0}
body.pms-external-preview .supervisor-project-discipline>.supervisor-icon{color:var(--j2b-blue)}
body.pms-external-preview .supervisor-project-discipline>strong{font-size:13px;color:var(--j2b-navy)}
body.pms-external-preview .supervisor-project-discipline>.supervisor-bar{width:100%}
body.pms-external-preview .supervisor-project-discipline>.supervisor-pill{align-self:start}
body.pms-external-preview .supervisor-picker-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:13px}
body.pms-external-preview .supervisor-picker-fields label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:12px;color:var(--j2b-navy);min-width:0}
body.pms-external-preview .supervisor-picker-fields select{min-width:0}
body.pms-external-preview .supervisor-progress-open{display:inline-flex;align-items:center;gap:7px;margin-bottom:18px;width:auto}
body.pms-external-preview .supervisor-progress-open .supervisor-icon{width:16px;height:16px}
body.pms-external-preview .supervisor-object-status-grid>.object-status-discipline{margin:0!important;min-width:0;width:100%}
body.pms-external-preview .supervisor-object-status-grid .object-status-header{background:var(--j2b-navy);color:white;padding:10px 12px;min-height:42px}
body.pms-external-preview .supervisor-object-status-grid .object-status-header strong{font-size:13px;min-width:0}
body.pms-external-preview .supervisor-object-status-grid .supervisor-discipline-overview-body{padding:12px}
body.pms-external-preview .supervisor-workspace button:focus-visible,
body.pms-external-preview .supervisor-progress-page button:focus-visible,
body.pms-external-preview .supervisor-workspace a:focus-visible{outline:2px solid var(--j2b-blue);outline-offset:2px}
@media(max-width:1180px){
 body.pms-external-preview .supervisor-site-houses,
 body.pms-external-preview .supervisor-project-disciplines-grid,
 body.pms-external-preview .supervisor-object-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.pms-external-preview .supervisor-site-link span:not(.supervisor-icon){display:none}
}
@media(max-width:810px){
 body.pms-external-preview .supervisor-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.pms-external-preview .supervisor-site-head{flex-wrap:wrap}
 body.pms-external-preview .supervisor-site-head>.supervisor-bar{flex:1 1 130px}
 body.pms-external-preview .supervisor-site-actions{margin-left:auto}
}
@media(max-width:610px){
 body.pms-external-preview .supervisor-site-houses,
 body.pms-external-preview .supervisor-project-disciplines-grid,
 body.pms-external-preview .supervisor-object-status-grid,
 body.pms-external-preview .supervisor-picker-fields{grid-template-columns:minmax(0,1fr)}
 body.pms-external-preview .supervisor-section-title{align-items:start;flex-direction:column}
 body.pms-external-preview .supervisor-filters>select{width:100%}
 body.pms-external-preview .supervisor-site-art{width:45px;height:45px}
 body.pms-external-preview .supervisor-site-info h3{font-size:14px}
 body.pms-external-preview .supervisor-site-head>.supervisor-bar{order:4;flex:1 1 100%}
 body.pms-external-preview .supervisor-bnr{min-height:95px}
 body.pms-external-preview .supervisor-stat{padding:10px;gap:8px}
 body.pms-external-preview .supervisor-stat-inner strong{font-size:19px}
 body.pms-external-preview .supervisor-stat>.supervisor-icon{width:34px;height:34px;padding:8px}
}

/* Locatiedetail: zelfde rust als het projectoverzicht, met alleen disciplines per BNR. */
body.pms-external-preview .supervisor-location-view{margin-top:12px}
body.pms-external-preview .supervisor-location-view .supervisor-site-houses{grid-template-columns:repeat(2,minmax(0,1fr))}
body.pms-external-preview .supervisor-location-view .supervisor-site-head .supervisor-site-toggle{display:none}
body.pms-external-preview .supervisor-location-view .supervisor-site-houses>.supervisor-bnr{justify-content:flex-start;gap:10px}
body.pms-external-preview .supervisor-bnr-disciplines{border-top:1px solid #e0eaf1;padding-top:7px;display:flex;flex-direction:column;gap:0}
body.pms-external-preview .supervisor-bnr-discipline{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:7px 2px;border-bottom:1px solid #eef2f5;min-width:0;font-size:11px}
body.pms-external-preview .supervisor-bnr-discipline:last-child{border-bottom:0}
body.pms-external-preview .supervisor-bnr-discipline-name{flex:1;min-width:0;line-height:1.3;overflow-wrap:anywhere;color:#28465f}
body.pms-external-preview .supervisor-bnr-discipline-state{display:inline-flex;align-items:center;justify-content:end;gap:5px;white-space:nowrap;color:#5a7184;font-size:10px;font-weight:650;flex:none}
body.pms-external-preview .supervisor-bnr-discipline-active{color:#236fa5}
body.pms-external-preview .supervisor-bnr-discipline-done{color:#187c53}
body.pms-external-preview .supervisor-bnr-discipline-ready{color:#23834d}
body.pms-external-preview .supervisor-bnr-discipline-blocked{color:#ad4a54}
body.pms-external-preview .supervisor-bnr-discipline-icon{display:inline-flex;width:17px;height:17px}
body.pms-external-preview .supervisor-bnr-discipline-icon svg{width:17px;height:17px}
body.pms-external-preview .supervisor-bnr-discipline-attention{display:inline-grid;place-items:center;color:#a96718;background:#fff2db;border-radius:50%;font-size:10px;width:15px;height:15px;margin-left:2px}
body.pms-external-preview .supervisor-bnr-loading{font-size:11px;color:var(--muted)}
@media(max-width:800px){body.pms-external-preview .supervisor-location-view .supervisor-site-houses{grid-template-columns:minmax(0,1fr)}}

/* Uniforme PMS-detailkaarten: zachte koppen in plaats van een raster vol blauwe balken. */
body.pms-external-preview .external-supervisor-work.supervisor-aggregate-only .object-status-header,
body.pms-external-preview .supervisor-object-status-grid .object-status-header{
 background:#f0f6fa!important;color:var(--j2b-navy)!important;
 border-bottom:1px solid #d7e6ef!important;
 box-shadow:inset 3px 0 var(--j2b-blue);text-shadow:none!important;
}
body.pms-external-preview .external-supervisor-work.supervisor-aggregate-only .object-status-header>strong,
body.pms-external-preview .supervisor-object-status-grid .object-status-header>strong{
 color:var(--j2b-navy)!important;text-shadow:none!important;
}
body.pms-external-preview .external-supervisor-work.supervisor-aggregate-only .supervisor-discipline-overview{
 border-radius:10px;border-color:var(--j2b-border);
 box-shadow:0 2px 7px rgba(23,61,96,.04);
}
