/* One scrolling policy for tables and modal titles throughout the app. */
.table-wrap{max-height:min(65vh,640px);overscroll-behavior:auto;scrollbar-gutter:stable;isolation:isolate}
.table-wrap table{position:relative}
.table-wrap thead{position:sticky;top:0;z-index:3;background:var(--panel2,#1d3853)}
.table-wrap thead th{position:static;background:var(--panel2,#1d3853)}
.table-wrap tfoot th,.table-wrap tfoot td{font-weight:700;background:var(--panel2,#1d3853);color:var(--cyan,#00ffff);border-top:2px solid var(--border,#5386b6)}
.statistics-total{display:flex;justify-content:space-between;gap:12px;flex-shrink:0;margin-top:12px;padding-top:12px;border-top:2px solid var(--border,#5386b6);color:var(--cyan,#00ffff);font-weight:700}
dialog .dialog-heading{position:sticky;top:-24px;z-index:10;isolation:isolate;background:var(--panel,#112235);padding:12px 0;border-bottom:1px solid var(--border,#5386b6)}
dialog>h2:first-child{position:sticky;top:-24px;z-index:10;background:var(--panel,#112235);padding:12px 0}
.report-edit-dialog .dialog-heading{top:-24px}
@media(max-width:700px){dialog .dialog-heading,dialog>h2:first-child,.report-edit-dialog .dialog-heading{top:-16px}.table-wrap{max-height:60vh}}
@media print{.table-wrap{max-height:none!important;height:auto!important;overflow:visible!important}.table-wrap thead{position:static;display:table-header-group}.table-wrap tfoot{display:table-row-group}dialog .dialog-heading{position:static}}
.employee-pagination .pager-controls{flex-wrap:wrap;justify-content:flex-end;gap:10px}
.page-numbers,.page-jump{display:flex;align-items:center;gap:6px;margin:0}
.page-numbers button{min-width:38px;padding:6px 10px}
#employeePages button{background:var(--panel2);color:var(--text);border-color:var(--border)}
#employeePages [aria-current="page"]{background:#245bc4;color:#fff;border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan)}
.page-numbers [aria-current="page"]{background:#245bc4;color:#fff;border-color:#69a8ff;opacity:1}
.page-gap{color:var(--muted);padding:0 3px}.page-jump input{width:76px;min-width:0;margin:0}.page-jump label{white-space:nowrap;font-size:14px}
#profileDialog{width:min(1120px,96vw)}#profileMeta{margin:5px 0 0;font-size:14px}
.profile-dialog .dialog-heading>div{min-width:0}.profile-dialog .dialog-heading h2,#profileMeta{overflow-wrap:anywhere}
.profile-dialog .dialog-heading{align-items:flex-start}.profile-dialog .dialog-heading h2{margin:0;font-size:24px}
.profile-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.profile-summary article{border:1px solid var(--border);border-top:3px solid var(--cyan);border-radius:7px;background:var(--panel2);padding:13px}
.profile-summary small,.profile-facts dt{display:block;color:var(--muted);margin-bottom:6px;font-size:14px}
.profile-summary strong{display:block;font-size:18px;overflow-wrap:anywhere}.profile-summary .small{margin-top:5px}
.profile-section{padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--panel2);margin-bottom:16px}
.profile-section h3{margin:0 0 12px;font-size:18px}.profile-assignment{border-left:4px solid var(--cyan)}
.profile-assignment.profile-special{border-left-color:#eab54b}.profile-assignment .posting-current-place{display:block;font-size:21px;margin:7px 0 16px;overflow-wrap:anywhere}
.profile-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}
.profile-facts dd{margin:0;overflow-wrap:anywhere;font-weight:600}.profile-facts .wide{grid-column:1/-1}.profile-section p{overflow-wrap:anywhere}
.profile-section summary{cursor:pointer;font-weight:700;font-size:18px}.profile-section .timeline{margin-top:18px;margin-bottom:0}
.profile-section .posting-period{padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:var(--panel);margin-bottom:12px}
.profile-dialog .dialog-actions{position:sticky;bottom:-24px;background:var(--panel);padding:12px 0;z-index:10;flex-wrap:wrap}
@media(max-width:800px){.profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-columns{grid-template-columns:1fr}.employee-pagination .pager-controls{justify-content:flex-start}}
@media(max-width:700px){.profile-dialog .dialog-actions{bottom:-16px}#profileDialog{width:96vw}.profile-facts{grid-template-columns:1fr}.profile-facts .wide{grid-column:auto}.page-jump{flex-wrap:wrap}}
