:root {

  --navy: #072f63;

  --navy-dark: #041f45;

  --navy-soft: #eaf0f8;

  --green: #4f9f2f;

  --green-dark: #3d8124;

  --green-soft: #edf7e9;

  --ink: #102b4d;

  --muted: #617289;

  --line: #d5deea;

  --panel: #ffffff;

  --surface: #f4f7fb;

  --accent: var(--green);

  --accent-strong: var(--green-dark);

  --danger: #b33a3a;

  --shadow: 0 12px 30px rgba(7, 47, 99, 0.09);

  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

}



* {

  box-sizing: border-box;

}



body {

  margin: 0;

  min-height: 100vh;

  background: linear-gradient(135deg, #f7f9fc 0%, #f1f6ee 100%);

  color: var(--ink);

}



button,

input,

select,

textarea {

  font: inherit;

}



button {

  cursor: pointer;

}



a.primary-button {

  display: block;

  text-align: center;

  text-decoration: none;

}



.hidden {

  display: none !important;

}



.auth-screen {

  min-height: 100vh;

  display: grid;

  place-items: center;

  padding: 24px;

  background:

    radial-gradient(circle at 15% 15%, rgba(79, 159, 47, 0.13), transparent 30%),

    radial-gradient(circle at 85% 85%, rgba(7, 47, 99, 0.14), transparent 34%),

    #f7f9fc;

}



.modal-backdrop {

  position: fixed;

  inset: 0;

  z-index: 40;

  display: grid;

  place-items: center;

  padding: 20px;

  background: rgba(4, 31, 69, 0.62);

}



.auth-card,

.metric-card,

.filter-bar,

.entry-form,

.settings-grid,

.table-wrap {

  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: 8px;

  box-shadow: var(--shadow);

}



.auth-card {

  width: 100%;

  max-width: 500px;

  min-width: 0;

  display: grid;

  gap: 16px;

  padding: 28px;

  border-top: 5px solid var(--green);

}



.trial-card {

  max-width: 620px;

}



.trial-intro {

  display: grid;

  gap: 4px;

  padding: 14px 16px;

  border: 1px solid #cfe5c5;

  border-radius: 8px;

  background: var(--green-soft);

  color: var(--navy);

}



.trial-intro span {

  color: var(--muted);

}



.auth-divider {

  display: flex;

  align-items: center;

  gap: 12px;

  color: var(--muted);

  font-size: 0.86rem;

}



.auth-divider::before,

.auth-divider::after {

  content: "";

  flex: 1;

  height: 1px;

  background: var(--line);

}



.trial-button {

  border: 1px solid var(--green);

  border-radius: 7px;

  padding: 10px 14px;

  background: var(--green-soft);

  color: var(--green-dark);

  font-weight: 800;

}



.trial-button:hover {

  background: var(--green);

  color: #fff;

}



.text-button,

.platform-link {

  border: 0;

  background: transparent;

  color: var(--navy);

  font-weight: 700;

  text-align: center;

  text-decoration: none;

}



.text-button:hover,

.platform-link:hover {

  color: var(--green-dark);

  text-decoration: underline;

}



.legal-links {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 8px 16px;

  font-size: 0.8rem;

}



.legal-links a,

.consent-checkbox a {

  color: var(--navy);

  font-weight: 700;

}



.consent-checkbox {

  grid-template-columns: 20px minmax(0, 1fr);

  align-items: start;

  gap: 9px;

  line-height: 1.45;

}



.consent-checkbox input {

  width: 18px;

  height: 18px;

  margin-top: 2px;

}



.bot-field {

  position: absolute !important;

  left: -10000px !important;

  width: 1px !important;

  height: 1px !important;

  overflow: hidden !important;

}



.subdomain-input {

  display: grid;

  grid-template-columns: minmax(0, 1fr) auto;

  align-items: stretch;

}



.subdomain-input input {

  min-width: 0;

  border-radius: 7px 0 0 7px;

}



.subdomain-input strong {

  display: flex;

  align-items: center;

  padding: 0 12px;

  border: 1px solid var(--line);

  border-left: 0;

  border-radius: 0 7px 7px 0;

  background: var(--navy-soft);

  color: var(--navy);

  font-size: 0.85rem;

}



.password-dialog {

  width: min(520px, 100%);

  max-height: calc(100vh - 40px);

  overflow-y: auto;

  display: grid;

  gap: 16px;

  padding: 24px;

  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: 8px;

  box-shadow: var(--shadow);

}



.two-factor-security {

  display: grid;

  gap: 14px;

  padding-top: 16px;

  border-top: 1px solid var(--line);

}



.two-factor-security h3,

.two-factor-security p {

  margin: 0;

}



.two-factor-setup,

.two-factor-enabled,

.two-factor-recovery,

.two-factor-enabled details {

  display: grid;

  gap: 12px;

}



.two-factor-qr {

  width: 220px;

  max-width: 100%;

  margin: 0 auto;

  padding: 8px;

  border: 1px solid var(--line);

  border-radius: 8px;

  background: #fff;

}



.two-factor-secret {

  overflow-wrap: anywhere;

  padding: 10px;

  border: 1px dashed var(--line);

  border-radius: 6px;

  background: var(--navy-soft);

  color: var(--navy);

  text-align: center;

  font-weight: 800;

  letter-spacing: 0.08em;

}



.two-factor-enabled-label {

  padding: 10px 12px;

  border: 1px solid #b9dca9;

  border-radius: 7px;

  background: var(--green-soft);

  color: var(--green-dark);

  font-weight: 800;

}



.two-factor-recovery {

  padding: 14px;

  border: 1px solid #e2c970;

  border-radius: 8px;

  background: #fff9df;

}



.two-factor-recovery pre {

  margin: 0;

  padding: 12px;

  border-radius: 6px;

  background: #fff;

  font: 700 0.9rem/1.6 ui-monospace, Consolas, monospace;

  columns: 2;

}



.danger-button {

  border: 1px solid #b42318;

  border-radius: 7px;

  padding: 10px 14px;

  background: #fff;

  color: #b42318;

  font-weight: 800;

}



.danger-button:hover {

  background: #b42318;

  color: #fff;

}



.password-dialog-heading {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 16px;

}



.password-dialog-heading h2,

.password-dialog-heading p {

  margin: 0;

}



.login-company-panel {

  display: grid;

  gap: 4px;

  padding: 12px;

  border: 1px solid var(--line);

  border-radius: 8px;

  background: var(--navy-soft);

}



.login-company-panel span,

.login-company-panel small {

  color: var(--muted);

}



.trial-status {

  padding: 8px 11px;

  border: 1px solid #b9dca9;

  border-radius: 999px;

  background: var(--green-soft);

  color: var(--green-dark);

  font-size: 0.82rem;

  font-weight: 800;

  white-space: nowrap;

}



.billing-summary-grid,

.billing-plan-grid {

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 14px;

}



.billing-summary-grid article {

  display: grid;

  gap: 7px;

  padding: 16px;

  border: 1px solid var(--line);

  border-radius: 8px;

  background: var(--navy-soft);

}



.billing-summary-grid span,

.billing-plan-card span,

.billing-plan-card small {

  color: var(--muted);

}



.billing-summary-grid strong {

  color: var(--navy);

  font-size: 1.12rem;

}



.billing-plan-grid {

  grid-template-columns: repeat(3, minmax(0, 1fr));

  margin-bottom: 18px;

}



.billing-plan-card {

  position: relative;

  display: grid;

  gap: 8px;

  padding: 24px;

  border: 1px solid var(--line);

  border-radius: 14px;

  background: var(--panel);

  box-shadow: var(--shadow);

}



.billing-plan-card.featured {

  border: 2px solid var(--green);

}



.billing-plan-card h3,

.billing-plan-card p {

  margin: 0;

}



.billing-plan-card > strong {

  color: var(--navy);

  font-size: 2rem;

}



.billing-plan-card .popular-label {

  position: absolute;

  top: 14px;

  right: 14px;

  padding: 5px 9px;

  border-radius: 999px;

  background: var(--green);

  color: #fff;

  font-size: 0.7rem;

  font-weight: 800;

}



.brand {

  display: flex;

  align-items: center;

  gap: 12px;

}



.brand-logo {

  display: block;

  width: 68px;

  height: 68px;

  object-fit: contain;

  border-radius: 12px;

}



.brand h1,

.brand p,

.toolbar h2,

.toolbar p {

  margin: 0;

}



.brand h1 {

  font-size: 1.2rem;

}



.brand p,

.fine-print {

  color: var(--muted);

}



.auth-card .brand {

  flex-direction: column;

  text-align: center;

}



.auth-card .brand-logo {

  width: 280px;

  max-width: 100%;

  height: auto;

  border-radius: 18px;

}



@media (max-width: 640px) {

  .auth-screen {

    padding: 16px;

  }



  .auth-card {

    padding: 22px 18px;

  }



  .auth-card .brand-logo {

    width: 220px;

  }

}



#authForm .brand h1 {

  display: none;

}



