/* Paydesk application layout and responsive controls. */
body:has(.live-shell),
body:has(.employee-workspace) {
  --bg: #f6f7f9;
  --ink: #202d35;
  --muted: #62727f;
  --line: #e0e5e9;
  --primary: #126d5b;
  font-size: 13px;
}
.role-access {
  max-width: 1000px;
  min-width: 0;
}
.access-role-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.access-role-heading > .field {
  width: 240px;
  max-width: 100%;
}
.access-role-heading small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.permission-group {
  min-width: 0;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.permission-group legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
}
.permission-group p {
  clear: both;
  color: var(--muted);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.permission-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 16px;
}
.permission-options .check-field {
  min-height: 40px;
  margin: 0;
}
.permission-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.access-save-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0 12px;
}
.access-save-row > .field {
  width: 280px;
  max-width: 100%;
}
.access-boundaries {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.access-boundaries h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.access-boundaries dl {
  margin: 16px 0;
}
.access-boundaries dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0;
}
.access-boundaries dt {
  width: 140px;
  font-weight: 600;
}
.access-boundaries dd {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.employee-workspace {
  min-height: 100dvh;
}
.employee-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(20px, calc((100% - 1160px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.employee-topbar .brand {
  min-width: 0;
}
.employee-topbar .brand small {
  overflow-wrap: anywhere;
}
.employee-topbar .button-row {
  flex-shrink: 0;
}
.employee-main {
  max-width: 1200px;
  margin: auto;
  padding: 28px 20px 48px;
}
.employee-main h1 {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.employee-main h2 {
  font-size: 17px;
}
.employee-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.employee-clock p {
  margin-top: 8px;
}
.employee-clock > .btn {
  min-width: 120px;
  min-height: 48px;
  flex-shrink: 0;
}
.employee-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.employee-filters .field {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 320px;
}
.employee-filters .inline-error:not(:empty) {
  flex-basis: 100%;
}
.employee-time-totals {
  display: flex;
  gap: 32px;
  padding: 12px 0;
}
.employee-time-totals small,
.employee-time-totals b {
  display: block;
}
.employee-time-totals b {
  font-size: 24px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.employee-time-totals > div:first-child b {
  color: #126d5b;
}
.employee-time-totals > div:last-child b {
  color: #966619;
}
#access-employee-results {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 180px;
  overflow: auto;
}
.employee-registration-summary {
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.open-clock-person {
  display: grid;
  gap: 4px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.payroll-monthly-options {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.payroll-monthly-options > summary {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.workflow-options {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.workflow-options > summary {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.setup-connections {
  margin-top: 14px;
}
.setup-connections > .setup-rows {
  margin-top: 10px;
}
.workday-field {
  min-width: 0;
}
.workday-duration {
  display: block;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
#access-employee-results .btn {
  white-space: normal;
  text-align: left;
}
.employee-workspace .table-wrap {
  max-width: 100%;
  overflow: auto;
}
.employee-workspace .empty {
  width: min(100%, calc(100vw - 24px));
  min-height: 120px;
}
.employee-history-mobile {
  display: none;
}
.employee-history-desktop td > small {
  display: block;
  margin-top: 4px;
}
.employee-computation {
  margin-top: 10px;
  font-size: 12px;
}
.employee-computation summary {
  cursor: pointer;
  color: #126d5b;
  padding: 4px 0;
}
.employee-computation summary:focus-visible {
  outline: 2px solid #126d5b;
  outline-offset: 3px;
}
.employee-computation dl {
  margin-top: 8px;
  min-width: 170px;
}
.employee-computation dl > div,
.employee-card-values > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
}
.employee-computation dd,
.employee-card-values dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.employee-time-calculation dl > div:last-child {
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.live-summary button.clock-review-task {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
@media (max-width: 640px) {
  .permission-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .employee-history-desktop {
    display: none;
  }
  .employee-history-mobile {
    display: grid;
    gap: 10px;
  }
  .employee-history-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }
  .employee-history-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .employee-history-card header > :first-child {
    min-width: 0;
  }
  .employee-history-card h3 {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .employee-history-card .badge {
    flex-shrink: 0;
  }
  .employee-history-card :is(p, dt, dd, small) {
    overflow-wrap: anywhere;
  }
  .employee-history-card small {
    display: block;
    margin-top: 4px;
  }
  .employee-card-values {
    margin-top: 10px;
    font-size: 13px;
  }
  .employee-history-card .employee-computation {
    font-size: 13px;
  }
  .employee-history-card .employee-computation dl {
    min-width: 0;
  }
  .employee-attendance-note {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    line-height: 1.5;
  }
  .employee-card-net {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
  }
  .employee-card-net b {
    font-size: 20px;
    color: #126d5b;
    overflow-wrap: anywhere;
  }
  .employee-history-empty {
    padding: 24px 12px;
    text-align: center;
    border-block: 1px solid var(--line);
    color: var(--muted);
  }
}
@media (max-width: 520px) {
  .employee-main {
    padding: 20px 12px 36px;
  }
  .employee-topbar {
    padding: 14px 12px;
  }
  .employee-clock {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .employee-clock > .btn {
    width: 100%;
  }
  .employee-main .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .employee-filters .field {
    flex-basis: 120px;
  }
}
.inline-error {
  color: #a4373b;
  background: #fff2f2;
  border-left: 3px solid #b74749;
  padding: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.inline-error:empty {
  display: none;
}
.modal #entry-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 90dvh;
}
.modal #entry-form .modal-head,
.modal #entry-form .modal-foot {
  flex-shrink: 0;
}
.modal #entry-form .modal-body {
  min-height: 0;
  flex: 1;
}
body.modal-open {
  overflow: hidden;
}
.live-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.setup-checklist {
  margin-bottom: 28px;
}
.setup-next-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin: 12px 0;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  color: var(--ink);
}
.setup-next-action:hover { background: var(--line); }
.setup-next-action > span:not(.setup-next-icon) { min-width: 0; flex: 1; }
.setup-next-action small, .setup-next-action strong { display: block; }
.setup-next-action small { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.setup-next-action strong { font-size: 16px; overflow-wrap: anywhere; }
.setup-next-action svg { width: 20px; height: 20px; flex-shrink: 0; }
.setup-next-icon { color: var(--primary); display: flex; }
.payroll-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}
.payroll-stages li {
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.payroll-stages [aria-current="step"] { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.payroll-stage-number { display: block; margin-bottom: 5px; font-size: 11px; }
.payroll-stage-label { display: block; }
.payroll-detail-employee { display: grid; gap: 4px; min-width: 140px; overflow-wrap: anywhere; }
.payroll-detail-employee small { color: var(--muted); }
.payroll-stages-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payroll-run-actions { align-items: center; }
.payroll-run-actions > .primary { white-space: nowrap; }
@media (max-width: 640px) {
  #finance-table .button-row.payroll-run-actions { flex-wrap: wrap; }
}
.payroll-detail-actions { align-items: center; }
.employee-profile-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 20px;
}
.employee-profile-account > div { min-width: 0; }
.employee-profile-account h3 { font-size: 14px; margin: 0 0 10px; }
.employee-profile-account b { overflow-wrap: anywhere; }
.employee-account-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.employee-profile-account .button-row { flex-wrap: wrap; }
.setup-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.setup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.setup-row:hover {
  background: var(--surface);
}
.setup-row > svg,
.setup-glyph svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.setup-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--muted);
}
.setup-glyph.recorded {
  color: var(--primary);
}
.setup-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.setup-label b,
.setup-label small {
  display: block;
}
.setup-label small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 600px) {
  .setup-rows {
    grid-template-columns: minmax(0, 1fr);
  }
}
.live-summary section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.live-summary section[hidden] {
  display: none;
}
@media (min-width: 961px) {
  .live-summary.live-summary--simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.live-summary h2 {
  margin-bottom: 18px;
}
.live-summary .task-row {
  padding-left: 0;
  padding-right: 0;
}
.live-shell .sidebar-bottom .btn {
  margin-top: 15px;
}
.live-shell .table td {
  max-width: 330px;
  overflow-wrap: anywhere;
}
.live-shell .employee-cell {
  min-width: 170px;
}
.live-shell .table small {
  display: block;
  margin-top: 5px;
}
.live-shell .table-footer {
  gap: 12px;
  flex-wrap: wrap;
}
.record-pagination label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.record-date {
  white-space: nowrap;
}
.record-money {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#ledger-history .table {
  min-width: 900px;
}
#ledger-history .table td:nth-child(5) {
  min-width: 200px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
#ledger-history .table small {
  display: block;
  margin-top: 5px;
}
#ledger-history .table td:nth-child(6) {
  min-width: 120px;
}
#document-records .table {
  min-width: 860px;
}
#document-records .table td {
  vertical-align: top;
}
#document-records .table td:first-child,
#document-records .table td:nth-child(4) {
  min-width: 210px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
#document-records .table td:nth-child(3) {
  min-width: 150px;
}
#document-records .table small {
  display: block;
  margin-top: 5px;
}
.live-shell .sidebar nav {
  min-height: 0;
  overflow-y: auto;
}
.finance-policy-days {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.finance-policy-days label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.finance-detail-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.comparison-runs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comparison-run {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.comparison-run > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.comparison-runs small {
  display: block;
  margin-top: 5px;
}
.comparison-runs .eyebrow {
  display: block;
  margin-bottom: 7px;
}
.comparison-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}
.comparison-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comparison-summary dt {
  color: var(--muted);
  font-size: 12px;
}
.comparison-summary dd {
  margin: 6px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .comparison-runs {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .comparison-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#finance-table .table {
  min-width: 900px;
}
#finance-table .table td {
  overflow-wrap: normal;
  white-space: nowrap;
}
#finance-table .table td:first-child {
  min-width: 210px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#finance-table .button-row {
  flex-wrap: nowrap;
}
[data-module^="opening_corrections:"] #finance-table .table {
  table-layout: fixed;
  min-width: 1040px;
}
[data-module^="opening_corrections:"] #finance-table .table td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
[data-module^="opening_corrections:"] #finance-table th:nth-child(1),
[data-module^="opening_corrections:"] #finance-table th:nth-child(6) {
  width: 12%;
}
[data-module^="opening_corrections:"] #finance-table th:nth-child(2) {
  width: 13%;
}
[data-module^="opening_corrections:"] #finance-table th:nth-child(3) {
  width: 11%;
}
[data-module^="opening_corrections:"] #finance-table td:nth-child(3) {
  white-space: nowrap;
}
[data-module^="opening_corrections:"] #finance-table th:nth-child(4) {
  width: 14%;
}
[data-module^="opening_corrections:"] #finance-table th:nth-child(5) {
  width: 18%;
}
[data-module^="opening_corrections:"] #finance-table th:nth-child(7) {
  width: 8%;
}
[data-module^="opening_corrections:"] #finance-table th:nth-child(8) {
  width: 12%;
}
.record-pagination .control {
  width: 72px;
  min-height: 34px;
}
.record-pagination .button-row {
  flex-wrap: wrap;
  gap: 8px;
}
.record-pagination .mono {
  white-space: nowrap;
  min-width: 50px;
  text-align: center;
}
.live-shell .head-actions {
  justify-content: flex-end;
}
.live-shell .panel-body {
  padding: 20px;
}
.audit-detail {
  font-family: monospace;
  font-size: 11px;
  white-space: pre-wrap;
}
.field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
}
.live-ledger {
  margin-top: 22px;
}
.live-import-preview {
  min-width: 0;
  margin-top: 20px;
}
#import-sheet:not(:empty) {
  margin-top: 12px;
}
.live-import-preview .record-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.live-import-preview .table-wrap {
  max-height: 310px;
  overflow: auto;
}
.live-import-preview .table {
  min-width: 720px;
}
.live-import-preview th,
.live-import-preview td {
  min-width: 120px;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.live-import-preview th:first-child,
.live-import-preview td:first-child {
  min-width: 70px;
}
.live-import-preview th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.live-shell .main {
  min-height: calc(100dvh - 70px);
}
.live-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}
.live-shell .sidebar {
  width: 248px;
  padding: 22px 14px 14px;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.live-shell .brand {
  padding: 0 8px 22px;
}
.live-shell .brand b {
  color: var(--ink);
}
.live-shell .brand small {
  font-size: 11px;
}
.live-shell .workspace {
  padding: 11px;
  background: #f5f7f8;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.live-shell .workspace b {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.live-shell .workspace > .lucide {
  flex-shrink: 0;
  color: var(--muted);
}
.live-shell .sidebar nav {
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #c3cdd2 transparent;
}
.live-shell .nav-label {
  padding: 0 11px;
  margin: 19px 0 7px;
  color: #677982;
  font-size: 10px;
}
.nav-group:first-child .nav-label {
  margin-top: 7px;
}
.live-shell .nav-link {
  min-height: 40px;
  padding: 9px 11px;
  margin: 2px 0;
  color: #485a65;
  gap: 10px;
  line-height: 1.4;
  border-radius: 5px;
}
.live-shell .nav-link > .lucide {
  flex-shrink: 0;
  color: #7a8b93;
}
.live-shell .nav-link.active {
  background: #e6f1ed;
  color: #12604f;
  font-weight: 650;
  box-shadow: inset 3px 0 #126d5b;
}
.live-shell .nav-link.active > .lucide {
  color: #126d5b;
}
.live-shell .nav-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 5px;
  color: #485a65;
  cursor: pointer;
  list-style: none;
}
.live-shell .nav-more > summary::-webkit-details-marker {
  display: none;
}
.live-shell .nav-more > summary:hover {
  background: #edf1f2;
}
.live-shell .nav-more > summary:focus-visible {
  outline: 2px solid #126d5b;
  outline-offset: -2px;
}
.live-shell .nav-more > summary > .lucide {
  flex-shrink: 0;
  color: #7a8b93;
}
.live-shell .nav-more[open] > summary > .lucide {
  transform: rotate(90deg);
}
.live-shell .nav-more > .nav-link {
  margin-left: 14px;
}
.live-shell .sidebar-bottom {
  flex-shrink: 0;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.live-shell .sidebar-bottom .btn {
  margin-top: 8px;
}
.navigation-shade,
.btn.navigation-close {
  display: none;
}
.live-shell .topbar {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 0 28px;
}
.live-shell .breadcrumb {
  min-width: 0;
}
.live-shell .breadcrumb b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.live-shell .top-actions {
  flex-shrink: 0;
  gap: 8px;
}
.live-shell .user-info {
  margin-right: 10px;
}
.live-shell .avatar {
  background: #eef0f5;
  color: #535d7e;
}
.live-shell .main {
  min-height: calc(100dvh - 64px);
  padding: 26px 28px 36px;
}
.live-shell .page-head {
  align-items: center;
  margin-bottom: 24px;
}
.live-shell .page-head > div:first-child {
  min-width: 0;
}
.live-shell h1 {
  font-size: 25px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.live-shell .eyebrow {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.live-shell .btn,
body:has(.live-shell) .modal .btn {
  min-height: 38px;
  font-weight: 550;
}
.live-shell .btn.icon,
body:has(.live-shell) .modal .btn.icon {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  flex-shrink: 0;
}
.live-shell :is(button, a, input, select, textarea):focus-visible,
body:has(.live-shell)
  .modal
  :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #238978;
  outline-offset: 3px;
}
.overview-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0 22px;
  font-size: 12px;
  color: var(--muted);
}
.live-shell .stats {
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.live-shell .stat {
  padding: 18px 20px;
}
.live-shell .stat-label {
  font-size: 12px;
  gap: 10px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #e8f3ed;
  border-radius: 5px;
  flex-shrink: 0;
}
.live-shell .stat-icon .lucide {
  color: #23755f;
}
.live-shell .stat:nth-child(2) .stat-icon {
  background: #fff1d8;
}
.live-shell .stat:nth-child(2) .lucide {
  color: #93691d;
}
.live-shell .stat:nth-child(3) .stat-icon {
  background: #edf0fb;
}
.live-shell .stat:nth-child(3) .lucide {
  color: #5a68a1;
}
.live-shell .stat:nth-child(4) .stat-icon {
  background: #e8f3f8;
}
.live-shell .stat:nth-child(4) .lucide {
  color: #247c9b;
}
.live-shell .stat-value {
  font-size: 26px;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.live-shell .notice {
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.live-shell .notice a {
  margin-left: auto;
  font-weight: 600;
}
.live-summary {
  gap: 28px;
}
.live-summary section {
  border-top: 0;
  padding-top: 8px;
}
.summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.summary-heading h2 {
  margin: 0;
  font-size: 14px;
}
.summary-heading a {
  padding: 4px;
}
.live-shell .task-row {
  min-height: 66px;
}
.live-shell .task-text b {
  line-height: 1.45;
}
.live-shell .task-text small {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.live-shell .toolbar {
  padding: 14px 16px;
  background: white;
  border-top: 1px solid var(--line);
  min-width: 0;
  align-items: flex-start;
}
.live-shell .filters {
  gap: 8px;
  min-width: 0;
}
.live-shell .filters #search {
  min-width: 200px;
}
.live-shell .control,
body:has(.live-shell) .modal .control {
  min-height: 38px;
  font-size: 12px;
  border-color: #ced8de;
}
.live-shell .filters input[type="date"] {
  width: 148px;
}
.live-shell .panel {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.live-shell .table-wrap {
  scrollbar-width: thin;
  scrollbar-color: #b8c6ce #f4f6f8;
}
#records .table {
  min-width: 820px;
}
#records .table td:first-child {
  min-width: 200px;
}
.live-shell .table-wrap:focus-visible {
  outline: 2px solid #238978;
  outline-offset: -2px;
}
.live-shell .table th {
  background: #eef2f5;
  color: #526572;
  padding: 13px 16px;
  font-size: 10px;
}
.live-shell .table td {
  padding: 15px 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.live-shell .table tbody tr:nth-child(even) {
  background: #fcfdfe;
}
.live-shell .table tbody tr:hover {
  background: #f2f7f6;
}
.live-shell .table td:has(.record-money) {
  text-align: right;
}
.live-shell .table-footer {
  padding: 13px 16px;
  background: white;
}
.live-shell .empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 36px 20px;
}
.live-shell .empty .lucide {
  color: #8396a1;
  width: 30px;
  height: 30px;
}
.live-shell .badge {
  padding: 4px 8px;
  font-weight: 550;
}
.live-shell .panel-head {
  padding: 16px 0;
}
.live-shell #organization-form,
.live-shell #view-content > .section-space {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.live-shell #organization-form {
  max-width: 800px;
}
.live-shell #organization-form .field b {
  padding-top: 8px;
}
body:has(.live-shell) .modal-backdrop {
  background: #182a3b66;
  backdrop-filter: none;
}
body:has(.live-shell) .modal-head {
  padding: 18px 22px;
}
body:has(.live-shell) .modal-body {
  padding: 22px;
}
body:has(.live-shell) .modal-foot {
  padding: 14px 22px;
  background: #f6f8fa;
}
body:has(.live-shell) .field {
  font-size: 12px;
  line-height: 1.45;
}
body:has(.live-shell) .modal-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
body:has(.live-shell) .form-section h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #44636d;
  font-size: 12px;
}
.error-page {
  padding: 40px 24px;
  max-width: 650px;
  margin: auto;
}
.error-page h1 {
  margin-bottom: 16px;
}
@media (max-width: 960px) {
  .live-shell {
    grid-template-columns: 1fr;
  }
  .live-shell .content {
    grid-column: 1;
  }
  .live-shell .sidebar {
    width: 264px;
  }
  .btn.navigation-close {
    display: inline-flex;
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .navigation-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    border: 0;
    padding: 0;
    background: #182a3b66;
    cursor: pointer;
  }
  .live-shell .topbar {
    padding: 0 20px;
  }
  .live-shell .main {
    padding: 24px 20px 32px;
  }
  .live-summary {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 640px) {
  .live-shell .topbar {
    height: 58px;
    padding: 0 16px;
    gap: 8px;
  }
  .live-shell .main {
    padding: 22px 16px 28px;
  }
  .live-shell h1 {
    font-size: 22px;
  }
  .live-shell .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
  }
  .live-shell .head-actions {
    width: 100%;
  }
  .live-shell .head-actions .primary {
    order: -1;
  }
  .live-shell .breadcrumb {
    gap: 7px;
  }
  .live-shell .stat {
    padding: 14px;
  }
  .live-shell .stat-label {
    font-size: 11px;
    align-items: flex-start;
  }
  .live-shell .stat-value {
    font-size: 20px;
  }
  .stat-icon {
    width: 26px;
    height: 26px;
  }
  .live-shell .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-shell .filters #search {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .live-shell .filters input[type="date"] {
    width: 100%;
  }
  .live-shell .toolbar {
    padding: 12px;
    gap: 10px;
  }
  .live-shell .notice {
    flex-wrap: wrap;
  }
  .live-shell .notice a {
    margin-left: 27px;
  }
  body:has(.live-shell) .modal-head,
  body:has(.live-shell) .modal-body {
    padding: 18px;
  }
  body:has(.live-shell) .modal-foot {
    padding: 12px 18px;
  }
  #finance-records .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #finance-records .filters .control {
    width: 100%;
    min-height: 40px;
  }
  #finance-records #search,
  #finance-records #finance-report {
    grid-column: 1 / -1;
  }
  .live-shell .top-actions .user-info {
    display: none;
  }
  .live-shell .head-actions {
    justify-content: flex-start;
  }
  .live-shell .form-grid {
    grid-template-columns: 1fr;
  }
  .live-shell .toolbar {
    flex-wrap: wrap;
  }
  .live-shell .filters {
    width: 100%;
  }
  .live-shell .filters .control {
    flex: 1;
    min-width: 0;
  }
  .live-shell .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-shell .stat-value {
    font-size: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .live-shell .table th,
  .live-shell .table td {
    padding: 12px;
  }
}
.backup-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0;
  border-block: 1px solid var(--line, #dce2e8);
}
.backup-status-grid span {
  display: block;
  color: #526174;
  font-size: 12px;
  margin-bottom: 6px;
}
.backup-status-grid b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.backup-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 28px;
}
.backup-sections section {
  min-width: 0;
}
.backup-sections .span2 {
  grid-column: 1 / -1;
}
.backup-sections .panel-head {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.backup-details {
  margin: 20px 0;
}
.backup-details div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e1e7eb;
  font-size: 13px;
}
.backup-details dt {
  color: #526174;
}
.backup-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.backup-filename {
  display: block;
  min-width: 180px;
  max-width: 310px;
  overflow-wrap: anywhere;
}
.backup-guide {
  padding-left: 24px;
}
.backup-guide li {
  margin-bottom: 14px;
}
.backup-guide code {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .backup-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .backup-sections {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .backup-details div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
@media print {
  .live-shell .main {
    padding: 0;
  }
  .live-shell .sidebar,
  .navigation-shade,
  .navigation-close {
    display: none !important;
  }
  body:has(.live-shell) .modal-body {
    padding: 0;
  }
  .live-shell .table th,
  .live-shell .table td {
    padding: 8px;
  }
  #records .table,
  #finance-table .table,
  #records .table td:first-child {
    min-width: 0;
  }
}
.payslip-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.payslip-layout-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: -4px 0 20px;
}
.payslip-layout-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  font: inherit;
  cursor: pointer;
}
.payslip-layout-tabs button[aria-selected="true"] {
  color: #116b58;
  border-bottom-color: #116b58;
}
.payslip-layout-tabs button:disabled,
.payslip-layout-tabs button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.6;
}
.payslip-layout-tabs svg {
  width: 16px;
  height: 16px;
}
.payslip-layout-panel[hidden] {
  display: none;
}
.payslip-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}
.payslip-preview-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.payslip-preview-toolbar select {
  padding: 7px 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  color: var(--text);
}
.payslip-preview-viewport {
  overflow: auto;
  height: 580px;
  max-height: 58dvh;
  background: #e8ecee;
  border: 1px solid var(--line);
}
.payslip-preview-canvas {
  position: relative;
  margin: auto;
}
.payslip-preview-frame {
  position: absolute;
  inset: 0 auto auto 0;
  border: 0;
  display: block;
  transform-origin: top left;
}
.save-spinner {
  animation: save-spin 0.9s linear infinite;
}
@keyframes save-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .save-spinner {
    animation: none;
  }
}
.run-staff-section,
.run-check-section {
  border-top: 1px solid var(--line, #e2e8e5);
  margin-top: 20px;
  padding-top: 16px;
  min-width: 0;
}
.run-picker-heading,
.run-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.run-picker-heading h3 {
  margin: 0;
  font-size: 16px;
}
.run-picker-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.run-picker-commands {
  margin: 12px 0;
}
[data-run-staff] {
  min-height: 80px;
  margin-bottom: 14px;
}
[data-run-staff] .table-wrap,
[data-run-check] .table-wrap {
  max-height: 280px;
  overflow: auto;
}
[data-run-staff] th,
[data-run-check] th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fa;
}
[data-run-check] .table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
[data-run-check] th:first-child {
  width: 30%;
}
[data-run-check] th:last-child {
  width: 25%;
}
[data-run-check] td {
  overflow-wrap: anywhere;
  white-space: normal;
}
[data-run-staff] small,
[data-run-check] small {
  display: block;
}
[data-run-staff] input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal, #087f78);
}
.run-check-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.run-check-totals dt {
  font-size: 12px;
}
.run-check-totals dd {
  margin: 4px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  [data-run-check] td,
  [data-run-check] th {
    padding: 10px 8px;
  }
  .run-picker-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .run-picker-filters > :first-child {
    grid-column: 1 / -1;
  }
  .run-check-totals {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .run-check-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .payslip-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
.employee-directory {
  min-width: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.directory-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-block: 1px solid var(--line);
}
.directory-statuses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1;
  max-width: 690px;
}
.directory-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 100px;
  padding: 20px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  text-align: left;
}
.directory-stat + .directory-stat {
  border-left: 1px solid var(--line);
}
.directory-stat:hover {
  background: #f7f9fa;
}
.directory-stat[aria-pressed="true"] {
  border-bottom-color: var(--primary);
  background: #f3f8f6;
}
.directory-stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 6px;
  background: #e9f0f8;
  color: #436d98;
}
.directory-stat:nth-child(2) .directory-stat-icon {
  background: #e4f2e9;
  color: #287148;
}
.directory-stat:nth-child(3) .directory-stat-icon {
  background: #fbf0dc;
  color: #936b21;
}
.directory-stat-label {
  display: block;
  margin-bottom: 6px;
  color: #526572;
  font-size: 12px;
}
.directory-stat b {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.directory-access {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-weight: 550;
}
.directory-access small {
  display: block;
  margin-top: 4px;
  color: var(--amber);
}
.directory-access > .lucide {
  flex-shrink: 0;
}
.directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 18px;
}
.directory-heading > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.directory-heading h2 {
  font-size: 15px;
}
#employee-match-count {
  color: var(--muted);
  font-size: 12px;
}
.live-shell .employee-directory-filters {
  align-items: flex-end;
  padding: 16px 20px;
  background: #f9fbfc;
}
.live-shell .employee-directory-filters .filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.8fr) repeat(3, minmax(110px, 1fr));
  flex: 1;
  gap: 12px;
}
.directory-filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.directory-filter > span:first-child {
  color: #526572;
  font-size: 11px;
  font-weight: 550;
}
.directory-filter .control {
  width: 100%;
  min-width: 0;
}
.directory-search-input {
  position: relative;
  display: block;
}
.directory-search-input > .lucide {
  position: absolute;
  top: 11px;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
.live-shell .employee-directory-filters #search {
  min-width: 0;
  padding-left: 37px;
}
.employee-directory #records .table {
  min-width: 1010px;
}
.employee-directory #records .table td:first-child {
  min-width: 220px;
}
.employee-directory .directory-identity {
  min-width: 0;
  gap: 12px;
}
.directory-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #d9e5ec;
  background: #edf3f7;
  color: #416a82;
  font-size: 12px;
  font-weight: 650;
}
.directory-identity > div {
  min-width: 0;
}
.directory-name {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
}
.directory-name:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.live-shell .directory-identity small {
  margin-top: 4px;
}
.directory-rate {
  white-space: nowrap;
  font-weight: 600;
}
.directory-row-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 36px;
}
.directory-retry {
  display: flex;
  justify-content: center;
  padding: 0 20px 24px;
}
.employee-profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.employee-profile-heading .directory-avatar {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  font-size: 17px;
}
.employee-profile-heading > div {
  flex: 1;
  min-width: 0;
}
.employee-profile-heading h3 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.employee-profile-heading p {
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.employee-profile-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  padding-block: 24px;
}
.employee-profile-grid section {
  min-width: 0;
}
.employee-profile-grid h3,
.employee-profile-history > h3 {
  margin-bottom: 16px;
  font-size: 13px;
}
.employee-profile-grid dl {
  margin: 0;
}
.employee-profile-grid dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.employee-profile-grid dt {
  color: var(--muted);
}
.employee-profile-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.employee-profile-pay {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.employee-profile-pay .profile-rate {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.employee-profile-pay > span {
  color: var(--muted);
}
.employee-profile-history {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.employee-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
}
#entry-form[data-submit="close"] .modal-foot > [data-action="close-modal"] {
  display: none;
}
@media (max-width: 1100px) {
  .directory-stat {
    gap: 10px;
    padding-inline: 16px;
  }
  .directory-access {
    padding-inline: 16px;
  }
  .directory-stat-icon {
    display: none;
  }
}
@media screen and (max-width: 640px) {
  .directory-overview {
    display: block;
  }
  .directory-stat {
    min-height: 88px;
    padding: 16px;
  }
  .directory-stat-label {
    font-size: 11px;
  }
  .directory-stat b {
    font-size: 22px;
  }
  .directory-access {
    border-top: 1px solid var(--line);
    padding-block: 12px;
  }
  .directory-access > span {
    flex: 1;
  }
  .directory-heading {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .directory-heading > div:first-child {
    display: block;
  }
  #employee-match-count {
    display: block;
    margin-top: 7px;
  }
  .live-shell .employee-directory-filters {
    position: relative;
    padding: 16px;
  }
  .live-shell .employee-directory-filters .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    flex-basis: 100%;
  }
  .employee-directory-filters .directory-search,
  .employee-directory-filters .directory-filter:last-child {
    grid-column: 1 / -1;
  }
  .employee-directory-filters > .btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
  }
  .employee-directory-filters .directory-filter:last-child {
    padding-right: 48px;
  }
  .employee-directory-table {
    overflow: visible;
  }
  .employee-directory #records .table {
    display: block;
    min-width: 0;
  }
  .employee-directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .employee-directory-table tbody {
    display: block;
  }
  .employee-directory-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .employee-directory #records .table td {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
  }
  .employee-directory-table td:nth-child(n + 2):nth-child(-n + 5)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
  }
  .employee-directory #records td:first-child {
    grid-column: 1 / -1;
    padding-right: 65px;
  }
  .employee-directory-table td:nth-child(6) {
    position: absolute;
    top: 20px;
    right: 16px;
  }
  .employee-directory #records td:nth-child(7) {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .employee-directory-table .directory-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 10px;
  }
  .employee-directory-table .record-date {
    white-space: normal;
  }
  .employee-directory-table tr:has(td[colspan]) {
    display: block;
  }
  .employee-directory #records td[colspan] {
    padding: 0;
  }
  .employee-profile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .employee-profile-heading {
    gap: 12px;
  }
  .employee-profile-heading h3 {
    font-size: 16px;
  }
  .employee-profile-heading .directory-avatar {
    display: none;
  }
  .employee-profile-grid dl > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .employee-profile-modal #compensation-history .table,
  .employee-profile-modal #compensation-history tbody {
    display: block;
    min-width: 0;
  }
  .employee-profile-modal #compensation-history thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .employee-profile-modal #compensation-history tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
  }
  .employee-profile-modal #compensation-history td {
    display: block;
    padding: 7px 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .employee-profile-modal #compensation-history td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
  }
  .employee-profile-modal #compensation-history td:nth-child(1)::before {
    content: "Effective";
  }
  .employee-profile-modal #compensation-history td:nth-child(2)::before {
    content: "Basis";
  }
  .employee-profile-modal #compensation-history td:nth-child(3)::before {
    content: "Rate";
  }
  .employee-profile-modal #compensation-history td:nth-child(4)::before {
    content: "Scheduled minutes";
  }
}
@media print {
  .employee-directory #records .table,
  .employee-directory #records .table td:first-child {
    min-width: 0;
  }
  .employee-directory .directory-heading .button-row,
  .directory-row-tools,
  .directory-access,
  .directory-retry,
  .employee-profile-actions {
    display: none;
  }
}
.employee-workspace .employee-topbar {
  min-height: 76px;
  padding-block: 16px;
}
.employee-topbar .brand {
  padding: 0;
}
.employee-topbar .brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.employee-topbar .brand > div {
  min-width: 0;
}
.employee-topbar .brand small {
  max-width: 450px;
  margin-top: 4px;
  color: #48656e;
  font-size: 12px;
  font-weight: 550;
}
.employee-workspace .employee-main {
  padding-top: 22px;
}
.employee-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.employee-person {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.employee-person > div {
  min-width: 0;
}
.employee-person-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #d6e3ec;
  border-radius: 8px;
  background: #eaf1f7;
  color: #3f6b89;
  font-size: 17px;
  font-weight: 650;
}
.employee-person .eyebrow {
  margin-bottom: 5px;
  font-size: 10px;
}
.employee-person h1 {
  line-height: 1.3;
}
.employee-code {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.employee-code b {
  margin-left: 4px;
  font-weight: 550;
}
.employee-synced {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.employee-synced .lucide {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.employee-synced small {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 10px;
}
.employee-workspace .employee-clock {
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px;
  border-left: 4px solid #7999b3;
  background: #fff;
}
.employee-workspace .employee-clock--open {
  border-left-color: #2d9165;
}
.employee-workspace .employee-clock--review {
  border-left-color: #b17b25;
  background: #fffcf5;
}
.employee-clock--review .employee-clock-icon {
  background: #fbefd4;
  color: #946014;
}
.employee-clock-review {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
  color: #805515;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.employee-clock-review .lucide {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.employee-clock-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.employee-clock-identity > div {
  min-width: 0;
}
.employee-clock-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 6px;
  background: #edf2f7;
  color: #4d718c;
}
.employee-clock--open .employee-clock-icon {
  background: #e6f3eb;
  color: #287a50;
}
.employee-clock-icon .lucide {
  width: 23px;
  height: 23px;
}
.employee-section-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}
.employee-workspace .employee-clock h2 {
  font-size: 20px;
}
.employee-clock-identity p {
  color: #526b73;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.employee-elapsed {
  display: grid;
  gap: 4px;
  padding-right: 16px;
  font-variant-numeric: tabular-nums;
}
.employee-elapsed > span {
  font-size: 11px;
  color: var(--muted);
}
.employee-elapsed b {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.employee-elapsed small {
  font-size: 10px;
}
.employee-workspace .employee-clock .employee-clock-warning {
  flex-basis: 100%;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #ead8af;
  background: #fff3d8;
  color: #77521c;
  font-size: 12px;
  line-height: 1.5;
}
.employee-records {
  margin-top: 18px;
  background: #fff;
  border-block: 1px solid var(--line);
}
.employee-workspace .employee-period-filter {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(140px, 1fr)) auto;
  gap: 16px;
  padding: 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.employee-period-filter > .field {
  max-width: none;
  min-width: 0;
  font-size: 11px;
  color: #526b73;
}
.employee-period-filter .control {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}
.employee-period-filter > .btn {
  min-height: 38px;
}
.employee-period-filter > .inline-error {
  grid-column: 1 / -1;
  margin: 0;
}
.employee-period-status {
  grid-column: 1 / -1;
  color: #805515;
  font-size: 11px;
}
.employee-workspace .employee-time-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.employee-time-totals > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 20px;
}
.employee-time-totals > div > div {
  min-width: 0;
}
.employee-time-totals > div + div {
  border-left: 1px solid var(--line);
}
.employee-total-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 6px;
  color: #2b7653;
  background: #e7f2eb;
}
.employee-time-totals > div:nth-child(2) .employee-total-icon {
  color: #946a24;
  background: #fbf1de;
}
.employee-time-totals > div:nth-child(3) .employee-total-icon {
  color: #426c95;
  background: #eaf1f9;
}
.employee-time-totals > div:nth-child(2) b {
  color: #966619;
}
.employee-time-totals > div:nth-child(3) b {
  color: #375f87;
}
.employee-time-totals small {
  line-height: 1.5;
}
.employee-time-totals b {
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.employee-record-tabs {
  display: flex;
  gap: 28px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}
.employee-record-tabs > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #5a707a;
  font-weight: 550;
}
.employee-record-tabs > button[aria-selected="true"] {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.employee-record-tabs > button > span {
  min-width: 23px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0f3f5;
  color: #526772;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.employee-record-tabs > button[aria-selected="true"] > span {
  background: #e5f2eb;
  color: var(--primary);
}
.employee-workspace [role="tabpanel"][hidden] {
  display: none;
}
.employee-records .panel-head {
  padding: 16px 20px;
}
.employee-records .panel-head h2 {
  font-size: 14px;
}
.employee-panel-period {
  min-width: 0;
  text-align: right;
  line-height: 1.5;
}
.employee-panel-period p {
  font-size: 12px;
  color: #526b73;
  overflow-wrap: anywhere;
}
.employee-panel-period small {
  color: var(--muted);
  font-size: 10px;
}
.employee-payroll-entry {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.employee-payroll-entry > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.employee-payroll-entry h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.employee-payroll-entry header p {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.employee-payroll-entry header .badge {
  margin-left: 8px;
}
.employee-payroll-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.employee-payroll-summary > .employee-card-net {
  flex: 1;
  min-width: 0;
}
.employee-payroll-net {
  display: grid;
  gap: 4px;
  text-align: right;
}
.employee-payroll-net span {
  font-size: 12px;
  color: var(--muted);
}
.employee-payroll-net b {
  font-size: 24px;
  color: #126d5b;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.employee-pay-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
}
.employee-pay-components > section {
  min-width: 0;
}
.employee-pay-components h4 {
  font-size: 12px;
  color: #526b73;
}
.employee-pay-components dl {
  min-width: 0;
  margin-top: 8px;
  font-size: 12px;
}
.employee-pay-components dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
}
.employee-pay-components :is(dt, dd) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.employee-pay-components dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.employee-pay-components .employee-pay-total {
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.employee-records .table {
  font-size: 12px;
}
.employee-records .table td {
  padding-block: 14px;
}
.employee-records .table .badge {
  font-size: 11px;
}
.employee-records .record-pagination {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.employee-blank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 128px;
  padding: 20px;
  text-align: center;
}
.employee-blank > .lucide {
  width: 30px;
  height: 30px;
  color: #8297a3;
}
.employee-blank h3 {
  font-size: 13px;
  font-weight: 550;
  color: #526b73;
}
.employee-blank p {
  font-size: 12px;
  color: var(--muted);
}
.employee-resolved {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.employee-resolved > summary {
  cursor: pointer;
  color: #526b73;
  font-size: 12px;
}
.employee-resolved .table-wrap {
  margin-top: 18px;
}
.employee-workspace
  :is(button, a, input, select, [role="tabpanel"]):focus-visible {
  outline: 2px solid #238978;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .employee-welcome {
    flex-wrap: wrap;
    gap: 10px;
  }
  .employee-synced {
    flex-basis: 100%;
    margin: 0;
    font-size: 10px;
  }
  .employee-synced small {
    display: inline;
    margin-left: 6px;
    text-align: left;
  }
  .employee-workspace .employee-period-filter {
    gap: 12px;
    grid-template-columns: minmax(130px, 1fr) repeat(2, minmax(120px, 1fr)) auto;
  }
  .employee-time-totals > div {
    padding: 18px;
  }
  .employee-total-icon {
    display: none;
  }
}
@media (max-width: 640px) {
  .employee-workspace .employee-topbar {
    min-height: 68px;
    padding: 14px 16px;
  }
  .employee-topbar .brand small {
    max-width: 160px;
  }
  .employee-workspace .employee-main {
    padding: 18px 16px 28px;
  }
  .employee-welcome {
    margin-bottom: 16px;
  }
  .employee-person {
    gap: 12px;
  }
  .employee-person-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 14px;
  }
  .employee-main .employee-person h1 {
    font-size: 22px;
  }
  .employee-workspace .employee-clock {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .employee-clock-identity {
    gap: 12px;
  }
  .employee-workspace .employee-clock h2 {
    font-size: 18px;
  }
  .employee-elapsed {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
  }
  .employee-elapsed small {
    flex-basis: 100%;
  }
  .employee-workspace .employee-clock > .btn {
    width: 100%;
    margin: 0;
  }
  .employee-records {
    margin-top: 16px;
  }
  .employee-workspace .employee-period-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }
  .employee-period-filter > label:nth-of-type(1) {
    grid-column: 1 / -1;
  }
  .employee-period-filter > .btn {
    grid-column: 1 / -1;
  }
  .employee-time-totals > div {
    padding: 16px 12px;
    align-items: flex-start;
  }
  .employee-time-totals small {
    min-height: 32px;
    font-size: 10px;
  }
  .employee-time-totals b {
    font-size: 18px;
  }
  .employee-record-tabs {
    padding: 0 16px;
    gap: 22px;
  }
  .employee-record-tabs > button {
    gap: 6px;
    font-size: 12px;
  }
  .employee-record-tabs > button > .lucide {
    display: none;
  }
  .employee-records .panel-head {
    padding: 18px 16px;
    gap: 10px;
  }
  .employee-records .panel-head h2 {
    font-size: 13px;
  }
  .employee-records .panel-head > small {
    font-size: 10px;
  }
  .employee-records .panel-head {
    flex-wrap: wrap;
  }
  .employee-panel-period {
    flex-basis: 100%;
    text-align: left;
  }
  .employee-panel-period p {
    font-size: 11px;
  }
  .employee-pay-components {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 14px;
  }
  .employee-payroll-summary {
    gap: 10px;
  }
  .employee-payroll-summary > .btn {
    margin-top: 14px;
  }
  .employee-records .employee-history-mobile {
    gap: 0;
  }
  .employee-records .employee-history-card {
    border: 0;
    border-radius: 0;
    padding: 16px;
  }
  .employee-records .employee-history-card + .employee-history-card {
    border-top: 1px solid var(--line);
  }
  .employee-records .record-pagination {
    padding-inline: 16px;
    gap: 10px;
  }
  .employee-blank {
    min-height: 120px;
    padding: 20px 16px;
  }
  .employee-resolved {
    padding-inline: 16px;
  }
}
@media print {
  .employee-record-tabs,
  .employee-workspace .employee-period-filter,
  .employee-clock > .btn,
  .employee-topbar .button-row {
    display: none;
  }
}
