/* Keep date navigation visible even after legacy dashboard mounting. */
html:root body .dashboard-page .dashboard-head .dashboard-head-actions{display:flex!important;opacity:1!important;visibility:visible!important;min-width:160px!important;width:auto!important;position:static!important}
html:root body .dashboard-page .dashboard-head .dashboard-date-picker{display:block!important;position:relative!important;opacity:1!important;visibility:visible!important;transform:none!important;margin:0!important}
html:root body .dashboard-page .dashboard-head #dashboardDateFilter{display:flex!important;opacity:1!important;visibility:visible!important;min-width:140px!important;height:44px!important;color:var(--text,#244466)!important;background:var(--surface,#fff)!important;position:static!important}
html:root body .permissions-workspace-0825{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;gap:18px;direction:rtl;align-items:start;padding:18px}
html:root body .permissions-workspace-0825>aside{position:sticky;top:14px;min-width:0;padding:14px;border:1px solid var(--border,#c9d9e8);border-radius:16px;background:var(--surface,#fff)}
html:root body #permissionsEmployeesGrid{display:flex!important;flex-direction:column!important;gap:10px!important;padding:0!important}
html:root body #permissionsEmployeesGrid .permission-employee-card{width:100%!important;min-width:0!important;grid-template-columns:40px minmax(0,1fr) auto 16px!important;padding:12px!important;min-height:76px!important;text-align:right}
html:root body #permissionsEmployeesGrid .permission-employee-card.selected{border-color:#3a6b94!important;background:var(--accent-soft,#e5eff8)!important;box-shadow:inset -3px 0 #3a6b94!important}
html:root body #permissionsEditor0825{min-width:0;border:1px solid var(--border,#c9d9e8);border-radius:16px;background:var(--surface,#fff);overflow:hidden}
html:root body #permissionsEditor0825 .modal-head{position:static!important;padding:18px!important;border-bottom:1px solid var(--border,#c9d9e8)}
html:root body #permissionsEditor0825 .modal-body{max-height:none!important;overflow:visible!important;padding:18px!important}
html:root body #permissionsEmployeeChoice{display:none!important}
html:root body #permissionsEditor0825 .permission-matrix{display:grid!important;grid-template-columns:1fr!important;gap:12px}
html:root body #permissionsEditor0825 .permission-group-body:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
html:root body #permissionsEditor0825 .permission-select-all{grid-column:1/-1}
html:root body #permissionsEditor0825 .permission-row{display:flex!important;align-items:center;gap:12px;padding:14px;border:1px solid var(--border,#c9d9e8);border-radius:12px;cursor:pointer;transition:background .18s,border-color .18s}
html:root body #permissionsEditor0825 .permission-row:has(input:checked){background:var(--accent-soft,#e5eff8);border-color:#7396b6}
html:root body #permissionsEditor0825 .permission-row input{width:20px;height:20px;flex:0 0 20px;accent-color:#365f84}
html:root body #permissionsEditor0825 .permission-row:has(input:disabled){opacity:.55;cursor:not-allowed}
.permissions-empty-0825{padding:24px}.receipt-count-sheet-0825{margin-top:20px;border-top:2px solid #365f84;padding-top:12px;overflow-wrap:anywhere}.receipt-sheet-entry{margin-top:12px;padding-top:8px;border-top:1px solid #b7c9da}.receipt-sheet-entry h4{margin:8px 0}.receipt-sheet-line{border-bottom:1px dashed #c9d9e8;padding:6px 0;break-inside:avoid}.receipt-sheet-line p{margin:4px 0}
@media(max-width:1000px){html:root body .permissions-workspace-0825{grid-template-columns:220px minmax(0,1fr)!important}html:root body #permissionsEditor0825 .permission-group-body:not([hidden]){grid-template-columns:1fr}}
@media(max-width:680px){html:root body .permissions-workspace-0825{grid-template-columns:1fr!important;padding:10px}html:root body .permissions-workspace-0825>aside{position:static}html:root body #permissionsEmployeesGrid{max-height:240px;overflow:auto}}

html:root body .employee-content:has(#permissionsTab.active) .employee-stats{display:none!important}
html:root body #permissionsEditor0825 #closePermissionsModal{display:none!important}
html:root body #permissionsEditor0825 [hidden]{display:none!important}

html:root body #permissionsEditor0825 .permission-tools{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;margin:0 0 12px!important}
html:root body #permissionsEditor0825 .permission-tools label{display:grid!important;gap:8px!important;width:100%!important}
html:root body #permissionsEditor0825 #permissionSearch{display:block!important;width:100%!important;min-width:0!important;height:42px!important;box-sizing:border-box}
html:root body #permissionsEditor0825 [data-permission-toggle]{display:flex!important;align-items:center;gap:12px;justify-content:space-between;width:100%!important;padding:14px!important;border:0!important;border-radius:10px;background:var(--accent-soft,#e5eff8)!important;color:var(--text,#244466)!important;font:inherit!important;font-weight:700!important;text-align:right;cursor:pointer}