.app-shell {

  display: grid;

  grid-template-columns: 260px minmax(0, 1fr);

  min-height: 100vh;

}



.sidebar {

  display: flex;

  flex-direction: column;

  gap: 16px;

  padding: 20px;

  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 72%, #0a3c76 100%);

  color: #fff;

  box-shadow: 8px 0 26px rgba(4, 31, 69, 0.15);

  position: sticky;

  top: 0;

  align-self: start;

  height: 100vh;

  overflow-y: auto;

  overscroll-behavior: contain;

  scrollbar-width: thin;

}



.sidebar .brand p {

  color: #c6d7eb;

}



.sidebar .brand {

  flex-direction: column;

  justify-content: center;

  padding-bottom: 12px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.18);

}



.sidebar .brand-logo {

  width: 150px;

  height: 150px;

  background: #fff;

  border: 3px solid rgba(255, 255, 255, 0.9);

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);

}



.sidebar .brand > div {

  display: none;

}



.nav-tabs {

  display: grid;

  gap: 5px;

}



.nav-tab {

  border: 0;

  border-radius: 8px;

  padding: 10px 13px;

  background: transparent;

  color: #d8e5f4;

  text-align: left;

}



.nav-tab.active,

.nav-tab:hover {

  background: var(--green);

  color: #fff;

  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);

}



.company-panel {

  display: grid;

  gap: 8px;

  margin-top: auto;

  padding-top: 14px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);

  color: #c6d7eb;

}



.workspace {

  min-width: 0;

  padding: 28px 32px;

}



.platform-workspace {

  width: min(1500px, 100%);

  margin: 0 auto;

}



.toolbar,

.toolbar-actions {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

}



.toolbar {

  margin-bottom: 24px;

}



.eyebrow {

  color: var(--green-dark);

  font-size: 0.78rem;

  font-weight: 800;

  text-transform: uppercase;

}



.toolbar h2 {

  font-size: 2rem;

}



.view {

  display: none;

}



.view.active {

  display: grid;

  gap: 20px;

}



label {

  display: grid;

  gap: 6px;

  color: var(--muted);

  font-size: 0.82rem;

  font-weight: 700;

}

.password-input-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.password-input-control input {
  min-width: 0;
  border-radius: 8px 0 0 8px;
}

.password-visibility-toggle {
  min-width: 64px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding: 0 12px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 800;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: var(--green-soft);
  color: var(--green-dark);
}



input,

select,

textarea {

  width: 100%;

  border: 1px solid var(--line);

  border-radius: 8px;

  padding: 10px 11px;

  background: #fff;

  color: var(--ink);

}



input:focus,

select:focus,

textarea:focus {

  border-color: var(--green);

  outline: 3px solid rgba(79, 159, 47, 0.14);

}



textarea {

  min-height: 92px;

  resize: vertical;

}



.address-field {

  grid-column: span 2;

}



.primary-button,

.ghost-button,

.row-actions button {

  min-height: 40px;

  border-radius: 8px;

  padding: 0 14px;

  font-weight: 800;

}



.primary-button {

  border: 1px solid var(--green-dark);

  background: linear-gradient(180deg, #5aaa38 0%, var(--green) 100%);

  color: #fff;

  box-shadow: 0 5px 12px rgba(79, 159, 47, 0.2);

}



.ghost-button,

.row-actions button {

  border: 1px solid var(--line);

  background: #fff;

  color: var(--navy);

}



.primary-button:hover {

  background: var(--green-dark);

}



.ghost-button:hover,

.row-actions button:hover {

  border-color: #9db2cc;

  background: var(--navy-soft);

}



.row-actions {

  display: flex;

  gap: 8px;

}



.row-actions button:last-child {

  color: var(--danger);

}



.metrics-grid {

  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 14px;

}



.metric-card {

  min-height: 112px;

  padding: 18px;

  border-top: 4px solid var(--green);

}



.metric-card span {

  color: var(--muted);

  font-size: 0.86rem;

  font-weight: 800;

}



.metric-card strong {

  display: block;

  margin-top: 16px;

  font-size: 2rem;

  color: var(--navy);

}



.filter-bar,

.entry-form,

.settings-grid {

  display: grid;

  align-items: end;

  gap: 12px;

  padding: 16px;

}



.filter-bar {

  grid-template-columns: repeat(4, minmax(160px, max-content));

}



.report-filter-bar {

  margin-bottom: 16px;

}



.report-groups {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 16px;

  margin-bottom: 18px;

}



.report-group {

  min-width: 0;

  padding: 18px;

  border: 1px solid var(--line);

  border-top: 4px solid var(--navy);

  border-radius: 8px;

  background: var(--panel);

  box-shadow: var(--shadow);

}



.report-group-heading {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 14px;

}



.report-group-heading span {

  display: grid;

  width: 30px;

  height: 30px;

  place-items: center;

  border-radius: 50%;

  background: var(--navy-soft);

  color: var(--navy);

  font-size: 0.75rem;

  font-weight: 900;

}



.report-group-heading h3 {

  margin: 0;

  color: var(--navy);

}



.report-button-grid {

  display: grid;

  gap: 9px;

}



.report-button-grid .ghost-button {

  display: flex;

  align-items: center;

  justify-content: flex-start;

  width: 100%;

  text-align: left;

  text-decoration: none;

}



.employee-workspace {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.employee-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--navy-soft);
  scrollbar-width: thin;
}

