/* User access editor: override global table/grid label rules. */
.jld-user-access[open]>.jld-user-access-panel{position:fixed!important;inset:8vh auto auto 50%!important;transform:translateX(-50%);width:min(780px,90vw)!important;max-height:82vh!important;overflow:auto!important;z-index:10020;background:white;box-shadow:0 15px 100px #173d3566;padding:24px!important;border:2px solid #287644;border-radius:16px;box-sizing:border-box}
.jld-user-access[open]:before{content:'';position:fixed;inset:0;background:#15332655;z-index:10019}
.jld-user-access-panel .jld-user-module-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-height:48vh!important;overflow:auto!important;padding:8px!important;box-sizing:border-box}
.jld-user-access-panel label.jld-user-module-check,.jld-user-access-panel label.jld-user-print-check{display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-width:0!important;width:auto!important;padding:10px!important;white-space:normal!important;background:#f1f7f2;border-radius:6px;text-align:left!important}
.jld-user-access-panel input[type=checkbox]{width:19px!important;height:19px!important;flex:0 0 19px!important;margin:0!important;position:static!important}
.jld-user-access-panel .jld-user-action-buttons{display:flex!important;gap:10px;flex-wrap:wrap;margin-top:16px}.jld-user-access-panel .wf-access-close{float:right}
.wf523{padding:20px;background:#fff;border:1px solid #d8e4dd;border-radius:14px}.wf523 h2{margin:0 0 8px}.wf523 .wf-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:18px 0}.wf523 .wf-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:13px}.wf523 select,.wf523 input{min-width:120px;max-width:210px}.wf523 .wf-scroll{overflow:auto}.wf523 table{width:100%;border-collapse:collapse}.wf523 th,.wf523 td{padding:12px;text-align:left;border-bottom:1px solid #dce7de;vertical-align:top}.wf523 th{background:#eaf3ec;white-space:nowrap}.wf523 td small{display:block;color:#607165;margin-top:5px}.wf523 .wf-count{display:inline-block;padding:8px 14px;border-radius:20px;background:#e5f2e8}.wf523 .wf-warn{color:#8b4b00;background:#fff1d4;padding:5px;border-radius:5px;font-size:12px}.wf523 .wf-error{color:#9c1c1c}.wf523 .wf-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:190px}.wf523 button{white-space:normal}.wf-dialog523{width:min(920px,92vw);max-height:88vh;overflow:auto;border:1px solid #b9d1c0;border-radius:16px;padding:24px}.wf-dialog523::backdrop{background:#17342677}.wf-dialog523 header{display:flex;justify-content:space-between;align-items:center}.wf-dialog523 .wf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.wf-dialog523 label{display:flex;flex-direction:column;gap:6px}.wf-dialog523 input,.wf-dialog523 select{box-sizing:border-box;width:100%}.wf-dialog523 input[type=checkbox]{width:20px}.wf-dialog523 table{width:100%;border-collapse:collapse}.wf-dialog523 td,.wf-dialog523 th{padding:8px;text-align:left;border-bottom:1px solid #dce7de}.wf-dialog523 footer{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.wf-dialog523 .wf-error{color:#a11}.wf-dialog523 .wf-scroll{overflow:auto}.wf523 .wf-search{min-width:200px}
@media(max-width:650px){.jld-user-access-panel .jld-user-module-list{grid-template-columns:1fr!important}.wf-dialog523 .wf-fields{grid-template-columns:1fr}}
.wf-user-dialog523{width:min(800px,94vw);max-width:94vw;max-height:88vh;box-sizing:border-box;overflow:auto;border:1px solid #9ac4a5;border-radius:16px;padding:22px;background:white;color:#193f28}
.wf-user-dialog523::backdrop{background:#15332677}.wf-user-dialog523>header{display:flex;justify-content:space-between;align-items:center;gap:15px}.wf-user-dialog523>header h2{font-size:21px;margin:0 0 15px}
.wf-user-dialog523 .jld-user-access>summary,.wf-user-dialog523 .jld-user-access[open]:before{display:none!important}
.wf-user-dialog523 .jld-user-access[open]>.jld-user-access-panel{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0!important}
.wf-user-dialog523 .wf-access-close{display:none!important}
.cards.costcards{grid-template-columns:repeat(3,minmax(0,1fr))!important}#kpiCompanyCompletedCost,#kpiCompanyOutstandingCost{display:none!important}

#managerplanning,#officefollowup{scroll-margin-top:calc(var(--jld-header-height,90px) + 16px)}

/* V28.524: focused dashboard. Preserve IDs used by existing renderers. */
#dashboard#dashboard > :not(.cards.costcards):not(.dashboard-grid),
#dashboard#dashboard .dashboard-grid > :not(.dashboard-planning-panel),
#dashboard#dashboard .dashboard-email-panel {display:none!important;}
#dashboard#dashboard .dashboard-grid {display:block!important;}
#dashboard#dashboard > .cards.costcards {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px;}
@media(max-width:600px){#dashboard#dashboard > .cards.costcards .card{min-width:0;padding:12px 5px;}}
#dashboard#dashboard #jldActionCentre,
#dashboard#dashboard #dashboardSourceSummary,
#dashboard#dashboard #dashboardTrialRegionSummary {display:none!important;}
