/* Bestaande PMS-paginaopmaak. Tijdelijk apart gehouden voor gefaseerde opschoning. */


*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
.hidden{display:none!important}
#login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--nav);padding:24px}.login-card{width:100%;max-width:420px;background:#fff;border-radius:16px;padding:36px;box-shadow:0 20px 60px #0004}
.logo{font-size:34px;font-weight:800}.logo sup,.sidebar-logo sup{color:var(--blue)}.subtitle{color:var(--muted);margin:4px 0 28px}
.login-card .primary{width:100%;margin-top:20px}.error{color:#b42318;margin-top:12px;min-height:20px}
#app{display:none}aside{position:fixed;inset:0 auto 0 0;width:245px;background:var(--nav);color:#fff;padding:24px 18px;overflow:auto}.sidebar-logo{font-size:25px;font-weight:800;padding:4px 12px 24px}
nav button{display:block;width:100%;text-align:left;background:transparent;color:#d7e0e9;border:0;padding:11px 13px;border-radius:7px;margin:2px 0;cursor:pointer}nav button:hover,nav button.active{background:var(--nav2);color:#fff}
main{margin-left:245px;min-height:100vh}header{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 30px;position:sticky;top:0}.content{padding:28px;max-width:1500px}

.stat{grid-column:span 3}.stat .value{font-size:30px;font-weight:800;margin-top:8px}.wide{grid-column:span 8}.side{grid-column:span 4}.plan-week{display:grid;grid-template-columns:repeat(7,minmax(180px,1fr));gap:10px;overflow-x:auto;padding-bottom:6px}.plan-day{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;min-height:220px}.plan-day-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;text-transform:capitalize}.plan-item{border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px;background:#fff}.plan-item.plan-conflict{border-color:#c44;background:#fff7f7}.plan-time{font-size:12px;color:var(--muted);margin-bottom:4px}.comm-item{padding:16px 0;border-bottom:1px solid var(--line)}.comm-item:last-child{border-bottom:0}.comm-item.comm-important{border-left:4px solid #e6a700;padding-left:12px}.comm-body{margin-top:5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}.mail-full-body{margin-top:18px;line-height:1.55;white-space:normal;overflow-wrap:anywhere}.comm-follow{margin-top:5px;padding:10px;border-radius:8px;background:#f5f7f9}.comm-follow.overdue{background:#fff1f0}.permission-grid{display:grid;gap:8px;margin-top:5px}.perm-row{display:grid;grid-template-columns:1fr 190px;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px}.project-assignments{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;margin-top:5px}.project-assign{display:flex;gap:10px;align-items:flex-start;padding:10px;border-bottom:1px solid var(--line);margin:0}.project-assign:last-child{border-bottom:0}.audit-filters{display:grid;grid-template-columns:2fr repeat(5,1fr) auto;gap:8px;align-items:end;margin-bottom:14px}

.modal-bg{position:fixed;inset:0;background:#09142285;display:flex;align-items:center;justify-content:center;padding:20px;z-index:20}.modal{background:#fff;border-radius:14px;width:min(720px,100%);max-height:90vh;overflow:auto;padding:24px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:24px;bottom:24px;background:#172235;color:#fff;padding:12px 16px;border-radius:9px;z-index:40}.empty{padding:28px;text-align:center;color:var(--muted)}.doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.doc-item{border:1px solid #e7ebef;border-radius:10px;padding:12px;background:#fff}.doc-thumb{width:100%;height:150px;object-fit:cover;border-radius:7px;background:#eef2f5;margin-bottom:9px}.doc-thumb-button,.photo-button{border:0;background:transparent;padding:0;cursor:pointer}.doc-thumb-button{display:block;width:100%}.doc-file-icon{height:150px;display:flex;align-items:center;justify-content:center;font-size:44px;background:#f5f7f9;border-radius:7px;margin-bottom:9px}.photo-preview-modal{max-width:980px}.photo-preview-image{display:block;max-width:100%;max-height:72vh;margin:0 auto;border-radius:10px}.speech-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}.speech-tools .muted{flex:1;min-width:180px}.workflow{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:14px}.phase{position:relative;border:1px solid var(--line);border-radius:10px;padding:12px 8px;text-align:center;background:#f8fafc;font-size:12px}.phase.done{background:#eaf7ee;border-color:#b7ddc2}.phase.current{background:#e9f7fd;border-color:#7dccec;box-shadow:inset 0 0 0 1px #7dccec}.phase .dot{width:10px;height:10px;border-radius:50%;background:#c7d1dc;margin:0 auto 7px}.phase.done .dot{background:#56a36c}.phase.current .dot{background:var(--blue)}.signal{display:inline-block;margin:5px 6px 0 0;padding:5px 8px;border-radius:8px;background:#f2f5f8;font-size:12px}.signal.alert{background:#fee4e2;color:#b42318}.signal.warn{background:#fff4cc;color:#7a5d00}.signal.ok{background:#eaf7ee;color:#2f6f44}.readiness{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px;margin-top:5px}.check{font-size:13px}.check.ok{color:#2f6f44}.check.bad{color:#b42318}.check.warn{color:#7a5d00}
.action-photo-strip{display:flex;align-items:center;gap:6px;margin-top:8px}.action-photo-strip img{width:54px;height:54px;object-fit:cover;border-radius:7px;border:1px solid #dbe4ea}.action-detail-modal{max-width:760px}.action-detail-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin:10px 0 18px}.action-detail-photos img{width:100%;height:120px;object-fit:cover;border-radius:10px;border:1px solid #dbe4ea}.action-updates{display:flex;flex-direction:column;gap:8px}.action-update{border-left:3px solid #9eb6c6;padding:8px 10px;background:#f7fafb;border-radius:0 8px 8px 0}.action-checklist{display:flex;flex-direction:column;gap:7px;margin-top:8px}.action-check-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:8px;padding:8px;border:1px solid #e2e9ed;border-radius:8px}.action-check-row.done{opacity:.7}.action-check-row.done b{text-decoration:line-through}.check-toggle{border:0;background:transparent;font-size:22px;cursor:pointer;padding:2px}.action-reg-detail{margin-top:5px;border:1px solid #e2e9ed;border-radius:9px;background:#fff}.action-reg-detail summary{cursor:pointer;padding:10px 12px;font-weight:700}.action-reg-lines{padding:0 12px 10px}.action-reg-row{display:grid;grid-template-columns:180px 1fr;gap:12px;padding:9px 0;border-top:1px solid #edf0f3}.action-mini-summary{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.action-mini-summary span{font-size:12px;padding:3px 6px;border-radius:6px;background:#f2f5f8}.object-dossier{max-width:860px}.object-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.object-stats>div{border:1px solid var(--line);border-radius:9px;padding:12px}.object-stats b{display:block;font-size:22px;margin-top:4px}.object-action-list{display:flex;flex-direction:column;gap:7px}.object-action-row{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 12px;cursor:pointer}.object-action-row .muted{display:block;margin-top:3px}.object-doc-list{display:flex;flex-direction:column;gap:6px;margin-top:5px}.project-row{cursor:pointer}.project-row:hover{background:#f7fafc}.icon-btn{width:38px;height:38px;border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:#eef3f7;color:#203247;padding:0}.icon-btn:hover{background:#dde8f0}.icon-btn.dictafoon-hero{color:#ff3b3b!important;background:#0b1725d9!important}.icon-btn.dictafoon-hero:hover{background:#390f19!important}.icon-btn.primary{background:var(--blue);color:#fff}.icon-btn.dark{background:#0b1725b8;color:#fff;backdrop-filter:blur(6px)}.icon-btn svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.entity-hero{position:relative;height:clamp(270px,40vh,520px);border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#101d2d,#254866);margin-bottom:20px;color:#fff}.entity-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:center;pointer-events:none;z-index:0}.entity-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,#06111d18 0%,#06111d12 42%,#06111dca 100%);pointer-events:none;z-index:1}.entity-hero-top{position:absolute;left:18px;right:18px;top:18px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;z-index:5;pointer-events:none}.entity-hero-top button,.entity-hero-top a{pointer-events:auto;cursor:pointer}.entity-hero-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.entity-hero-copy{position:absolute;left:24px;right:24px;bottom:22px;max-width:760px;text-shadow:0 2px 15px #0009;z-index:2;pointer-events:none}.entity-hero-copy h1{margin:6px 0 4px;font-size:clamp(28px,4vw,46px);line-height:1.02}.entity-hero-copy .hero-sub{color:#eef5fa;font-size:14px}.hero-status{display:inline-block;padding:5px 9px;border-radius:999px;background:#081624b5;backdrop-filter:blur(6px);font-size:12px;font-weight:700}.hero-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#dce8f2;font-size:14px}.media-editor-preview{height:300px;border-radius:12px;overflow:hidden;position:relative;background:#12263a}.media-editor-preview img{width:100%;height:100%;object-fit:cover;transform-origin:center}.media-slider-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.timeline-list{display:flex;flex-direction:column;gap:0;margin-top:5px}.timeline-row{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid #edf1f4;align-items:start}.timeline-row:last-child{border-bottom:0}.timeline-date{font-size:12px;color:var(--muted);padding-top:3px}.timeline-body{min-width:0;font-size:13px;line-height:1.35}.timeline-body b{font-size:13px}.timeline-body .badge,.timeline-body .signal{font-size:10px;padding:2px 5px}.timeline-detail{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:2px}.timeline-more{display:flex;justify-content:center;padding-top:10px}.contact-actions{display:inline-flex;gap:6px;vertical-align:middle}.contact-link{color:#1679ad;text-decoration:none}.contact-link:hover{text-decoration:underline}.hierarchy-crumb{font-size:12px;color:var(--muted);margin-top:12px}.hierarchy-crumb span{padding:0 5px}.location-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.location-card{border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;padding:16px;cursor:pointer}.location-card:hover,.object-card:hover{background:#f7fafc;border-color:#b9c8d5}.location-card-head{display:flex;justify-content:space-between;gap:16px}.location-card h3,.object-card h3{margin:8px 0 4px}.location-count{font-size:28px;font-weight:800;text-align:center}.location-count span{display:block;font-size:11px;font-weight:500;color:var(--muted)}.location-signals{margin-top:5px}.location-next{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.object-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.object-card{border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left;padding:14px;display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer}.object-arrow{font-size:26px;color:var(--muted)}.scope-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.scope-info-grid>div{border:1px solid var(--line);border-radius:9px;padding:10px}.scope-info-grid b{display:block;margin-top:4px}.scope-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line)}.scope-row:last-child{border-bottom:0}.mini-list-row{padding:9px 0;border-bottom:1px solid var(--line)}.mini-list-row:last-child{border-bottom:0}@media(max-width:600px){.object-stats{grid-template-columns:repeat(2,1fr)}.doc-folder-grid{grid-template-columns:1fr}.doc-row{align-items:flex-start}.location-card-grid,.object-card-grid,.scope-info-grid{grid-template-columns:1fr}}@media(max-width:600px){.action-reg-row{grid-template-columns:1fr}}
@media(max-width:900px){aside{width:205px}main{margin-left:205px}.stat{grid-column:span 6}.wide,.side{grid-column:span 12}.two{grid-template-columns:1fr}.content{padding:18px}.workflow{grid-template-columns:repeat(4,1fr)}}
#menu-toggle{display:none}
.field-bar{display:none}
@media(max-width:700px){#menu-toggle{display:inline-flex}aside{width:245px;transform:translateX(-105%);transition:transform .2s ease;z-index:30;box-shadow:10px 0 35px #0003}body.menu-open aside{transform:translateX(0)}main{margin-left:0;padding-bottom:78px}header{padding:0 16px}.content{padding:16px}.stat{grid-column:span 12}.toolbar{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions .btn,.actions a.btn{flex:1;text-align:center}.modal{padding:18px}.userarea-name{display:none}table{display:block;overflow-x:auto;white-space:nowrap}.workflow{grid-template-columns:repeat(2,1fr)}.field-bar{position:fixed;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;left:0;right:0;bottom:0;z-index:25;background:#fff;border-top:1px solid var(--line);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -4px 18px #0002}.field-action{border:0;background:transparent;padding:7px 4px;color:var(--text);font-size:11px;font-weight:700;min-width:0}.field-action span{display:block;font-size:20px;line-height:22px;margin-bottom:2px}}

.header-user-actions{display:flex;align-items:center;gap:7px}.project-section-nav{display:flex;gap:7px;flex-wrap:wrap;margin:-4px 0 14px;padding:8px;background:#dfe8ef;border:1px solid #c4d1dc;border-radius:11px;position:sticky;top:64px;z-index:9}.project-section-nav button{border:0;border-radius:8px;background:#fff;color:#1b3044;padding:8px 11px;font-weight:750;box-shadow:0 1px 2px #00000012;cursor:pointer}.project-section-nav button:hover,.project-section-nav button:focus{background:#173653;color:#fff}.project-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;grid-column:span 12}.project-kpi{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:72px}.project-kpi .value{font-size:24px;font-weight:800;line-height:1;margin-top:5px}.project-kpi .muted{font-size:11px}.metric-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.metric-link{border:1px solid var(--line);background:#f8fafc;border-radius:9px;padding:10px;text-align:left;cursor:pointer}.metric-link:hover{background:#edf4f8;border-color:#aec3d1}.metric-link b{display:block;font-size:20px}.member-table td{vertical-align:middle}.member-actions{display:flex;gap:5px;justify-content:flex-end}.compact-list{display:flex;flex-direction:column}.compact-list-row,.compact-list-button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;width:100%;padding:10px 0;border:0;border-bottom:1px solid #edf1f4;background:transparent;text-align:left;color:inherit}.compact-list-button{cursor:pointer}.compact-list-button:hover{background:#f8fafc}.compact-list-row:last-child,.compact-list-button:last-child{border-bottom:0}.compact-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;line-height:1.35;color:#485b6c}.file-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.file-count{border:1px solid var(--line);border-radius:9px;padding:10px;background:#f8fafc}.file-count b{display:block;font-size:22px}.workflow.compact{margin-top:5px}.workflow.compact .phase{padding:9px 6px;min-height:58px;cursor:pointer}.workflow.compact .phase b{font-size:11px}.workflow-summary{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:7px}.section-head h2{margin:0}.project-description{font-size:14px;line-height:1.5;margin:8px 0 0}.modal-actions{position:sticky;bottom:-1px;background:#fff;padding-top:12px;padding-bottom:2px;z-index:3}body:has(#modal-root .modal-bg) .field-bar{display:none!important}
@media(max-width:900px){.project-kpis,.metric-links{grid-template-columns:repeat(2,minmax(0,1fr))}.project-section-nav{top:60px}}@media(max-width:700px){.project-section-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;overflow:visible;flex-wrap:initial;padding:7px}.project-section-nav button{min-width:0;padding:7px 3px 6px;white-space:normal;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;line-height:1.05;min-height:51px}.project-section-nav .tab-icon{display:flex;align-items:center;justify-content:center}.project-section-nav .tab-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.project-section-nav .tab-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:600px){.project-kpis,.metric-links,.file-counts{grid-template-columns:1fr 1fr}.project-kpi{min-height:62px}.project-kpi .value{font-size:21px}.member-table thead{display:none}.member-table,.member-table tbody,.member-table tr,.member-table td{display:block;width:100%;white-space:normal}.member-table tr{padding:10px 0;border-bottom:1px solid var(--line)}.member-table td{border:0;padding:3px 0}.member-actions{justify-content:flex-start}}

.card-tabs{display:flex;gap:5px;align-items:flex-end;padding:0 10px;border-bottom:1px solid #cfd9e2;margin:0 0 16px;background:#f5f8fa;border-radius:12px 12px 0 0}.card-tab{border:1px solid transparent;border-bottom:0;background:transparent;color:#42566a;padding:10px 13px 9px;border-radius:9px 9px 0 0;font-weight:750;cursor:pointer;display:flex;align-items:center;gap:6px}.card-tab svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9}.card-tab:hover{background:#e7eef4;color:#173653}.card-tab.active{background:#173f63;color:#fff;border-color:#173f63;box-shadow:0 -2px 6px #0b254020}.admin-shell{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.admin-shell-body{padding:4px 18px 18px}.project-section-nav{background:#edf3f7!important;border-color:#cbd7e0!important;box-shadow:none!important}.project-section-nav button{background:#fff!important;color:#29445b!important;border:1px solid #d2dce4!important;box-shadow:none!important}.project-anchor{scroll-margin-top:145px}.crm-avatar{width:44px;height:44px;border-radius:10px;object-fit:cover;background:#edf2f5;display:flex;align-items:center;justify-content:center;flex:0 0 44px}.crm-avatar.round{border-radius:50%}.crm-avatar svg{width:21px;height:21px;stroke:#607386;fill:none;stroke-width:1.8}.crm-primary{display:flex;align-items:center;gap:10px;min-width:220px}.crm-row-actions{display:flex;gap:5px;justify-content:flex-end;align-items:center}.file-summary{display:flex;gap:8px;flex-wrap:wrap}.file-type-chip{min-width:92px;border:1px solid var(--line);background:#f8fafc;border-radius:10px;padding:9px 10px;text-align:left;cursor:pointer}.file-type-chip:hover{background:#edf4f8}.file-type-chip svg{width:18px;height:18px;stroke:#244963;fill:none;stroke-width:1.8;vertical-align:middle;margin-right:4px}.file-type-chip b{font-size:18px;margin-left:4px}.amount-ex{font-weight:700}.amount-inc{font-size:11px;color:var(--muted)}
@media(max-width:700px){.card-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:7px;gap:5px;border-bottom:0}.card-tab{border:1px solid #d2dce4!important;border-radius:8px!important;padding:8px 4px;justify-content:center;flex-direction:column;font-size:10px;gap:3px}.card-tab.active{border-color:#173f63!important}.admin-shell-body{padding:2px 12px 14px}}

/* v0.69.1 compact unified tabs */
.project-section-nav{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:4px!important;padding:5px!important;margin:-2px 0 12px!important;background:#eef3f7!important;border:1px solid #ccd7df!important;border-radius:10px!important;align-items:stretch!important}.project-section-nav button{height:44px!important;min-height:44px!important;width:100%!important;padding:4px 5px!important;margin:0!important;border-radius:7px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;font-size:10px!important;line-height:1.05!important;text-align:center!important;white-space:normal!important;overflow:hidden!important}.project-section-nav .tab-icon{height:17px!important;display:flex!important;align-items:center!important;justify-content:center!important}.project-section-nav .tab-icon svg{width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}.project-section-nav .tab-icon svg *{fill:none!important;stroke:currentColor!important}.project-section-nav .tab-label{display:block!important;width:100%!important;text-align:center!important;overflow:hidden!important;text-overflow:ellipsis!important}.project-section-nav button.active{background:#173f63!important;color:#fff!important;border-color:#173f63!important}.card-tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(105px,1fr))!important;gap:4px!important;padding:5px!important;align-items:stretch!important}.card-tab{height:42px!important;min-height:42px!important;width:100%!important;margin:0!important;padding:5px 7px!important;border:1px solid #d2dce4!important;border-radius:7px!important;justify-content:center!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important}.card-tab svg,.card-tab svg *{width:15px;height:15px;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}.card-tab.active{background:#173f63!important;color:#fff!important;border-color:#173f63!important}.icon-btn svg,.icon-btn svg *{fill:none;stroke:currentColor}.member-add-icon{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center}.member-add-icon svg{width:17px;height:17px;fill:none;stroke:currentColor}.crm-tab-content[hidden]{display:none!important}
@media(max-width:700px){.project-section-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}.project-section-nav button{height:43px!important;min-height:43px!important;font-size:9px!important}.card-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}.card-tab{height:44px!important;min-height:44px!important;font-size:10px!important;white-space:normal!important}}
.rich-toolbar{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.rich-toolbar button{width:34px;height:32px;border:1px solid var(--line);background:#f8fafc;border-radius:6px;font-weight:700;cursor:pointer}.rich-editor{min-height:130px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px;line-height:1.45;overflow:auto}.rich-editor:focus{outline:2px solid #b8cddd;outline-offset:1px}.signature-logo-preview{max-width:220px;max-height:75px;object-fit:contain;display:block;margin:8px 0}.attachment-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.attachment-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:7px;padding:5px 8px;background:#f8fafc;font-size:12px}
@media(max-width:700px){.project-section-nav:has(>button:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}.card-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}.card-tabs:has(>.card-tab:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* v0.69.2 header search/filter system */
header{z-index:18}.header-title-wrap{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:125px}.header-tools{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0 14px;position:relative}.header-tools input,.header-tools select{height:36px;padding:6px 9px;border-radius:7px;font-size:12px;margin:0}.header-tools input[type="date"]{width:132px}.header-search{width:min(330px,34vw)!important}.header-select{width:auto!important;min-width:120px}.header-tool-btn{height:36px;border:1px solid #d6e0e7;background:#f4f7f9;color:#234158;border-radius:7px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-size:12px;font-weight:700;white-space:nowrap}.header-tool-btn.active{background:#173f63;color:#fff;border-color:#173f63}.header-tool-btn svg{width:15px;height:15px;stroke:currentColor;fill:none}.header-filter-pop{position:absolute;right:0;top:43px;width:min(620px,80vw);background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px;box-shadow:0 15px 40px #14253526;z-index:50}.header-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.header-filter-pop label{margin:0 0 4px}.header-filter-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}.global-search-results{position:absolute;left:0;right:0;top:43px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 15px 40px #14253526;max-height:62vh;overflow:auto;z-index:60}.global-search-row{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:9px 11px;border-bottom:1px solid #eef2f5;cursor:pointer;background:#fff}.global-search-row:hover{background:#f6f9fb}.global-search-row:last-child{border-bottom:0}.header-week-nav{display:flex;gap:4px}.mail-html-view{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;line-height:1.45;overflow:auto}.mail-html-view img{max-width:100%;height:auto}.mail-html-view table{max-width:100%!important;width:auto}.mail-html-view *{max-width:100%}.page-filter-summary{font-size:12px;color:var(--muted);margin-left:4px}
@media(max-width:1000px){.header-tools{overflow-x:auto;justify-content:flex-start;padding-bottom:2px}.header-search{width:220px!important;min-width:180px}.header-tools input,.header-tools select,.header-tool-btn{flex:0 0 auto}.userarea-name{display:none}}
@media(max-width:700px){.global-search-results{position:fixed;top:70px;left:8px;right:8px;max-height:70vh}.global-search-row{font-size:12px}header{height:auto;min-height:66px;padding:9px 10px;gap:6px}.header-title-wrap{min-width:auto}.header-title-wrap #page-title{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-tools{margin:0 4px}.header-search{width:170px!important;min-width:155px}.header-filter-pop{position:fixed;left:10px;right:10px;top:66px;width:auto;max-height:70vh;overflow:auto}.header-user-actions{gap:4px}.header-user-actions .icon-btn{width:34px;height:34px}}
.project-contact-list{display:grid;gap:7px}.project-contact-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 112px;gap:12px;align-items:center;border:1px solid #d9e2e9;background:#fff;border-radius:10px;padding:12px}.project-contact-card[hidden]{display:none!important}.project-contact-primary,.project-contact-info,.project-contact-right{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.project-contact-primary strong{font-size:14px}.project-contact-right{align-items:flex-end}.project-contact-photo{display:flex;width:70px;height:78px;object-fit:cover;border-radius:8px;background:#edf2f5;align-items:center;justify-content:center}.project-contact-placeholder svg{width:28px;height:28px;stroke:#607386;fill:none}.project-contact-card .member-actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:600px){.project-contact-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 85px;gap:8px;padding:9px}.project-contact-photo{width:62px;height:70px}.project-contact-card .member-actions{gap:2px}.project-contact-card .icon-btn{width:26px;height:26px}}
.project-contact-photo-row{display:flex;align-items:flex-start;justify-content:flex-end;gap:7px;width:100%}.project-contact-photo-row .project-contact-edit{flex:0 0 auto;margin:0}.project-contact-right{justify-content:flex-start;align-self:stretch}

/* Photo focus and compact project member media layout */
.project-contact-card{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 116px;padding:8px 10px;gap:8px}
.project-contact-right{align-items:stretch!important;min-width:116px}
.project-contact-photo-row{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:5px!important;width:100%}
.project-contact-photo-row .project-contact-photo{display:block;width:76px;height:76px;min-width:76px;flex:0 0 76px;object-fit:cover;object-position:center 22%;border-radius:8px}
.project-contact-photo-row .project-contact-placeholder{display:flex;align-items:center;justify-content:center}
.project-contact-photo-row .project-contact-edit{display:inline-flex;flex:0 0 30px;align-self:flex-start;margin:0;padding:0;width:30px;height:30px}
.crm-avatar.round{object-position:center 22%;object-fit:cover}
@media(max-width:600px){.project-contact-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 104px;padding:7px;gap:6px}.project-contact-right{min-width:104px}.project-contact-photo-row .project-contact-photo{width:68px;height:68px;min-width:68px;flex-basis:68px}}
.profile-crop-wrap{width:min(360px,100%);margin:10px auto;touch-action:none}.profile-crop-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:1/1;border-radius:10px;border:1px solid #ccd6df;cursor:grab;touch-action:none}.profile-crop-wrap canvas:active{cursor:grabbing}
/* Compact project-contact rows: three aligned text lines and right-hand photo/actions */
.project-contact-list{gap:5px}
.project-contact-card{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 110px!important;gap:8px!important;padding:5px 9px!important;min-height:0!important;align-items:center!important}
.project-contact-primary,.project-contact-info{gap:2px!important;line-height:1.15!important}
.project-contact-primary b,.project-contact-primary strong,.project-contact-primary span,.project-contact-info span{font-size:12px;line-height:1.2;margin:0}
.project-contact-primary strong{font-size:13px!important}
.project-contact-info small{display:none}
.project-contact-right{min-width:110px!important;align-self:center!important}
.project-contact-photo-row .project-contact-photo{width:64px!important;height:64px!important;min-width:64px!important;flex-basis:64px!important}
.project-contact-photo-row .project-contact-edit{width:28px!important;height:28px!important;flex-basis:28px!important}
@media(max-width:600px){.project-contact-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 97px!important;padding:5px!important;gap:5px!important}.project-contact-right{min-width:97px!important}.project-contact-photo-row .project-contact-photo{width:60px!important;height:60px!important;min-width:60px!important;flex-basis:60px!important}.project-contact-primary b,.project-contact-primary strong,.project-contact-primary span,.project-contact-info span{font-size:11px!important}}

/* Contact name spans both information columns. Entire tile opens CRM, links retain native action. */
.project-contact-tile{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 72px!important;grid-template-rows:auto auto;column-gap:10px!important;row-gap:3px!important;align-items:start!important;cursor:pointer;padding:7px 9px!important}
.project-contact-tile[role="link"]:hover{background:#f5f9fc;border-color:#adc3d5}
.project-contact-tile:focus-visible{outline:2px solid #235b82;outline-offset:2px}
.project-contact-fullname{grid-column:1/3;grid-row:1;font-size:14px;line-height:1.2;align-self:end}
.project-contact-tile .project-contact-primary{grid-column:1;grid-row:2}
.project-contact-tile .project-contact-info{grid-column:2;grid-row:2}
.project-contact-tile .project-contact-right{grid-column:3;grid-row:1/3;min-width:0!important;align-items:center!important;align-self:center!important;justify-content:center!important}
.project-contact-tile .project-contact-photo{width:62px!important;height:62px!important;min-width:62px!important;flex:0 0 62px!important;object-fit:cover}
.project-contact-tile .project-contact-info span,.project-contact-tile .project-contact-primary b,.project-contact-tile .project-contact-primary span{line-height:1.2!important}
.project-contact-tile a{position:relative;z-index:1}
@media(max-width:600px){.project-contact-tile{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 66px!important;gap:3px 7px!important}.project-contact-fullname{font-size:13px}.project-contact-tile .project-contact-photo{width:58px!important;height:58px!important;min-width:58px!important;flex-basis:58px!important}}

/* Responsive contact business cards: five text rows plus full-height portrait */
.project-contact-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr))!important;gap:10px!important;align-items:stretch}
.contact-business-card{display:grid!important;grid-template-columns:minmax(0,1fr) 90px!important;grid-template-rows:1fr!important;column-gap:12px!important;padding:10px!important;min-height:116px!important;align-items:stretch!important;overflow:hidden}
.contact-business-details{display:grid;grid-template-rows:repeat(5,minmax(0,auto));align-content:space-between;min-width:0;gap:2px;line-height:1.15}
.contact-business-details strong{font-size:14px;line-height:1.2}.contact-business-details span{font-size:12px;min-width:0;overflow-wrap:anywhere;line-height:1.2}.contact-business-details a{overflow-wrap:anywhere;position:relative;z-index:1}
.contact-business-company{font-weight:650}.contact-business-photo{height:100%;min-height:104px;overflow:hidden;border-radius:8px;background:#edf2f5}
.contact-business-photo .project-contact-photo{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:104px!important;object-fit:cover!important;object-position:center 22%;border-radius:8px}
.contact-business-photo .project-contact-placeholder{display:flex!important;justify-content:center;align-items:center}
@media(max-width:700px){.project-contact-list{grid-template-columns:1fr!important}.contact-business-card{grid-template-columns:minmax(0,1fr) 86px!important;min-height:112px!important}.contact-business-photo{min-height:102px}}
.scope-quick-actions .btn svg,.scope-attention .signal svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;margin-right:5px}.scope-quick-actions .btn{display:inline-flex;align-items:center;gap:5px}.scope-attention .signal{display:inline-flex;align-items:center;gap:5px}/* CMS navigation additions */
.cms-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:7px;margin-top:15px}.cms-quick{border:1px solid #d2dce4;background:#f7f9fc;color:#23384d;border-radius:10px;padding:13px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:5px;min-height:75px}.cms-quick:hover,.cms-quick:focus-visible{border-color:#2673bd;background:#eaf3fb;outline-offset:2px}.cms-quick strong{font-size:13px}.cms-quick span{color:#536577;font-size:12px;line-height:1.35}.cms-navigation .toolbar{gap:10px;flex-wrap:wrap}#cms-references{scroll-margin-top:95px}

/* Compact dashboard only; Projecten layout remains untouched. */
.dashboard-compact .toolbar{gap:8px;flex-wrap:wrap;margin-bottom:10px}.dashboard-compact h1{margin:0;font-size:25px}.dashboard-compact h2{font-size:16px;margin:0 0 5px}.dashboard-compact .toolbar .actions{gap:5px;flex-wrap:wrap}.dashboard-compact .btn{padding:7px 10px;font-size:12px;min-height:32px}.dashboard-compact .card{padding:12px;margin-bottom:10px}.dashboard-compact .card.stat{padding:11px}.dashboard-compact .card.stat .value{font-size:25px}.dashboard-compact .grid{gap:7px}.dashboard-compact td,.dashboard-compact th{padding:7px 8px;font-size:12px}.dashboard-compact .signal,.dashboard-compact .badge{font-size:11px}.dashboard-compact .card .toolbar{margin-bottom:6px}.dashboard-compact .card.side p{margin:6px 0;font-size:12px}.dashboard-compact .card .empty{padding:14px}.dashboard-compact select{font-size:12px;min-height:32px;max-width:230px}
@media(max-width:700px){.dashboard-compact .toolbar .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.dashboard-compact .toolbar .actions .btn{padding:7px 5px;font-size:11px;white-space:normal}.dashboard-compact .card.stat .value{font-size:21px}.dashboard-compact .card{padding:10px}.dashboard-compact .toolbar .actions select{grid-column:1/-1;max-width:none}}

.pms-all-day{display:flex;align-items:center;gap:8px;font-weight:700;margin:8px 0 12px}.pms-all-day input{width:18px!important;height:18px;flex:0 0 auto}.pms-split-dates .two{margin-bottom:8px}.pms-plan-time:has(input:disabled){opacity:.45}

/* Active project indicator: gentle pulsing green light, text kept for screen readers. */
#dashboard-project-list tr.pms-active-project-row td:nth-child(3) .badge{font-size:0!important;padding:5px 8px!important;display:inline-flex;align-items:center;justify-content:center;background:transparent!important;border:0!important;box-shadow:none!important}
#dashboard-project-list tr.pms-active-project-row td:nth-child(3) .badge::before{content:"";display:block;width:12px;height:12px;border-radius:50%;background:#11943b;box-shadow:0 0 0 2px #ffffffaa,0 0 9px #118b3b88;animation:pmsActivePulse 2.8s ease-in-out infinite}
@keyframes pmsActivePulse{0%,100%{opacity:1;box-shadow:0 0 0 2px #ffffffaa,0 0 8px #118b3b88}50%{opacity:.42;box-shadow:0 0 0 2px #ffffff88,0 0 3px #118b3b44}}
@media(prefers-reduced-motion:reduce){#dashboard-project-list tr.pms-active-project-row td:nth-child(3) .badge::before{animation:none}}
.org-contact-card{display:grid;grid-template-columns:60px minmax(130px,1fr) minmax(160px,1.2fr) 18px;align-items:center;gap:13px;border:1px solid #d7e2ec;background:#fff;border-radius:11px;padding:12px;margin-top:5px;min-width:0}.org-contact-card .crm-avatar{width:56px;height:56px;object-fit:cover;border-radius:50%}.org-contact-info{display:flex;flex-direction:column;gap:3px;min-width:0}.org-contact-info strong{font-size:14px}.org-contact-info .muted{font-size:12px}.org-contact-actions{display:flex;flex-direction:column;gap:7px;min-width:0}.org-contact-link{display:flex;align-items:center;gap:7px;color:#166b9a;text-decoration:none;font-size:12px;overflow-wrap:anywhere}.org-contact-link svg{width:16px;height:16px;flex-shrink:0}.org-contact-link:hover{text-decoration:underline}.org-contact-chevron{color:#6687a2;font-size:25px}.org-contact-card:hover{border-color:#78a6c9;background:#f0f7fd!important}@media(max-width:650px){.org-contact-card{grid-template-columns:48px minmax(0,1fr) 16px;gap:7px;padding:10px}.org-contact-card .crm-avatar{width:46px;height:46px}.org-contact-actions{grid-column:2;grid-row:2}.org-contact-chevron{grid-column:3;grid-row:1 / span 2}.org-contact-info strong{font-size:13px}}
.crm-organization-hero{position:relative;min-height:clamp(192px,25.6vh,328px);border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#172f49,#304e65);margin:0 0 12px;color:#fff;display:flex;align-items:center;justify-content:center}.crm-organization-hero-visual{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:28px 12% 86px}.crm-organization-hero-visual img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 8px #0003)}.crm-organization-hero-fallback svg{width:120px;height:120px;color:#f4f7fa}.crm-organization-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 32%,#0c2039d9 100%);pointer-events:none}.crm-organization-hero-title{position:absolute;bottom:19px;left:23px;right:18px;text-shadow:0 2px 8px #0008}.crm-organization-hero-title h1{font-size:clamp(25px,4vw,40px);line-height:1.1;margin:4px 0}.crm-organization-hero-title p{margin:0;color:#e4edf7}.crm-organization-toolbar{margin-bottom:16px}.crm-organization-hero-title span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}@media(max-width:650px){.crm-organization-hero{min-height:230px}.crm-organization-hero-title{left:15px;bottom:14px}}
.org-address-block{margin:12px 0 16px}.org-address-link{display:inline-flex;flex-direction:column;gap:3px;font-weight:550;line-height:1.45}.org-address-link span{display:block}.org-address-link:hover{text-decoration:underline}.org-communication-block{display:flex;flex-direction:column;gap:7px;margin:0 0 14px}.org-communication-block a{display:inline-flex;align-items:center;gap:7px;overflow-wrap:anywhere}.org-communication-block svg{width:16px;height:16px;flex-shrink:0}
.org-address-block{display:flex;align-items:flex-start;gap:8px;margin:10px 0 16px!important}.org-address-text{line-height:1.35!important}.org-address-text div{margin:0!important;padding:0!important}.org-communication-block{display:flex;flex-direction:column;gap:2px!important;margin:0 0 10px!important}.org-communication-row{display:flex;align-items:center;gap:8px;min-height:22px;line-height:1.35;overflow-wrap:anywhere}.org-action-icon,.org-action-icon-placeholder{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px}.org-action-icon{color:#1875a8;text-decoration:none;border-radius:5px}.org-action-icon:hover{background:#e5f1fa}.org-action-icon svg{width:17px;height:17px}
.org-project-tree{font-size:12px;line-height:1.25;color:#62768b;margin:3px 0 0 8px}.org-project-tree-location{padding-left:12px;position:relative}.org-project-tree-location:before{content:"└";position:absolute;left:0;color:#8b9cac}.org-project-tree-object{margin-left:15px;padding-left:12px;position:relative}.org-project-tree-object:before{content:"└";position:absolute;left:0;color:#8b9cac}.org-project-active-light{display:inline-block;width:12px;height:12px;border-radius:50%;background:#11943b;box-shadow:0 0 0 2px #ffffffaa,0 0 9px #118b3b88;animation:pmsActivePulse 2.8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.org-project-active-light{animation:none}}
.org-project-tree{font-size:inherit!important;line-height:1.35!important}.org-project-tree-location,.org-project-tree-object{font-size:inherit!important}.org-projects-table td:first-child>.link{font-size:inherit!important}.org-kvk-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;line-height:1.35;margin:7px 0 10px}.org-kvk-label{font-weight:600;white-space:nowrap;font-size:12px}.org-address-block,.org-communication-row,.org-kvk-row{column-gap:8px!important}.org-address-text,.org-communication-row span,.org-kvk-row span:last-child{font-size:inherit!important}
.admin-delete-wrap{margin:18px 0 0;padding-top:13px;border-top:1px solid #e2e8ef}.admin-delete-button{background:#fff!important;color:#af2831!important;border:1px solid #d78c91!important}.admin-delete-button:hover{background:#fff0f0!important}
/* Responsive document library: large photo previews and readable filenames. */
.document-library-list{width:100%;min-width:0;gap:12px}.document-library-row{min-width:0;box-sizing:border-box}.document-library-row .doc-row-main{min-width:0;overflow-wrap:anywhere}.document-library-row .doc-row-main a{overflow-wrap:anywhere;word-break:normal}.document-library-row .doc-row-main b{white-space:normal}.document-photo-preview{display:block;flex:0 0 clamp(150px,27%,260px);min-width:0;aspect-ratio:4/3;overflow:hidden;border-radius:12px;background:#f1f4f7}.document-library-row .document-photo-preview img{display:block;width:100%;height:100%;object-fit:cover;border-radius:12px}.document-library-list>.toolbar{flex-wrap:wrap;gap:10px;min-width:0}
@media(max-width:700px){.document-library-list{gap:14px}.document-library-row{display:grid!important;grid-template-columns:26px minmax(0,1fr);align-items:start!important;gap:8px!important;padding:13px!important;border:1px solid #dce5ed!important;border-radius:13px;background:#fff}.document-library-row .doc-bulk-select{grid-column:1;grid-row:1;margin:3px 0 0}.document-library-row .document-photo-preview{grid-column:1 / -1;grid-row:2;width:100%;aspect-ratio:4/3;max-width:none}.document-library-row:not(:has(.doc-bulk-select)) .document-photo-preview{grid-row:1}.document-library-row .document-photo-preview img{width:100%;height:100%;object-fit:cover}.document-library-row .doc-row-main{grid-column:1 / -1;grid-row:auto;width:100%;font-size:14px;line-height:1.4}.document-library-row .doc-row-main a{display:block;overflow-wrap:anywhere}.document-library-row>.btn{grid-column:1 / -1;justify-self:start;max-width:100%;margin-top:3px}.document-file-card .doc-type{grid-column:1 / -1;grid-row:2}.document-library-list>.toolbar{display:flex;flex-wrap:wrap!important;align-items:center!important;gap:10px}.document-library-list>.toolbar label{width:100%}.document-library-row .doc-row-main b{word-break:normal}}
/* Document tiles: stable columns at any viewport width, never vertical filename text. */
.document-library-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;min-width:0!important;width:100%!important}.document-library-list>.toolbar{min-width:0;display:flex!important;flex-wrap:wrap!important;gap:10px!important}.document-library-row{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:7px 12px!important;align-items:start!important;width:100%!important;min-width:0!important;padding:14px!important;border:1px solid #dce5ed!important;border-radius:12px!important;background:#fff!important;box-sizing:border-box!important}.document-library-row .doc-bulk-select{grid-column:1!important;grid-row:1!important;margin:3px 0!important}.document-library-row .document-photo-preview{grid-column:1 / -1!important;grid-row:2!important;display:block!important;position:relative!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;height:auto!important;aspect-ratio:16/9!important;overflow:hidden!important}.document-library-row .document-photo-preview img{display:block!important;width:100%!important;height:100%!important;max-height:380px!important;aspect-ratio:16/9!important;object-fit:contain!important;background:#f1f4f7!important}.document-library-row .doc-row-main{grid-column:1 / -1!important;grid-row:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.4!important}.document-library-row .doc-row-main a{display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}.document-library-row .doc-row-main b{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}.document-library-row>.btn{grid-column:1 / -1!important;grid-row:auto!important;justify-self:start!important;max-width:100%!important}.document-library-row .doc-type{grid-column:1 / -1!important;grid-row:2!important}.document-library-row:not(:has(.doc-bulk-select)) .document-photo-preview,.document-library-row:not(:has(.doc-bulk-select)) .doc-type{grid-row:1!important}@media(min-width:1000px){.document-library-row .document-photo-preview{max-width:760px!important}}@media(max-width:700px){.document-library-row .document-photo-preview,.document-library-row .document-photo-preview img{aspect-ratio:4/3!important}.document-library-row{padding:11px!important}}
/* Organization logo: square, rounded, right aligned, aspect ratio preserved. */
.crm-organization-hero{justify-content:flex-start!important;align-items:flex-end!important}
.crm-organization-hero-visual{inset:auto 28px auto auto!important;top:50%!important;transform:translateY(-50%);width:clamp(132px,22vw,250px)!important;height:clamp(132px,22vw,250px)!important;aspect-ratio:1/1;box-sizing:border-box;padding:12px!important;background:#fff;border:1px solid #d9e3ec;border-radius:18px;box-shadow:0 8px 25px #08162966;overflow:hidden;z-index:2}
.crm-organization-hero-visual img{height:100%!important;width:100%!important;object-fit:contain!important;border-radius:10px;filter:none!important}
.crm-organization-hero-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#254664}
.crm-organization-hero-fallback svg{color:#254664!important;width:65%!important;height:65%!important}
.crm-organization-hero-title{right:calc(clamp(132px,22vw,250px) + 62px)!important;bottom:26px!important}
@media(max-width:650px){.crm-organization-hero-visual{right:13px!important;width:112px!important;height:112px!important;padding:8px!important;border-radius:13px!important}.crm-organization-hero-title{right:138px!important;left:14px!important;bottom:18px!important}.crm-organization-hero-title h1{font-size:clamp(19px,5vw,27px)!important;overflow-wrap:anywhere}}
/* Dashboard: full-row green highlight for active projects. */
#dashboard-project-list tr.pms-active-project-row,#dashboard-project-list tr.pms-active-project-row > td{background:#a9e8b2!important}
#dashboard-project-list tr.pms-active-project-row{box-shadow:inset 4px 0 #38905a}
#dashboard-project-list tr.pms-active-project-row:hover,#dashboard-project-list tr.pms-active-project-row:hover > td{background:#86d99a!important}

/* PMS-wide interactive detail rows: entire surface opens except nested controls. */
.pms-openable-row{cursor:pointer;transition:background-color .14s,border-color .14s}
.pms-openable-row:hover{background-color:#edf5fc!important}
.pms-openable-row:focus-visible{outline:2px solid #2878af;outline-offset:2px}
table tr.pms-openable-row:hover td{background-color:#edf5fc}
.pms-openable-row .btn,.pms-openable-row select,.pms-openable-row a{cursor:pointer}

/* Communication timeline: distinct cards with clear sender-first mail headings. */
.comm-item.pms-communication-entry{padding:15px 16px;margin:0 0 14px;border:1px solid #cbd9e6;border-radius:11px;background:#fff;box-shadow:0 2px 7px #1939540c}
.comm-item.pms-communication-entry:last-child{margin-bottom:0;border-bottom:1px solid #cbd9e6}
.comm-item.pms-communication-entry.comm-important{border-left:4px solid #e6a700;padding-left:13px}
.pms-communication-entry-head{margin:0 0 10px!important;padding:0 0 10px;border-bottom:1px solid #e2eaf2;align-items:start}
.pms-communication-sender{display:flex;gap:7px;align-items:center;font-weight:750;font-size:14px;color:#173e5d;overflow-wrap:anywhere}
.pms-communication-sender svg{width:16px;height:16px;flex:0 0 16px}
.pms-communication-subject{font-weight:650;font-size:13px;margin-top:5px;color:#263d53;overflow-wrap:anywhere}
@media(max-width:700px){.comm-item.pms-communication-entry{padding:12px;margin-bottom:11px}.pms-communication-sender{font-size:13px}.pms-communication-entry-head{gap:7px}}

/* Central AI usage dashboard, also compact on iPhone. */
.pms-ai-usage{background:#f5f8fc;border:1px solid #d5e0eb;border-radius:12px;padding:13px;margin:0 0 16px}
.pms-ai-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pms-ai-usage-tile{background:white;border:1px solid #d8e4f0;border-radius:9px;padding:10px;min-width:0}
.pms-ai-usage-tile span{font-size:11px;color:#52667a;display:block}
.pms-ai-usage-tile strong{font-size:17px;color:#173e5d;display:block;margin-top:4px;overflow-wrap:anywhere}
.pms-ai-meter{height:9px;background:#dce8f3;border-radius:8px;overflow:hidden;margin-top:12px}
.pms-ai-meter>div{background:#2a719f;height:100%;transition:width .2s}
.pms-ai-usage table{width:100%;font-size:12px}.pms-ai-usage th,.pms-ai-usage td{padding:6px}
@media(max-width:450px){.pms-ai-usage{padding:9px}.pms-ai-usage-tile strong{font-size:14px}}

/* Small category symbols for the four metric tiles, without changing calculations. */
.pms-overview-kpis>.project-kpi:nth-child(1)>.muted:first-child:before,.pms-overview-kpis.grid>.card.stat:nth-child(1)>.muted:first-child:before{content:'▣';}
.pms-overview-kpis>.project-kpi:nth-child(2)>.muted:first-child:before,.pms-overview-kpis.grid>.card.stat:nth-child(2)>.muted:first-child:before{content:'✓';}
.pms-overview-kpis>.project-kpi:nth-child(3)>.muted:first-child:before,.pms-overview-kpis.grid>.card.stat:nth-child(3)>.muted:first-child:before{content:'◷';}
.pms-overview-kpis>.project-kpi:nth-child(4)>.muted:first-child:before,.pms-overview-kpis.grid>.card.stat:nth-child(4)>.muted:first-child:before{content:'!';}
.pms-overview-kpis>.project-kpi>.muted:first-child:before,.pms-overview-kpis.grid>.card.stat>.muted:first-child:before{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;margin-right:7px;border-radius:6px;background:#e3edf7;color:#1c5077;font-size:14px;font-weight:800;vertical-align:middle}

/* Compact uniform overview metrics for CRM, Agenda and Communicatie. */
.pms-overview-kpis.project-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.pms-overview-kpis.grid>.card.stat{grid-column:span 3!important}
.pms-overview-kpis .project-kpi,.pms-overview-kpis.grid>.card.stat{min-width:0;min-height:88px!important;height:auto;padding:10px 12px!important;border:1px solid #d7e2ec;border-radius:11px;background:#f5f8fc;margin:0!important}
.pms-overview-kpis .project-kpi .muted,.pms-overview-kpis.grid>.card.stat .muted{font-weight:650;color:#314a63;font-size:11px;line-height:1.2}
.pms-overview-kpis .project-kpi .value,.pms-overview-kpis.grid>.card.stat .value{font-size:25px;line-height:1.15;margin-top:6px;color:#163752}
.pms-mail-sync-row{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.pms-mail-sync-info{font-size:11px;color:#4a6074;font-weight:600}
.pms-mail-recognition{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:12px;color:#40576e;margin:7px 0}
.pms-mail-project-row{display:flex;align-items:center;gap:8px;margin:9px 0;flex-wrap:wrap}.pms-mail-project-row label{font-size:12px;font-weight:650}.pms-mail-project-row select{max-width:320px;min-width:175px;min-height:36px;border-radius:8px}
@media(max-width:700px){.pms-overview-kpis.project-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pms-overview-kpis.grid>.card.stat{grid-column:span 6!important}.pms-overview-kpis .project-kpi,.pms-overview-kpis.grid>.card.stat{min-height:73px!important;padding:9px 10px!important}.pms-overview-kpis .project-kpi .value,.pms-overview-kpis.grid>.card.stat .value{font-size:23px}.pms-mail-sync-row{width:100%}.pms-mail-project-row select{width:100%;max-width:none}}

/* Four compact dashboard KPIs: always 2-by-2 on small screens. */
.dashboard-compact .grid>.pms-kpi-tile{grid-column:span 3;min-width:0;min-height:94px;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:12px 14px;margin:0;border:1px solid #d7e2ec;border-radius:11px;background:#f5f8fc}
.dashboard-compact .pms-kpi-heading{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-compact .pms-kpi-heading .muted{font-size:12px;line-height:1.2;font-weight:600;color:#314a63}
.dashboard-compact .pms-kpi-icon{width:23px;height:23px;flex:0 0 23px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:#e3edf7;color:#1c5077;font-size:16px;font-weight:700}
.dashboard-compact .pms-kpi-tile .value{font-size:27px;line-height:1.1;color:#163752}
@media(max-width:700px){.dashboard-compact .grid>.pms-kpi-tile{grid-column:span 6;min-height:78px;padding:9px 10px;gap:5px}.dashboard-compact .pms-kpi-heading .muted{font-size:11px}.dashboard-compact .pms-kpi-icon{width:20px;height:20px;flex-basis:20px;font-size:14px}.dashboard-compact .pms-kpi-tile .value{font-size:24px}}

/* Dashboard: consistent quick-link row directly beneath the header. */
.dashboard-compact > .pms-main-actions .pms-main-action-buttons{display:flex;align-items:stretch;justify-content:flex-start;gap:8px;flex-wrap:wrap;width:100%}
.dashboard-compact > .pms-main-actions .pms-main-action-buttons .btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;height:38px;padding:0 13px!important;border:1px solid #c8d6e5!important;border-radius:8px!important;background:#eef3f8!important;color:#203f5c!important;font-size:12px!important;font-weight:650;line-height:1.2;white-space:nowrap;box-shadow:none!important}
.dashboard-compact > .pms-main-actions .pms-main-action-buttons .btn:hover{background:#dfeaf5!important;border-color:#91b2d0!important}
.dashboard-compact > .pms-main-actions .pms-main-action-buttons .btn:focus-visible{outline:2px solid #286caa;outline-offset:2px}
@media(max-width:700px){.dashboard-compact > .pms-main-actions .pms-main-action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.dashboard-compact > .pms-main-actions .pms-main-action-buttons .btn{width:100%;min-width:0;height:40px;min-height:40px;padding:0 7px!important;font-size:11px!important;white-space:normal;text-align:center}}

/* Priority section: right-aligned, cohesive controls. */
.dashboard-compact .pms-priority-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dashboard-compact .pms-priority-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-left:auto}
.dashboard-compact .pms-priority-controls .btn,.dashboard-compact .pms-priority-controls select,.dashboard-compact .pms-priority-controls input{box-sizing:border-box;min-height:38px;height:38px;border:1px solid #c8d6e5;border-radius:8px;background:#eef3f8;color:#203f5c;font-size:12px;font-weight:600;padding:0 11px;box-shadow:none}
.dashboard-compact .pms-priority-controls .btn.primary{background:#1c4b71;color:#fff;border-color:#1c4b71}
.dashboard-compact .pms-priority-controls .pms-priority-search{width:175px;min-width:145px}
.dashboard-compact .pms-priority-controls select{min-width:170px;max-width:230px}
.dashboard-compact .pms-priority-controls .pms-priority-search,.dashboard-compact .pms-priority-controls .pms-priority-project{flex:0 0 175px;width:175px;min-width:0;max-width:175px;height:38px;min-height:38px;vertical-align:middle}
@media(max-width:800px){.dashboard-compact .pms-priority-controls .pms-priority-search,.dashboard-compact .pms-priority-controls .pms-priority-project{flex:1 1 calc(50% - 4px);width:calc(50% - 4px);max-width:none}.dashboard-compact .pms-priority-controls{width:100%;justify-content:flex-end;display:flex;flex-wrap:wrap}.dashboard-compact .pms-priority-controls .btn{flex:1 1 auto}.dashboard-compact .pms-priority-controls input,.dashboard-compact .pms-priority-controls select{flex:1 1 145px;min-width:0;max-width:none}}

/* Uniform secondary navigation; never shown on the Projecten page. */
.pms-section-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:7px;border:1px solid #d7e0e8;background:#f4f7fa;border-radius:10px}.pms-shortcut{border:1px solid #d3dee8;border-radius:7px;background:#fff;color:#344c63;padding:6px 9px;font-size:12px;line-height:1.25;cursor:pointer}.pms-shortcut:hover,.pms-shortcut:focus-visible{background:#eaf2fa;border-color:#8cbbdc;outline-offset:2px}@media(max-width:650px){.pms-section-shortcuts{gap:5px}.pms-shortcut{padding:6px 7px;font-size:11px}}

/* Shared page rhythm for other top-level screens; do not affect Projecten or Dashboard. */
body:has(#nav button.active:not(:first-child)) .pms-section-shortcuts{max-width:max-content}
.pms-section-shortcuts .pms-shortcut{display:inline-flex;align-items:center;min-height:30px;font-weight:600}
@media(max-width:600px){.pms-section-shortcuts{max-width:100%;overflow-x:auto;flex-wrap:nowrap}.pms-section-shortcuts .pms-shortcut{white-space:nowrap;flex-shrink:0}}

/* Shared content shell: project, location and object views are deliberately excluded. */
.pms-main-hero{position:relative;isolation:isolate;min-height:180px;border-radius:16px;background:linear-gradient(115deg,#10263d 0%,#214765 55%,#397f9c 100%);overflow:hidden;margin-bottom:12px;display:flex;align-items:flex-end;color:white}
.pms-main-hero:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 82% 30%,#80c0df55,transparent 42%),linear-gradient(0deg,#07182780,transparent 70%);z-index:-1}
.pms-main-hero-text{padding:24px 26px}.pms-main-hero h1{margin:0 0 5px;font-size:clamp(25px,3vw,38px);line-height:1.12;color:#fff}.pms-main-hero p{font-size:14px;line-height:1.4;color:#eef6fc;margin:0}
.pms-main-actions{justify-content:flex-end!important;margin-bottom:10px!important;gap:6px}.pms-main-action-buttons{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}.pms-main-action-buttons .btn{padding:7px 10px!important;font-size:12px!important;min-height:32px;border-radius:8px}.pms-main-action-buttons .btn svg{height:15px;width:15px}.pms-main-hero+.pms-main-actions:empty{display:none}
@media(max-width:650px){.pms-main-hero{min-height:140px;border-radius:12px}.pms-main-hero-text{padding:17px}.pms-main-hero h1{font-size:26px}.pms-main-actions{justify-content:flex-start!important}.pms-main-action-buttons{justify-content:flex-start;width:100%}.pms-main-action-buttons .btn{font-size:11px!important;padding:7px 8px!important}}
.pms-main-hero{background-size:cover;background-position:center}.pms-screen-meta-edit{position:absolute;right:15px;top:15px;border:1px solid #ffffff88;border-radius:8px;background:#132f4ccc;color:white;padding:7px 11px;font-size:12px;cursor:pointer;z-index:3}.pms-screen-meta-edit:hover{background:#163f67}@media(max-width:650px){.pms-screen-meta-edit{right:9px;top:9px;font-size:10px;padding:5px 7px}}
.pms-header-preview{height:190px;margin:10px 0;border-radius:12px;background-color:#203d58;background-image:linear-gradient(120deg,#13283f,#3684a7);background-repeat:no-repeat;background-position:center;background-size:cover;display:flex;align-items:flex-end;overflow:hidden}.pms-header-preview-label{padding:16px;font-size:24px;font-weight:750;color:white;text-shadow:0 2px 8px #000a}@media(max-width:600px){.pms-header-preview{height:145px}}
.dashboard-compact .pms-project-overview-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.dashboard-compact .pms-project-overview-tools input{flex:1;min-width:200px}.dashboard-compact .pms-project-overview-tools select{min-width:145px}.dashboard-compact #dashboard-project-list{overflow-x:auto}
.dev-studio{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.dev-studio .card:first-child,.dev-studio .card:nth-child(3){grid-column:1/-1}.dev-features{display:flex;flex-wrap:wrap;gap:7px;margin-top:5px}.dev-terminal{background:#0d1b2b;color:#d2e6f5;border-radius:9px;padding:15px;min-height:155px;white-space:pre-wrap;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}@media(max-width:750px){.dev-studio{grid-template-columns:1fr}.dev-studio .card{grid-column:1/-1}}
.dev-session-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}.dev-session-controls .btn{min-height:34px}.dev-job-row{padding:9px 0;border-top:1px solid #ccd5de;display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.dev-job-row span{flex:1;min-width:190px;overflow-wrap:anywhere}.dev-job-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#122439;color:#e1edfa;padding:10px;border-radius:7px;margin:7px 0 0}.dev-job-row{align-items:flex-start}.gantt-scroll{overflow-x:auto;padding-bottom:8px}.gantt-grid{display:grid;grid-template-columns:minmax(180px,240px) minmax(640px,1fr);min-width:830px;align-items:stretch}.gantt-task-name{padding:8px 10px;border-bottom:1px solid var(--line);min-height:42px;overflow-wrap:anywhere;font-size:13px}.gantt-track{min-height:42px;position:relative;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / 28 - 1px),#e7edf2 calc(100% / 28 - 1px),#e7edf2 calc(100% / 28))}.gantt-head{display:grid;grid-template-columns:repeat(28,1fr);min-height:32px}.gantt-day-label{font-size:10px;text-align:left;color:var(--muted)}.gantt-bar{position:absolute;top:11px;height:19px;min-width:4px;background:#2e6fa9;border-radius:5px}.gantt-warning{background:#bd5b46}.gantt-done{background:#40927b}.gantt-task-name .muted{font-size:11px}
.project-hero-title-row{display:flex;align-items:center;gap:12px;min-width:0;width:100%}
.project-hero-title-row h1{min-width:0;margin:0;flex:1}.project-hero-title-row{justify-content:space-between}.project-page-edit{flex:none}
.project-title-edit{flex:none;border:1px solid currentColor;border-radius:8px;padding:7px;background:transparent;color:inherit;cursor:pointer}
.project-title-edit svg{width:18px;height:18px}
.project-plan-outline{flex:none;margin-left:auto;border:1.5px solid currentColor;color:inherit;background:transparent;border-radius:9px;padding:9px 15px;font-weight:700;cursor:pointer;white-space:nowrap}
.project-plan-outline:hover,.project-title-edit:hover{background:rgba(255,255,255,.16)}
.project-planning-window main{width:100%;max-width:none}.project-planning-window #content{width:100%;max-width:none}
@media(max-width:650px){.project-hero-title-row{gap:7px}.project-hero-title-row h1{font-size:clamp(18px,5vw,28px)}.project-plan-outline{padding:7px 9px;font-size:11px}.project-title-edit{padding:5px}}
.entity-hero[data-color-owner^="project:"] .entity-hero-copy{max-width:none;left:24px;right:24px}
.entity-hero[data-color-owner^="project:"] .project-hero-title-row{width:100%;display:flex;align-items:center}
.entity-hero[data-color-owner^="project:"] .project-plan-outline{pointer-events:auto;position:relative;z-index:4;margin-left:auto;cursor:pointer}
.pms-breadcrumb{display:flex;gap:7px;align-items:center;min-width:0;flex-wrap:wrap}
.pms-breadcrumb button{border:0;background:none;padding:3px 2px;color:inherit;font-size:inherit;font-weight:600;cursor:pointer}
.pms-breadcrumb button:hover{text-decoration:underline}
.pms-breadcrumb .current{font-weight:800}
.pms-breadcrumb .sep{opacity:.55}
@media(max-width:700px){.pms-breadcrumb{font-size:12px;gap:3px}.pms-breadcrumb button{max-width:120px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.entity-hero[data-color-owner^="project:"] .entity-hero-copy{left:12px;right:12px}}
.entity-hero[data-color-owner^="location:"] .entity-hero-copy{max-width:none;left:24px;right:24px}
.entity-hero[data-color-owner^="location:"] .project-plan-outline{pointer-events:auto;position:relative;z-index:4;margin-left:auto}
.construction-step{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}
.construction-step:last-child{border-bottom:0}
@media(max-width:650px){.entity-hero[data-color-owner^="location:"] .entity-hero-copy{left:12px;right:12px}.construction-step{flex-wrap:wrap}}
.build-gantt-card{margin-top:16px}.build-gantt-scroll{overflow:auto;max-height:72vh;border:1px solid var(--line);border-radius:10px;margin-top:12px}.build-gantt-layout{display:grid;grid-template-columns:310px var(--timeline-width);width:max-content;min-width:100%}.build-gantt-label{position:sticky;left:0;background:#fff;z-index:2;padding:10px 12px;border-bottom:1px solid var(--line);font-size:13px;min-height:46px;max-width:310px;overflow:hidden}.build-gantt-label small{display:block;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.build-gantt-label .link{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.build-gantt-group{grid-column:1/3;background:#eaf0f6;padding:8px 12px;font-weight:700;border-bottom:1px solid #cbd6df;position:sticky;left:0}.build-gantt-lane{height:46px;position:relative;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to right,#fff 0,#fff 31px,#edf1f5 32px)}.build-gantt-lane.heading{height:38px;background:#eef3f8}.build-gantt-label.heading{height:38px;background:#eef3f8;font-weight:700;z-index:4}.build-gantt-day{position:absolute;top:0;bottom:0;border-right:1px solid #dce4ea;font-size:10px;padding:12px 2px 0;white-space:nowrap}.build-gantt-day.weekend{background:#dce6ee66}.build-gantt-bar{position:absolute;top:11px;height:24px;border-radius:6px;padding:3px 6px;font-size:11px;white-space:nowrap;overflow:hidden;color:#fff;background:#356c9d;box-sizing:border-box}.build-gantt-bar.busy{background:#c18728}.build-gantt-bar.done{background:#428d72}.build-gantt-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:var(--muted)}@media(max-width:650px){.build-gantt-layout{grid-template-columns:215px var(--timeline-width)}.build-gantt-label{max-width:215px;padding:8px}.build-gantt-scroll{max-height:68vh}}
/* Dedicated construction planning popup: no main PMS chrome. */
body.project-planning-window #app>aside{display:none!important}
body.project-planning-window #app>main>header{display:none!important}
body.project-planning-window #app>main{margin-left:0!important;width:100%!important;max-width:none!important;min-height:100vh!important;padding:0!important}
body.project-planning-window #app>main .content{max-width:none!important;width:100%!important;box-sizing:border-box;padding:18px 22px!important}
body.project-planning-window #content{max-width:none!important;width:100%!important}
@media(max-width:700px){body.project-planning-window #app>main .content{padding:12px!important}body.project-planning-window #app>main{padding-bottom:0!important}}

/* Communicatielijn: scrollbare mailtekst, rechts uitgelijnde bijlagen en uniforme acties. */
.pms-communication-entry .pms-comm-scroll{max-height:260px;overflow-y:scroll;overflow-x:auto;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff;display:block;-webkit-line-clamp:unset;white-space:pre-wrap;overflow-wrap:anywhere}
.pms-communication-entry .mail-html-view.pms-comm-scroll{white-space:normal}
.pms-communication-entry .pms-mail-attachments{justify-content:flex-end;align-items:center;gap:7px;margin:9px 0 4px}
.pms-communication-entry .pms-mail-attachments .attachment-chip{max-width:100%;overflow-wrap:anywhere;text-decoration:none;color:#223d55;cursor:pointer;padding:7px 10px;border:1px solid #cbd7e2;background:#f5f8fb}
.pms-communication-entry .pms-mail-attachments .attachment-chip:hover{background:#e8f2fa;border-color:#8bb5d0}
.pms-communication-entry .pms-mail-attachments svg{width:16px;height:16px;flex-shrink:0}
.pms-comm-action-bar{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:5px}
.pms-comm-action-bar .pms-mail-project-row{margin:0;display:flex;align-items:center;gap:8px}
.pms-comm-action-bar .pms-comm-action-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.pms-comm-action-bar .pms-comm-action{height:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:8px;font-size:12px;font-weight:700;white-space:nowrap}
.pms-comm-action-bar .pms-ai-action{background:#101d2d;color:#fff}
.pms-comm-action-bar .pms-ai-action:hover{background:#1d3046}
@media(max-width:700px){.pms-comm-action-bar{justify-content:flex-start;align-items:stretch}.pms-comm-action-bar .pms-mail-project-row{width:100%;flex-wrap:wrap}.pms-comm-action-bar .pms-mail-project-row select{width:auto;max-width:100%;flex:1}.pms-comm-action-bar .pms-comm-action-buttons{width:100%}.pms-comm-action-bar .pms-comm-action{flex:1}}
.scope-workflow-editor{border:1px solid #dce3eb;border-radius:9px;padding:12px;margin:12px 0}.scope-workflow-editor textarea{min-height:75px}.scope-workflow-status{margin:12px 0;grid-column:span 12}.scope-workflow-status .workflow{overflow-x:auto}
/* Werkstroom: volle paginabreedte onder header, tekstafhankelijke knoppen. */
[id^="scopestatus-"]{width:100%;min-width:0;margin:0 0 14px}
.scope-workflow-status{width:100%;margin:0!important;padding:14px 16px;grid-column:1/-1}
.scope-workflow-status h2{margin:0 0 7px}
.scope-workflow-status .workflow{display:flex!important;flex-wrap:wrap;justify-content:space-between;align-items:stretch;gap:8px;width:100%;overflow:visible;grid-template-columns:none!important;margin:8px 0}
.scope-workflow-status .phase{flex:1 1 0;min-width:0;max-width:100%;width:auto;padding:10px 15px;min-height:44px;border-radius:9px;white-space:normal;overflow-wrap:break-word;line-height:1.25;display:flex;align-items:center;justify-content:center;text-align:center;border:2px solid #d8e0e9;background:#f5f7fa;color:#24394c;font-size:12px}
.scope-workflow-status .phase b{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:200px}
.scope-workflow-status .phase .dot{display:none!important}
.scope-workflow-status .phase.done{background:#bce7c6!important;color:#155c30!important;border-color:#459c62!important;animation:scopeDoneBorderPulse 3.6s ease-in-out infinite}
.scope-workflow-status .phase.current{background:#e7f2fa;border-color:#368cbe;box-shadow:none}
@keyframes scopeDoneBorderPulse{0%,100%{border-color:#459c62;box-shadow:0 0 0 0 rgba(50,145,80,.11)}50%{border-color:#a9dcbc;box-shadow:0 0 0 2px rgba(50,145,80,.13)}}
@media(prefers-reduced-motion:reduce){.scope-workflow-status .phase.done{animation:none}}
@media(max-width:700px){.scope-workflow-status .workflow{justify-content:flex-start}.scope-workflow-status .phase{min-width:0;flex:1 1 0;padding:9px 11px}}

.scope-workflow-status .phase{position:relative;padding-right:34px!important;padding-left:12px!important}
.scope-workflow-status .phase .scope-flow-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;opacity:.78;pointer-events:none}
.scope-workflow-status .phase .scope-flow-arrow svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}

/* Workflow status: past completed, active and future stages. */
.scope-workflow-status .phase:not(.done):not(.current){background:#fff0d8!important;border-color:#eed0a5!important;color:#745026!important}
.scope-workflow-status .phase.done{background:#c5e7cd!important;border-color:#80bf90!important;color:#195d31!important;animation:none!important;box-shadow:none!important}
.scope-workflow-status .phase.current{background:#78cd92!important;border:2px solid #208348!important;color:#124b29!important;box-shadow:0 0 0 1px rgba(28,128,68,.15)!important;animation:scopeActiveBorderPulse 3.2s ease-in-out infinite!important;min-height:57px}
.scope-workflow-status .scope-flow-label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0}
.scope-workflow-status .scope-flow-label b{max-width:100%;min-width:0}
.scope-workflow-status .scope-active-label{font-size:11px;line-height:1.1;color:#09652e;font-weight:800;text-transform:lowercase}
@keyframes scopeActiveBorderPulse{0%,100%{border-color:#188044;box-shadow:0 0 0 1px rgba(24,128,68,.18),0 0 5px rgba(24,128,68,.17)}50%{border-color:#a0e5b5;box-shadow:0 0 0 3px rgba(24,128,68,.24),0 0 10px rgba(24,128,68,.22)}}
@media(prefers-reduced-motion:reduce){.scope-workflow-status .phase.current{animation:none!important}}

/* Clearly visible yet calm active-stage border pulse; no movement of the button. */
.scope-workflow-status .phase.current{position:relative;isolation:isolate;overflow:visible!important;animation:none!important;border:2px solid #167b3e!important;box-shadow:none!important}
.scope-workflow-status .phase.current::after{content:"";position:absolute;inset:-3px;border:3px solid #168a43;border-radius:11px;pointer-events:none;z-index:2;animation:pmsWorkflowOutlinePulse 2.6s ease-in-out infinite}
@keyframes pmsWorkflowOutlinePulse{0%,100%{border-color:#14813b;box-shadow:0 0 0 1px rgba(20,129,59,.15),0 0 0 0 rgba(20,129,59,0);opacity:1}50%{border-color:#25a956;box-shadow:0 0 0 5px rgba(30,158,73,.38),0 0 13px 3px rgba(25,137,64,.27);opacity:1}}
@media(prefers-reduced-motion:reduce){.scope-workflow-status .phase.current::after{animation:none;box-shadow:0 0 0 3px rgba(30,158,73,.3)}}

/* Project, location, object: interlocking chevron workflow with labels beneath. */
.scope-workflow-status .workflow.compact{display:flex!important;flex-wrap:nowrap!important;gap:0!important;width:100%;overflow-x:auto!important;overflow-y:visible!important;padding:9px 6px 8px 1px;align-items:flex-start!important}
.scope-workflow-status .pms-chevron-step{min-width:112px;flex:1 1 0;position:relative;display:flex;flex-direction:column;align-items:stretch}
.scope-workflow-status .pms-chevron-step + .pms-chevron-step{margin-left:-13px}
.scope-workflow-status .pms-chevron-button{width:100%;height:65px;min-height:65px;position:relative;padding:9px 30px 9px 27px;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1.2;text-align:center;font-size:12px;font-weight:700;color:#745026;background:#fff0d8;clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%,22px 50%);-webkit-clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%,22px 50%);transition:filter .2s;overflow:visible}
.scope-workflow-status .pms-chevron-step:first-child .pms-chevron-button{clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%);-webkit-clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%);padding-left:12px}
.scope-workflow-status .pms-chevron-step.done .pms-chevron-button{background:#c5e7cd;color:#195d31}
.scope-workflow-status .pms-chevron-step.current .pms-chevron-button{background:#78cd92;color:#124b29}
.scope-workflow-status .pms-chevron-button span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%;min-width:0}
.scope-workflow-status .pms-chevron-caption{text-align:center;min-height:20px;padding-top:5px;font-size:12px;font-weight:750;color:#195d31}
.scope-workflow-status .pms-chevron-step.current .pms-chevron-caption{color:#09652e}
.scope-workflow-status .pms-chevron-step.future .pms-chevron-caption{color:transparent}
.scope-workflow-status .pms-chevron-step.current{isolation:isolate}
.scope-workflow-status .pms-chevron-step.current::before{content:"";position:absolute;left:-4px;right:-4px;top:-4px;height:73px;background:#168b45;clip-path:polygon(0 0,calc(100% - 24px) 0,100% 50%,calc(100% - 24px) 100%,0 100%,24px 50%);pointer-events:none;z-index:-1;animation:pmsChevronPulse 2.5s ease-in-out infinite}
.scope-workflow-status .pms-chevron-step.current:first-child::before{clip-path:polygon(0 0,calc(100% - 24px) 0,100% 50%,calc(100% - 24px) 100%,0 100%)}
@keyframes pmsChevronPulse{0%,100%{background:#168b45;filter:drop-shadow(0 0 1px rgba(20,130,60,.3))}50%{background:#52dc7c;filter:drop-shadow(0 0 7px rgba(20,150,60,.75))}}
.scope-workflow-status .pms-chevron-step:hover .pms-chevron-button{filter:brightness(.96)}
@media(prefers-reduced-motion:reduce){.scope-workflow-status .pms-chevron-step.current::before{animation:none}}
@media(max-width:700px){.scope-workflow-status .workflow.compact{flex-wrap:nowrap!important}.scope-workflow-status .pms-chevron-step{min-width:125px}}

/* Compacte flowsectie: minimale vrije ruimte boven en onder de pijlen. */
[id^="scopestatus-"]{margin:0 0 6px!important}
.scope-workflow-status{padding:4px 10px 2px!important;margin:0!important}
.scope-workflow-status .workflow.compact{margin:0!important;padding:5px 5px 1px 1px!important}
.scope-workflow-status .pms-chevron-caption{min-height:16px;padding-top:2px;line-height:14px}

/* Pijlen 25% lager (65 -> 49 px), maximaal twee tekstregels, geen statusregels eronder. */
.scope-workflow-status .pms-chevron-button{height:49px!important;min-height:49px!important;padding-top:5px!important;padding-bottom:5px!important}
.scope-workflow-status .pms-chevron-step.current::before{height:57px!important}
.scope-workflow-status .pms-chevron-caption{display:none!important}
.scope-workflow-status .workflow.compact{padding-bottom:1px!important}

/* Op compacte schermen verdeelt de workflow zich dynamisch over maximaal twee rijen. */
@media(max-width:700px){
.scope-workflow-status .workflow.compact{display:grid!important;grid-template-columns:repeat(var(--flow-cols),minmax(0,1fr))!important;flex-wrap:unset!important;gap:7px 0!important;overflow:visible!important;padding-right:3px!important}
.scope-workflow-status .pms-chevron-step{min-width:0!important;width:auto;flex:none!important}
.scope-workflow-status .pms-chevron-step.flow-row-start{margin-left:0!important}
.scope-workflow-status .pms-chevron-step.flow-row-start .pms-chevron-button{clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%)!important;-webkit-clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%)!important;padding-left:12px!important}
.scope-workflow-status .pms-chevron-step.flow-row-start.current::before{clip-path:polygon(0 0,calc(100% - 24px) 0,100% 50%,calc(100% - 24px) 100%,0 100%)!important}
.scope-workflow-status .pms-chevron-button{padding-left:20px!important;padding-right:23px!important;font-size:11px!important}
}

/* De rechterkant van de laatste pijl sluit vlak af. */
.scope-workflow-status .pms-chevron-step:last-child .pms-chevron-button{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,22px 50%)!important;-webkit-clip-path:polygon(0 0,100% 0,100% 100%,0 100%,22px 50%)!important}
.scope-workflow-status .pms-chevron-step:last-child:first-child .pms-chevron-button{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)!important;-webkit-clip-path:polygon(0 0,100% 0,100% 100%,0 100%)!important}
.scope-workflow-status .pms-chevron-step:last-child.current::before{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,24px 50%)!important}
@media(max-width:700px){
.scope-workflow-status .pms-chevron-step.flow-row-one-end .pms-chevron-button{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,22px 50%)!important;-webkit-clip-path:polygon(0 0,100% 0,100% 100%,0 100%,22px 50%)!important}
.scope-workflow-status .pms-chevron-step.flow-row-one-end.current::before{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,24px 50%)!important}
}

/* Gelijke binnenruimte rondom de workflowpijlen (boven, onder, links en rechts). */
.scope-workflow-status{padding:6px!important}
.scope-workflow-status .workflow.compact{margin:0!important;padding:0!important}
@media(max-width:700px){.scope-workflow-status .workflow.compact{padding:0!important}}

/* Bouwplanning: altijd zichtbare datumkop, vier rijen en grijze weekendkolommen. */
.build-gantt-layout>.build-gantt-label.heading{position:sticky!important;top:0!important;left:0!important;z-index:16!important;height:96px!important;min-height:96px!important;box-sizing:border-box;background:#eef3f8!important}
.build-gantt-layout>.build-gantt-lane.heading.build-gantt-header{position:sticky!important;top:0!important;z-index:12!important;height:96px!important;min-height:96px!important;background:#eef3f8!important;box-sizing:border-box}
.build-gantt-header-row{height:24px;position:relative;width:100%;border-bottom:1px solid #d2dce6;box-sizing:border-box}
.build-gantt-header-row:last-child{border-bottom:0}
.build-gantt-header-cell{position:absolute;top:0;height:100%;box-sizing:border-box;border-right:1px solid #d2dce6;overflow:hidden;text-overflow:clip;white-space:nowrap;text-align:center;padding:4px 1px;font-size:10px;line-height:15px;font-weight:600}
.build-gantt-header-row.month .build-gantt-header-cell{font-size:12px;background:#dce7f0;text-transform:capitalize}
.build-gantt-header-row.week .build-gantt-header-cell{background:#e7eef5}
.build-gantt-header-row.number .build-gantt-header-cell,.build-gantt-header-row.weekday .build-gantt-header-cell{font-size:10px}
.build-gantt-lane:not(.heading){isolation:isolate;background:#fff!important}
.build-gantt-weekend{position:absolute;top:0;bottom:0;background:#e1e5e9;z-index:0;pointer-events:none}
.build-gantt-lane:not(.heading) .build-gantt-bar{z-index:1}

.build-gantt-week-separator{position:absolute;top:0;bottom:0;width:2px;background:#1e2329;z-index:3;pointer-events:none;transform:translateX(-1px)}
.build-gantt-lane.heading.build-gantt-header{isolation:isolate}
.build-gantt-header-row.number .build-gantt-header-cell{font-variant-numeric:tabular-nums}

/* Maand/week als afgeronde blauwe capsules; weekgrenzen beginnen pas bij dagnummer. */
.build-gantt-header .build-gantt-week-separator{top:48px!important}
.build-gantt-header-row.month .build-gantt-header-cell{
 background:#28689d!important;color:#fff!important;border:2px solid #eef3f8!important;
 border-radius:8px!important;padding:2px 5px!important;font-weight:750!important;
 text-transform:capitalize
}
.build-gantt-header-row.week .build-gantt-header-cell{
 background:#5486b0!important;color:#fff!important;border:2px solid #eef3f8!important;
 border-radius:7px!important;padding:2px 4px!important;font-weight:700!important
}

.build-gantt-week-separator{background:#5486b0!important}
.build-gantt-month-separator{position:absolute;top:0;bottom:0;width:2px;background:repeating-linear-gradient(to bottom,#a8c4db 0,#a8c4db 5px,transparent 5px,transparent 10px);pointer-events:none;z-index:4;transform:translateX(-1px)}
.build-gantt-header .build-gantt-month-separator{top:24px}
.build-gantt-label:not(.heading){min-height:34px!important;height:34px!important;padding:7px 10px!important;box-sizing:border-box}
.build-gantt-lane:not(.heading){height:34px!important;min-height:34px!important}
.build-gantt-bar{top:6px!important;height:22px!important}
@media(max-width:650px){.build-gantt-label:not(.heading){padding:7px 8px!important}}
.build-gantt-layout{position:relative}.build-gantt-dependency-lines{position:absolute;left:0;top:0;pointer-events:none;z-index:7;overflow:visible}

/* PDF-bouwplanning: gekleurde bronbalk en controleerbare datums. */
.pdf-plan-preview-row{display:block!important;padding:10px 5px!important}
.pdf-plan-task{display:flex;align-items:center;gap:8px!important;font-size:13px}
.pdf-plan-task b{overflow-wrap:anywhere}
.pdf-plan-swatch{display:inline-block;flex:none;width:28px;height:12px;border:1px solid #556b79;border-radius:3px}
.pdf-plan-dates{margin:5px 0 4px}
.pdf-plan-dates label{font-size:11px;margin-bottom:2px}
.pdf-plan-dates input[type=date]{width:100%;max-width:180px;height:32px;padding:4px 6px}

.build-gantt-scroll{height:calc(100dvh - 130px)!important;max-height:none!important;min-height:380px}
.build-gantt-group{padding:0!important;position:relative!important;background:#eaf0f6}
.build-gantt-group-fixed{display:block;position:sticky;left:0;width:245px;box-sizing:border-box;padding:7px 11px;z-index:8;background:#eaf0f6}
@media(max-width:650px){.build-gantt-group-fixed{width:155px}}
.build-gantt-header-row.number .build-gantt-header-cell:empty{background:#e2e5e7}
.build-gantt-today{position:absolute;top:0;bottom:0;z-index:4;pointer-events:none;border-left:2px solid #d3a500;border-right:2px solid #d3a500;background:repeating-linear-gradient(135deg,rgba(255,217,65,.24) 0px,rgba(255,217,65,.24) 4px,rgba(255,239,163,.12) 4px,rgba(255,239,163,.12) 9px)}
.build-gantt-header>.build-gantt-today{top:48px!important}.build-gantt-bar{touch-action:none!important;user-select:none}.build-gantt-bar:hover{outline:2px solid #173e63;outline-offset:1px}

.build-gantt-bar::before,.build-gantt-bar::after{content:"";position:absolute;top:3px;bottom:3px;width:4px;background:#ffffffb8;border-radius:2px;pointer-events:none}
.build-gantt-bar::before{left:2px}.build-gantt-bar::after{right:2px}
.build-gantt-bar:active{cursor:grabbing!important}

.build-gantt-bar.milestone{height:15px!important;width:15px!important;min-width:15px!important;top:9px!important;transform:rotate(45deg);border-radius:2px!important;padding:0!important;overflow:visible!important;font-size:0!important}
.build-gantt-bar.milestone::before,.build-gantt-bar.milestone::after{display:none!important}

.project-page-edit{width:auto!important;padding:0 12px!important;gap:7px;white-space:nowrap;font-size:12px;font-weight:700}
.project-settings-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 15px;border-bottom:1px solid #d9e4ec;padding-bottom:8px}
.project-settings-tab{border:1px solid #d5e1e9;border-radius:8px;padding:8px 10px;background:#f4f7fa;color:#294559;cursor:pointer;font-weight:650}
.project-settings-tab.active{background:#173d60;color:white;border-color:#173d60}
[data-project-settings-pane][hidden]{display:none!important}
.planning-source-options{display:grid;gap:7px;margin-top:5px}
.planning-source-option{display:flex;gap:10px;align-items:flex-start;border:1px solid #d9e3eb;padding:12px;border-radius:9px;cursor:pointer}
.planning-source-option input{width:auto!important;margin-top:4px}
.planning-source-option small{display:block;color:#698091;margin-top:4px;font-size:12px}

.location-card,.object-card{position:relative}
.tile-planning-actions{display:flex;justify-content:flex-end;margin-top:8px}
.tile-planning-actions .icon-btn,.object-card>.icon-btn{position:relative;z-index:2;flex-shrink:0}
.facility-icons{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.facility-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d6e0e7;border-radius:9px;background:#eef3f7;color:#203247;flex:none}.facility-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.tile-facilities{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.tile-planning-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.facility-icon{width:68px;height:68px;color:#00db39;background:#edf8f0;border-color:#b6eac3}
.facility-icon svg{width:40px;height:40px;stroke:currentColor;stroke-width:2.1}
.tile-facilities .facility-icon svg{width:23px;height:23px}

.facility-icon{width:88px;height:88px;background:transparent;border:0;border-radius:0;color:#7135d8}
.facility-icon svg{width:84px;height:84px;stroke:currentColor;stroke-width:1.8}
.tile-facilities .facility-icon{width:39px;height:39px}
.tile-facilities .facility-icon svg{width:37px;height:37px}
.facility-icon:has(svg [data-nope]){color:inherit}
.facility-icon[data-facility="generator"]{color:#ff2424}
.facility-icon[data-facility="water"]{color:#0a4d97}
.facility-icon[data-facility="office"]{color:#ff7600}
.facility-icon[data-facility="hut"]{color:#9425f6}
.facility-icon[data-facility="container"]{color:#5b0abe}
.facility-icon[data-facility="toilet"]{color:#ffd600}
.facility-icon[data-facility="toilet-unit"]{color:#ffcc00}
.facility-icon[data-facility="generator"] svg rect{fill:#ffe2e2}
.facility-icon[data-facility="office"] svg rect:first-child{fill:#ffedd7}
.facility-icon[data-facility="hut"] svg path:first-child{fill:#ddf7d9}
.facility-icon[data-facility="container"] svg path:first-child{fill:#efe0ff}
.facility-icon[data-facility="toilet"] svg path:first-child{fill:#ece1ff}
.facility-icon[data-facility="toilet-unit"] svg rect:first-child{fill:#fff3af}
.location-count{display:flex;flex-direction:column;align-items:center}
.location-count-planning{display:flex;justify-content:center;margin-top:6px}
.location-count-planning .icon-btn{width:43px;height:43px;border-radius:8px}
.tile-planning-actions{justify-content:flex-start}
.location-card:focus-visible,.object-card:focus-visible{outline:2px solid #3277b9}

.planning-dependency-editor{max-height:260px;overflow:auto;border:1px solid #dbe5ed;border-radius:8px}
.planning-dependency-row{display:grid;grid-template-columns:1fr minmax(130px,180px);align-items:center;gap:7px;padding:7px 10px;border-bottom:1px solid #e4ecf1}
.planning-dependency-row label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}
.planning-dependency-row input{width:auto}
.planning-dependency-row select{margin:0;font-size:12px}
.build-gantt-group-fixed{border:0;text-align:left;cursor:pointer;font:inherit;color:inherit}
.build-gantt-group.collapsed{background:#e4edf5}
.build-gantt-group.collapsed::after{content:"Samengevat";position:absolute;left:260px;top:8px;font-size:10px;color:#567794}
.build-gantt-layout [hidden]{display:none!important}
@media(max-width:700px){.planning-dependency-row{grid-template-columns:1fr}.build-gantt-group.collapsed::after{left:165px}}

.build-group-summary-track{display:none;position:absolute;left:310px;right:auto;height:16px;top:7px;pointer-events:none}
.build-gantt-group.collapsed .build-group-summary-track{display:block}
.build-gantt-group.collapsed::after{display:none}
.build-group-summary-bar{position:absolute;top:0;height:14px;border:1px solid #fff9;border-radius:2px;opacity:.85}
@media(max-width:650px){.build-group-summary-track{left:215px}}

.pms-order-suggestion{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pms-order-actions{display:flex;gap:8px;flex-shrink:0}
.pms-order-actions button{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#fff}
.pms-order-actions svg{width:19px;height:19px;stroke-width:3}
.pms-order-accept{border:2px solid #27894b;color:#168241}
.pms-order-accept:hover{background:#e2f7e8}
.pms-order-reject{border:2px solid #cf4747;color:#c62c36}
.pms-order-reject:hover{background:#ffeaea}

.build-gantt-group .build-group-summary-track .build-gantt-week-separator,.build-gantt-group .build-group-summary-track .build-gantt-month-separator{top:0!important;height:100%;z-index:6}
.build-group-summary-bar{pointer-events:auto!important;cursor:default;z-index:8}.build-gantt-group .build-group-summary-track .build-gantt-week-separator,.build-gantt-group .build-group-summary-track .build-gantt-month-separator{z-index:6;pointer-events:none}
.build-gantt-label.heading{display:flex!important;flex-direction:column;justify-content:center;gap:7px}
#gantt-toggle-all{padding:4px 8px;font-size:11px;min-height:26px;width:max-content}
.planitem-delete-row{margin-top:16px;padding-top:12px;border-top:1px solid #e2e9ef}.planitem-delete-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #d05151!important;color:#b82f38!important;background:#fff!important}.planitem-delete-btn:hover{background:#fff0f1!important}

/* Gantt: de vaste titelkolom blijft altijd boven de pijlen en de groepsbalken. */
.build-gantt-layout>.build-gantt-label{z-index:18!important;background:#fff!important;isolation:isolate}
.build-gantt-layout>.build-gantt-label.heading{z-index:30!important;background:#eef3f8!important}
.build-gantt-layout>.build-gantt-group{isolation:isolate;z-index:9!important}
.build-gantt-layout>.build-gantt-group .build-gantt-group-fixed{position:sticky!important;left:0!important;z-index:24!important;background:#eaf0f6!important;width:310px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.build-gantt-layout>.build-gantt-group .build-group-summary-track{z-index:2!important;overflow:hidden}
.build-gantt-layout>.build-gantt-dependency-lines{left:310px!important;z-index:6!important;overflow:hidden!important}
@media(max-width:650px){
 .build-gantt-layout>.build-gantt-group .build-gantt-group-fixed{width:215px!important}
 .build-gantt-layout>.build-gantt-dependency-lines{left:215px!important}
}

.build-gantt-layout>.build-gantt-label:not(.heading){display:flex;align-items:center;gap:5px;padding-right:5px!important}
.build-gantt-layout>.build-gantt-label:not(.heading) .link{flex:1;min-width:0}
.build-gantt-workdays{flex:none;width:58px;text-align:center;padding:6px 2px;background:#e3eff8;border-left:1px solid #b4cee1;font-size:12px;font-weight:750;color:#174e78;border-radius:4px;font-variant-numeric:tabular-nums}
.build-gantt-days-head{font-size:11px;background:#d6e8f5;padding:4px;align-self:flex-end;margin-left:auto}
.build-gantt-free-day{position:absolute;top:0;bottom:0;background:#dceaffb8;pointer-events:none;z-index:1;outline:1px dashed #538bb2}
.build-gantt-free-day.nonworking{background:#fbd3d7b5;outline:1px dashed #c44b63}
.calendar-weekdays{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.calendar-weekdays label{display:flex;align-items:center;gap:4px;background:#eef4fa;padding:7px;border-radius:6px}
.calendar-weekdays input{width:auto!important}
.calendar-time-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
@media(max-width:680px){.calendar-time-grid{grid-template-columns:1fr}.build-gantt-workdays{width:42px;font-size:11px}}

.build-gantt-card:fullscreen{display:flex;flex-direction:column;width:100vw;height:100dvh;max-height:100dvh;margin:0!important;border-radius:0;padding:12px;box-sizing:border-box;background:var(--surface,#fff)}
.build-gantt-card:fullscreen>.build-gantt-scroll{height:auto!important;max-height:none!important;min-height:0!important;flex:1;overflow:auto!important}
.build-gantt-card.gantt-fullscreen-fallback{position:fixed!important;inset:0!important;z-index:99999!important;background:#fff!important;height:100dvh!important;margin:0!important;display:flex;flex-direction:column}
.build-gantt-card.gantt-fullscreen-fallback>.build-gantt-scroll{flex:1;min-height:0!important}
.build-gantt-card .toolbar>.actions{display:flex;gap:6px;flex-wrap:wrap}

.build-gantt-card.gantt-fullscreen-fallback{position:fixed!important;inset:0!important;z-index:99999!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;padding:12px!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;isolation:isolate!important;background:#fff!important;border-radius:0!important}
.build-gantt-card.gantt-fullscreen-fallback>.toolbar,.build-gantt-card.gantt-fullscreen-fallback>.build-gantt-legend{flex:0 0 auto!important}
.build-gantt-card.gantt-fullscreen-fallback>.build-gantt-scroll{display:block!important;position:relative!important;flex:1 1 auto!important;height:calc(100dvh - 130px)!important;max-height:none!important;min-height:0!important;overflow:auto!important;visibility:visible!important;opacity:1!important;width:100%!important}
.build-gantt-card.gantt-fullscreen-fallback>.build-gantt-scroll>.build-gantt-layout{display:grid!important;visibility:visible!important;opacity:1!important;min-height:min-content!important}
body:has(.gantt-fullscreen-fallback){overflow:hidden!important}

body>.build-gantt-card.gantt-fullscreen-fallback{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;flex-direction:column!important;width:100vw!important;height:100dvh!important;max-height:none!important;max-width:none!important;margin:0!important;padding:12px!important;box-sizing:border-box!important;overflow:hidden!important;visibility:visible!important;opacity:1!important;background:#fff!important}
body>.build-gantt-card.gantt-fullscreen-fallback>.build-gantt-scroll{display:block!important;flex:1 1 auto!important;min-height:0!important;height:calc(100dvh - 116px)!important;overflow:auto!important;visibility:visible!important;opacity:1!important}
body>.build-gantt-card.gantt-fullscreen-fallback .build-gantt-layout{display:grid!important;width:max-content!important;min-width:100%!important;visibility:visible!important}
.gantt-fullscreen-placeholder{display:none}

.build-gantt-card:fullscreen,.build-gantt-card:-webkit-full-screen{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;min-height:0!important;
 margin:0!important;padding:12px!important;box-sizing:border-box!important;background:#fff!important;
 overflow:hidden!important;visibility:visible!important;opacity:1!important;z-index:2147483647!important;
}
.build-gantt-card:fullscreen>.toolbar,.build-gantt-card:fullscreen>.build-gantt-legend{flex:0 0 auto!important}
.build-gantt-card:fullscreen>.build-gantt-scroll,.build-gantt-card:-webkit-full-screen>.build-gantt-scroll{
 display:block!important;flex:1 1 0%!important;min-height:0!important;height:auto!important;max-height:none!important;
 overflow:auto!important;visibility:visible!important;opacity:1!important;width:100%!important;
}
.build-gantt-card:fullscreen .build-gantt-layout,.build-gantt-card:-webkit-full-screen .build-gantt-layout{
 display:grid!important;width:max-content!important;min-width:100%!important;visibility:visible!important;opacity:1!important;
}

.build-gantt-scroll:fullscreen,.build-gantt-scroll:-webkit-full-screen{
 position:fixed!important;inset:0!important;display:block!important;box-sizing:border-box!important;
 width:100vw!important;height:100vh!important;height:100dvh!important;
 min-height:100vh!important;max-height:none!important;min-width:100vw!important;
 overflow:auto!important;visibility:visible!important;opacity:1!important;
 margin:0!important;padding:0!important;background:#fff!important;border-radius:0!important;
}
.build-gantt-scroll:fullscreen>.build-gantt-layout,.build-gantt-scroll:-webkit-full-screen>.build-gantt-layout{
 display:grid!important;visibility:visible!important;opacity:1!important;
 width:max-content!important;min-width:100%!important;
}
.build-gantt-scroll.gantt-scroll-maximized{position:fixed!important;inset:0!important;z-index:2147483600!important;display:block!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-height:none!important;overflow:auto!important;background:#fff!important}

body.gantt-root-fullscreen .build-gantt-card{
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:100vw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;min-width:0!important;
 box-sizing:border-box!important;margin:0!important;padding:12px!important;
 border-radius:0!important;overflow:hidden!important;background:white!important;
}
body.gantt-root-fullscreen .build-gantt-card>.toolbar,
body.gantt-root-fullscreen .build-gantt-card>.build-gantt-legend{
 flex:0 0 auto!important;min-height:0!important;
}
body.gantt-root-fullscreen .build-gantt-card>.build-gantt-scroll{
 display:block!important;position:relative!important;flex:1 1 auto!important;
 width:100%!important;height:calc(100dvh - 116px)!important;min-height:0!important;
 max-height:none!important;overflow:auto!important;visibility:visible!important;
}
body.gantt-root-fullscreen .build-gantt-card .build-gantt-layout{display:grid!important;visibility:visible!important}

/* Safari fullscreen: give the actual planning viewport absolute bounds.
   Do not let nested flex sizing collapse the Gantt scroller. */
html:fullscreen body.gantt-root-fullscreen .build-gantt-card,
body.gantt-root-fullscreen .build-gantt-card{
 position:fixed!important;inset:0!important;height:100dvh!important;max-height:none!important;
 width:100vw!important;display:block!important;box-sizing:border-box!important;
 background:white!important;padding:0!important;overflow:visible!important;
 z-index:2147483000!important;
}
body.gantt-root-fullscreen .build-gantt-card>.toolbar{
 position:absolute!important;left:12px!important;right:12px!important;top:8px!important;
 height:48px!important;min-height:0!important;max-height:48px!important;
 margin:0!important;display:flex!important;z-index:50!important;background:white!important;
}
body.gantt-root-fullscreen .build-gantt-card>.build-gantt-legend{
 position:absolute!important;left:12px!important;right:12px!important;top:55px!important;
 height:24px!important;margin:0!important;z-index:50!important;background:white!important;
}
body.gantt-root-fullscreen .build-gantt-card>.build-gantt-scroll{
 position:absolute!important;display:block!important;
 top:84px!important;bottom:0!important;left:0!important;right:0!important;
 width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
 margin:0!important;overflow:scroll!important;
 visibility:visible!important;opacity:1!important;z-index:2!important;background:white!important;
}
body.gantt-root-fullscreen .build-gantt-card>.build-gantt-scroll>.build-gantt-layout{
 display:grid!important;position:relative!important;
 width:max-content!important;min-width:100%!important;min-height:max-content!important;
 visibility:visible!important;opacity:1!important;
}

#gantt-fullscreen-stage,#gantt-fullscreen-stage:fullscreen{
 position:fixed!important;inset:0!important;z-index:2147483600!important;
 width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
 overflow:hidden!important;background:#fff!important;display:block!important;margin:0!important;padding:0!important;
}
#gantt-fullscreen-stage .gantt-stage-header{
 position:absolute!important;top:0!important;left:0!important;right:0!important;height:52px!important;
 box-sizing:border-box!important;padding:8px 16px!important;display:flex!important;align-items:center!important;
 justify-content:space-between!important;background:#fff!important;border-bottom:1px solid #d9e4ea!important;
 z-index:30!important;
}
#gantt-fullscreen-stage>.gantt-stage-scroller{
 position:absolute!important;inset:52px 0 0 0!important;display:block!important;
 width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 overflow:auto!important;visibility:visible!important;opacity:1!important;
}
#gantt-fullscreen-stage .build-gantt-layout{
 display:grid!important;visibility:visible!important;opacity:1!important;
 width:max-content!important;min-width:100%!important;height:auto!important;min-height:max-content!important;
}
body.gantt-stage-open{overflow:hidden!important}

/* Markeringen blijven in ingeklapte tijdsbalk zichtbaar en respecteren het rooster. */
.build-gantt-group .build-group-summary-track>.build-gantt-free-day{top:0!important;bottom:0!important;height:100%!important;z-index:9!important}
.build-gantt-group .build-group-summary-track>.build-gantt-today{top:0!important;bottom:0!important;height:100%!important;z-index:10!important}
.build-gantt-group .build-group-summary-track>.build-gantt-week-separator,
.build-gantt-group .build-group-summary-track>.build-gantt-month-separator{z-index:11!important}
/* Geen onnodige animatie of tussenkleur tijdens Safari-fullscreen. */
#gantt-fullscreen-stage,#gantt-fullscreen-stage *{transition:none!important;animation:none!important}
#gantt-fullscreen-stage.gantt-stage-prepared{background:#fff!important}
#gantt-fullscreen-stage #modal-root{position:fixed!important;inset:0!important;z-index:2147483647!important;pointer-events:none}#gantt-fullscreen-stage #modal-root:has(.modal-bg){pointer-events:auto}#gantt-fullscreen-stage #modal-root .modal-bg{position:fixed!important;inset:0!important;z-index:2147483647!important}#gantt-fullscreen-stage #modal-root .modal{max-height:90vh;overflow-y:auto}

.trade-suggestion-list{max-height:58vh;overflow:auto}
.trade-suggestion-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.trade-suggestion-info{flex:1;min-width:0}
.trade-suggestion-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.trade-suggestion-controls select{width:180px;max-width:100%;font-size:12px}
.trade-suggestion-controls select[hidden]{display:none!important}
.trade-suggestion-controls label{font-size:11px}
.trade-suggestion-controls button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #d3dde5;border-radius:7px;cursor:pointer}
.trade-suggestion-controls button svg{width:16px;height:16px}
.trade-accept-button{color:#208045!important;border-color:#80bc94!important}
.trade-accept-button:hover{background:#e7f6eb!important}
.trade-edit-button{color:#3b627e!important}
.trade-edit-button:hover{background:#edf3f8!important}
.trade-suggestion-saved .trade-assigned-label{color:#208045;font-weight:650}
@media(max-width:700px){.trade-suggestion-row{align-items:flex-start;flex-direction:column}.trade-suggestion-controls{width:100%}}

/* Project > Locaties: compacte, consistente PMS-acties */
#project-locations>.toolbar{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap}
#project-locations>.toolbar>div:first-child{flex:1 1 220px;min-width:0}
#project-locations>.toolbar>.location-compact-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:100%;min-height:32px!important;height:32px!important;padding:6px 11px!important;box-sizing:border-box;font-size:12px!important;font-weight:600;line-height:1.1;white-space:nowrap;border-radius:7px!important;background:#183f61!important;border:1px solid #183f61!important;color:#fff!important}
#project-locations>.toolbar>.location-compact-btn:hover{background:#285d84!important;border-color:#285d84!important}
#project-locations>.toolbar>.location-compact-btn svg{width:14px;height:14px;flex-shrink:0}
@media(max-width:700px){#project-locations>.toolbar{flex-direction:row!important;align-items:center!important;gap:7px!important}#project-locations>.toolbar>div:first-child{flex-basis:100%}#project-locations>.toolbar>.location-compact-btn{flex:0 0 auto!important;width:auto!important;min-height:32px!important;height:32px!important;padding:6px 9px!important;font-size:11px!important;white-space:normal;text-align:center}}

.trade-quick-summary,.trade-quick-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.trade-quick-summary>*{padding:5px 10px;background:#f0f5f9;border-radius:7px;font-size:12px}
.trade-quick-tools input[type=search]{flex:1 1 200px;min-width:130px}
.trade-quick-tools select{width:auto;max-width:230px;min-width:130px}
.trade-quick-tools .btn{font-size:12px;padding:7px 10px}
.trade-quick-list{max-height:51vh;overflow-y:auto;border:1px solid #d9e3ec;border-radius:9px}
.trade-quick-row{padding:9px 11px;border-bottom:1px solid #e4eaf0;background:white}
.trade-quick-row[hidden]{display:none!important}
.trade-quick-head{display:flex;align-items:center;gap:7px}
.trade-quick-head>input[type=checkbox]{width:16px;flex-shrink:0}
.trade-quick-name{flex:1;min-width:0;font-size:13px}
.trade-quick-name .muted{font-size:11px}
.trade-quick-proposal{font-size:12px;color:#25804a}
.trade-quick-accept,.trade-quick-edit{height:32px;width:32px;flex-shrink:0;border:1px solid #d5e1e9;border-radius:7px;background:white;display:flex;align-items:center;justify-content:center;cursor:pointer}
.trade-quick-accept{color:#208047!important;border-color:#9bcfac;font-size:22px;font-weight:750;line-height:1}
.trade-quick-edit{color:#204a6c!important;font-size:22px;font-weight:600;line-height:1}
.trade-quick-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:5px;margin:10px 0 3px 25px}
.trade-quick-details[hidden]{display:none!important}
.trade-quick-details label{font-size:12px;display:flex;align-items:center;gap:5px}
.trade-quick-details input[type=checkbox]{width:15px}
.trade-quick-reviewed{border-left:3px solid #2b995a}

/* Large contract agreement form: separate scrollable fields and fixed footer actions. */
#modal-root .modal:has(>h2:first-child + form select[name="pricing_model"]){
 display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
 width:min(920px,100%)!important;max-height:calc(100dvh - 32px)!important;
 overflow:hidden!important;padding:18px 22px 0!important;
}
#modal-root .modal:has(form select[name="pricing_model"])>h2{flex:0 0 auto;margin:0 0 10px!important}
#modal-root .modal:has(form select[name="pricing_model"])>form{
 display:block!important;min-height:0!important;flex:1 1 auto!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 padding:0 3px 0!important;overscroll-behavior:contain;
}
#modal-root .modal:has(form select[name="pricing_model"]) .modal-actions{
 position:sticky!important;bottom:0!important;z-index:10!important;
 display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;
 margin-top:14px!important;padding:13px 4px max(14px,env(safe-area-inset-bottom))!important;
 background:#fff!important;border-top:1px solid #d8e3eb!important;
 box-shadow:0 -5px 13px #fff;
}
#modal-root .modal:has(form select[name="pricing_model"]) .modal-actions>.btn{min-height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:700px){#modal-root .modal:has(form select[name="pricing_model"]){width:100%!important;max-height:calc(100dvh - 12px)!important;padding:14px 13px 0!important}#modal-root .modal-bg:has(form select[name="pricing_model"]){padding:6px!important}}

#modal-root .trade-agreement-modal{display:flex!important;flex-direction:column!important;overflow:hidden!important;max-height:calc(100dvh - 24px)!important}
#modal-root .trade-agreement-modal>#mf{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:10px!important}
#modal-root .trade-agreement-modal>.modal-actions{display:flex!important;position:relative!important;bottom:auto!important;flex:0 0 auto!important;justify-content:flex-end!important;width:100%!important;box-sizing:border-box!important;padding:12px 0 max(12px,env(safe-area-inset-bottom))!important;border-top:1px solid #d8e3eb!important;background:#fff!important;margin:0!important}
#modal-root .trade-agreement-modal>.modal-actions>.btn{display:inline-flex!important;min-height:36px!important}

/* Dossierstructuur: bestanden en communicatie exact onder de mappen uitlijnen. */
#content .doc-folder-grid{width:100%!important;box-sizing:border-box;max-width:100%;margin-left:0!important;margin-right:0!important}
#content .document-library-list{width:100%!important;box-sizing:border-box;min-width:0!important;margin:12px 0 0!important;padding:0!important;align-items:stretch}
#content .document-library-list>.document-library-row{width:100%!important;box-sizing:border-box!important;margin:0!important;min-width:0!important}
#content .document-library-list>.toolbar{width:100%!important;box-sizing:border-box;min-width:0;margin-left:0!important;margin-right:0!important}
#content .doc-folder-grid+.document-library-list{padding-top:12px!important;border-top:1px solid #e4eaf0}
#content .document-library-row .doc-row-main{min-width:0!important;overflow-wrap:anywhere}

/* Contractafspraak: Safari-safe modal with a single scrolling container. */
#modal-root .modal-bg:has(.trade-agreement-modal){z-index:150!important;padding:12px!important}
#modal-root .trade-agreement-modal,
#modal-root .modal:has(form select[name="pricing_model"]){
 display:block!important;position:relative!important;
 width:min(860px,100%)!important;
 height:auto!important;max-height:calc(100dvh - 24px)!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 padding:20px!important;box-sizing:border-box!important;
}
#modal-root .trade-agreement-modal>#mf,
#modal-root .modal:has(form select[name="pricing_model"])>#mf{
 display:block!important;flex:none!important;height:auto!important;
 min-height:initial!important;max-height:none!important;
 overflow:visible!important;padding:0!important;
}
#modal-root .trade-agreement-modal .modal-actions,
#modal-root .modal:has(form select[name="pricing_model"]) .modal-actions{
 position:sticky!important;bottom:0!important;z-index:30!important;
 display:flex!important;justify-content:flex-end!important;gap:7px!important;
 margin:16px 0 0!important;padding:14px 0!important;
 background:#fff!important;border-top:1px solid #d8e3eb!important;
}
#modal-root .trade-agreement-modal .modal-actions .btn{display:inline-flex!important;min-height:36px!important}
@media(max-width:700px){#modal-root .trade-agreement-modal{padding:14px!important}}

.trade-agreement-work-groups{border:1px solid #dbe4eb;border-radius:9px;max-height:310px;overflow:auto}
.trade-agreement-work-head,.trade-agreement-work-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(140px,1.25fr) 95px 96px;gap:7px;align-items:center}
.trade-agreement-work-head{font-size:11px;color:#486071;padding:7px 12px;background:#eef3f7}
.trade-agreement-group{border-top:1px solid #e0e7ed}
.trade-agreement-group[hidden],.trade-agreement-work-row[hidden]{display:none!important}
.trade-agreement-group>summary{display:flex;align-items:center;gap:7px;padding:10px;cursor:pointer;list-style:none}
.trade-agreement-group>summary .muted{margin-left:auto}
.trade-agreement-group>summary input{width:16px;flex:none}
.trade-agreement-work-row{padding:8px 12px 8px 22px;border-top:1px solid #eef2f6;font-size:12px}
.trade-agreement-work-row label{display:flex;align-items:center;gap:7px;margin:0}
.trade-agreement-work-row label input{width:16px;flex:none}
.trade-agreement-work-row select,.trade-agreement-work-row input[type=number]{width:100%;min-height:32px;padding:5px}
.trade-agreement-selection-total{font-size:12px;font-weight:700;margin:10px 0;padding:9px;background:#eaf1f6;border-radius:7px}
@media(max-width:700px){.trade-agreement-work-head{display:none}.trade-agreement-work-row{grid-template-columns:minmax(110px,1fr) 82px 78px;gap:5px}.trade-agreement-unit-detail{grid-column:1/-1;grid-row:2}.trade-agreement-work-row label{grid-column:1/-1}}
.build-gantt-parent{display:block;padding-left:17px;font-size:10px;color:#486579;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.build-gantt-group-boundary{display:none!important}
.build-gantt-layout>.build-gantt-location{grid-column:1;display:flex!important;align-items:stretch;position:relative;background:#d9e5f0;border-bottom:1px solid #a8bbca;z-index:10;min-height:38px}
.build-gantt-location .build-gantt-group-fixed{font-weight:800!important;padding-left:12px!important}
.build-gantt-location[hidden],.build-gantt-group[hidden],.build-gantt-label[hidden],.build-gantt-lane[hidden]{display:none!important}
.build-gantt-group .build-gantt-group-fixed{padding-left:27px!important}
.build-gantt-group .build-gantt-group-fixed .muted,.build-gantt-location .build-gantt-group-fixed .muted{font-weight:500}

/* All PMS Gantt scopes: PDF children inline, without duplicate chapter rows. */
.build-gantt-label.build-gantt-detail{padding-left:28px!important}
.build-gantt-detail-arrow{color:#47718b;font-weight:800;margin-right:3px}
@media(max-width:650px){.build-gantt-label.build-gantt-detail{padding-left:18px!important}}

.build-gantt-pdf-heading{grid-column:1;min-height:32px;box-sizing:border-box;padding:8px 14px 7px 19px;background:#eef3f8;border-bottom:1px solid #dce5ed;color:#203d56;font-size:13px}
.build-gantt-pdf-heading strong{font-weight:800}.build-gantt-pdf-heading-track{grid-column:2;min-height:32px;background:#eef3f8;border-bottom:1px solid #dce5ed}
.build-gantt-pdf-heading[hidden],.build-gantt-pdf-heading-track[hidden]{display:none!important}
.build-gantt-label.build-gantt-detail{padding-left:29px!important}

.build-gantt-layout>.build-gantt-pdf-heading{grid-column:1!important;position:sticky!important;left:0!important;z-index:3!important;min-height:46px!important;max-width:310px!important;background:#fff!important;border-bottom:1px solid var(--line)!important;padding:10px 12px!important;box-sizing:border-box!important}
.build-gantt-layout>.build-gantt-pdf-heading .link{font-size:13px!important;font-weight:800!important;display:inline-block!important;max-width:calc(100% - 58px)!important}
.build-gantt-pdf-heading .build-group-caret{display:inline-block;width:13px;color:#356c9d}
.build-gantt-layout>.build-gantt-pdf-heading-track{grid-column:2!important;height:46px!important;min-height:46px!important;background:#fff!important;border-bottom:1px solid var(--line)!important;position:relative!important;box-sizing:border-box!important}
@media(max-width:650px){.build-gantt-layout>.build-gantt-pdf-heading{max-width:215px!important;padding:8px!important}}

.build-gantt-layout>.build-gantt-location{grid-column:1!important;min-height:46px!important;align-items:center!important;border-bottom:1px solid #b3c5d4!important}
.build-gantt-layout>.build-gantt-location-track{grid-column:2;position:relative;height:46px;min-height:46px;box-sizing:border-box;background:#e7eef5;border-bottom:1px solid #b3c5d4}
.build-location-summary-bar{position:absolute;top:12px;height:22px;box-sizing:border-box;border-radius:4px;background:#2f709a;opacity:1;z-index:2;cursor:default;min-width:2px}
.build-gantt-location-track[hidden]{display:none!important}

/* Bouwplanning: volledige linker titel- en werkdagenkolom blijft staan tijdens horizontaal scrollen. */
.build-gantt-layout>.build-gantt-label,
.build-gantt-layout>.build-gantt-label.heading,
.build-gantt-layout>.build-gantt-pdf-heading,
.build-gantt-layout>.build-gantt-location{
 position:sticky!important;left:0!important;grid-column:1!important;
 width:100%!important;box-sizing:border-box!important;
 z-index:15!important;isolation:isolate;
}
.build-gantt-layout>.build-gantt-label{background:#fff!important}
.build-gantt-layout>.build-gantt-label.heading{z-index:23!important;background:#eef3f8!important}
.build-gantt-layout>.build-gantt-pdf-heading{background:#fff!important}
.build-gantt-layout>.build-gantt-location{background:#d9e5f0!important;z-index:18!important}
.build-gantt-layout>.build-gantt-label .build-gantt-workdays,
.build-gantt-layout>.build-gantt-pdf-heading .build-gantt-workdays{position:relative;z-index:1;white-space:nowrap}
.build-gantt-layout>.build-gantt-location-track,
.build-gantt-layout>.build-gantt-pdf-heading-track,
.build-gantt-layout>.build-gantt-lane:not(.heading){z-index:1}
@media(max-width:650px){.build-gantt-layout>.build-gantt-label,.build-gantt-layout>.build-gantt-pdf-heading,.build-gantt-layout>.build-gantt-location{max-width:215px!important}}

.build-gantt-layout>.build-gantt-location{gap:5px!important;padding-right:5px!important}
.build-gantt-layout>.build-gantt-location>.build-gantt-group-fixed{flex:1 1 auto!important;min-width:0!important;width:auto!important;text-align:left!important}
.build-gantt-layout>.build-gantt-location>.build-gantt-workdays{flex:0 0 58px;margin-left:auto}
@media(max-width:680px){.build-gantt-layout>.build-gantt-location>.build-gantt-workdays{flex-basis:42px}}

/* Explicit hidden state must beat generic grid/flex layout rules when folding. */
.build-gantt-layout > .build-gantt-label[hidden],
.build-gantt-layout > .build-gantt-lane[hidden],
.build-gantt-layout > .build-gantt-pdf-heading[hidden],
.build-gantt-layout > .build-gantt-pdf-heading-track[hidden],
.build-gantt-layout > .build-gantt-location-track[hidden],
.build-gantt-layout > .build-gantt-group[hidden]{display:none!important}

/* Vertically pinned location and PDF group titles while retaining horizontal pinning. */
.build-gantt-layout>.build-gantt-location{z-index:27!important;will-change:transform}
.build-gantt-layout>.build-gantt-pdf-heading{z-index:25!important;will-change:transform}
.build-gantt-layout>.build-gantt-label.heading{z-index:35!important}

/* Two grid cells are one sticky group row, with a full-width blue border. */
.build-gantt-layout>.build-gantt-pdf-heading,
.build-gantt-layout>.build-gantt-pdf-heading-track{background:#e6f3ff!important;border-top:2px solid #3479b4!important;border-bottom:2px solid #3479b4!important;box-sizing:border-box!important;z-index:26!important}
.build-gantt-layout>.build-gantt-pdf-heading{border-left:2px solid #3479b4!important;border-right:0!important}
.build-gantt-layout>.build-gantt-pdf-heading-track{border-right:2px solid #3479b4!important;border-left:0!important}
.build-gantt-layout>.build-gantt-location,
.build-gantt-layout>.build-gantt-location-track{z-index:28!important}
.build-gantt-layout>.build-gantt-pdf-heading-track,.build-gantt-layout>.build-gantt-location-track{will-change:transform}

/* Stable sticky overlay stays under the day/week header, no row translations. */
.build-gantt-scroll{position:relative}
.gantt-sticky-overlays{position:sticky;top:96px;height:0;z-index:24;width:max-content;pointer-events:none}
.gantt-sticky-overlay-row{display:grid;grid-template-columns:310px var(--timeline-width);height:46px;pointer-events:auto;background:#e6f3ff}
.gantt-sticky-overlay-row[hidden]{display:none!important}
.gantt-sticky-overlay-row>.build-gantt-location,.gantt-sticky-overlay-row>.build-gantt-pdf-heading{position:sticky!important;left:0!important;transform:none!important;z-index:2!important}
.gantt-sticky-overlay-row>.build-gantt-location-track,.gantt-sticky-overlay-row>.build-gantt-pdf-heading-track{transform:none!important;z-index:1!important}
.gantt-sticky-overlay-row>.build-gantt-pdf-heading,.gantt-sticky-overlay-row>.build-gantt-pdf-heading-track{background:#e6f3ff!important;border-top:2px solid #3479b4!important;border-bottom:2px solid #3479b4!important}
.gantt-sticky-overlay-row>.build-gantt-pdf-heading{border-left:2px solid #3479b4!important}
.gantt-sticky-overlay-row>.build-gantt-pdf-heading-track{border-right:2px solid #3479b4!important}
@media(max-width:650px){.gantt-sticky-overlay-row{grid-template-columns:215px var(--timeline-width)}}
@media(max-width:650px){.native-gantt-content{width:calc(215px + var(--native-width))}.native-gantt-row{grid-template-columns:215px var(--native-width)}}

/* Layer hierarchy: calendar header > dependency arrows > group rows > detail bars. */
.build-gantt-layout>.build-gantt-label.heading{z-index:110!important;isolation:isolate}
.build-gantt-layout>.build-gantt-lane.heading.build-gantt-header{z-index:109!important;isolation:isolate;transform:translateZ(0)}
.build-gantt-layout>.build-gantt-dependency-lines{z-index:85!important;overflow:visible!important;pointer-events:none!important}
.gantt-sticky-overlays{z-index:45!important;pointer-events:none!important}
.gantt-sticky-overlay-row{pointer-events:none!important}
.gantt-sticky-overlay-row button{pointer-events:auto!important}
.build-gantt-layout>.build-gantt-location,.build-gantt-layout>.build-gantt-location-track{z-index:28!important}
.build-gantt-layout>.build-gantt-pdf-heading,.build-gantt-layout>.build-gantt-pdf-heading-track{z-index:26!important}
@media(max-width:650px){.native-gantt-group>.native-gantt-group-head{grid-template-columns:215px var(--native-width)!important}}
@media(max-width:650px){.native-gantt-sticky-stack{width:calc(215px + var(--native-width))}.native-gantt-sticky-slot{grid-template-columns:215px var(--native-width)}}

/* NATIVE GANTT: geconsolideerde stijlen; uitsluitend actuele componenten. */
.native-gantt-scroll{height:min(72vh,760px);overflow:auto;position:relative;isolation:isolate;border:1px solid #b6c6d5;border-radius:9px;}
.native-gantt-content{min-width:max-content;width:calc(310px + var(--native-width));position:relative;isolation:isolate;}
.native-gantt-row{display:grid;grid-template-columns:310px var(--native-width);height:42px;min-width:max-content;}
.native-gantt-name{box-sizing:border-box;position:sticky;left:0;z-index:36!important;background:#fff;display:flex;align-items:center;gap:7px;padding:6px 10px;border-bottom:1px solid #e1e8ee;font-size:12px;}
.native-gantt-time{position:relative;background:#fff;border-bottom:1px solid #e1e8ee;background-image:repeating-linear-gradient(to right,transparent 0px,transparent 25px,rgba(120,147,169,.21) 25px,rgba(120,147,169,.21) 26px)!important;}
.native-gantt-row.calendar{position:sticky;top:0!important;z-index:100!important;height:96px!important;isolation:isolate;min-height:96px!important;}
.native-gantt-row.calendar>.native-gantt-name,.native-gantt-row.calendar>.native-gantt-time{background:#daeafa;}
.native-gantt-location{position:relative;}
.native-gantt-row.detail>.native-gantt-name{padding-left:19px;background:#fff!important;border-bottom:1px solid #dbe5ed!important;}
.native-child-arrow{color:#397caf;font-weight:800;}
.native-gantt-days{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;padding:3px 5px;background:#e9f2f8;color:inherit;border:1px solid #173e65;border-radius:4px;min-width:30px;text-align:center;white-space:nowrap;}
.native-gantt-bar{position:absolute;top:11px;height:20px;border-radius:4px;min-width:3px;cursor:grab;touch-action:pan-y;}
.native-date{position:absolute;top:9px;font-size:10px;transform:translateX(3px);color:#395c75;}
.native-gantt-row.calendar>.native-gantt-name{z-index:121!important;}
.native-gantt-row.calendar>.native-gantt-time{z-index:120!important;background:#dce8f3!important;background-image:none!important;}
.native-cal-band{position:relative;height:24px;border-bottom:1px solid #b8cad8;box-sizing:border-box;}
.native-cal-cell{position:absolute;top:0;bottom:0;overflow:hidden;white-space:nowrap;text-align:center;border-right:1px solid #afc4d5;box-sizing:border-box;padding:3px 1px;font-size:10px;font-weight:650;}
.native-cal-cell.month{background:#286c95;color:#fff;font-size:12px;text-transform:capitalize;border-radius:5px!important;overflow:hidden!important;}
.native-cal-cell.week{background:#bcd5e8;color:#21485e;border-radius:4px!important;overflow:hidden!important;}
.native-cal-cell.day-number{background:#edf4f9;color:#21485e;padding:2px 0!important;font-size:10px!important;line-height:18px!important;overflow:visible!important;}
.native-cal-cell.weekday{background:#e2edf5;color:#21485e;}
.native-gantt-dependencies{position:absolute;left:0;top:0;pointer-events:none!important;overflow:visible;z-index:80!important;}
.native-gantt-fold{display:flex;align-items:center;flex:1;min-width:0;text-align:left;border:0;background:transparent;color:inherit;cursor:pointer;font-size:inherit;padding:0;}
.native-gantt-caret{width:14px;flex:none;}
.native-gantt-aggregate{position:absolute;top:11px;height:21px;border-radius:4px;display:none;z-index:3;}
.native-cal-band.day-number,.native-cal-band.weekday{overflow:visible;}
.native-week-line,.native-month-line{position:absolute;top:0;bottom:0;pointer-events:none;z-index:2;}
.native-week-line{border-left:1px solid #a8bac8;}
.native-month-line{border-left:2px solid #467c9f;}
.native-today-mark{position:absolute;top:0;bottom:0;pointer-events:none;z-index:1;background:repeating-linear-gradient(135deg,rgba(255,216,47,.22) 0px,rgba(255,216,47,.22) 4px,rgba(255,239,158,.12) 4px,rgba(255,239,158,.12) 9px);border-left:2px solid #c09c22;}
.native-gantt-time:not(.native-cal-band){background-image:none!important;background-size:auto!important;}
.native-gantt-row.calendar .native-gantt-name{z-index:145!important;}
.native-gantt-row.calendar .native-gantt-time{z-index:144!important;}
.native-gantt-scroll .native-gantt-time{isolation:isolate;}
.native-month-mark,.native-week-mark{position:absolute;top:0;bottom:0;pointer-events:none;}
.native-month-mark{border-left:2px solid #2e7199;z-index:5;}
.native-week-mark{border-left:1px solid #86a8bd;z-index:4;}
.native-free-mark{position:absolute;top:0;bottom:0;z-index:1;background:repeating-linear-gradient(135deg,#e7eef5ad 0 4px,#cee1ed99 4px 8px);pointer-events:none;}
.native-free-mark.off{background:repeating-linear-gradient(135deg,#d2d5d8b3 0 4px,#eef0f2b3 4px 8px)!important;}
.native-gantt-phase{position:relative;}
.native-gantt-header-label{position:relative;display:block;width:100%;height:100%;min-height:0}
.native-gantt-header-label>strong{position:absolute;left:0;bottom:0;line-height:16px}
.native-gantt-row.calendar>.native-gantt-name{align-items:flex-end!important;padding-bottom:6px!important}
.native-gantt-row.calendar>.native-gantt-name>.native-gantt-days-label{align-self:flex-end!important;margin-bottom:0!important}
.native-gantt-header-label>.native-gantt-fold-tools{position:absolute;top:0;left:0;z-index:5}
.native-gantt-fold-tools{display:flex;gap:5px;align-items:center;flex-wrap:nowrap}.native-gantt-fold-all{display:inline-flex;justify-content:center;align-items:center;gap:2px;width:30px;height:28px;min-width:30px;flex:0 0 30px;padding:0;border:1px solid #c4d2df;border-radius:6px;background:#f2f6fa;color:#244f73;cursor:pointer;font-size:15px;line-height:1;text-decoration:none}.native-gantt-fold-all:hover{background:#e2edf6;border-color:#85acc8}.native-gantt-fold-all:focus-visible{outline:2px solid #2670aa;outline-offset:2px}.native-gantt-fold-symbol{font-size:15px;font-weight:700;line-height:1}.native-gantt-fold-action{font-size:14px;font-weight:700;line-height:1}
.native-free-mark.holiday{background:repeating-linear-gradient(135deg,rgba(154,94,194,.38) 0 4px,rgba(208,175,226,.38) 4px 8px)!important;}
.native-gantt-row.calendar .native-free-mark,.native-gantt-row.calendar .native-today-mark{display:none!important;}
.native-gantt-row>.native-gantt-time{position:relative!important;isolation:isolate!important;background-image:none!important;}
.native-gantt-row>.native-gantt-time>.native-free-mark{z-index:0!important;}
.native-gantt-row>.native-gantt-time>.native-today-mark{z-index:1!important;}
.native-gantt-row>.native-gantt-time>.native-week-mark{z-index:2!important;}
.native-gantt-row>.native-gantt-time>.native-month-mark{z-index:3!important;}
.native-gantt-row>.native-gantt-time>.native-gantt-bar,
.native-gantt-row>.native-gantt-time>.native-gantt-aggregate{z-index:10!important;opacity:1!important;}
.native-gantt-row.calendar>.native-gantt-time>.native-week-mark,
.native-gantt-row.calendar>.native-gantt-time>.native-month-mark{display:none!important;}
.native-cal-band.month,.native-cal-band.week{overflow:hidden;}
.native-gantt-scroll .native-gantt-row.calendar{z-index:100!important;}
.native-gantt-group{position:relative!important;isolation:auto!important;z-index:auto!important;}
.native-gantt-group>.native-gantt-row.native-gantt-group-head{position:relative!important;top:auto!important;z-index:auto!important;height:42px!important;min-height:42px!important;background:#d8dadd!important;transform:none!important;margin:0!important;padding:0!important;}
.native-gantt-group[data-group-level="phase"]>.native-gantt-group-head{background:#b8d5ed!important;z-index:36!important;}
.native-gantt-group[data-group-level="activity"]>.native-gantt-group-head{background:#e2f0fb!important;z-index:37!important;}

.native-gantt-group>.native-gantt-group-head>.native-gantt-name{position:sticky!important;left:0!important;background:inherit!important;z-index:2!important;}
.native-gantt-group>.native-gantt-group-head>.native-gantt-time{background:inherit!important;z-index:1!important;}
.native-gantt-group[data-group-level="location"]>.native-gantt-group-head>.native-gantt-name,.native-gantt-group[data-group-level="location"]>.native-gantt-group-head>.native-gantt-time{background:#d8dadd!important;}
.native-gantt-group[data-group-level="phase"]>.native-gantt-group-head>.native-gantt-name,.native-gantt-group[data-group-level="phase"]>.native-gantt-group-head>.native-gantt-time{background:#b8d5ed!important;}
.native-gantt-group[data-group-level="activity"]>.native-gantt-group-head>.native-gantt-name,.native-gantt-group[data-group-level="activity"]>.native-gantt-group-head>.native-gantt-time{background:#e2f0fb!important;}
.native-gantt-group.collapsed>.native-gantt-children{display:none!important;}
.native-gantt-group>.native-gantt-group-head .native-gantt-aggregate{display:none;}
.native-gantt-group.collapsed>.native-gantt-group-head .native-gantt-aggregate{display:block!important;}
.native-gantt-children{position:relative;}
.native-gantt-sticky-stack{position:sticky;top:96px;z-index:90;height:0;width:calc(310px + var(--native-width));pointer-events:none;}
.native-gantt-sticky-slot[hidden]{display:none!important;}
.native-gantt-sticky-slot{height:42px;grid-template-columns:310px var(--native-width);pointer-events:none;}
.native-gantt-sticky-slot>.native-gantt-row{height:42px!important;pointer-events:auto;background:inherit!important;}
.native-gantt-sticky-slot>.native-gantt-row>.native-gantt-name{position:sticky!important;left:0!important;z-index:2!important;}
.native-gantt-sticky-slot>.native-gantt-row>.native-gantt-time{z-index:1!important;}
.native-gantt-sticky-slot[data-level="location"] .native-gantt-name,.native-gantt-sticky-slot[data-level="location"] .native-gantt-time{background:#d8dadd!important;}
.native-gantt-sticky-slot[data-level="phase"] .native-gantt-name,.native-gantt-sticky-slot[data-level="phase"] .native-gantt-time{background:#b8d5ed!important;}
.native-gantt-sticky-slot[data-level="activity"] .native-gantt-name,.native-gantt-sticky-slot[data-level="activity"] .native-gantt-time{background:#e2f0fb!important;}
.native-gantt-sticky-slot .native-gantt-aggregate{display:none!important;}
.native-gantt-sticky-slot .native-gantt-group-head{z-index:auto!important;}
.native-gantt-row.detail>.native-gantt-time{background-color:#fff!important;border-bottom:1px solid #dbe5ed!important;}
.native-gantt-children>.native-gantt-row.detail{height:42px!important;min-height:42px!important;}
.native-gantt-sticky-slot>.native-gantt-row>.native-gantt-name,
.native-gantt-sticky-slot>.native-gantt-row>.native-gantt-time{border-bottom:1px solid #b8cbd8!important;}
.native-gantt-scroll .native-gantt-row:not(.calendar)>.native-gantt-time{background-image:none!important;}
.native-gantt-scroll .native-gantt-row.calendar>.native-gantt-time{background-image:none!important;}
.native-gantt-scroll .native-gantt-bar,.native-gantt-scroll .native-gantt-aggregate{z-index:10!important;}
.native-gantt-scroll .native-gantt-row.detail>.native-gantt-time{background-color:transparent!important;}
.native-calendar-tile{position:absolute;top:96px;bottom:0;background-repeat:repeat-y;background-size:auto 42px;pointer-events:none;z-index:0;}
.native-gantt-row.detail{position:relative;z-index:1;}
.native-gantt-group-head{position:relative;z-index:2;}

.native-gantt-days-label{background:transparent!important;color:inherit!important;font-weight:700!important;width:max-content!important;min-width:0!important;flex:0 0 auto!important;padding:3px 6px!important;}
.native-gantt-location-days{min-width:90px!important;width:90px!important;flex:0 0 90px!important;box-sizing:border-box!important;background:#173e65!important;color:#fff!important;border:1px solid #173e65!important;border-radius:4px!important;text-align:center!important;white-space:nowrap!important}
.native-gantt-card:fullscreen{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;margin:0!important;border-radius:0!important;padding:12px!important;display:flex!important;flex-direction:column!important;background:var(--card-bg,#fff)!important}
.native-gantt-card:fullscreen>.native-gantt-scroll{height:auto!important;flex:1!important;min-height:0!important}
.dev-todo-group{border:1px solid #d9e3eb;border-radius:8px;margin-top:8px;padding:8px 12px}.dev-todo-group>summary{font-weight:700;cursor:pointer;padding:6px 0}.dev-todo-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #e7edf2;font-size:12px}.dev-todo-row select{width:auto;min-width:124px;margin:0}@media(max-width:650px){.dev-todo-row{align-items:flex-start;flex-direction:column}.dev-todo-row select{align-self:flex-end}}
.planning-lag-label{display:flex;align-items:center;gap:5px;font-size:11px}.planning-lag-label input{width:70px;max-width:70px;margin:0;padding:4px!important}
.planning-dependency-help{padding:10px 12px;background:#edf4f9;border:1px solid #cedfeb;border-radius:8px;margin:12px 0 8px}.planning-dependency-help .muted{margin-top:5px;font-size:12px}.native-gantt-bar{touch-action:pan-y}
.planning-fixed-date{border:1px solid #a7b9ca;border-radius:8px;background:#f1f6fa;padding:10px;margin:12px 0}.planning-fixed-date label{display:flex;align-items:center;gap:7px;font-weight:700}.planning-fixed-date input{width:auto;margin:0}.planning-fixed-date small{display:block;color:#546b7e;margin-top:7px}
.native-gantt-bar-locked{cursor:default;overflow:hidden}.native-gantt-lock{position:absolute;left:3px;top:50%;transform:translateY(-50%);font-size:12px;line-height:1;pointer-events:none;white-space:nowrap}
.native-gantt-context-menu{position:fixed;z-index:99999;min-width:205px;max-width:280px;padding:5px;background:#fff;border:1px solid #c2d2e0;border-radius:9px;box-shadow:0 9px 28px #132b4860}.native-gantt-context-title{font-size:12px;font-weight:700;padding:8px 10px;color:#233f56;border-bottom:1px solid #e3ebf1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.native-gantt-context-menu button{display:block;width:100%;padding:9px 10px;text-align:left;border:0;background:none;border-radius:5px;font-size:13px;color:#244f73;cursor:pointer}.native-gantt-context-menu button:hover,.native-gantt-context-menu button:focus{background:#e9f2fa;outline:none}
.native-gantt-card:fullscreen #modal-root{position:fixed!important;inset:0!important;z-index:2147483600!important;pointer-events:none}.native-gantt-card:fullscreen #modal-root:has(.modal-bg){pointer-events:auto}.native-gantt-card:fullscreen #modal-root .modal-bg{position:fixed!important;inset:0!important;z-index:2147483600!important}.native-gantt-card:fullscreen .native-gantt-context-menu{z-index:2147483601!important}

/* Compact native planning labels; state is scoped to the active planning card. */
.native-gantt-card{--native-description-width:310px}
@media(max-width:650px){.native-gantt-card{--native-description-width:215px}}
.native-gantt-card .native-gantt-content{width:calc(var(--native-description-width) + var(--native-width))!important}
.native-gantt-card .native-gantt-row{grid-template-columns:var(--native-description-width) var(--native-width)!important}
.native-gantt-card .native-gantt-sticky-stack{width:calc(var(--native-description-width) + var(--native-width))!important}
.native-gantt-card .native-gantt-sticky-slot{grid-template-columns:var(--native-description-width) var(--native-width)!important}
.native-gantt-card .native-gantt-group>.native-gantt-group-head{grid-template-columns:var(--native-description-width) var(--native-width)!important}
.native-gantt-description-toggle{position:absolute;left:0;top:0;width:30px;height:28px;padding:0;border:1px solid #b8cbdc;border-radius:6px;background:#fff;color:#173e65;cursor:pointer;z-index:8}
.native-gantt-header-label>.native-gantt-fold-tools{left:auto!important;right:0!important;top:0!important}
.native-gantt-card.native-gantt-descriptions-hidden{--native-description-width:44px}
.native-gantt-descriptions-hidden .native-gantt-name{overflow:hidden!important;white-space:nowrap!important;padding-left:4px!important;padding-right:4px!important}
.native-gantt-descriptions-hidden .native-gantt-header-label>strong,
.native-gantt-descriptions-hidden .native-gantt-days,
.native-gantt-descriptions-hidden .native-gantt-group-head .native-gantt-fold,
.native-gantt-descriptions-hidden .native-gantt-row.detail .native-gantt-name,
.native-gantt-descriptions-hidden .native-gantt-fold-tools{visibility:hidden!important}
.native-gantt-descriptions-hidden .native-gantt-header-label>.native-gantt-description-toggle{visibility:visible!important}
.native-gantt-descriptions-hidden .native-gantt-group>.native-gantt-group-head .native-gantt-name{font-size:0!important}

/* Consistent facility artwork: the tile stays fixed, only the artwork changes. */
.facility-icon{padding:0!important;overflow:hidden;background:transparent!important;border:0!important}
.facility-icon img{width:100%;height:100%;display:block;object-fit:contain}
.facility-icons--large .facility-icon{width:88px;height:88px}

/* Locatietegel: groot planningssymbool, vaste buttonmaat en eigen voorzieningensectie */
.location-count-planning .icon-btn svg{width:36px;height:36px;stroke-width:1.9}
.location-facilities-heading{border-top:1px solid var(--line);margin-top:12px;padding-top:11px;font-size:13px;font-weight:700;color:#344d60}
.location-facilities-heading + .tile-planning-actions{margin-top:7px}

/* Revised temporary facilities and location tile styling */
.location-facilities-heading{font-size:12px;font-weight:700;color:#33495e}
.location-facilities-heading+.tile-planning-actions{background:#bfd6e9;padding:8px;border-radius:9px;border:1px solid #a4bed5}
.location-count-planning .icon-btn{border:2px solid #153a5c}
.facility-icon,.tile-facilities .facility-icon{background:#d9ecfa!important;border:2px solid #163d64!important;border-radius:9px!important;box-sizing:border-box;width:70px;height:70px;padding:3px!important}
.tile-facilities .facility-icon{width:36px;height:36px;padding:1px!important}
.facility-icons--large .facility-icon{width:70px;height:70px}
.project-plan-outline{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:rgba(8,29,52,.30);border:1.5px solid #fff;color:white;min-width:128px;min-height:66px;padding:6px 10px;line-height:1.05}
.project-plan-outline svg{width:26px;height:26px;stroke:#fff;fill:none;stroke-width:1.7}
.project-plan-outline span{font-size:12px;color:#fff}
.file-open-all{background:#173d60!important;color:white!important;border-color:#173d60!important}
.file-open-all svg{stroke:white!important}
.planning-version-header{margin-left:auto}
.pms-breadcrumb .breadcrumb-settings{border:1px solid #aac8e0;background:#eef5fb;color:#163d60;width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;vertical-align:middle;margin:0 5px}
.pms-breadcrumb .breadcrumb-settings svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}

/* Location overview responsive layout enhancements */
#location-overview>.card.stat{grid-column:span 2}
#location-overview>.location-inline-quick{grid-column:span 4;margin:0!important;align-self:stretch}
#location-overview>.location-objects-half,#location-overview>.location-contacts-half{grid-column:span 6!important}
#location-overview>.scope-attention{grid-column:span 12;margin:0 0 12px!important}
@media(max-width:800px){#location-overview>.card.stat{grid-column:span 3}#location-overview>.location-inline-quick{grid-column:span 12}#location-overview>.location-objects-half,#location-overview>.location-contacts-half{grid-column:span 12!important}}

.project-plan-outline{aspect-ratio:1/1;width:100px;min-width:100px;min-height:100px;border:3px solid #fff;border-radius:11px;background:rgba(7,28,50,.36);padding:6px}
.project-plan-outline svg{width:54px;height:54px;stroke:#fff;stroke-width:2.8}
.project-plan-outline span{font-size:12px;font-weight:800}
@media(max-width:650px){.project-plan-outline{width:76px;min-width:76px;min-height:76px}.project-plan-outline svg{width:38px;height:38px}}
.pms-breadcrumb .breadcrumb-settings{width:auto;height:30px;padding:0 7px;gap:5px;font-weight:700;font-size:12px}
.pms-breadcrumb .breadcrumb-settings span{white-space:nowrap}
.activity-disclosure>summary{cursor:pointer;font-size:16px;list-style:none;padding:5px 0}
.activity-disclosure>summary::-webkit-details-marker{display:none}
.activity-disclosure>summary:before{content:'▸';display:inline-block;margin-right:9px;color:#173d60}
.activity-disclosure[open]>summary:before{content:'▾'}
.activity-disclosure-body{padding-top:12px}
.settings-related-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:12px;border-top:1px solid #d9e4ec}

/* Planning buttons: title above enlarged pictogram */
.project-plan-outline{width:116px;min-width:116px;min-height:116px;gap:6px;padding:9px;aspect-ratio:1/1}
.project-plan-outline span{font-size:13px;line-height:1;font-weight:800;letter-spacing:.055em}
.project-plan-outline svg{width:59px;height:59px}
@media(max-width:650px){.project-plan-outline{width:91px;min-width:91px;min-height:91px;padding:6px;gap:4px}.project-plan-outline span{font-size:10px}.project-plan-outline svg{width:44px;height:44px}}

/* All three planning button elements: PLANNING / calendar / Project or Locatie */
.project-plan-outline{width:125px;min-width:125px;min-height:125px;gap:4px;padding:8px}
.project-plan-outline svg{width:54px;height:54px;flex:none}
.project-plan-outline span{display:block;flex:none;font-size:12px;line-height:1.1;color:#fff}
@media(max-width:650px){.project-plan-outline{width:102px;min-width:102px;min-height:102px;gap:3px;padding:5px}.project-plan-outline svg{width:42px;height:42px}.project-plan-outline span{font-size:10px}}

.integral-live-progress{margin:14px 0 12px;padding:11px 12px;background:#f3f8fc;border:1px solid #d2e2ed;border-radius:10px}
.integral-progress-head{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#153a5c;margin-bottom:8px}
.integral-progress-track{height:12px;background:#d5e3ed;border-radius:999px;overflow:hidden}
.integral-progress-fill{height:100%;background:linear-gradient(90deg,#1470ac,#22a3ce);border-radius:999px;transition:width .5s ease}
.integral-progress-caption{margin-top:8px;font-size:12px}

.planning-unified-title h2{font-size:1.16rem;margin:0 0 8px;font-weight:700}
.planning-primary-tools{display:flex!important;align-items:center;gap:5px!important;flex-wrap:wrap!important;margin-bottom:5px}
.planning-primary-tools .btn{padding:6px 9px;font-size:12px;white-space:nowrap}
.planning-primary-tools .planning-version-header{margin-left:auto}
.planning-unified-card>.card,.planning-unified-card .native-gantt-card{margin-top:4px!important}
.planning-unified-card .native-gantt-card>.toolbar{justify-content:flex-end;gap:5px;min-height:0;padding:2px 0 5px}
.planning-unified-card .native-gantt-card>.toolbar .btn{padding:5px 8px;font-size:12px}
.planning-unified-card .native-gantt-scroll{min-height:58vh}
.pms-priority-controls[hidden]{display:none!important}

.planning-unified-card .planning-primary-tools{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;white-space:nowrap}
.planning-unified-card .planning-primary-tools button{flex:none}
.planning-unified-card .planning-primary-tools .planning-version-header{margin-left:auto}
.planning-unified-card .planning-compact-stats{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:2px 0 7px}
.planning-unified-card .planning-compact-stat{display:inline-flex;gap:7px;align-items:center;padding:5px 9px;min-height:30px;font-size:13px;border:1px solid #dae5ee;background:#f3f7fb;color:#163c61;border-radius:7px}
.planning-unified-card .native-gantt-card>.toolbar{display:none!important}
.planning-unified-card .native-gantt-card{padding:4px!important;max-width:none!important}
.planning-unified-card [data-planning-tab-panel="grafisch"]{width:100%;min-width:0}
.planning-unified-card .native-gantt-scroll{height:calc(100dvh - 230px);min-height:420px;max-height:none}
@media(max-width:680px){.planning-unified-card .native-gantt-scroll{height:calc(100dvh - 195px);min-height:360px}.planning-unified-card .planning-primary-tools .btn{font-size:11px;padding:6px 7px}}

.dashboard-compact>.toolbar:not(.pms-main-actions){visibility:hidden;height:1px!important;min-height:0!important;padding:0!important;overflow:hidden;margin:0!important}
.dashboard-compact>.toolbar.pms-main-actions{visibility:visible}

.native-gantt-card:fullscreen>.toolbar{display:flex!important;justify-content:flex-end!important;flex:none!important}
.native-gantt-card:fullscreen>.toolbar>button:not(:last-child){display:none!important}

.native-gantt-days-label{position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding-right:8px!important}
.native-gantt-days-label .native-gantt-fold-tools{display:flex!important;position:relative!important;inset:auto!important;z-index:6!important;visibility:visible!important}
.native-gantt-descriptions-hidden .native-gantt-days-label .native-gantt-fold-tools{visibility:visible!important}

.planning-unified-card .planning-primary-tools{display:flex!important;gap:5px!important;align-items:center!important;flex-wrap:nowrap!important;overflow:visible!important;min-width:0!important;margin:0!important}
.planning-unified-card .planning-tab-scroll{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:5px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:1px 0 4px}
.planning-unified-card .planning-header-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:4px;margin-left:auto;padding-bottom:4px}
.planning-unified-card .planning-header-actions .btn{padding:6px 8px;font-size:12px;white-space:nowrap;flex:0 0 auto}
.planning-unified-card .planning-header-actions .planning-version-header{margin-left:0!important}
@media(max-width:650px){.planning-unified-card .planning-header-actions .btn{padding:6px 7px}.planning-unified-card .planning-tab-scroll{max-width:calc(100% - 144px)}}

.planning-more-tools{position:relative;flex:0 0 auto}
.planning-more-tools>summary{display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;width:29px;height:28px;border:1px solid #c8d6e5;border-radius:7px;background:#f1f6fa;color:#244f73;font-size:19px}
.planning-more-tools>summary::-webkit-details-marker{display:none}
.planning-more-tools[open] .planning-more-popup{display:grid}
.planning-more-popup{position:absolute;right:0;top:calc(100% + 5px);min-width:195px;padding:8px;gap:5px;z-index:40;background:white;border:1px solid #d4e0ea;border-radius:9px;box-shadow:0 8px 24px #1a3b5429}
.planning-more-popup .btn{text-align:left!important;justify-content:flex-start!important}

.planning-unified-card .planning-caption-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:2px 0 4px}
.planning-unified-card .planning-caption-row .planning-unified-title{flex:0 1 auto;min-width:0}
.planning-unified-card .planning-caption-row .planning-unified-title h2{margin:3px 0;font-size:1.15rem;font-weight:700}
.planning-unified-card .planning-caption-row .planning-compact-stats{flex:0 1 auto;margin:2px 0 0 auto}

/* Shared PMS control system: normal-size buttons and icons across all screens. */
:root{--pms-control-height:36px;--pms-control-radius:8px}
button.btn,a.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;vertical-align:middle;max-width:100%;min-height:var(--pms-control-height);padding:7px 12px;border-radius:var(--pms-control-radius);font-size:13px;font-weight:650;line-height:1.25;white-space:normal;text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s}
button.btn svg,a.btn svg{display:inline-block!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;max-height:17px!important;flex:0 0 17px!important;vertical-align:middle!important;stroke-width:1.9}
button.btn.primary,a.btn.primary{background:#27a9e1;color:#fff}
button.btn.secondary,a.btn.secondary{background:#edf3f8;color:#243e57;border:1px solid #cbdbe8}
button.btn.secondary:hover,a.btn.secondary:hover{background:#dfeaf3}
button.btn:disabled,a.btn:disabled{opacity:.5;cursor:not-allowed}
button.btn:focus-visible,a.btn:focus-visible,.project-settings-tab:focus-visible{outline:2px solid #1672a5;outline-offset:2px}
#modal-root .settings-related-actions{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;padding-top:10px}
#modal-root .settings-related-actions>.btn{width:auto!important;height:auto!important;min-width:0!important;min-height:38px!important;max-width:100%;padding:8px 12px!important;flex:0 1 auto!important;font-size:13px!important;line-height:1.25!important}
#modal-root .settings-related-actions>.btn svg{width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;flex:0 0 17px!important}
#modal-root .project-settings-tabs{gap:6px}
#modal-root .project-settings-tab{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;font-size:13px;line-height:1.2}
#modal-root .admin-delete-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;font-size:13px}
@media(max-width:700px){
 #modal-root .settings-related-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));width:100%}
 #modal-root .settings-related-actions>.btn{width:100%!important}
 #modal-root .project-settings-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
 #modal-root .project-settings-tab{flex:0 0 auto;white-space:nowrap}
}

/* UX03: project settings is a fixed-height dialog with a scrollable form body.
   Preserve regular modals (e.g. trade agreements) and all existing submit logic. */
#modal-root .modal:has(.project-settings-tabs){display:flex;flex-direction:column;width:min(720px,calc(100vw - 40px));max-width:720px;max-height:min(82dvh,760px);overflow:hidden;padding:18px 22px 0}
#modal-root .modal:has(.project-settings-tabs)>h2{flex:0 0 auto;margin:0;padding:0 0 12px;font-size:20px;line-height:1.25}
#modal-root .modal:has(.project-settings-tabs)>form#mf{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
#modal-root .modal:has(.project-settings-tabs) .project-settings-tabs{position:sticky;top:0;z-index:3;background:#fff;margin:0;padding:8px 0 10px;border-bottom:1px solid #dbe5ed}
#modal-root .modal:has(.project-settings-tabs)>form#mf>.modal-actions{position:sticky;bottom:0;z-index:4;display:flex;justify-content:flex-end;gap:8px;flex:0 0 auto;background:#fff;border-top:1px solid #dce5ed;margin:12px -2px 0;padding:12px 2px 15px}
#modal-root .modal:has(.project-settings-tabs)>form#mf>.modal-actions>.btn{flex:none;min-width:94px;min-height:38px}
#modal-root .modal:has(.project-settings-tabs) [data-project-settings-pane]{padding:10px 1px 4px}
#modal-root .modal:has(.project-settings-tabs) input:not([type=checkbox]):not([type=radio]),#modal-root .modal:has(.project-settings-tabs) select,#modal-root .modal:has(.project-settings-tabs) textarea{max-width:100%;min-width:0}
#modal-root .modal:has(.project-settings-tabs) .two{min-width:0}
@media(max-width:700px){
 #modal-root .modal-bg:has(.project-settings-tabs){padding:7px}
 #modal-root .modal:has(.project-settings-tabs){width:100%;max-width:100%;max-height:calc(88dvh - 14px);padding:13px 13px 0;border-radius:11px}
 #modal-root .modal:has(.project-settings-tabs)>h2{font-size:18px}
 #modal-root .modal:has(.project-settings-tabs)>form#mf>.modal-actions{padding-bottom:max(12px,env(safe-area-inset-bottom));}
 #modal-root .modal:has(.project-settings-tabs)>form#mf>.modal-actions>.btn{flex:1}
}
/* Dedicated large pictogram cards must retain their explicitly chosen artwork size. */
.project-plan-outline.btn svg{width:59px!important;height:59px!important;max-width:59px!important;max-height:59px!important;flex:0 0 59px!important}
@media(max-width:650px){.project-plan-outline.btn svg{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;flex:0 0 44px!important}}

/* Compact location workflow in project location cards: same status palette and behavior. */
.location-card .location-tile-flow{width:100%;margin:10px 0 8px;padding:9px 0 2px;border-top:1px solid #d3e0eb;min-width:0;font-size:11px;color:#64798a}
.location-card .tile-flow-track{display:flex;align-items:stretch;width:100%;min-width:0;overflow-x:auto;overflow-y:visible;scrollbar-width:thin;padding:3px 2px 5px}
.location-card .tile-flow-chevron{position:relative;flex:1 1 0;min-width:0;min-height:34px;padding:5px 12px 5px 16px;margin-left:-7px;border:0;cursor:pointer;font-weight:700;font-size:10px;line-height:1.1;text-align:center;color:#745026;background:#fff0d8;clip-path:polygon(0 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,0 100%,13px 50%);transition:filter .15s}
.location-card .tile-flow-chevron:first-child{margin-left:0;padding-left:5px;clip-path:polygon(0 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,0 100%)}
.location-card .tile-flow-chevron:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,13px 50%);padding-right:5px}
.location-card .tile-flow-chevron.done{background:#c5e7cd;color:#195d31}
.location-card .tile-flow-chevron.current{background:#78cd92;color:#124b29;filter:drop-shadow(0 0 1px #168b45)}
.location-card .tile-flow-chevron:hover{filter:brightness(.92)}
.location-card .tile-flow-chevron:focus-visible{outline:2px solid #136e41;outline-offset:2px}
.location-card .tile-flow-chevron>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
@media(max-width:700px){.location-card .tile-flow-chevron{font-size:9px;min-height:31px;padding-left:12px;padding-right:10px}}

/* Location cards: uniform facility strip, one icon-height row. */
.location-card .location-facilities-heading + .tile-planning-actions{
 box-sizing:border-box;
 height:56px!important;
 min-height:56px!important;
 max-height:56px!important;
 padding:8px!important;
 display:flex!important;
 align-items:center!important;
 justify-content:flex-start!important;
 overflow:hidden!important;
}
.location-card .tile-planning-actions .tile-facilities{
 display:flex!important;
 align-items:center!important;
 flex-wrap:nowrap!important;
 gap:5px!important;
 width:100%;
 height:100%;
 min-width:0;
 overflow-x:auto;
 overflow-y:hidden;
 scrollbar-width:thin;
}
.location-card .tile-planning-actions .facility-icons{
 display:inline-flex!important;
 align-items:center!important;
 flex-wrap:nowrap!important;
 flex:0 0 auto;
 gap:5px!important;
 height:36px;
}
.location-card .tile-planning-actions .facility-icon{
 flex:0 0 36px!important;
 width:36px!important;
 height:36px!important;
 max-width:36px!important;
 max-height:36px!important;
 box-sizing:border-box!important;
}
.location-card .tile-planning-actions .facility-icon img,
.location-card .tile-planning-actions .facility-icon svg{
 display:block;
 width:100%!important;
 height:100%!important;
 max-width:100%!important;
 max-height:100%!important;
 object-fit:contain;
}

/* Aligned location cards: each section has the same height at each breakpoint. */
#project-locations .location-card-grid{align-items:stretch}
#project-locations .location-card{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:132px 52px 57px 72px 34px 56px!important;
 align-content:start!important;
 align-items:stretch!important;
 min-width:0;
 height:443px!important;
 min-height:443px!important;
 max-height:443px!important;
 gap:0!important;
 overflow:visible;
}
#project-locations .location-card>.location-card-head{grid-row:1;min-height:0;min-width:0;margin:0!important;overflow:hidden;align-self:stretch}
#project-locations .location-card>.location-tile-flow{grid-row:2;box-sizing:border-box;height:52px!important;min-height:52px!important;max-height:52px!important;margin:0!important;padding:8px 0 4px!important;overflow:hidden!important;align-self:stretch}
#project-locations .location-card>.location-signals{grid-row:3;box-sizing:border-box;height:57px!important;min-height:57px!important;max-height:57px!important;margin:0!important;padding:7px 0!important;align-content:center;overflow:hidden}
#project-locations .location-card>.location-next{grid-row:4;box-sizing:border-box;height:72px!important;min-height:72px!important;max-height:72px!important;margin:0!important;padding:7px 0!important;overflow:hidden}
#project-locations .location-card>.location-facilities-heading{grid-row:5;box-sizing:border-box;height:34px!important;min-height:34px!important;max-height:34px!important;margin:0!important;padding:10px 0 0!important;overflow:hidden}
#project-locations .location-card>.tile-planning-actions{grid-row:6;box-sizing:border-box;height:56px!important;min-height:56px!important;max-height:56px!important;margin:0!important}
#project-locations .location-card .tile-flow-track{height:36px;overflow:hidden!important}
#project-locations .location-card .tile-flow-chevron{min-height:29px!important;height:29px!important;padding:0!important;font-size:0!important}
#project-locations .location-card .tile-flow-chevron>span{display:none!important}
#project-locations .location-card .tile-flow-chevron.current{box-shadow:inset 0 0 0 2px #168b45}
@media(max-width:650px){
 #project-locations .location-card{grid-template-rows:126px 48px 60px 72px 34px 56px!important;height:436px!important;min-height:436px!important;max-height:436px!important}
 #project-locations .location-card>.location-tile-flow{height:48px!important;min-height:48px!important;max-height:48px!important}
 #project-locations .location-card>.location-signals{height:60px!important;min-height:60px!important;max-height:60px!important}
}

/* Tile spacing fix: tight gap below planning button; enough room for indicators and next planning. */
#project-locations .location-card{
 grid-template-rows:116px 46px 84px 98px 34px 56px!important;
 height:auto!important;min-height:0!important;max-height:none!important;
}
#project-locations .location-card>.location-card-head{height:116px!important;min-height:116px!important;overflow:hidden!important}
#project-locations .location-card .location-count-planning{margin-top:2px!important}
#project-locations .location-card>.location-tile-flow{
 height:46px!important;min-height:46px!important;max-height:46px!important;
 padding:3px 0 3px!important;
}
#project-locations .location-card>.location-signals{
 height:84px!important;min-height:84px!important;max-height:84px!important;
 margin:0!important;padding:10px 0!important;
 display:flex!important;align-content:center;align-items:center;flex-wrap:wrap;gap:5px;
 overflow:visible!important;
}
#project-locations .location-card>.location-next{
 height:98px!important;min-height:98px!important;max-height:98px!important;
 margin:0!important;padding:12px 0 8px!important;
 line-height:1.55!important;overflow:hidden!important;
}
#project-locations .location-card>.location-next b{display:inline-block;margin-bottom:5px;line-height:1.4}
#project-locations .location-card>.location-facilities-heading{line-height:1.4!important}
@media(max-width:650px){
 #project-locations .location-card{grid-template-rows:112px 44px 86px 100px 34px 56px!important;height:auto!important;min-height:0!important;max-height:none!important}
 #project-locations .location-card>.location-card-head{height:112px!important;min-height:112px!important}
 #project-locations .location-card>.location-tile-flow{height:44px!important;min-height:44px!important;max-height:44px!important;padding:3px 0!important}
 #project-locations .location-card>.location-signals{height:86px!important;min-height:86px!important;max-height:86px!important}
 #project-locations .location-card>.location-next{height:100px!important;min-height:100px!important;max-height:100px!important}
}

/* Location tile: consistent two-line title, navy outline and gentle neon active indication. */
#project-locations .location-card{border:2px solid #173d60!important;border-radius:12px!important}
#project-locations .location-card .location-tile-name{display:flex!important;flex-direction:column!important;align-items:flex-start;justify-content:flex-start;gap:0;margin:14px 0 5px!important;font-size:20px;line-height:1.12!important;font-weight:750;min-height:46px;max-height:46px;overflow:hidden}
#project-locations .location-card .location-tile-name>span{display:block;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#project-locations .location-card .location-status-badge.location-status-active{background:#78cd92!important;color:#124b29!important;border:1px solid #208348!important;animation:pmsLocationActiveGlow 3.2s ease-in-out infinite!important;font-weight:800}
@keyframes pmsLocationActiveGlow{0%,100%{background-color:#78cd92;box-shadow:0 0 0 1px rgba(32,131,72,.12)}50%{background-color:#8cdaa4;box-shadow:0 0 6px 1px rgba(32,131,72,.28)}}
@media(prefers-reduced-motion:reduce){#project-locations .location-card .location-status-badge.location-status-active{animation:none!important}}

#modal-root .crm-org-suggestions{display:grid;gap:4px;max-height:230px;overflow-y:auto;margin:4px 0}
#modal-root .crm-org-option{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:9px 11px;text-align:left;background:#f4f7fa;border:1px solid #d7e3ee;border-radius:7px;cursor:pointer}
#modal-root .crm-org-option.selected,#modal-root .crm-org-option:hover{background:#deecf7;border-color:#7eaccc}
#modal-root .crm-org-option span{font-size:11px;color:#526779;text-align:right}

/* PMS-owned default brand when an organization has no uploaded logo. */
.pms-fallback-brand{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;padding:3px 4px;background:#173d60;color:#fff;border-radius:5px;font-family:Arial,Helvetica,sans-serif;font-size:clamp(6px,.65vw,10px);font-weight:850;line-height:1;white-space:nowrap;letter-spacing:-.04em}
.pms-fallback-brand sup{font-size:.6em;position:relative;top:-.35em;color:#49b8e8;margin-left:1px}
.pms-fallback-brand em{font-style:normal;color:#49b8e8}
.crm-avatar.crm-brand-avatar{padding:0;overflow:hidden;background:#173d60;border:1px solid #adc4d8}
.crm-avatar.crm-brand-avatar .pms-fallback-brand{font-size:8px}
.crm-organization-hero-fallback .pms-fallback-brand.large{display:flex;width:min(70%,430px);height:125px;padding:18px;border-radius:12px;letter-spacing:-.045em;font-size:clamp(25px,4vw,53px);box-shadow:0 5px 18px #071c314a}

/* Logo fallback: full-bleed navy, no white frame, strong contrast. */
.crm-organization-hero-visual:has(.crm-organization-hero-fallback){inset:0!important;padding:0!important}
.crm-organization-hero-fallback:has(.pms-fallback-brand){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden;background:#123657!important}
.crm-organization-hero-fallback .pms-fallback-brand.large{box-sizing:border-box!important;display:flex!important;width:100%!important;height:100%!important;max-width:none!important;min-height:0!important;border-radius:0!important;padding:16px 6%!important;background:linear-gradient(115deg,#0f2d4d,#194769)!important;box-shadow:none!important;color:#fff!important;font-size:clamp(32px,6vw,88px)!important;letter-spacing:-.035em!important}
.crm-organization-hero-fallback .pms-fallback-brand.large>span{display:inline-flex;align-items:baseline;justify-content:center;white-space:nowrap;max-width:100%;line-height:1.05}
.crm-organization-hero-fallback .pms-fallback-brand.large sup{color:#64c9f2!important;font-size:.54em!important;align-self:flex-start;top:0!important;margin:0 1px!important}
.crm-organization-hero-fallback .pms-fallback-brand.large em{color:#64c9f2!important}
.crm-avatar.crm-brand-avatar{background:#123657!important;border-color:#123657!important}
.crm-avatar.crm-brand-avatar .pms-fallback-brand{width:100%!important;height:100%!important;padding:2px!important;background:#123657!important;font-size:clamp(6px,.75vw,10px)!important;color:#fff!important}
.crm-avatar.crm-brand-avatar .pms-fallback-brand sup,.crm-avatar.crm-brand-avatar .pms-fallback-brand em{color:#64c9f2!important}
@media(max-width:700px){.crm-organization-hero-fallback .pms-fallback-brand.large{font-size:clamp(28px,8vw,56px)!important;padding:12px 4%!important}}

/* Org with no logo: undo square avatar position on the full-width hero. */
.crm-organization-hero .crm-organization-hero-visual:has(.crm-organization-hero-fallback){
 position:absolute!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
 transform:none!important;width:100%!important;height:100%!important;max-width:none!important;
 aspect-ratio:auto!important;border:0!important;border-radius:0!important;
 padding:0!important;background:#123657!important;box-shadow:none!important;overflow:hidden!important;z-index:0!important;
}
.crm-organization-hero .crm-organization-hero-visual:has(.crm-organization-hero-fallback) .crm-organization-hero-fallback{
 position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;height:100%!important;
}
.crm-organization-hero .crm-organization-hero-visual:has(.crm-organization-hero-fallback) .pms-fallback-brand.large{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;height:100%!important;padding:20px 6% 65px!important;
 font-size:clamp(34px,5.5vw,76px)!important;
}
.crm-organization-hero:has(.crm-organization-hero-fallback) .crm-organization-hero-title{position:absolute!important;z-index:3!important}
@media(max-width:650px){
 .crm-organization-hero .crm-organization-hero-visual:has(.crm-organization-hero-fallback) .pms-fallback-brand.large{
 font-size:clamp(29px,7.2vw,48px)!important;padding:18px 6% 70px!important;
 }
 .crm-organization-hero:has(.crm-organization-hero-fallback) .crm-organization-hero-title{left:14px!important;right:14px!important}
}

/* Organization fallback ONLY: Jansen2B watermark right; no own image means watermark. */
.crm-organization-hero .crm-organization-hero-visual:has(.crm-organization-hero-fallback){
 position:absolute!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
 transform:none!important;width:100%!important;height:100%!important;max-width:none!important;
 border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 padding:0!important;z-index:0!important;pointer-events:none!important;
}
.crm-organization-hero .crm-organization-hero-visual .crm-organization-hero-fallback{
 position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;
 background:transparent!important;overflow:hidden!important;padding:0 5%!important;
}
.crm-organization-hero .crm-organization-hero-visual .crm-organization-hero-fallback .pms-fallback-brand.large{
 width:auto!important;max-width:76%!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;
 border:0!important;border-radius:0!important;opacity:.22!important;
 color:white!important;font-size:clamp(42px,6.8vw,108px)!important;
 white-space:nowrap!important;
}
.crm-organization-hero .crm-organization-hero-visual .crm-organization-hero-fallback .pms-fallback-brand.large>span{
 display:inline-flex!important;justify-content:flex-end!important;max-width:100%!important;
}
.crm-organization-hero:has(.crm-organization-hero-fallback) .crm-organization-hero-title{z-index:3!important}
.crm-organization-hero:has(.crm-organization-hero-fallback) .crm-organization-hero-shade{z-index:1!important}
@media(max-width:650px){
 .crm-organization-hero .crm-organization-hero-visual .crm-organization-hero-fallback{padding:0 4%!important}
 .crm-organization-hero .crm-organization-hero-visual .crm-organization-hero-fallback .pms-fallback-brand.large{
 max-width:68%!important;font-size:clamp(22px,6.2vw,46px)!important;opacity:.18!important}
}

.location-prio-line{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.location-prio-badge{display:inline-flex;align-items:center;border:1px solid #d32436;border-radius:7px;color:#c91e32;background:#fff5f5;font-size:11px;font-weight:800;padding:3px 7px;line-height:1.25;white-space:nowrap;box-sizing:border-box}
.location-prio-feature{border-color:#d32436!important;color:#c91e32}
.location-prio-feature .muted,.location-prio-feature b{color:#c91e32!important}

/* CRM: keep row action icons within the list viewport on narrow screens. */
.crm-tab-content{min-width:0;max-width:100%}
.crm-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.crm-table-scroll .crm-list-table{display:table;width:100%;min-width:780px;border-collapse:collapse}
.crm-table-scroll .crm-list-table th,.crm-table-scroll .crm-list-table td{white-space:nowrap;vertical-align:middle}
.crm-table-scroll .crm-list-table td:first-child{white-space:normal;min-width:155px}
.crm-table-scroll .crm-list-table td:last-child{white-space:nowrap;min-width:182px}
.crm-table-scroll .crm-row-actions{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:4px}
.crm-table-scroll .crm-row-actions>*{flex-shrink:0}
.uol-modal{width:min(1000px,96vw)!important;max-height:94vh;overflow:auto}.uol-sheet{padding:8px 6px}.uol-head{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:3px solid #193c63}.uol-head p{font-size:11px;letter-spacing:2px}.uol-tools{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.uol-tools button{border:1px solid #bbc7d6;background:#f5f8fc;border-radius:5px;padding:6px 12px}.uol-editor{min-height:260px;border:1px solid #abb9c9;border-radius:9px;padding:15px;background:white;color:#243444;outline-color:#3b83ca}.uol-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}

.uol-dark-rule{background:#143b61;height:5px;width:100%;margin:18px 0}.uol-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;font-size:12px}.uol-columns label{font-size:12px}.uol-columns input,.uol-columns select{width:100%;max-width:100%}.uol-header-contact-display{line-height:1.5;margin:8px 0 18px}.uol-version-label{font-weight:700;color:#143b61}@media(max-width:650px){.uol-columns{grid-template-columns:1fr}}
.rule-required-star{font-size:15px;font-weight:800;color:#dc2626;line-height:1}.rule-required-empty{color:#b91c1c!important;font-weight:600}.rule-input-missing{border:2px solid #dc2626!important;background:#fff7f7!important;outline-color:#dc2626!important}

/* Organisatie: acties blijven binnen de contactgegevenskaart. */
#content .grid > .card.side .toolbar:has(> h2) {display:flex;flex-wrap:wrap;align-items:flex-start;min-width:0;gap:8px}
#content .grid > .card.side .toolbar:has(> h2) > h2 {flex:1 1 125px;min-width:0;overflow-wrap:anywhere}
#content .grid > .card.side .toolbar .contact-actions{display:flex;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:4px;max-width:100%;min-width:0}
#content .grid > .card.side .toolbar .contact-actions .icon-btn {flex:0 0 34px;width:34px;height:34px}
.org-document-start{grid-column:span 8;min-width:0;align-self:start}
@media(max-width:900px){.org-document-start{grid-column:span 12}}

/* Project progress catalogue */
.progress-page{max-width:1300px}

/* Activities library: scoped layout, isolated from generic PMS form controls */
#content>.progress-page,
#activity-library-host>.progress-page{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:20px!important;text-align:left!important}
.progress-page>.toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;width:100%!important;margin-bottom:14px}
.progress-page>.toolbar>div:first-child{flex:1 1 280px;min-width:0}
.progress-page>.toolbar .actions{display:flex!important;flex:0 1 auto;flex-wrap:wrap!important;gap:7px!important;align-items:center!important}
.progress-page>#catalog-filter{display:block!important;position:static!important;width:100%!important;max-width:540px!important;margin:12px 0 18px!important;padding:10px 12px!important}
.progress-page>#catalog-tree{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;overflow:visible!important}
.progress-page .catalog-node{display:block!important;width:auto!important;min-width:0!important;margin-top:0!important;margin-bottom:0!important;border-bottom:1px solid #edf1f5}
.progress-page .catalog-node-header{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:10px!important;width:100%!important;min-height:44px!important;padding:7px 5px!important;text-align:left!important}
.progress-page .catalog-node-header strong{display:block!important;flex:0 1 auto!important;min-width:160px!important;max-width:100%!important;white-space:normal!important;overflow-wrap:break-word!important;text-align:left!important;color:#18324d}
.progress-page .catalog-node-header .catalog-spacer{flex:1 1 16px!important}
.progress-page .catalog-node-header .icon-btn{flex:none!important;width:32px!important;height:32px!important;margin:0!important}
.progress-page .catalog-node-header input[type="checkbox"]{appearance:auto!important;display:inline-block!important;position:static!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;margin:0!important;padding:0!important}
.progress-page .catalog-node-header .btn{flex:none!important;width:auto!important;min-height:30px!important;padding:5px 9px!important}
@media(max-width:720px){.progress-page .catalog-node-header strong{min-width:110px!important;flex:1 1 110px!important}.progress-page .catalog-node-header .catalog-spacer{display:none!important}.progress-page .catalog-node-header .btn{font-size:11px!important}}

/* Activities hierarchy — clear three-level visual separation */
.progress-page #catalog-tree>.catalog-node.catalog-level-0{border:1px solid #d2dfec!important;border-radius:10px!important;background:#f1f6fc!important;margin:10px 0!important;padding:6px 10px!important;width:100%!important}
.progress-page #catalog-tree>.catalog-node.catalog-level-0>.catalog-node-header{background:#e2edf8!important;border-radius:7px!important;min-height:46px!important;padding:8px 10px!important}
.progress-page .catalog-level-0>.catalog-node-header>strong{font-size:14px!important;font-weight:750!important;color:#113b63!important}
.progress-page .catalog-level-1{background:#f8fbfe!important;border-left:3px solid #8eb5d6!important;border-bottom:0!important;padding-left:7px!important;margin-top:5px!important;margin-bottom:5px!important}
.progress-page .catalog-level-1>.catalog-node-header>strong{font-size:13px!important;color:#245278!important}
.progress-page .catalog-level-2{background:#fff!important;border-left:2px solid #d3e0ed!important;border-bottom:1px solid #edf1f5!important;margin-bottom:1px!important;padding-left:4px!important}
.progress-page .catalog-level-2>.catalog-node-header{min-height:34px!important;padding:4px 7px!important}
.progress-page .catalog-level-2>.catalog-node-header>strong{font-size:13px!important;font-weight:500!important;color:#273c52!important}
.progress-page .catalog-node-header [data-cat-expand]{font-size:22px!important;font-weight:700!important;color:#244d71!important}
.progress-page .catalog-level-0>.catalog-node-header .catalog-spacer,.progress-page .catalog-level-1>.catalog-node-header .catalog-spacer{flex-grow:1!important}
.progress-page #catalog-filter{max-width:none!important}

/* Discreet add activity control immediately after subgroup title */
.progress-page .catalog-node-header .catalog-inline-add{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;margin:0 5px 0 1px!important;padding:0!important;border:1px solid #b7cfdf!important;border-radius:6px!important;background:#eef6fc!important;color:#163c60!important;font-size:19px!important;font-weight:600!important;line-height:1!important;cursor:pointer!important}
.progress-page .catalog-node-header .catalog-inline-add:hover{background:#d8eafb!important;border-color:#5e97c3!important}
.progress-page .catalog-level-1>.catalog-node-header>strong{min-width:0!important;flex:0 1 auto!important}

/* Clickable activity-library rows */
.progress-page .catalog-node-header[data-cat-row]{cursor:pointer}
.progress-page .catalog-node-header[data-cat-row]:hover{background:#e7f0f9!important;border-radius:7px}
.progress-page .catalog-node-header .catalog-row-title{cursor:pointer}
.catalog-references{padding:10px 12px;border:1px solid #d4e0eb;background:#f4f8fc;border-radius:9px;margin:12px 0}
.catalog-references ul{margin:8px 0 0;padding-left:20px}
.progress-page .catalog-order{display:inline-flex;gap:3px;align-items:center;margin-left:4px}
.progress-page .catalog-order button{width:26px;height:26px;min-width:26px;border:1px solid #c4d6e5;border-radius:6px;background:#f2f7fb;color:#163e65;font-size:17px;line-height:1;cursor:pointer;padding:0}
.progress-page .catalog-order button:hover:not(:disabled){background:#dcebf7}
.progress-page .catalog-order button:disabled{opacity:.26;cursor:default}
/* External progress disciplines, task hierarchy and direct correspondence */
.external-activity-panel,.external-progress-messages{margin-top:16px;padding:16px}
.external-progress-discipline{padding:10px 12px;margin:9px 0;border:1px solid #d7e1ee;border-left:4px solid #3d739d;border-radius:8px;background:#f7fafd}
.external-progress-discipline-title{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.external-progress-discipline-title strong{flex:1 1 200px}.external-progress-discipline progress{width:100%;height:8px}
.external-progress-subgroup{padding:7px 9px;margin:7px 0;border-left:3px solid #9ab7d0;background:white;border-radius:5px}
.external-progress-subgroup summary{cursor:pointer;font-weight:600}
.external-progress-activity{padding:9px 5px;border-bottom:1px solid #e7edf5}
.external-progress-task{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:4px}
.external-progress-messages select,.external-progress-messages textarea{display:block;width:100%;max-width:660px;margin:8px 0}.external-message-entry{padding:10px 0;border-bottom:1px solid #e6edf4}.external-message-entry p{white-space:pre-wrap;margin:5px 0}

/* PMS Settings > Activiteitenbibliotheek: 30% more horizontal room than the standard 1500px content limit. */
@media (min-width: 1100px){
 body:not(.pms-external-preview) #app main .content:has(#activity-library-host){max-width:1950px!important;width:100%!important}
}

/* CRM organisatiepagina: zelfstandig kopiebestand van dashboardheader; origineel onaangetast. */
.crm-organization-hero{background-image:linear-gradient(0deg,#061a3080,#061a3020),url('/crm-organisatie-header.png')!important;background-repeat:no-repeat!important;background-position:50% 31%!important;background-size:cover!important}


/* Day marker remains above location summary bars, even when descendants collapse. */
.native-gantt-card:not(.confirmed-graphical-page) .native-gantt-group[data-group-level="location"] > .native-gantt-group-head > .native-gantt-time > .native-today-location-mark,
.native-gantt-card:not(.confirmed-graphical-page) .native-gantt-sticky-slot[data-level="location"] > .native-gantt-row > .native-gantt-time > .native-today-location-mark{
 position:absolute!important;display:block!important;top:0!important;bottom:0!important;
 z-index:15!important;background:rgba(255,218,49,.42)!important;
 border-left:3px solid #dfb500!important;box-shadow:inset -1px 0 0 rgba(144,110,0,.38);
 pointer-events:none!important;
}


/* 20261018 month dividers: lighter blue across graphical project and confirmed Gantt views.
   Do not change day/week guides, yellow today marker, or the month header cells. */
.native-gantt-card .native-month-line{
 border-left-color:#bfddeb!important;
}
.native-gantt-card .native-month-mark{
 border-left-color:#bfddeb!important;
}
.build-gantt-card .build-gantt-month-separator{
 background:repeating-linear-gradient(
   to bottom,#c6e0ef 0,#c6e0ef 5px,transparent 5px,transparent 10px
 )!important;
}


/* Billing draft: informational time/travel child lines under billed day totals. */
.billing-draft-detail-choice{display:flex!important;align-items:center;gap:8px;padding:9px 0}
.billing-draft-detail-choice input{min-width:16px!important;width:16px!important;height:16px!important;margin:0!important}
.billing-draft-table{max-width:100%;overflow-x:auto}
.billing-draft-table table{min-width:700px}
.billing-draft-mainrow td{font-weight:600;white-space:nowrap}
.billing-draft-subrow td{padding:5px 12px 9px 24px!important;border-top:0!important;background:#f1f7fb;color:#365c76}
.billing-draft-subrow span{display:block;line-height:1.4;font-size:11px;overflow-wrap:anywhere}

/* Compact project progress, planning and confirmation action tiles. */
.entity-hero[data-color-owner^="project:"] .project-hero-title-row .project-plan-outline{
 width:76px!important;min-width:76px!important;min-height:76px!important;height:76px!important;
 padding:5px!important;gap:3px!important;border-width:2px!important;margin-left:4px!important;
}
.entity-hero[data-color-owner^="project:"] .project-hero-title-row .project-plan-outline svg{
 width:33px!important;height:33px!important;
}
.entity-hero[data-color-owner^="project:"] .project-hero-title-row .project-plan-outline span{
 font-size:10px!important;letter-spacing:0!important;
}
.entity-hero[data-color-owner^="project:"] .confirmed-hero-link .confirmed-clock-icon{
 width:33px!important;height:33px!important;
}
.entity-hero[data-color-owner^="project:"] .confirmed-hero-link .confirmed-clock-icon svg{
 width:33px!important;height:33px!important;
}
@media(max-width:650px){
 .entity-hero[data-color-owner^="project:"] .project-hero-title-row .project-plan-outline{
 width:64px!important;min-width:64px!important;min-height:64px!important;height:64px!important;
 }
 .entity-hero[data-color-owner^="project:"] .project-hero-title-row .project-plan-outline svg,
 .entity-hero[data-color-owner^="project:"] .confirmed-hero-link .confirmed-clock-icon,
 .entity-hero[data-color-owner^="project:"] .confirmed-hero-link .confirmed-clock-icon svg{
 width:27px!important;height:27px!important;
 }
}