.employee-tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.employee-tab:hover {
  background: #fff;
  color: var(--navy);
}

.employee-tab.active {
  border-bottom-color: var(--green);
  background: #fff;
  color: var(--navy);
}

.employee-tab-panel {
  display: none !important;
}

.employee-tab-panel.active {
  display: block !important;
}

.field-group.employee-tab-panel.active {
  display: grid !important;
}

.employee-tab-form.employee-single-card {
  min-height: 0;
  padding: 22px 24px 0;
  border: 0;
  border-radius: 0;
  border-top: 0;
  box-shadow: none;
  background: transparent;
}

.employee-tab-form .employee-tab-panel.active {
  min-height: 235px;
}

.employee-form-actions {
  margin: 18px -24px 0;
  padding: 14px 24px;
  background: #f8fafc;
}

.employee-list-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.employee-list-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy-soft);
}

.employee-single-card {

  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: 8px;

  box-shadow: var(--shadow);

  padding: 24px;

  display: grid;

  gap: 20px;

  border-top: 4px solid var(--navy);

}



.field-group {

  display: grid;

  gap: 8px;

}



.field-group-heading {

  margin: 0;

  font-size: 0.88rem;

  font-weight: 800;

  color: var(--accent-strong);

  text-transform: uppercase;

  letter-spacing: 0.04em;

  padding-bottom: 6px;

  border-bottom: 1px solid var(--line);

}



.field-row {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

  gap: 12px;

}



.form-actions {

  display: flex;

  justify-content: flex-end;

  padding-top: 8px;

  border-top: 1px solid var(--line);

}



.form-actions .primary-button {

  min-width: 200px;

}



.settings-grid {

  grid-template-columns: repeat(4, minmax(160px, 1fr));

}



.split-layout {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

}



.panel {

  display: grid;

  gap: 12px;

  padding: 16px;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 8px;

  box-shadow: var(--shadow);

  border-top: 3px solid var(--navy-soft);

}



.panel-heading {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

}



.panel-heading h3 {

  margin: 0;

}



.panel-heading span {

  color: var(--muted);

  font-size: 0.88rem;

}



.compact-settings {

  grid-template-columns: repeat(4, minmax(150px, 1fr));

  box-shadow: none;

}



.settings-form {

  display: grid;

  gap: 16px;

}



.settings-tabs {

  display: flex;

  gap: 4px;

  overflow-x: auto;

  padding: 0 0 8px;

  border-bottom: 1px solid var(--line);

}



.settings-currency-bar {

  display: flex;

  flex-wrap: wrap;

  align-items: end;

  justify-content: space-between;

  gap: 16px;

  padding: 12px 14px;

  border: 1px solid var(--line);

  border-radius: 8px;

  background: linear-gradient(90deg, var(--navy-soft), #fff);

}



.settings-currency-bar label {

  min-width: 180px;

}



.settings-currency-bar span {

  color: var(--muted);

  font-size: 13px;

}



.setting-currency-code {

  color: var(--accent-strong);

  font-weight: 800;

}



.employee-benefits-table {

  min-width: 1180px;

  table-layout: fixed;

}



.employee-benefits-table th:nth-child(1),

.employee-benefits-table th:nth-child(2) {

  width: 92px;

}



.employee-benefits-table th:nth-child(3) {

  width: 170px;

}



.employee-benefits-table th:nth-child(4) {

  width: 125px;

}



.employee-benefits-table th:nth-child(5),

.employee-benefits-table th:nth-child(6) {

  width: 110px;

}



.employee-benefits-table th:nth-child(7) {

  width: 145px;

}



.employee-benefits-table th:nth-child(8),

.employee-benefits-table th:nth-child(9) {

  width: 140px;

}



.employee-benefits-table input,

.employee-benefits-table select {

  width: 100%;

  min-width: 0;

}



.termination-adjustments-table {

  max-width: 900px;

  table-layout: fixed;

}



.termination-adjustments-table th:first-child { width: 230px; }

.termination-adjustments-table th:nth-child(2),

.termination-adjustments-table th:nth-child(3) { width: 150px; }

.termination-adjustments-table input,

.termination-adjustments-table select { width: 100%; min-width: 0; }



.settings-tab {

  flex: 0 0 auto;

  min-height: 38px;

  padding: 8px 13px;

  border: 1px solid transparent;

  background: transparent;

  color: var(--muted);

  font-weight: 800;

}



.settings-tab:hover {

  background: var(--navy-soft);

  color: var(--ink);

}



.settings-tab.active {

  border-color: var(--green);

  background: var(--green-soft);

  color: var(--green-dark);

}



.settings-panel-actions {

  display: flex;

  justify-content: flex-start;

}



.tax-settings-content {

  display: grid;

  gap: 16px;

  width: 100%;

}



.tax-window-heading,

.tax-actions {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

}



.tax-window-heading h2 {

  margin: 0;

}



.tax-tabs {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  border-bottom: 1px solid var(--line);

  padding-bottom: 8px;

}



.tax-tab {

  min-height: 36px;

  border: 1px solid var(--line);

  border-radius: 8px;

  padding: 0 12px;

  background: #fff;

  color: var(--ink);

  font-weight: 800;

}



.tax-tab.active {

  background: var(--navy);

  border-color: var(--navy-dark);

  color: #fff;

}



.tax-panel {

  display: none;

  gap: 14px;

}



.tax-panel.active {

  display: grid;

}



.tax-band-table {

  min-width: 720px;

}



.leave-policy-table {

  min-width: 980px;

}



.leave-liability-table {

  min-width: 620px;

}



.leave-request-card {

  gap: 18px;

}



.leave-reason-row {

  grid-template-columns: minmax(260px, 1fr);

}



.leave-register-table {

  min-width: 980px;

}



.leave-register-table td {

  line-height: 1.35;

}



.leave-register-table th:nth-child(8),

.leave-register-table td:nth-child(8) {

  min-width: 220px;

}



.attendance-view {

  gap: 16px;

}



.attendance-entry-panel,

.attendance-register-panel {

  padding: 18px;

}



.attendance-entry-form {

  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr)) minmax(110px, 0.7fr) minmax(170px, max-content);

  box-shadow: none;

  padding: 0;

  border: 0;

}



