/* Shared compact table filters; no custom select arrows or detached filter cards. */
.ca-table-filters>th{padding:5px 7px!important;background:rgb(var(--surface-2))!important}.ca-inline-filters{display:flex!important;align-items:end!important;flex-wrap:wrap!important;gap:5px!important;margin:0!important;padding:0!important;max-width:none!important;box-shadow:none!important;border:0!important;background:transparent!important}.ca-inline-filters label{display:grid!important;gap:2px!important;flex:1 1 140px!important;font-size:11px!important;margin:0!important}.ca-inline-filters input,.ca-inline-filters select{height:30px!important;min-height:30px!important;width:100%!important;padding:3px 7px!important;font-size:12px!important;margin:0!important}.ca-inline-filters button[type=submit],.ca-inline-filters button:not([type]){display:none!important}.ca-inline-filters select,.compact-admin select,.pp select,thead select{appearance:none!important;background-image:none!important;padding-right:7px!important;border-radius:4px!important}.ca-inline-filters .nice-select{background-image:none!important}.compact-admin{font-size:13px}.compact-admin label{font-size:12px}.compact-admin input:not([type=checkbox]),.compact-admin select{min-height:30px;height:32px;box-sizing:border-box;font:inherit;padding:4px 7px;border:1px solid rgb(var(--line));border-radius:4px;background:rgb(var(--surface));color:inherit}.compact-admin button{font:inherit;cursor:pointer;border:1px solid rgb(var(--line));padding:5px 10px;border-radius:4px;background:rgb(var(--surface));color:inherit}.ca-bulk{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr)) auto auto;align-items:end;gap:6px;padding:10px;border:1px solid rgb(var(--line));border-radius:6px;background:rgb(var(--surface));max-width:1200px}.ca-bulk>label,.ca-bulk>div{display:grid;gap:4px}.ca-bulk .ca-primary{background:rgb(var(--brand));color:white;min-height:32px}.ca-choice{position:relative;min-width:0;border:1px solid rgb(var(--line));border-radius:4px;background:rgb(var(--surface));font-size:12px}.ca-choice summary{list-style:none;cursor:pointer;padding:7px;min-height:30px;box-sizing:border-box;white-space:normal;line-height:1.3}.ca-choice summary::-webkit-details-marker,.ca-menu summary::-webkit-details-marker{display:none}.ca-choice[open]{border-color:rgb(var(--brand))}.ca-options{display:grid;gap:0;max-height:210px;overflow:auto;border-top:1px solid rgb(var(--line));padding:3px}.ca-options label{display:flex!important;align-items:center;gap:6px;padding:5px!important;margin:0;cursor:pointer;text-align:left;color:inherit!important}.ca-options label:hover{background:rgb(var(--surface-2))}.ca-options input[type=checkbox]{appearance:auto;width:15px!important;height:15px!important;min-height:0!important;margin:0!important;padding:0!important;flex:none}.ca-save-state{font-size:11px;color:rgb(var(--muted));display:block}.ca-save-state:empty,.ca-filter-error:empty{display:none}.ca-save-state[data-error],.ca-filter-error{color:#b42318}.ca-success{color:#167048}.ca-menu{position:relative;margin-left:auto}.ca-menu summary{list-style:none;cursor:pointer;padding:2px 10px;font-size:22px;line-height:1;border:1px solid rgb(var(--line));border-radius:4px}.ca-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:210px;padding:4px;display:grid;gap:2px;background:rgb(var(--surface));border:1px solid rgb(var(--line));box-shadow:0 5px 16px #0002}.ca-menu button{text-align:left;border:0!important}.ca-menu hr{width:100%;margin:2px 0;border:0;border-top:1px solid rgb(var(--line))}.ca-filter-pending{opacity:.6;pointer-events:none}.ca-subjects{display:grid;gap:0;max-height:230px;overflow:auto;border:1px solid rgb(var(--line));border-radius:4px}.ca-subjects a{display:flex;justify-content:space-between;gap:8px;color:inherit;text-decoration:none;padding:7px;border-bottom:1px solid rgb(var(--line));font-size:12px}.ca-subjects a:hover,.ca-subjects a[aria-current]{background:rgb(var(--surface-2))}.ca-subjects small{color:rgb(var(--muted));font-size:11px}.ca-overrides{border:1px solid rgb(var(--line));border-radius:4px;padding:8px;margin:4px 0;display:grid;gap:5px}.ca-overrides b{font-size:12px}.ca-overrides span{font-size:12px}.pp{gap:6px!important}.pp-head{padding:6px 0!important}.pp-module summary{padding:7px 9px!important}.pp-module summary:before{display:none!important}.pp-module-body{padding:7px 9px!important}.pp-filters{gap:5px!important;margin-bottom:5px!important}.pp-top{display:block!important}.pp-action{padding:5px!important}.pp input,.pp select{height:31px!important}.pp-grid thead input{font-weight:normal}.ca-choice-summary{color:rgb(var(--muted))}@media(max-width:900px){.ca-bulk{grid-template-columns:repeat(2,minmax(130px,1fr))}}@media(max-width:480px){.ca-bulk{grid-template-columns:1fr}.ca-subjects a{flex-wrap:wrap}}

.payroll-compact thead input,.payroll-compact thead select{display:block;width:100%;min-width:0;margin:4px 0 0!important;height:30px!important;min-height:30px!important;padding:3px 6px!important;box-sizing:border-box;font:inherit;font-weight:400;border:1px solid rgb(var(--line));background:rgb(var(--surface));color:inherit;border-radius:4px}.payroll-compact .tg-management-toolbar{padding:0!important;margin:0 0 5px!important;min-height:0!important}.payroll-compact .payroll-caption{margin:4px 0!important}.compact-admin .at-grid th:first-child:has(#select-page){width:32px}.compact-admin .at-grid{min-width:950px}.ca-zone-form{min-width:180px}

body .payroll-compact{padding:0!important}.payroll-compact .tg-management-toolbar{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}.payroll-compact .tg-management-actions{padding:0!important;margin:0!important}.payroll-compact .tg-settings-tabs{margin-bottom:6px!important}.pp-empty{padding:12px!important}.ca-subjects>span{padding:8px}.compact-admin .at-bar{margin-bottom:5px}

.pp-action button{font-size:11px!important;padding:2px!important}.pp-module-body .pp-base select{min-width:130px}

#overtimeTable th:first-child,#overtimeTable td:first-child{width:40px!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important}

.payroll-compact .tg-management-toolbar.tg-sheet-tools{display:flex!important;justify-content:flex-end;align-items:center;gap:5px!important;margin:0 0 4px!important}.payroll-compact .tg-management-toolbar>form:empty{display:none}.payroll-compact .tg-management-toolbar .tg-management-actions{margin-left:auto!important}
/* Editable salary sheets: keep controls inside their cells. */
.payroll-compact .tg-sheet-tools{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:4px 0}.payroll-excel{display:inline-flex;align-items:center;justify-content:center;width:32px;height:30px;border:1px solid rgb(var(--line));border-radius:4px;background:rgb(var(--surface));flex:none}.payroll-excel:hover{background:rgb(var(--surface-2))}.payroll-compact .wf-table th,.payroll-compact .wf-table td{padding:6px 8px}.payroll-compact .wf-table td small{display:block;font-size:11px;color:rgb(var(--muted));margin:2px 0}.payroll-compact .wf-table input,.payroll-compact .wf-table select{min-width:0;max-width:100%;box-sizing:border-box;height:30px;margin:0;padding:4px 6px}.payroll-compact form[data-autosave]{display:flex;align-items:center;gap:6px;margin:0;flex-wrap:wrap}.payroll-compact form[data-autosave] input[type=number]{flex:1 1 100px;width:100px}.autosave-state{font-size:11px;color:#167048;line-height:1.3;overflow-wrap:anywhere}.autosave-state[data-error="1"]{color:#b42318}.personal-rates input[role=switch]{appearance:none!important;width:32px!important;height:18px!important;min-height:18px!important;border:0!important;border-radius:20px;background:#b9c0c9;position:relative;flex:none!important;cursor:pointer;padding:0!important}.personal-rates input[role=switch]::after{content:'';position:absolute;top:2px;left:2px;background:white;width:14px;height:14px;border-radius:50%}.personal-rates input[role=switch]:checked{background:#17804c}.personal-rates input[role=switch]:checked::after{left:16px}.personal-rates input[role=switch]:focus-visible{outline:2px solid rgb(var(--brand));outline-offset:2px}

body .payroll-compact.compact-admin{padding:0!important}body .payroll-compact.compact-admin .tg-sheet-tools{padding:0!important;margin:4px 0!important;min-height:32px!important}body .payroll-compact.compact-admin .tg-settings-tabs{margin:0 0 4px!important}body .payroll-compact.compact-admin .tg-management-actions{margin:0!important}body .payroll-compact.compact-admin .wf-table-wrap{overflow-x:auto!important}body .payroll-compact.compact-admin table{min-width:580px!important;table-layout:fixed!important}body .payroll-compact.compact-admin table th,body .payroll-compact.compact-admin table td{padding:5px 7px!important}body .payroll-compact.compact-admin input:not([role=switch]),body .payroll-compact.compact-admin select{height:30px!important;min-height:30px!important;padding:4px 6px!important;border-radius:4px;font-size:12px}body .payroll-compact.compact-admin .wf-rate-table{min-width:760px!important}

/* A branch picker overlays the form without moving its date/status fields. */
.ca-bulk .ca-choice[open]>.ca-options{position:absolute;left:-1px;right:-1px;top:100%;z-index:50;min-width:240px;max-width:calc(100vw - 48px);max-height:280px;background:rgb(var(--surface));border:1px solid rgb(var(--line));border-radius:5px;box-shadow:0 8px 24px #0002}
.ca-bulk .ca-choice summary{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ca-bulk [hidden]{display:none!important}
