/* Payroll uses the same outlined fields, searchable selects and table controls as other staff menus. */
html :is(.page, .hr-tools-payslip-shell) .department-payslips {
    --payroll-surface: #fff;
    --payroll-soft: #f7f9fb;
    --payroll-ink: #24384b;
    --payroll-muted: #6b7e91;
    --payroll-edge: #dce5ed;
    --payroll-accent: #0f766e;
    --payroll-tint: #e9f5f2;
    padding: 20px;
    overflow: visible;
    color: var(--payroll-ink);
    background: var(--payroll-surface);
}
html :is(.page, .hr-tools-payslip-shell) .department-payslips .payroll-icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-controls { display: flex; align-items: center; gap: 12px; padding: 8px 0 20px; margin: 0; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field { position: relative; display: block; margin: 0; min-width: 0; flex: 1; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-department { flex: 1.45; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field > span:first-child { position: absolute; z-index: 2; top: -8px; left: 12px; margin: 0; padding: 0 5px; color: var(--payroll-muted); background: var(--payroll-surface); font-size: 12px; font-weight: 500; line-height: 16px; pointer-events: none; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field :is(select, .smooth-select-button) { width: 100%; min-height: 44px; height: 44px; padding: 10px 14px; margin: 0; font-family: inherit; font-size: 14px; font-weight: 400; color: var(--payroll-ink); border: 1px solid var(--payroll-edge); background: var(--payroll-surface); border-radius: 10px; box-shadow: none; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-shell { width: 100%; height: 44px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field :is(select, .smooth-select-button):focus-visible,
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .is-open .smooth-select-button { outline: none; border-color: var(--payroll-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--payroll-accent) 10%, transparent); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .is-disabled .smooth-select-button { color: var(--payroll-muted); background: var(--payroll-soft); cursor: not-allowed; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-menu { border-radius: 12px; border-color: var(--payroll-edge); box-shadow: 0 12px 28px rgba(24, 44, 59, .14); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-menu[popover] { position: fixed; inset: auto; margin: 0; box-sizing: border-box; display: none; transform: none; padding: 6px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-menu[popover]:popover-open { display: grid; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; width: 100%; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-option { display: block; width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; line-height: 1.4; white-space: normal; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-search { display: block; width: 100%; min-height: 36px; margin: 0 0 6px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--payroll-ink); background: var(--payroll-soft); border: 1px solid var(--payroll-edge); border-radius: 8px; outline: none; box-shadow: none; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-search:focus { border-color: var(--payroll-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--payroll-accent) 10%, transparent); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-empty { padding: 12px 10px; font-size: 13px; color: var(--payroll-muted); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field .smooth-select-option { font-weight: 400; font-size: 14px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-control-actions,
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips :is(.btn, .batch-page-button, .batch-icon-button) { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .12s ease; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-show { height: 44px; min-width: 148px; padding: 0 16px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .btn-primary { color: #fff; background: var(--payroll-accent); border: 1px solid var(--payroll-accent); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .btn-outline-secondary { color: var(--payroll-ink); background: var(--payroll-surface); border: 1px solid var(--payroll-edge); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-icon-button { width: 36px; height: 36px; min-height: 36px; padding: 0; color: var(--payroll-accent); background: var(--payroll-tint); border: 1px solid transparent; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-control-actions .batch-icon-button { width: 44px; height: 44px; color: var(--payroll-muted); background: var(--payroll-surface); border-color: var(--payroll-edge); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips :is(.btn, .batch-page-button, .batch-icon-button):active { transform: scale(.97); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips :is(.btn, .batch-page-button, .batch-icon-button):focus-visible { outline: 2px solid var(--payroll-accent); outline-offset: 3px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .btn-primary:hover { background: #09655e; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips :is(.btn-outline-secondary, .batch-page-button, .batch-icon-button):hover { border-color: var(--payroll-accent); background: var(--payroll-tint); color: var(--payroll-accent); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips :is(button, .btn):disabled { opacity: .5; cursor: not-allowed; transform: none; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0 16px; border-top: 1px solid var(--payroll-edge); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-summary-title { min-width: 0; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-summary h2 { margin: 0 0 5px; color: var(--payroll-ink); font-size: 17px; line-height: 1.4; font-weight: 600; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-summary p { margin: 0; color: var(--payroll-muted); font-size: 13px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-metrics { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-count { padding: 6px 10px; border-radius: 7px; background: var(--payroll-tint); color: var(--payroll-accent); font-size: 12px; font-weight: 600; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-net-total { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--payroll-muted); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-net-total strong { font-size: 15px; color: var(--payroll-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-search { display: flex; align-items: center; gap: 10px; min-height: 40px; width: min(300px, 40%); margin: 0; padding: 0 12px; border: 1px solid var(--payroll-edge); border-radius: 10px; color: var(--payroll-muted); background: var(--payroll-surface); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-search:focus-within { border-color: var(--payroll-accent); }
/* The wrapper owns the focus treatment; global input focus rules must not add an inner box. */
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-search input,
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-search input:focus,
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-search input:focus-visible {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    outline: 0 !important;
    box-shadow: none !important;
    transition: none;
    color: var(--payroll-ink);
    background: transparent !important;
    font: inherit;
    font-size: 13px;
}
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-search input::placeholder { color: var(--payroll-muted); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table-wrap { border: 1px solid var(--payroll-edge); border-radius: 12px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table { margin: 0; width: 100%; font-size: 13px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table th { padding: 12px 14px; color: var(--payroll-muted); background: var(--payroll-soft); font-size: 12px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--payroll-edge); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table td { padding: 10px 14px; vertical-align: middle; color: var(--payroll-ink); border-bottom: 1px solid var(--payroll-edge); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table tbody tr:last-child td { border-bottom: 0; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-employee-name { display: block; color: var(--payroll-ink); font-size: 13px; font-weight: 600; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-employee-id { display: block; margin-top: 3px; color: var(--payroll-muted); font-size: 11px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table .batch-number { width: 44px; color: var(--payroll-muted); text-align: center; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-position { max-width: 350px; color: var(--payroll-muted); font-weight: 400; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table .batch-money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table .batch-preview-cell { width: 70px; text-align: center; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-list-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; color: var(--payroll-muted); font-size: 12px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-pagination { display: flex; align-items: center; gap: 10px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-page-button { min-height: 32px; padding: 5px 9px; color: var(--payroll-ink); background: var(--payroll-surface); border: 1px solid var(--payroll-edge); font-weight: 500; font-size: 12px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-page-button .payroll-icon { width: 14px; height: 14px; flex-basis: 14px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 9px; color: var(--payroll-muted); background: var(--payroll-soft); font-size: 12px; line-height: 1.5; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; min-height: 220px; padding: 28px 16px; border-top: 1px solid var(--payroll-edge); text-align: center; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 2px; border-radius: 15px; color: #557a9c; background: #eef4fa; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-empty-icon .payroll-icon { width: 25px; height: 25px; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-empty h2 { margin: 0; color: var(--payroll-ink); font-size: 17px; font-weight: 600; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-empty p { max-width: 460px; margin: 0; color: var(--payroll-muted); font-size: 13px; line-height: 1.6; }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-no-results { padding: 30px; text-align: center; color: var(--payroll-muted); }
html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-loading-indicator { width: 26px; height: 26px; border: 2px solid var(--payroll-edge); border-top-color: var(--payroll-accent); border-radius: 50%; animation: payroll-spin .8s linear infinite; }
@keyframes payroll-spin { to { transform: rotate(360deg); } }
/* Use the exporter's centered window with a scrolling body and fixed close action. */
html .hr-tools-payslip-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
}
html .hr-tools-payslip-shell .department-payslips {
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}
html .hr-tools-payslip-shell .batch-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #dce5ed;
    background: #fff;
}
html[data-theme="dark"] .hr-tools-payslip-shell .batch-modal-footer {
    border-color: #36525f;
    background: #192d37;
}
html[data-theme="dark"] :is(.page, .hr-tools-payslip-shell) .department-payslips { --payroll-surface: #192d37; --payroll-soft: #203740; --payroll-ink: #e0edf1; --payroll-muted: #a0b7c2; --payroll-edge: #36525f; --payroll-accent: #82d2c5; --payroll-tint: #21443f; }
html[data-theme="dark"] :is(.page, .hr-tools-payslip-shell) .department-payslips .btn-primary { background: #0f766e; border-color: #0f766e; color: #fff; }
html[data-theme="dark"] :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-empty-icon { color: #9dbedd; background: #233f52; }
@media (max-width: 1000px) {
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-controls { flex-wrap: wrap; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-department { flex: 1 1 calc(60% - 12px); }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-period { flex: 1 1 calc(40% - 12px); }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-summary { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 600px) {
    html :is(.page, .hr-tools-payslip-shell) .department-payslips { padding: 16px; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-controls { gap: 18px; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-field { flex-basis: 100%; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-control-actions { width: 100%; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-show { flex: 1; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-actions { flex-wrap: wrap; width: 100%; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-list-toolbar { align-items: stretch; flex-direction: column; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-search { width: 100%; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-table { min-width: 640px; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-list-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html :is(.page, .hr-tools-payslip-shell) .department-payslips :is(.btn, .batch-page-button, .batch-icon-button) { transition: none; }
    html :is(.page, .hr-tools-payslip-shell) .department-payslips .batch-loading-indicator { animation: none; }
}