.bulk-attendance-form {

  grid-template-columns: minmax(220px, 1.4fr) repeat(7, minmax(120px, 1fr)) minmax(130px, max-content);

  box-shadow: none;

  padding: 0;

  border: 0;

}



.attendance-filter {

  grid-template-columns: minmax(190px, max-content);

  box-shadow: none;

  padding: 0;

  border: 0;

}



.attendance-table-wrap {

  box-shadow: none;

  border-radius: 8px;

}



.attendance-table {

  min-width: 860px;

}



.attendance-table th,

.attendance-table td {

  padding: 11px 12px;

  white-space: nowrap;

}



.attendance-table th:nth-child(4),

.attendance-table th:nth-child(5),

.attendance-table th:nth-child(6),

.attendance-table td:nth-child(4),

.attendance-table td:nth-child(5),

.attendance-table td:nth-child(6) {

  text-align: right;

}



.attendance-table tbody tr:nth-child(even) {

  background: #f7f9fc;

}



.attendance-table tbody tr:hover {

  background: var(--green-soft);

}



.attendance-table .row-actions {

  justify-content: flex-end;

}



.attendance-table .row-actions button {

  min-height: 32px;

  padding: 0 10px;

  font-size: 0.78rem;

}

.weekly-attendance-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8dee8;
}

.weekly-attendance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  background: #f7f9fc;
  border-bottom: 1px solid #d8dee8;
}

.weekly-attendance-heading h3 {
  margin: 2px 0 4px;
  color: #17233f;
  font-size: 24px;
}

.weekly-attendance-heading p,
.weekly-attendance-actions p,
.weekly-attendance-footer {
  margin: 0;
  color: var(--muted);
}

.section-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weekly-attendance-controls,
.weekly-attendance-actions,
.weekly-attendance-actions > div,
.weekly-attendance-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weekly-attendance-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.attendance-section-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  background: #f7f9fc;
  border-bottom: 1px solid #d8dee8;
}

.attendance-section-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #cbd4e1;
  border-radius: 999px;
  background: #fff;
  color: #33445f;
  cursor: pointer;
}

.attendance-section-chip span {
  font-size: 12px;
}

.attendance-section-chip.saved {
  border-color: #79aa8b;
  background: #eef8f1;
  color: #176237;
}

.attendance-section-chip.incomplete {
  border-color: #dfbd69;
  background: #fff8e6;
  color: #765300;
}

.attendance-section-chip.active {
  box-shadow: 0 0 0 2px #263f6d;
}

.monthly-attendance-summary-panel {
  margin-top: 18px;
}

.weekly-attendance-controls label {
  min-width: 175px;
}

.weekly-attendance-actions {
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #d8dee8;
}

.weekly-attendance-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.weekly-attendance-table {
  min-width: 1420px;
  table-layout: fixed;
  border-collapse: collapse;
}

.weekly-attendance-table th,
.weekly-attendance-table td {
  padding: 9px 8px;
  border: 1px solid #c8d0dc;
  vertical-align: middle;
}

.weekly-attendance-table th {
  background: #263f6d;
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: .01em;
}

.weekly-attendance-table thead tr:last-child th.attendance-weekend {
  background: #d49e00;
}

.weekly-attendance-table th span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  opacity: .85;
}

.weekly-attendance-table .weekly-attendance-band th {
  background: #e9edf3;
  color: #28364e;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #aeb9c9;
}

.attendance-empty-grid-row td {
  height: 46px;
  background: #fff;
}

.attendance-empty-grid-row td:first-child {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.weekly-attendance-table th:nth-child(1),
.weekly-attendance-table td:nth-child(1) { width: 110px; }
.weekly-attendance-table th:nth-child(2),
.weekly-attendance-table td:nth-child(2) { width: 200px; }
.weekly-attendance-table th:nth-child(3),
.weekly-attendance-table td:nth-child(3) { width: 120px; }
.weekly-attendance-table th:nth-child(4),
.weekly-attendance-table td:nth-child(4) { width: 100px; }
.weekly-attendance-table th:nth-child(5),
.weekly-attendance-table td:nth-child(5) { width: 115px; }
.weekly-attendance-table thead tr:last-child th:nth-child(n+6),
.weekly-attendance-table tbody td:nth-child(n+6):not(:nth-last-child(-n+2)) { width: 82px; }
.weekly-attendance-table thead tr:last-child th:nth-last-child(-n+2),
.weekly-attendance-table td:nth-last-child(-n+2) { width: 112px; }

.weekly-attendance-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.weekly-attendance-table tbody tr:hover {
  background: #f0f6f2;
}

.weekly-hours-cell {
  padding: 5px !important;
}

.weekly-hours-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: #24324a;
}

.weekly-hours-input:hover,
.weekly-hours-input:focus {
  border-color: #9eb2cc;
  background: #fff;
  outline: none;
}

.weekly-hours-input.dirty {
  border-color: #d49e00;
  background: #fff8dd;
}

.weekly-hours-input.invalid {
  border-color: #c93737;
  background: #fff0f0;
}

.weekly-total,
.worked-days-total {
  background: #edf3ff;
  text-align: center;
  font-weight: 800;
  color: #1c355f;
}

.weekly-attendance-footer {
  justify-content: space-between;
  padding: 12px 24px;
  background: #f7f9fc;
  font-size: 13px;
}

@media (max-width: 900px) {
  .weekly-attendance-heading,
  .weekly-attendance-actions,
  .weekly-attendance-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-attendance-controls,
  .weekly-attendance-actions > div {
    flex-wrap: wrap;
  }
}



.payroll-run-panel {

  gap: 14px;

}

.payroll-readiness-warning {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
}

.payroll-readiness-warning.ready {
  background: #edf8f0;
  border-color: #91c99c;
  color: #226b31;
}

.payroll-readiness-warning.warning {
  background: #fff7e8;
  border-color: #e2b966;
  color: #7a5100;
}



.payroll-run-actions {

  grid-template-columns: minmax(190px, max-content) repeat(5, minmax(120px, max-content));

  box-shadow: none;

  padding: 0;

  border: 0;

}

.payroll-process-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.payroll-process-status > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payroll-process-status > .muted-text {
  flex: 1 1 280px;
}



.muted-text {

  color: var(--muted);

  font-size: 0.82rem;

}



.table-wrap {

  overflow: auto;

}



table {

  width: 100%;

  min-width: 1120px;

  border-collapse: collapse;

}



.medium-table {

  min-width: 780px;

}



th,

td {

  padding: 13px 14px;

  border-bottom: 1px solid var(--line);

  text-align: left;

  vertical-align: middle;

}



th {

  background: var(--navy-soft);

  color: var(--navy);

  font-size: 0.82rem;

  text-transform: uppercase;

  border-bottom: 2px solid #bdcbe0;

}



tbody tr:hover {

  background: #f3f8ef;

}



.status-chip {

  display: inline-flex;

  align-items: center;

  min-height: 26px;

  border-radius: 999px;

  padding: 0 10px;

  background: var(--green-soft);

  color: var(--green-dark);

  font-weight: 800;

  font-size: 0.78rem;

}



.danger-chip {

  background: #fff1f1;

  color: var(--danger);

}



.leave-chip {

  background: #fff7e8;

  color: #93620f;

}



.sick-chip {

  background: var(--navy-soft);

  color: var(--navy);

}



.muted-chip {

  background: #eef1f2;

  color: var(--muted);

}



.empty-state {

  color: var(--muted);

  text-align: center;

}



.toast {

  position: fixed;

  right: 24px;

  bottom: 24px;

  z-index: 30;

  padding: 12px 16px;

  border-radius: 8px;

  background: var(--navy-dark);

  color: #fff;

  box-shadow: var(--shadow);

  border-left: 5px solid var(--green);

}



@media (max-width: 980px) {

  .app-shell {

    grid-template-columns: 1fr;

  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }



  .nav-tabs {

    grid-template-columns: repeat(5, minmax(0, 1fr));

  }



  .sidebar .brand {

    flex-direction: row;

    justify-content: flex-start;

  }



  .sidebar .brand-logo {

    width: 96px;

    height: 96px;

  }



  .metrics-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }



  .billing-summary-grid,

  .billing-plan-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }



  .entry-form,

  .settings-grid,

  .filter-bar,

  .split-layout {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

}



@media (max-width: 640px) {

  .workspace,

  .sidebar {

    padding: 18px;

  }



  .toolbar,

  .toolbar-actions {

    align-items: stretch;

    flex-direction: column;

  }



  .nav-tabs,

  .metrics-grid,

  .entry-form,

  .settings-grid,

  .filter-bar,

  .split-layout {

    grid-template-columns: 1fr;

  }



  .billing-summary-grid,

  .billing-plan-grid {

    grid-template-columns: 1fr;

  }



  .field-row {

    grid-template-columns: 1fr;

  }

  .employee-tab-form.employee-single-card {
    padding: 18px 16px 0;
  }

  .employee-form-actions {
    margin-left: -16px;
    margin-right: -16px;
    padding: 14px 16px;
  }

  .employee-tab {
    min-height: 44px;
    padding: 0 14px;
  }

}


/* PaySpace/Sage-inspired employee workspace. */
.employee-master-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.employee-master-summary article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #f8fafc;
}

.employee-master-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.employee-master-summary strong {
  color: var(--navy);
  font-size: 1.2rem;
}

.employee-list-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(260px, 1.5fr) minmax(170px, 0.8fr) minmax(150px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.employee-master-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.employee-master-actions > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.employee-master-actions button {
  min-height: 38px;
}

.employee-list-title {
  display: grid;
  gap: 3px;
  align-self: center;
}

.employee-list-title span {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.employee-list-title strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.employee-search-field input {
  padding-left: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23617289' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
}

.employee-list-toolbar .primary-button {
  min-height: 42px;
  white-space: nowrap;
}

.employee-list-table-wrap table {
  min-width: 940px;
}

.employee-list-table-wrap tbody td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.employee-list-table-wrap tbody tr[data-employee-row] {
  cursor: pointer;
}

.employee-list-table-wrap tbody tr[data-employee-row]:focus {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.employee-list-table-wrap tbody tr[data-employee-row].selected td {
  background: #dfeeda;
  color: var(--navy);
}

.employee-list-table-wrap tbody td span:not(.status-chip),
.employee-list-table-wrap tbody td strong + span,
.employee-name-link + span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.employee-name-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  text-align: left;
}

.employee-name-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.employee-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: -22px -24px 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f7fafc 0%, #edf5e9 100%);
}

.employee-profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.employee-profile-identity {
  min-width: 0;
}

.employee-profile-label {
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-profile-identity h3,
.employee-profile-identity p {
  margin: 0;
}

.employee-profile-identity h3 {
  margin-top: 2px;
  color: var(--navy);
  font-size: 1.2rem;
}

.employee-profile-identity p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.employee-tab-form .field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.employee-tab-form .employee-banking-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-tab-form .field-row.pay-details-row,
.employee-workspace.record-open .employee-tab-form .field-row.pay-details-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.salary-effective-row {
  margin-top: 10px;
}

.payroll-calculation-preview {
  min-width: 260px;
}

.payroll-calculation-preview summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.payroll-calculation-preview div {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  line-height: 1.35;
}

.employee-allowance-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.employee-allowance-heading .field-group-heading {
  margin-bottom: 3px;
}

.employee-allowance-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.employee-allowances-wrap {
  margin-top: 12px;
}

.employee-allowances-table {
  min-width: 760px;
}

.employee-allowances-table th:first-child {
  width: 30%;
}

.employee-allowances-table input,
.employee-allowances-table select {
  width: 100%;
  min-width: 110px;
}

.employee-benefit-sections {
  display: grid;
  gap: 28px;
}

.employee-benefit-section + .employee-benefit-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.employee-benefit-description {
  margin: -8px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.employee-benefit-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.employee-benefit-heading .employee-benefit-description {
  margin-bottom: 0;
}

.employee-benefit-table-wrap,
.employee-deemed-benefits-wrap {
  margin-top: 12px;
}

.employee-deemed-benefits-table {
  min-width: 980px;
}

.employee-deemed-benefits-table input,
.employee-deemed-benefits-table select {
  width: 100%;
  min-width: 120px;
}

.employee-tab-form .address-field {
  grid-column: 1 / -1;
}

.employee-tab-form .employee-tab-panel.active {
  min-height: 260px;
}

.employee-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.employee-overview-heading span {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.employee-overview-heading h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.employee-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-overview-grid article,
.employee-leave-summary article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.employee-overview-grid span,
.employee-leave-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.employee-overview-grid strong,
.employee-leave-summary strong {
  color: var(--navy);
  font-size: 0.96rem;
}

.employee-leave-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.employee-profile-leave-wrap {
  max-height: 300px;
  box-shadow: none;
}

.employee-profile-leave-table {
  min-width: 720px;
}

.employee-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: 0 -8px 20px rgba(7, 47, 99, 0.06);
}

.employee-form-actions .ghost-button,
.employee-form-actions .primary-button {
  min-width: 150px;
}

@media (max-width: 1050px) {
  .employee-list-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-list-title,
  .employee-search-field {
    grid-column: span 2;
  }

  .employee-overview-grid,
  .employee-leave-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .employee-master-summary {
    grid-template-columns: 1fr;
  }

  .employee-master-actions > span {
    width: 100%;
    margin-left: 0;
  }

  .employee-list-toolbar,
  .employee-tab-form .field-row,
  .employee-tab-form .employee-banking-row,
  .employee-overview-grid,
  .employee-leave-summary {
    grid-template-columns: 1fr;
  }

  .employee-list-title,
  .employee-search-field,
  .employee-tab-form .address-field {
    grid-column: auto;
  }

  .employee-profile-header {
    grid-template-columns: auto minmax(0, 1fr);
    margin-left: -16px;
    margin-right: -16px;
    padding: 16px;
  }

  .employee-profile-header > .status-chip {
    grid-column: 2;
    justify-self: start;
  }

  .employee-overview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .employee-allowance-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-benefit-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-form-actions .ghost-button,
  .employee-form-actions .primary-button {
    min-width: 0;
  }
}

/* Polished spreadsheet-style data tables. */
.table-wrap {
  border-color: #c8d4e3;
  background: #fff;
}

.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.employee-list-table-wrap thead th,
.data-entry-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 12px;
  border-right: 1px solid #c9d5e4;
  border-bottom: 2px solid #7f9ec5;
  background: linear-gradient(180deg, #edf3fb 0%, #dce7f5 100%);
  color: #12365f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.25;
  white-space: nowrap;
}

.employee-list-table-wrap thead th:last-child,
.employee-list-table-wrap tbody td:last-child,
.data-entry-table thead th:last-child,
.data-entry-table tbody td:last-child {
  border-right: 0;
}

.employee-list-table-wrap tbody td,
.data-entry-table tbody td {
  padding: 10px 12px;
  border-right: 1px solid #dbe2eb;
  border-bottom: 1px solid #dbe2eb;
  background: #fff;
  color: #233b58;
}

.employee-list-table-wrap tbody tr:nth-child(even) td,
.data-entry-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.employee-list-table-wrap tbody tr:hover td,
.data-entry-table tbody tr:hover td {
  background: #eef6e9;
}

.employee-list-table-wrap tbody tr:last-child td,
.data-entry-table tbody tr:last-child td {
  border-bottom: 0;
}

.employee-list-table-wrap {
  border-top: 1px solid #d5deea;
}

.employee-list-table-wrap thead th {
  background: linear-gradient(180deg, #eef4fc 0%, #dce8f7 100%);
  box-shadow: 0 1px 0 rgba(7, 47, 99, 0.08);
}

.employee-list-table-wrap tbody td:nth-child(1),
.employee-list-table-wrap tbody td:nth-child(2) {
  font-weight: 700;
  color: var(--navy);
}

.employee-benefits-table,
.employee-deemed-benefits-table,
.tax-band-table,
.leave-policy-table,
.termination-adjustments-table {
  border: 1px solid #b9cbb1;
  border-radius: 6px;
  overflow: hidden;
}

.employee-benefits-table thead th,
.employee-deemed-benefits-table thead th,
.tax-band-table thead th,
.leave-policy-table thead th,
.termination-adjustments-table thead th {
  border-right-color: #bdceb6;
  border-bottom-color: #729a61;
  background: linear-gradient(180deg, #eff6eb 0%, #dcebd5 100%);
  color: #294e2b;
  text-align: center;
  white-space: normal;
}

.employee-benefits-table tbody td,
.tax-band-table tbody td,
.leave-policy-table tbody td,
.termination-adjustments-table tbody td {
  padding: 5px 7px;
  border-right-color: #d3ded0;
  border-bottom-color: #d3ded0;
}

.employee-benefits-table tbody tr:nth-child(even) td,
.tax-band-table tbody tr:nth-child(even) td,
.leave-policy-table tbody tr:nth-child(even) td,
.termination-adjustments-table tbody tr:nth-child(even) td {
  background: #f8fbf6;
}

.employee-benefits-table input,
.employee-benefits-table select,
.tax-band-table input,
.tax-band-table select,
.leave-policy-table input,
.leave-policy-table select,
.termination-adjustments-table input,
.termination-adjustments-table select {
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
}

.employee-benefits-table input:hover,
.employee-benefits-table select:hover,
.tax-band-table input:hover,
.tax-band-table select:hover,
.leave-policy-table input:hover,
.leave-policy-table select:hover,
.termination-adjustments-table input:hover,
.termination-adjustments-table select:hover {
  border-color: #b7c9ae;
  background: #fff;
}

.employee-benefits-table input:focus,
.employee-benefits-table select:focus,
.tax-band-table input:focus,
.tax-band-table select:focus,
.leave-policy-table input:focus,
.leave-policy-table select:focus,
.termination-adjustments-table input:focus,
.termination-adjustments-table select:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 159, 47, 0.14);
  outline: 0;
}

@media print {

  .sidebar,

  .toolbar,

  .filter-bar,

  .entry-form,

  .settings-grid,

  .row-actions {

    display: none;

  }



  .app-shell,

  .workspace,

  .view.active {

    display: block;

    padding: 0;

  }

}



.file-type-badge {

  display: inline-flex;

  align-items: center;

  margin-left: 0.45rem;

  padding: 0.12rem 0.4rem;

  border: 1px solid currentColor;

  border-radius: 999px;

  font-size: 0.68rem;

  font-weight: 700;

  line-height: 1.2;

  letter-spacing: 0.03em;

  white-space: nowrap;

  opacity: 0.82;

}

/* Compact employee record inspired by a traditional payroll employee master. */
.employee-workspace.record-open {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #2f6688;
  border-radius: 4px;
  background: #dcecf5;
  box-shadow: 0 8px 24px rgba(24, 66, 94, 0.12);
}

.employee-workspace.record-open .employee-tabs {
  order: 2;
  gap: 2px;
  margin: 0;
  padding: 7px 10px 0;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid #75a7bf;
  border-radius: 0;
  background: #dcecf5;
}

.employee-workspace.record-open .employee-tab {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 6px 12px;
  border: 1px solid #8eb2c8;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f8fbfd 0%, #c9deea 100%);
  color: #183e59;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.employee-workspace.record-open .employee-tab:hover {
  background: #fff;
}

.employee-workspace.record-open .employee-tab.active {
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
  border-color: #4d8eaa;
  background: #fff;
  color: #174d6c;
  box-shadow: none;
}

.employee-workspace.record-open .employee-tab[data-employee-tab="list"] {
  display: none;
}

.employee-workspace.record-open .employee-tab-form.employee-single-card {
  display: contents;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #dcecf5;
  box-shadow: none;
}

.employee-workspace.record-open .employee-profile-header {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: #2f6688;
  color: #fff;
}

.employee-workspace.record-open .employee-profile-avatar,
.employee-workspace.record-open .employee-profile-label {
  display: none;
}

.employee-workspace.record-open .employee-profile-identity h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}

.employee-workspace.record-open .employee-profile-meta {
  display: block;
  margin-top: 3px;
  color: #e5f1f7;
  font-size: 0.82rem;
  font-weight: 600;
}

.employee-workspace.record-open .employee-profile-header > .status-chip {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.employee-workspace.record-open .employee-tab-panel.active {
  order: 3;
  margin: 10px;
  padding: 12px;
  border: 1px solid #82acc1;
  border-radius: 2px;
  background: #eaf4f9;
}

.employee-workspace.record-open .field-group-heading {
  margin: -12px -12px 12px;
  padding: 7px 12px;
  border-bottom: 1px solid #99bacb;
  background: #d1e6f0;
  color: #174d6c;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: none;
}

.employee-workspace.record-open .employee-tab-form .field-row,
.employee-workspace.record-open .employee-tab-form .employee-banking-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

.employee-workspace.record-open .employee-tab-form label {
  gap: 3px;
  color: #25465c;
  font-size: 0.72rem;
  font-weight: 700;
}

.employee-workspace.record-open .employee-tab-form input,
.employee-workspace.record-open .employee-tab-form select,
.employee-workspace.record-open .employee-tab-form textarea {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #8da9ba;
  border-radius: 2px;
  background: #fff;
  color: #172f42;
  font-size: 0.82rem;
}

.employee-workspace.record-open .employee-tab-form textarea {
  min-height: 70px;
  resize: vertical;
}

.employee-workspace.record-open .employee-tab-form .address-field {
  grid-column: span 2;
}

.employee-workspace.record-open .employee-form-actions {
  order: 5;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-top: 1px solid #173f5c;
  border-radius: 0;
  background: #2f6688;
}

.employee-record-navigation {
  display: flex;
  gap: 5px;
  margin-right: auto;
}

.employee-workspace.record-open .employee-form-actions button {
  min-height: 31px;
  padding: 5px 13px;
  border-color: #d8e7ef;
  border-radius: 2px;
}

.employee-workspace.record-open .employee-form-actions .ghost-button,
.employee-workspace.record-open .employee-form-actions .primary-button {
  background: #f7fbfd;
  color: #173f5c;
}

@media (max-width: 1000px) {
  .employee-workspace.record-open .employee-tab-form .field-row,
  .employee-workspace.record-open .employee-tab-form .employee-banking-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-tab-form .field-row.pay-details-row,
  .employee-workspace.record-open .employee-tab-form .field-row.pay-details-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .employee-workspace.record-open .employee-tab-form .field-row,
  .employee-workspace.record-open .employee-tab-form .employee-banking-row {
    grid-template-columns: 1fr;
  }

  .employee-tab-form .field-row.pay-details-row,
  .employee-workspace.record-open .employee-tab-form .field-row.pay-details-row {
    grid-template-columns: 1fr;
  }

  .employee-workspace.record-open .employee-tab-form .address-field {
    grid-column: auto;
  }

  .employee-workspace.record-open .employee-form-actions {
    flex-wrap: wrap;
  }

  .employee-record-navigation {
    width: 100%;
  }
}


/* Compact desktop-style employee master table. */
.employee-workspace:not(.record-open) .employee-tab[data-employee-form-tab] { display: none; }
.employee-workspace:not(.record-open) .employee-tabs { min-height: 35px; background: #2f6688; }
.employee-workspace:not(.record-open) .employee-tab[data-employee-tab="list"] {
  min-height: 35px; padding: 0 15px; border: 0; border-bottom: 4px solid #158b9d;
  background: #fff; color: #174d6c; font-size: 0.75rem;
}
.employee-workspace:not(.record-open) .employee-master-summary { display: none; }
.employee-workspace:not(.record-open) .employee-list-toolbar {
  grid-template-columns: minmax(135px, .55fr) minmax(270px, 1.5fr);
  gap: 8px; padding: 8px 10px; background: #eaf4f9;
}
.employee-workspace:not(.record-open) .employee-list-toolbar label { gap: 2px; font-size: .68rem; }
.employee-workspace:not(.record-open) .employee-list-toolbar input,
.employee-workspace:not(.record-open) .employee-list-toolbar select {
  min-height: 32px; padding-top: 5px; padding-bottom: 5px; border-radius: 2px; font-size: .78rem;
}
.employee-workspace:not(.record-open) .employee-list-title span { font-size: .82rem; }
.employee-workspace:not(.record-open) .employee-master-actions { gap: 6px; padding: 6px 10px; background: #d7e9f2; }
.employee-workspace:not(.record-open) .employee-master-actions button {
  min-height: 31px; padding: 5px 11px; border-radius: 2px; font-size: .74rem;
}
.employee-workspace:not(.record-open) .employee-master-actions > span { display: none; }
.employee-workspace:not(.record-open) .employee-list-table-wrap {
  min-height: 330px; max-height: calc(100vh - 355px); border-top: 1px solid #8aaec3; border-bottom: 1px solid #8aaec3;
}
.employee-workspace:not(.record-open) .employee-list-table-wrap table { min-width: 760px; }
.employee-workspace:not(.record-open) .employee-list-table-wrap thead th {
  padding: 7px 10px; border-right: 1px solid #9db8ca; border-bottom: 1px solid #6f94af;
  background: #d7e6f2; color: #173f5c; font-size: .7rem;
}
.employee-sort-heading {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.employee-sort-heading:hover,
.employee-sort-heading:focus-visible,
.employee-sort-heading.active {
  color: #0d5b83;
}
.employee-sort-heading:focus-visible {
  outline: 2px solid #158b9d;
  outline-offset: 3px;
}
.employee-sort-heading span {
  min-width: 10px;
  font-size: .62rem;
}
.employee-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.employee-row-actions .ghost-button {
  min-height: 29px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: .7rem;
}
.employee-workspace:not(.record-open) .employee-list-table-wrap tbody td {
  height: 31px; padding: 5px 10px; border-right: 1px solid #d1dce4; border-bottom: 1px solid #d1dce4; font-size: .78rem;
}
.employee-master-footer {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 5px 10px;
  background: #2f6688; color: #fff; font-size: .72rem;
}
.employee-master-footer > span:last-child { margin-left: auto; opacity: .85; }
.employee-master-navigation { display: flex; gap: 4px; }
.employee-master-navigation .ghost-button {
  min-height: 29px; padding: 4px 9px; border: 1px solid #d4e4ed; border-radius: 2px;
  background: #fff; color: #173f5c; font-size: .7rem;
}
.employee-master-navigation .ghost-button:disabled { opacity: .45; }

.employee-deemed-benefits-table {
  min-width: 1080px;
}

.employee-deemed-benefits-table th:nth-child(2),
.employee-deemed-benefits-table td:nth-child(2) {
  min-width: 330px;
}

.deemed-calculation label {
  display: grid;
  gap: 3px;
  color: #294e2b;
  font-size: .68rem;
  font-weight: 700;
}

.deemed-basis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.deemed-calculation small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.25;
}

.employee-deemed-benefits-table .deemed-value[readonly] {
  background: #edf5e9;
  color: #173f5c;
  font-weight: 800;
}
@media (max-width: 900px) {
  .employee-workspace:not(.record-open) .employee-list-toolbar { grid-template-columns: 1fr 1fr; }
  .employee-master-footer > span:last-child { display: none; }
}

/* PayrollMaster visual consistency: Employee and Attendance management. */
#employees,
#attendance {
  font-family: inherit;
  color: var(--ink);
}

.employee-workspace.record-open {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.employee-workspace.record-open .employee-profile-header {
  padding: 14px 18px;
  background: var(--navy);
}

.employee-workspace.record-open .employee-profile-identity h3 {
  font-size: 1.1rem;
}

.employee-workspace.record-open .employee-profile-meta {
  color: #d8e5f4;
  font-size: 0.82rem;
}

.employee-workspace.record-open .employee-tabs,
.employee-workspace:not(.record-open) .employee-tabs {
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--navy-soft);
}

.employee-workspace.record-open .employee-tab,
.employee-workspace:not(.record-open) .employee-tab[data-employee-tab="list"] {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.015em;
}

.employee-workspace.record-open .employee-tab:hover,
.employee-workspace.record-open .employee-tab.active,
.employee-workspace:not(.record-open) .employee-tab[data-employee-tab="list"] {
  background: #fff;
  color: var(--navy);
}

.employee-workspace.record-open .employee-tab.active,
.employee-workspace:not(.record-open) .employee-tab[data-employee-tab="list"] {
  border-bottom-color: var(--green);
}

.employee-workspace.record-open .employee-tab-panel.active {
  margin: 14px;
  padding: 18px;
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-workspace.record-open .field-group-heading {
  margin: -18px -18px 16px;
  padding: 11px 16px;
  border-bottom-color: var(--line);
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.88rem;
}

.employee-workspace.record-open .employee-tab-form label,
.employee-workspace:not(.record-open) .employee-list-toolbar label,
.deemed-calculation label {
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.employee-workspace.record-open .employee-tab-form input,
.employee-workspace.record-open .employee-tab-form select,
.employee-workspace.record-open .employee-tab-form textarea,
.employee-workspace:not(.record-open) .employee-list-toolbar input,
.employee-workspace:not(.record-open) .employee-list-toolbar select {
  min-height: 40px;
  padding: 9px 10px;
  border-color: var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
}

.employee-workspace:not(.record-open) .employee-list-toolbar {
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
}

.employee-workspace:not(.record-open) .employee-list-title span {
  color: var(--navy);
  font-size: 1rem;
}

.employee-workspace:not(.record-open) .employee-master-actions {
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
}

.employee-workspace:not(.record-open) .employee-master-actions button,
.employee-master-navigation .ghost-button,
.employee-workspace.record-open .employee-form-actions button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.employee-workspace:not(.record-open) .employee-list-table-wrap thead th,
.employee-workspace:not(.record-open) .employee-list-table-wrap tbody td {
  height: auto;
  padding: 10px 12px;
  border-color: var(--line);
  font-size: 0.82rem;
}

.employee-workspace:not(.record-open) .employee-list-table-wrap thead th {
  background: var(--navy-soft);
  color: var(--navy);
  border-bottom: 2px solid #bdcbe0;
}

.employee-master-footer,
.employee-workspace.record-open .employee-form-actions {
  min-height: 48px;
  padding: 8px 14px;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
}

.employee-workspace.record-open .employee-form-actions .ghost-button {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.employee-workspace.record-open .employee-form-actions .primary-button {
  border-color: var(--green-dark);
  background: var(--green);
  color: #fff;
}

.deemed-calculation small {
  font-size: 0.78rem;
}

.weekly-attendance-panel {
  border-color: var(--line);
}

.weekly-attendance-heading,
.attendance-section-status,
.weekly-attendance-footer {
  background: var(--surface);
  border-color: var(--line);
}

.weekly-attendance-heading h3 {
  color: var(--navy);
  font-size: 1.25rem;
}

.section-kicker {
  color: var(--green-dark);
  font-size: 0.78rem;
}

.attendance-section-chip,
.attendance-section-chip span,
.weekly-attendance-footer {
  font-size: 0.82rem;
}

.attendance-section-chip.active {
  box-shadow: 0 0 0 2px var(--green);
}

.weekly-attendance-table th,
.weekly-attendance-table td {
  padding: 10px 9px;
  border-color: var(--line);
  font-size: 0.82rem;
}

.weekly-attendance-table th {
  background: var(--navy);
  color: #fff;
}

.weekly-attendance-table thead tr:last-child th.attendance-weekend {
  background: var(--green-dark);
}

.weekly-attendance-table th span {
  font-size: 0.72rem;
}

.weekly-attendance-table .weekly-attendance-band th {
  padding: 11px 10px;
  border-color: #bdcbe0;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.88rem;
}

.weekly-hours-input {
  height: 38px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
}

.weekly-total,
.worked-days-total {
  background: var(--green-soft);
  color: var(--navy);
}
.year-rollover-notice {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #a9d39a;
  border-left: 5px solid #4ea72e;
  border-radius: 10px;
  background: #f2faef;
  color: #183b2a;
}

.year-rollover-controls {
  align-items: end;
}

.year-rollover-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.year-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.year-status.ready,
.year-check-status.ready { background: #e8f5e3; color: #2f731f; }
.year-status.review,
.year-check-status.review { background: #fff3cd; color: #805f00; }
.year-status.required,
.year-check-status.required { background: #fde8e8; color: #a12626; }

.year-check-status {
  display: inline-block;
  min-width: 76px;
  padding: 5px 9px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}

.year-rollover-table td:nth-child(1) { font-weight: 700; }
.year-rollover-table td:nth-child(3) { white-space: nowrap; }
