:root {
  --black: #07090d;
  --ink: #101a2e;
  --ink-soft: #18233b;
  --crimson: #c41e4d;
  --crimson-deep: #9e1740;
  --crimson-light: #f85f86;
  --white: #ffffff;
  --text-soft: #a9b0bd;
  --line: rgba(255, 255, 255, 0.12);
  --success: #45c78a;
  --danger: #ff7896;
  --display: "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
dialog {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.app-shell,
.splash,
.login-view {
  min-height: 100svh;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030405;
  transition: opacity 600ms ease, visibility 600ms ease;
}

body[data-skip-splash="true"] .splash {
  display: none;
}

.splash.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.splash__glow {
  position: absolute;
  width: min(55vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 77, 0.2), transparent 66%);
  opacity: 0;
  animation: glow-breathe 1.7s 180ms ease-out forwards;
}

.splash__brand {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: min(78vw, 460px);
}

.splash__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 240px;
  background: linear-gradient(180deg, transparent, var(--crimson-light) 35%, var(--crimson) 65%, transparent);
  box-shadow: 0 0 28px rgba(196, 30, 77, 0.95);
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0.04);
  animation: light-strike 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash__mark {
  width: clamp(76px, 10vw, 108px);
  opacity: 0;
  filter: drop-shadow(0 0 34px rgba(196, 30, 77, 0.62));
  transform: scale(0.62);
  animation: mark-reveal 900ms 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash__word {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.52em;
  line-height: 1;
  opacity: 0;
  transform: translateX(0.26em);
  animation: word-reveal 760ms 970ms ease-out forwards;
}

.splash__subtitle {
  margin-top: 13px;
  color: #7e8591;
  font-size: clamp(9px, 1.3vw, 11px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: subtitle-reveal 520ms 1.28s ease-out forwards;
}

.login-view {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 20px 72px;
  background:
    radial-gradient(circle at 50% -20%, rgba(196, 30, 77, 0.14), transparent 42%),
    linear-gradient(145deg, #090c13, #050609 72%);
  opacity: 0;
  transition: opacity 700ms ease;
}

.login-view.is-visible {
  opacity: 1;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.ambient--one {
  top: 9%;
  left: 17%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(196, 30, 77, 0.13);
  box-shadow: inset 0 0 80px rgba(196, 30, 77, 0.05);
}

.ambient--two {
  right: 14%;
  bottom: 8%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 40px 38px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(24, 35, 59, 0.84), rgba(10, 14, 23, 0.94));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 25% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 95, 134, 0.8), transparent);
}

.login-card__header {
  margin-bottom: 30px;
  text-align: center;
}

.login-card__logo {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 12px 22px rgba(196, 30, 77, 0.28));
}

.eyebrow {
  margin: 13px 0 20px;
  color: #eef0f5;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.intro,
.otp-heading p,
.success-panel p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #e4e7ed;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-shell svg {
  position: absolute;
  left: 15px;
  width: 18px;
  fill: none;
  stroke: #7e8797;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.input-shell input,
.otp-input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  outline: none;
  background: rgba(2, 4, 8, 0.52);
  color: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell input {
  padding: 0 46px 0 44px;
  font-size: 14px;
}

.input-shell input:focus,
.otp-input:focus {
  border-color: rgba(248, 95, 134, 0.85);
  background: rgba(4, 6, 11, 0.82);
  box-shadow: 0 0 0 3px rgba(196, 30, 77, 0.15);
}

.verified-dot {
  position: absolute;
  right: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(69, 199, 138, 0.15);
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
}

.field-note {
  margin: 9px 0 20px;
  color: #7f8793;
  font-size: 11.5px;
}

.primary-button,
.secondary-button,
.resend-button,
.back-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  box-shadow: 0 12px 26px rgba(158, 23, 64, 0.27);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.primary-button:hover:not(:disabled) {
  box-shadow: 0 15px 34px rgba(196, 30, 77, 0.34);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.primary-button svg,
.back-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.form-message {
  min-height: 18px;
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.form-message.is-success {
  color: var(--success);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -9px 0 23px;
  padding: 0;
  background: transparent;
  color: #929aa8;
  font-size: 12px;
}

.back-button:hover {
  color: var(--white);
}

.otp-heading {
  margin-bottom: 24px;
}

.otp-heading h2,
.success-panel h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 22px;
}

.otp-heading strong {
  color: #e5e8ee;
  font-weight: 600;
}

.otp-input {
  padding: 0 18px;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
}

.otp-input::placeholder {
  color: #5f6672;
}

.local-code {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px dashed rgba(69, 199, 138, 0.35);
  border-radius: 7px;
  background: rgba(69, 199, 138, 0.06);
  color: var(--success);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-align: center;
}

.resend-button {
  display: block;
  margin: 17px auto 0;
  padding: 4px;
  background: transparent;
  color: #9aa2af;
  font-size: 12px;
}

.resend-button:not(:disabled):hover {
  color: var(--white);
}

.resend-button:disabled {
  cursor: default;
  color: #626977;
}

.success-panel {
  text-align: center;
}

.success-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(69, 199, 138, 0.38);
  border-radius: 50%;
  background: rgba(69, 199, 138, 0.09);
  color: var(--success);
  font-size: 22px;
}

.secondary-button {
  height: 42px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7dbe3;
  font-size: 13px;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.login-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: #717986;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.security-mark svg {
  width: 15px;
  fill: none;
  stroke: #7d8593;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.page-caption {
  position: absolute;
  bottom: 23px;
  margin: 0;
  color: #4f5662;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.workspace {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: #f4f5f7;
  color: #16202e;
  opacity: 0;
  transition: opacity 600ms ease;
}

.workspace.is-visible {
  opacity: 1;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  flex-direction: column;
  background: var(--ink);
  color: #edefe9;
}

.workspace-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.workspace-brand__mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.workspace-brand__mark img {
  width: 26px;
  height: 26px;
}

.workspace-brand p {
  margin: 4px 0 0 35px;
  color: #9aa3a8;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workspace-scope {
  margin: 13px 12px 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.workspace-scope__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #8993a1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-scope__heading small {
  overflow: hidden;
  color: #697482;
  font-size: 8.5px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.workspace-scope__switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.35);
}

.workspace-scope__switch button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8f98a6;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.workspace-scope__switch button:hover:not(:disabled) {
  color: #ffffff;
}

.workspace-scope__switch button.is-active {
  background: var(--crimson-deep);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 5px 13px rgba(91, 12, 36, 0.24);
  color: #ffffff;
}

.workspace-scope__switch button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.workspace-scope__fixed {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.32);
  color: #d8dde5;
  font-size: 11px;
}

.workspace-scope__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-light);
  box-shadow: 0 0 0 3px rgba(196, 30, 77, 0.13);
}

.workspace-scope__fixed strong {
  flex: 1;
}

.workspace-scope__fixed svg {
  width: 14px;
  fill: none;
  stroke: #697482;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workspace-scope__message {
  min-height: 0;
  margin: 7px 2px 0;
  color: #8993a1;
  font-size: 9px;
  line-height: 1.35;
}

.workspace-scope__message:empty {
  display: none;
}

.workspace-nav {
  flex: 1;
  padding: 21px 10px;
}

.workspace-nav__label {
  margin: 0;
  padding: 0 10px 8px;
  color: #7a838d;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.workspace-nav__label--section {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #c7ccd4;
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
}

.workspace-nav__item svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workspace-nav__badge {
  min-width: 21px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.workspace-nav__item.is-active {
  background: var(--crimson-deep);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.workspace-page {
  animation: page-in 260ms ease both;
}

.workspace-page:not(.is-active) {
  display: none;
}

.workspace-sidebar__footer {
  padding: 15px 18px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #76808d;
  font-size: 10px;
  text-transform: uppercase;
}

.admin-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  text-transform: none;
}

.admin-summary__avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #303c52;
  color: #dce7e1;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.admin-summary strong,
.admin-summary small {
  display: block;
}

.admin-summary strong {
  color: #dce7e1;
  font-size: 11.5px;
}

.admin-summary small {
  margin-top: 1px;
  color: #7f8997;
  font-size: 10px;
}

.workspace-sidebar__footer > p {
  margin: 12px 0 0;
  letter-spacing: 0.08em;
}

.logout-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #c7ccd4;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 650;
  text-align: left;
}

.logout-button:hover {
  border-color: rgba(248, 95, 134, 0.32);
  background: rgba(196, 30, 77, 0.12);
  color: #fff;
}

.logout-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.logout-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workspace-main {
  min-width: 0;
}

.workspace-topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 30px;
  border-bottom: 1px solid #e3e5ea;
  background: rgba(255, 255, 255, 0.88);
}

.workspace-kicker {
  margin: 0 0 2px;
  color: #8a929f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.workspace-topbar h1:focus {
  outline: none;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #e1e4e9;
  border-radius: 999px;
  background: #f8f9fa;
  color: #677181;
  font-size: 10.5px;
  font-weight: 650;
}

.workspace-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f7a4d;
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.11);
}

.workspace-content {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 72px) 80px;
}

@media (min-width: 781px) {
  #outlet-timesheets,
  #timesheet-detail,
  .worker-list-page,
  .worker-master-page {
    width: 100%;
    padding-right: clamp(28px, 3.5vw, 52px);
    padding-left: clamp(28px, 3.5vw, 52px);
  }
}

.get-started-heading {
  max-width: 610px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-number {
  margin-bottom: 12px;
  color: var(--crimson);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.get-started-heading h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.get-started-heading > p:last-child {
  margin-bottom: 0;
  color: #667085;
  font-size: 14px;
}

.drop-arch {
  position: relative;
  display: flex;
  min-height: 380px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 82px 36px 46px;
  border: 1.5px dashed rgba(133, 143, 158, 0.55);
  border-radius: 28px;
  outline: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at 50% 0%, rgba(196, 30, 77, 0.1), transparent 44%);
  box-shadow:
    0 24px 70px rgba(16, 26, 46, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.drop-arch.is-dragging {
  border-color: var(--crimson);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(251, 230, 236, 0.62)),
    radial-gradient(circle at 50% 0%, rgba(196, 30, 77, 0.14), transparent 48%);
  box-shadow: 0 22px 58px rgba(158, 23, 64, 0.12);
}

.drop-arch.is-uploading {
  border-color: rgba(196, 30, 77, 0.7);
  cursor: progress;
}

.drop-arch.is-dragging {
  transform: translateY(-2px);
}

.drop-arch__halo {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(196, 30, 77, 0.05);
  filter: blur(16px);
  transform: translateX(-50%);
}

.drop-arch__icon {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid #e5b5c3;
  border-radius: 50%;
  background: #fbe6ec;
  color: var(--crimson);
  box-shadow: 0 10px 26px rgba(196, 30, 77, 0.1);
}

.drop-arch__icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.drop-arch h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

.drop-arch > p {
  margin-bottom: 0;
}

#dropHelp {
  color: #747d8b;
  font-size: 13px;
}

.drop-divider {
  display: flex;
  width: min(100%, 250px);
  align-items: center;
  gap: 11px;
  margin: 22px 0 16px;
  color: #a0a6af;
  font-size: 10px;
  text-transform: uppercase;
}

.drop-divider i {
  height: 1px;
  flex: 1;
  background: #e3e5e9;
}

.browse-button {
  min-width: 148px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.browse-button:hover:not(:disabled) {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.browse-button:disabled {
  cursor: not-allowed;
  opacity: 0.82;
  transform: none;
}

.drop-meta {
  margin-top: 13px !important;
  color: #979eaa;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.upload-message {
  min-height: 18px;
  margin-top: 13px !important;
  color: #b42345;
  font-size: 12px;
}

.upload-message.is-success {
  color: #1f7a4d;
}

.page-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.page-heading-row h2,
.detail-heading h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.page-heading-row > div > p:last-child,
.detail-heading > div > p:last-child {
  margin: 0;
  color: #667085;
  font-size: 13.5px;
}

.compact-button,
.view-button,
.delete-timesheet-button,
.confirm-button,
.cancel-button,
.danger-button,
.icon-button,
.text-button,
.worker-tab {
  border: 0;
  cursor: pointer;
}

.compact-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.compact-button--light {
  border: 1px solid #d9dde4;
  background: #fff;
  color: #344054;
}

.compact-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.data-card,
.detail-metadata,
.record-table-wrap {
  border: 1px solid #e1e4e9;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 26, 46, 0.055);
}

.data-card {
  overflow: hidden;
}

.data-card__header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid #e8eaf0;
}

.data-card__header strong,
.data-card__header span {
  display: block;
}

.data-card__header strong {
  color: #222c3c;
  font-size: 13px;
}

.data-card__header > div > span {
  margin-top: 3px;
  color: #8a929f;
  font-size: 11px;
}

.table-search {
  position: relative;
  display: block;
  width: min(100%, 250px);
  margin: 0;
}

.table-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 15px;
  fill: none;
  stroke: #8b94a2;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.table-search input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid #dfe2e8;
  border-radius: 8px;
  outline: none;
  background: #f9fafb;
  color: #253043;
  font-size: 12px;
}

.table-search input:focus {
  border-color: rgba(196, 30, 77, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 30, 77, 0.08);
}

.table-wrap,
.record-table-wrap {
  overflow-x: auto;
}

.timesheet-table,
.record-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.timesheet-table th,
.record-table th {
  padding: 11px 13px;
  background: #f8f9fb;
  color: #7b8492;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
}

.timesheet-table td,
.record-table td {
  padding: 14px 13px;
  border-top: 1px solid #edf0f3;
  color: #344054;
  font-size: 11.5px;
  vertical-align: middle;
}

.timesheet-table td:first-child > span {
  color: #1e293b;
  font-weight: 700;
}

.timesheet-table td span,
.timesheet-table td small {
  display: block;
}

.timesheet-table td small {
  max-width: 220px;
  margin-top: 3px;
  overflow: hidden;
  color: #8b94a2;
  font-size: 9.5px;
  text-overflow: ellipsis;
}

.ready-badge,
.source-only-badge {
  display: inline-flex !important;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.ready-badge {
  padding: 5px 8px;
  background: #eaf7f0;
  color: #16734a;
  font-size: 9.5px;
}

.ready-badge.is-warning,
.source-only-badge.is-warning {
  background: #fff3d6;
  color: #8a5700;
}

.view-button {
  padding: 7px 11px;
  border: 1px solid #d9dde4;
  border-radius: 7px;
  background: white;
  color: #253043;
  font-size: 10.5px;
  font-weight: 700;
}

.view-button:hover {
  border-color: #b8bec9;
  background: #f8f9fb;
}

.timesheet-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.delete-timesheet-button {
  padding: 7px 11px;
  border: 1px solid #efc5cf;
  border-radius: 7px;
  background: #fff8fa;
  color: var(--crimson-deep);
  font-size: 10.5px;
  font-weight: 750;
}

.delete-timesheet-button:hover {
  border-color: #dc9aac;
  background: #fff0f4;
}

.timesheet-list-message {
  min-height: 0;
  margin: 0;
  padding: 0 18px;
  color: #667085;
  font-size: 11px;
}

.timesheet-list-message:not(:empty) {
  min-height: 38px;
  padding-top: 12px;
  padding-bottom: 10px;
  border-top: 1px solid #eceef2;
}

.timesheet-list-message.is-success {
  color: #16734a;
}

.worker-list-message {
  min-height: 18px;
  margin: 0;
  padding: 0 18px;
  color: #6b7280;
  font-size: 10.5px;
}

.worker-list-message.is-error {
  padding-top: 12px;
  color: #b42345;
}

.worker-list-message.is-success {
  padding-top: 12px;
  color: #16734a;
}

.worker-table td:first-child {
  width: 54px;
  color: #8a929f;
  font-variant-numeric: tabular-nums;
}

.worker-status {
  display: inline-flex !important;
  padding: 5px 8px;
  align-items: center;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 750;
}

.worker-status--active {
  background: #eaf7f0;
  color: #16734a;
}

.worker-status--resigned {
  background: #f2f4f7;
  color: #667085;
}

.worker-status--contract-ended {
  background: #fff3d6;
  color: #8a5700;
}

.worker-actions {
  display: flex;
  gap: 6px;
}

.worker-action {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #c41e4d;
  border-radius: 7px;
  background: #fff;
  color: #a61943;
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
}

.worker-action--secondary {
  border-color: #d2a246;
  color: #8a5700;
}

.worker-action--view {
  border-color: #b9c1cc;
  color: #344054;
}

.worker-action:hover:not(:disabled) {
  background: #fff5f7;
}

.worker-action--secondary:hover:not(:disabled) {
  background: #fffaf0;
}

.worker-action--view:hover:not(:disabled) {
  background: #f4f6f8;
}

.worker-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.worker-pagination {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-top: 1px solid #edf0f3;
}

.worker-pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: #4b5565;
  font-size: 10px;
  font-weight: 700;
}

.worker-pagination button.is-current {
  border-color: var(--crimson-deep);
  background: var(--crimson-deep);
  color: #fff;
}

.worker-pagination button:disabled {
  color: #a8afb9;
  cursor: default;
}

.worker-pagination > span {
  color: #98a0ab;
  font-size: 11px;
}

.worker-detail-card {
  overflow: hidden;
  border: 1px solid #e1e4e9;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 26, 46, 0.055);
}

.worker-detail-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 25px 22px;
  border-bottom: 1px solid #e8eaf0;
}

.worker-detail-card__header .section-number {
  margin-bottom: 9px;
}

.worker-detail-card__header h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.035em;
}

.worker-detail-card__header > div > p:last-child {
  margin: 0;
  color: #667085;
  font-size: 11px;
}

.worker-detail-body {
  display: grid;
}

.worker-detail-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  padding: 22px 25px;
  border-top: 1px solid #edf0f3;
}

.worker-detail-section:first-child {
  border-top: 0;
}

.worker-detail-section__heading h3 {
  margin: 0 0 6px;
  color: #273244;
  font-size: 12px;
}

.worker-detail-section__heading p {
  margin: 0;
  color: #7d8694;
  font-size: 10px;
  line-height: 1.55;
}

.worker-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.worker-detail-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 9px;
  background: #fbfcfd;
}

.worker-detail-grid > div.is-wide {
  grid-column: span 2;
}

.worker-detail-grid span,
.worker-detail-grid strong {
  display: block;
}

.worker-detail-grid span {
  margin-bottom: 5px;
  color: #7b8492;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.worker-detail-grid strong {
  overflow-wrap: anywhere;
  color: #293548;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}

.worker-detail-history-empty {
  margin: 0;
  padding: 17px;
  border: 1px dashed #d9dee6;
  border-radius: 9px;
  color: #717b89;
  font-size: 10.5px;
}

.worker-detail-history td {
  vertical-align: top;
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 14px;
  background: #f3f4f7;
  color: #89919e;
}

.empty-state__icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.empty-state h3 {
  margin-bottom: 7px;
  color: #273244;
  font-size: 14px;
}

.empty-state p {
  margin: 0;
  color: #8a929f;
  font-size: 12px;
}

.review-dialog,
.duplicate-dialog {
  width: min(calc(100% - 32px), 680px);
  max-height: calc(100svh - 40px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #263143;
  box-shadow: 0 40px 110px rgba(3, 7, 18, 0.4);
}

.duplicate-dialog {
  width: min(calc(100% - 32px), 500px);
}

.review-dialog::backdrop,
.duplicate-dialog::backdrop {
  background: rgba(6, 10, 17, 0.68);
  backdrop-filter: blur(5px);
}

.review-card,
.duplicate-card {
  margin: 0;
  padding: 28px;
  background: #fff;
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.review-card__header h2,
.duplicate-card h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
}

.review-card__header > div > p:last-child,
.duplicate-card > p {
  margin: 0;
  color: #707988;
  font-size: 12.5px;
  line-height: 1.55;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-size: 21px;
}

.source-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0;
  padding: 13px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fafbfc;
}

.file-type {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #fbe8ee;
  color: var(--crimson-deep);
  font-size: 9px;
  font-weight: 800;
}

.source-summary strong,
.source-summary small {
  display: block;
}

.source-summary strong {
  max-width: 530px;
  overflow: hidden;
  color: #273244;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-summary small {
  margin-top: 4px;
  color: #8a929f;
  font-size: 10px;
}

.review-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.review-fields label {
  margin: 0;
  color: #4b5565;
  font-size: 11px;
}

.review-fields label small {
  color: #99a0aa;
  font-weight: 400;
}

.review-fields input {
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #dce0e6;
  border-radius: 8px;
  outline: none;
  color: #263143;
  font-size: 12px;
}

.review-fields input:focus {
  border-color: rgba(196, 30, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 30, 77, 0.08);
}

.field-span {
  grid-column: 1 / -1;
}

.worker-preview {
  margin-top: 22px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  overflow: hidden;
}

.worker-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  background: #f7f8fa;
  color: #344054;
  font-size: 11px;
}

.worker-preview__header span {
  color: #8a929f;
  font-size: 10px;
}

.worker-preview__list {
  max-height: 180px;
  overflow-y: auto;
}

.worker-preview__list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 13px;
  border-top: 1px solid #edf0f3;
  font-size: 10.5px;
}

.worker-preview__list > div.has-warning {
  background: #fffaf0;
}

.worker-preview__list strong,
.worker-preview__list small {
  display: block;
}

.worker-preview__list strong {
  color: #344054;
}

.worker-preview__list small,
.worker-preview__list > div > span:last-child {
  margin-top: 2px;
  color: #8a929f;
  font-size: 9.5px;
}

.worker-preview__list > div > span:last-child {
  text-align: right;
}

.worker-preview__list .master-match {
  display: block;
  margin-top: 4px;
  color: #16734a;
  font-weight: 700;
}

.worker-preview__list .master-match.is-warning {
  color: #9a6700;
}

.worker-preview__list .final-day-check {
  display: block;
  margin-top: 3px;
  color: #9a6700;
  font-weight: 700;
}

.worker-preview-add {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid rgba(196, 30, 77, 0.24);
  border-radius: 7px;
  background: #fff;
  color: var(--crimson-deep);
  font-size: 9.5px;
  font-weight: 800;
}

.worker-preview-add:hover {
  border-color: rgba(196, 30, 77, 0.44);
  background: #fff5f7;
}

.dialog-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: #b42345;
  font-size: 11.5px;
}

.dialog-message.is-warning {
  color: #8a5700;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.cancel-button,
.confirm-button,
.danger-button {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 750;
}

.cancel-button {
  border: 1px solid #d8dce3;
  background: #fff;
  color: #4b5565;
}

.confirm-button {
  background: var(--ink);
  color: #fff;
}

.danger-button {
  background: var(--crimson-deep);
  color: #fff;
}

.confirm-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.duplicate-card {
  text-align: center;
}

.warning-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  place-items: center;
  border: 1px solid #f0c6d2;
  border-radius: 50%;
  background: #fcedf1;
  color: var(--crimson-deep);
  font-size: 22px;
  font-weight: 800;
}

.status-change-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 13px;
  place-items: center;
  border: 1px solid #cdd7e5;
  border-radius: 50%;
  background: #f1f5f9;
  color: #344054;
  font-size: 22px;
  font-weight: 800;
}

.super-admin-badge {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #dce2ea;
  border-radius: 999px;
  background: #f7f9fb;
  color: #586475;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.worker-master-current,
.worker-master-review {
  margin-top: 20px;
  border: 1px solid #e1e4e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 26, 46, 0.055);
}

.worker-master-current__heading,
.worker-master-review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8eaf0;
}

.worker-master-current__heading span {
  color: #8a929f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.worker-master-current__heading h3,
.worker-master-review__header h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.worker-master-current__grid,
.worker-master-comparison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.worker-master-current__grid article,
.worker-master-comparison article {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid #eaedf1;
}

.worker-master-current__grid article:last-child,
.worker-master-comparison article:last-child {
  border-right: 0;
}

.worker-master-current__grid span,
.worker-master-current__grid strong,
.worker-master-current__grid small,
.worker-master-comparison span,
.worker-master-comparison strong {
  display: block;
}

.worker-master-current__grid span,
.worker-master-comparison span {
  color: #737d8c;
  font-size: 10.5px;
  font-weight: 650;
}

.worker-master-current__grid strong,
.worker-master-comparison strong {
  margin-top: 7px;
  color: #263143;
  font-family: var(--display);
  font-size: 24px;
}

.worker-master-current__grid small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #959ca7;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-master-current__meta {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #eaedf1;
  color: #7f8895;
  font-size: 10.5px;
}

.worker-master-layout {
  margin-top: 18px;
}

.worker-master-drop {
  min-height: 300px;
  border-radius: 14px;
}

.worker-master-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px;
  border: 1px dashed rgba(73, 86, 105, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.82));
  box-shadow: inset 0 1px 0 #fff, 0 14px 38px rgba(20, 32, 51, 0.055);
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.worker-master-drop.is-dragging {
  border-color: rgba(196, 30, 77, 0.72);
  box-shadow: inset 0 1px 0 #fff, 0 18px 45px rgba(196, 30, 77, 0.11);
  transform: translateY(-2px);
}

.worker-master-drop.is-uploading {
  opacity: 0.72;
}

.worker-master-drop__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #dce2ea;
  border-radius: 14px;
  background: #fff;
  color: #344054;
  box-shadow: 0 9px 25px rgba(26, 38, 57, 0.08);
}

.worker-master-drop__icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.worker-master-drop h3 {
  margin: 17px 0 7px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.worker-master-drop > p:not(.upload-message) {
  margin: 0;
  color: #737d8c;
  font-size: 11.5px;
  line-height: 1.6;
}

.worker-master-drop .browse-button {
  margin-top: 20px;
}

.worker-master-drop > small {
  margin-top: 10px;
  color: #959ca7;
  font-size: 9.5px;
}

.worker-master-drop .upload-message {
  min-height: 16px;
  margin: 12px 0 0;
}

.worker-master-review {
  padding-bottom: 20px;
  scroll-margin-top: 20px;
}

.worker-master-review__header {
  align-items: flex-start;
}

.worker-master-review__header .section-number {
  margin: 0;
}

.worker-master-review__header p:last-child {
  margin: 7px 0 0;
  color: #8a929f;
  font-size: 10.5px;
}

.worker-master-review__header p:last-child strong,
.worker-master-review__header p:last-child span {
  color: #4e596a;
}

.worker-master-comparison {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid #eaedf1;
}

.worker-master-comparison article.is-added strong {
  color: #147448;
}

.worker-master-comparison article.is-updated strong {
  color: #2d5b99;
}

.worker-master-comparison article.is-removed strong {
  color: #b42345;
}

.worker-master-result {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  background: #fafbfc;
  color: #4d5868;
  font-size: 11px;
}

.worker-master-review > .dialog-message,
.worker-master-review > .dialog-actions {
  margin-right: 20px;
  margin-left: 20px;
}

@media (max-width: 960px) {
  .worker-master-current__grid,
  .worker-master-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worker-master-current__grid article:nth-child(2n),
  .worker-master-comparison article:nth-child(2n) {
    border-right: 0;
  }

  .worker-master-current__grid article:nth-child(n + 3),
  .worker-master-comparison article:nth-child(n + 3) {
    border-top: 1px solid #eaedf1;
  }

}

@media (max-width: 560px) {
  .worker-master-current__heading,
  .worker-master-review__header,
  .worker-master-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .worker-master-current__grid,
  .worker-master-comparison {
    grid-template-columns: 1fr;
  }

  .worker-master-current__grid article,
  .worker-master-comparison article {
    border-top: 1px solid #eaedf1;
    border-right: 0;
  }

  .worker-master-current__grid article:first-child,
  .worker-master-comparison article:first-child {
    border-top: 0;
  }

  .worker-master-drop {
    min-height: 270px;
    padding: 28px 20px;
  }
}

.session-ended-dialog .duplicate-card {
  padding: 32px;
}

.session-ended-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid #d6dce6;
  border-radius: 50%;
  background: #f4f6f9;
  color: #344054;
}

.session-ended-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.session-ended-dialog .section-number {
  margin: 0 0 7px;
}

.session-ended-dialog .dialog-actions {
  justify-content: center;
}

.worker-status-dialog .section-number {
  margin: 0 0 7px;
}

.duplicate-comparison {
  margin: 20px 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: left;
}

.duplicate-comparison > div,
.detail-metadata > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-top: 1px solid #edf0f3;
  font-size: 10.5px;
}

.duplicate-comparison > div:first-child,
.detail-metadata > div:first-child {
  border-top: 0;
}

.duplicate-comparison span,
.detail-metadata span {
  color: #8a929f;
}

.duplicate-comparison strong,
.detail-metadata strong {
  max-width: 70%;
  overflow: hidden;
  color: #344054;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duplicate-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: #7a5311 !important;
  text-align: left;
  font-size: 10.5px !important;
}

.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 23px;
  padding: 0;
  background: transparent;
  color: #697384;
  font-size: 11px;
  font-weight: 650;
}

.back-to-list svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timesheet-detail-card {
  overflow: hidden;
  border: 1px solid #e1e4e9;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 26, 46, 0.055);
}

.timesheet-detail-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 25px 22px;
  border-bottom: 1px solid #e8eaf0;
}

.timesheet-detail-card__header .section-number {
  margin-bottom: 9px;
}

.timesheet-detail-card__header h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.035em;
}

.timesheet-detail-card__title > p:last-child {
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timesheet-detail-card__header-aside {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.timesheet-workflow-actions,
.reconciliation-heading-actions,
.reconciliation-retrieve-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timesheet-whatsapp-message {
  max-width: 420px;
  margin: 0;
  color: #697384;
  font-size: 10.5px;
  text-align: right;
}

.timesheet-whatsapp-message.is-error {
  color: #a42144;
}

.timesheet-whatsapp-message.is-success {
  color: #18794e;
}

.reconciliation-heading-actions {
  justify-content: flex-end;
}

.reconciliation-retrieve-control {
  padding: 5px;
  border: 1px solid #dfe3e9;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
}

.reconciliation-retrieve-control label {
  white-space: nowrap;
  padding-left: 5px;
  color: #7a8494;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reconciliation-retrieve-control input {
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.timesheet-detail-card__body {
  padding: 0 25px 24px;
}

.detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.source-only-badge {
  padding: 7px 10px;
  background: #eef1f5;
  color: #5c6675;
  font-size: 9.5px;
  white-space: nowrap;
}

.detail-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -25px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e8eaf0;
  border-radius: 0;
  box-shadow: none;
}

.detail-metadata > div {
  display: block;
  border-top: 0;
  border-left: 1px solid #edf0f3;
}

.detail-metadata > div:first-child {
  border-left: 0;
}

.detail-metadata strong,
.detail-metadata span {
  display: block;
  max-width: none;
  text-align: left;
}

.detail-metadata strong {
  margin-top: 5px;
  font-size: 11px;
}

.detail-worker-toolbar {
  display: flex;
  min-height: 78px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.worker-select-field {
  display: grid;
  width: min(100%, 430px);
  gap: 7px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.worker-select {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #dce0e6;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #263143;
  font-size: 11.5px;
  text-transform: none;
}

.worker-select:focus {
  border-color: rgba(196, 30, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 30, 77, 0.08);
}

.worker-source-note {
  padding-bottom: 11px;
  color: #8a929f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9.5px;
  white-space: nowrap;
}

.worker-source-note.is-warning {
  color: #9a6700;
  font-weight: 700;
}

.calculation-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 4px 0 12px;
}

.calculation-summary__card {
  min-width: 0;
  padding: 15px 14px;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: #fafbfc;
}

.calculation-summary__card > span,
.calculation-summary__card > strong,
.calculation-summary__card > small {
  display: block;
}

.calculation-summary__card > span {
  color: #7a8391;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.calculation-summary__card > strong {
  margin-top: 8px;
  overflow: hidden;
  color: #273244;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculation-summary__card > small {
  margin-top: 5px;
  color: #8a929f;
  font-size: 8.5px;
  line-height: 1.45;
}

.calculation-summary__card.is-primary {
  border-color: #313b4c;
  background: #222b39;
}

.calculation-summary__card.is-primary > span,
.calculation-summary__card.is-primary > small {
  color: #aeb7c4;
}

.calculation-summary__card.is-primary > strong {
  color: #fff;
}

.calculation-summary__card.is-warning {
  border-color: #ead29d;
  background: #fffaf0;
}

.calculation-summary__card.is-warning > strong {
  color: #8a5700;
}

.gross-formula-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #e3e6eb;
  border-radius: 9px;
  background: #fff;
}

.gross-formula-panel strong,
.gross-formula-panel div > span {
  display: block;
}

.gross-formula-panel strong {
  color: #344054;
  font-size: 10.5px;
}

.gross-formula-panel div > span {
  margin-top: 3px;
  color: #7b8492;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1.5;
}

.calculation-status {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 750;
  white-space: nowrap;
}

.calculation-status.is-complete {
  background: #eaf7f0;
  color: #16734a;
}

.calculation-status.is-warning {
  background: #fff3d6;
  color: #8a5700;
}

.worker-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.worker-tab {
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid #dde1e7;
  border-radius: 9px;
  background: #fff;
  color: #4b5565;
  text-align: left;
}

.worker-tab strong,
.worker-tab small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-tab strong {
  font-size: 10.5px;
}

.worker-tab small {
  margin-top: 3px;
  color: #8a929f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.worker-tab.is-active {
  border-color: var(--crimson-deep);
  background: var(--crimson-deep);
  color: #fff;
}

.worker-tab.is-active small {
  color: #f6c9d5;
}

.record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 21px 0 10px;
}

.record-heading strong,
.record-heading span {
  display: block;
}

.record-heading strong {
  color: #273244;
  font-size: 13px;
}

.record-heading span {
  margin-top: 2px;
  color: #8a929f;
  font-size: 10px;
}

.source-data-notice {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f7f8fa;
  color: #737d8c;
  font-size: 10.5px;
  line-height: 1.55;
}

.record-table th,
.record-table td {
  padding: 10px 11px;
  font-size: 10px;
}

.record-table td:first-child {
  font-weight: 650;
}

.record-table td.is-absent {
  color: #b42345;
  font-weight: 750;
}

.record-table tr.is-calculation-review td {
  background: #fffdf8;
}

.record-table .daily-formula {
  min-width: 220px;
  white-space: normal;
}

.daily-formula strong,
.daily-formula span {
  display: block;
}

.daily-formula strong {
  color: #344054;
  font-size: 9px;
}

.daily-formula span {
  margin-top: 3px;
  color: #7a8391;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
}

.record-table .daily-gross {
  color: #273244;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 750;
  white-space: nowrap;
}

.record-table .daily-gross.is-partial {
  color: #9a6700;
}

.calculation-flags {
  min-width: 142px;
  white-space: normal;
}

.calculation-flags span {
  display: inline-flex;
  margin: 2px 3px 2px 0;
  padding: 4px 6px;
  border-radius: 999px;
  background: #fff0d5;
  color: #8a5700;
  font-size: 7.5px;
  font-weight: 750;
  white-space: nowrap;
}

.record-table tr.is-final-day-review td {
  background: #fffaf0;
}

.record-table tr.is-final-day-review td:first-child {
  box-shadow: inset 3px 0 0 #d89524;
}

.final-day-row-label {
  display: block;
  margin-top: 3px;
  color: #9a6700;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activity-table th:last-child,
.activity-table td:last-child {
  min-width: 280px;
  white-space: normal;
}

.activity-table td:last-child {
  color: #667085;
  line-height: 1.5;
}

.activity-result {
  display: inline-flex !important;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: #5f6876;
  font-size: 9px;
  font-weight: 750;
  text-transform: capitalize;
}

.activity-result--success {
  background: #eaf7f0;
  color: #16734a;
}

.activity-result--denied,
.activity-result--failed {
  background: #fcedf1;
  color: #a91e42;
}

.activity-result--attention {
  background: #fff5db;
  color: #855900;
}

.detail-loading {
  padding: 70px;
  color: #7c8592;
  text-align: center;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 780px) {
  .workspace {
    display: block;
  }

  .workspace-sidebar {
    position: static;
    height: auto;
  }

  .workspace-brand,
  .workspace-sidebar__footer,
  .workspace-nav__label {
    display: none;
  }

  .workspace-nav {
    display: flex;
    gap: 6px;
    padding: 9px;
    overflow-x: auto;
  }

  .workspace-scope {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 10px 0;
    padding: 7px;
  }

  .workspace-scope__heading {
    margin: 0;
    padding-left: 4px;
  }

  .workspace-scope__heading small,
  .workspace-scope__message {
    display: none;
  }

  .workspace-scope__switch {
    width: 190px;
  }

  .workspace-scope__fixed {
    min-width: 110px;
  }

  .workspace-nav__item {
    flex: 0 0 auto;
  }

  .workspace-topbar {
    min-height: 68px;
    padding: 12px 18px;
  }

  .workspace-content {
    padding: 34px 17px 60px;
  }

  .page-heading-row,
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .timesheet-detail-card__header,
  .detail-worker-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .timesheet-detail-card__header-aside,
  .reconciliation-heading-actions,
  .reconciliation-retrieve-control {
    align-items: stretch;
    width: 100%;
  }

  .timesheet-detail-card__header-aside,
  .reconciliation-heading-actions {
    flex-direction: column;
  }

  .reconciliation-retrieve-control {
    flex-wrap: wrap;
  }

  .reconciliation-retrieve-control input {
    flex: 1;
  }

  .timesheet-workflow-actions {
    flex-wrap: wrap;
  }

  .timesheet-whatsapp-message {
    text-align: left;
  }

  .timesheet-detail-card__header {
    padding: 20px 16px 18px;
  }

  .timesheet-detail-card__title > p:last-child {
    white-space: normal;
  }

  .timesheet-detail-card__body {
    padding: 0 16px 18px;
  }

  .timesheet-detail-card__body .detail-metadata {
    margin-right: -16px;
    margin-left: -16px;
  }

  .detail-worker-toolbar {
    gap: 10px;
  }

  .worker-select-field {
    width: 100%;
  }

  .worker-source-note {
    padding-bottom: 0;
    white-space: normal;
  }

  .data-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .table-search {
    width: 100%;
  }

  .review-fields,
  .detail-metadata {
    grid-template-columns: 1fr;
  }

  .detail-metadata > div {
    border-top: 1px solid #edf0f3;
    border-left: 0;
  }

  .detail-metadata > div:first-child {
    border-top: 0;
  }
}

@keyframes light-strike {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleY(0.04); }
  18% { opacity: 1; }
  62% { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleY(1.3); }
}

@keyframes mark-reveal {
  0% { opacity: 0; transform: scale(0.62); }
  55% { opacity: 1; transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes word-reveal {
  from { opacity: 0; letter-spacing: 0.72em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0.52em; filter: blur(0); }
}

@keyframes subtitle-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-breathe {
  0% { opacity: 0; transform: scale(0.6); }
  62% { opacity: 1; }
  100% { opacity: 0.45; transform: scale(1); }
}

@media (max-width: 560px) {
  .login-view {
    align-items: center;
    padding: 24px 14px 60px;
  }

  .login-card {
    padding: 34px 24px 23px;
    border-radius: 16px;
  }

  .splash__word {
    font-size: 24px;
    letter-spacing: 0.36em;
    transform: translateX(0.18em);
  }

  .splash__subtitle {
    letter-spacing: 0.18em;
  }
}

@media (max-width: 760px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: relative;
    height: auto;
  }

  .workspace-brand {
    padding: 16px 18px;
  }

  .workspace-brand p {
    display: none;
  }

  .workspace-nav {
    padding: 8px 10px 12px;
  }

  .workspace-nav__label,
  .workspace-sidebar__footer {
    display: none;
  }

  .workspace-nav__item {
    width: fit-content;
  }

  .workspace-topbar {
    min-height: 72px;
    padding: 13px 18px;
  }

  .workspace-status {
    display: none;
  }

  .workspace-content {
    padding: 42px 16px 58px;
  }

  .drop-arch {
    min-height: 360px;
    padding: 72px 24px 38px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }

  .splash__mark,
  .splash__word,
  .splash__subtitle,
  .splash__glow {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .workspace-sidebar__footer {
    display: block;
    padding: 0 10px 11px;
    border-top: 0;
  }

  .workspace-sidebar__footer .admin-summary,
  .workspace-sidebar__footer > p {
    display: none;
  }

  .logout-button {
    width: fit-content;
    min-height: 35px;
  }

  .calculation-summary {
    grid-template-columns: 1fr;
  }

  .gross-formula-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .calculation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Payment workspace */
@media (min-width: 781px) {
  .workspace {
    grid-template-columns: 274px minmax(0, 1fr);
  }

  .workspace-nav {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  }

  .workspace-sidebar__footer {
    flex: 0 0 auto;
  }

  .payment-page,
  .reconciliation-page,
  #payment-settings {
    width: 100%;
    max-width: 1480px;
    padding-right: clamp(28px, 3.5vw, 52px);
    padding-left: clamp(28px, 3.5vw, 52px);
  }
}

/* Reconciliation queue */
.reconciliation-source-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid #dfe3e9;
  border-radius: 11px;
  background: #fff;
  color: #475467;
}

.reconciliation-source-note__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #eef1f4;
  color: #475467;
}

.reconciliation-source-note__icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reconciliation-source-note > div {
  min-width: 0;
  flex: 1;
}

.reconciliation-source-note strong {
  color: #273244;
  font-size: 12px;
}

.reconciliation-source-note p {
  margin: 3px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
}

.reconciliation-source-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #d8dde4;
  border-radius: 999px;
  background: #f8f9fb;
  color: #596474;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
}

.reconciliation-source-status.is-online {
  border-color: #bddfce;
  background: #ecf8f1;
  color: #237a52;
}

.reconciliation-source-status.is-warning {
  border-color: #ead39c;
  background: #fff7df;
  color: #805d16;
}

.reconciliation-source-status.is-error {
  border-color: #efc1ce;
  background: #fff1f5;
  color: #9e1740;
}

.reconciliation-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.reconciliation-summary article {
  padding: 14px 15px;
  border: 1px solid #e1e5ea;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 26, 46, 0.045);
}

.reconciliation-summary span,
.reconciliation-summary strong,
.reconciliation-summary small {
  display: block;
}

.reconciliation-summary span {
  color: #667085;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reconciliation-summary strong {
  margin-top: 5px;
  color: #273244;
  font-family: var(--display);
  font-size: 24px;
}

.reconciliation-summary small {
  margin-top: 3px;
  color: #667085;
  font-size: 9.5px;
}

.reconciliation-summary article.is-blocking {
  border-color: #f0c5d1;
  background: #fff7f9;
}

.reconciliation-summary article.is-blocking strong {
  color: #9e1740;
}

.reconciliation-filters {
  display: grid;
  grid-template-columns: minmax(135px, 0.55fr) minmax(150px, 0.65fr) minmax(180px, 0.75fr) minmax(240px, 1fr);
  align-items: end;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #e1e4e9;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.reconciliation-filters > label:not(.table-search) {
  display: grid;
  gap: 6px;
  color: #596474;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reconciliation-filters select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #dfe2e8;
  border-radius: 8px;
  outline: none;
  background: #f9fafb;
  color: #344054;
  font-size: 11.5px;
  text-transform: none;
}

.reconciliation-search {
  width: 100%;
}

.reconciliation-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid #e1e4e9;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 26, 46, 0.055);
}

.reconciliation-list-panel {
  min-width: 0;
  border-right: 1px solid #e6e9ee;
  background: #fafbfc;
}

.reconciliation-panel-heading {
  min-height: 64px;
  padding: 14px 16px;
  border-bottom: 1px solid #e7eaf0;
  background: #fff;
}

.reconciliation-panel-heading strong,
.reconciliation-panel-heading span {
  display: block;
}

.reconciliation-panel-heading strong {
  color: #273244;
  font-size: 12.5px;
}

.reconciliation-panel-heading span {
  margin-top: 3px;
  color: #667085;
  font-size: 10.5px;
}

.reconciliation-list {
  display: grid;
  gap: 9px;
  max-height: 690px;
  padding: 12px;
  overflow-y: auto;
}

.reconciliation-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dde2e8;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.reconciliation-item:hover,
.reconciliation-item:focus-visible {
  border-color: #aeb6c2;
  outline: none;
}

.reconciliation-item.is-selected {
  border-color: rgba(196, 30, 77, 0.48);
  background: #fff7f9;
  box-shadow: 0 0 0 2px rgba(196, 30, 77, 0.06);
}

.reconciliation-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.reconciliation-item__identity {
  min-width: 0;
}

.reconciliation-item__identity strong,
.reconciliation-item__identity small {
  display: block;
}

.reconciliation-item__identity strong {
  overflow: hidden;
  color: #273244;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reconciliation-item__identity small {
  margin-top: 2px;
  color: #667085;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9.5px;
}

.reconciliation-severity {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.reconciliation-severity.is-blocking {
  background: #fde8ee;
  color: #9e1740;
}

.reconciliation-severity.is-verification {
  background: #fff3d5;
  color: #7a5613;
}

.reconciliation-severity.is-resolved {
  background: #e8f6ee;
  color: #237a52;
}

.reconciliation-item.is-resolved {
  background: #fbfdfc;
}

.reconciliation-item__issue {
  color: #3b4657;
  font-size: 11px;
}

.reconciliation-item__meta {
  color: #667085;
  font-size: 9.5px;
}

.reconciliation-evidence-panel {
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.reconciliation-evidence__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8ebef;
}

.reconciliation-evidence__header span:first-child {
  display: block;
  color: #667085;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reconciliation-evidence__header h3 {
  margin: 4px 0 0;
  color: #222c3c;
  font-size: 17px;
}

.reconciliation-evidence__section {
  margin: 15px 0;
  padding: 12px 13px;
  border: 1px solid #f0c5d1;
  border-radius: 9px;
  background: #fff7f9;
}

.reconciliation-evidence__section strong {
  color: #8f1739;
  font-size: 11.5px;
}

.reconciliation-evidence__section p,
.reconciliation-whatsapp-placeholder p {
  margin: 5px 0 0;
  color: #596474;
  font-size: 10.5px;
  line-height: 1.55;
}

.reconciliation-evidence-grid--whatsapp {
  margin-top: 10px;
  border-color: #dce9e1;
  background: #fff;
}

.reconciliation-raw-message {
  max-height: 210px;
  margin: 10px 0 0;
  padding: 11px;
  overflow: auto;
  border: 1px solid #e0e6e2;
  border-radius: 7px;
  background: #fff;
  color: #384b41;
  font: 9.5px/1.55 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

.reconciliation-resolution-summary {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid #bfe2ce;
  border-radius: 9px;
  background: #f1faf5;
}

.reconciliation-resolution-summary strong {
  color: #236542;
  font-size: 11px;
}

.reconciliation-resolution-summary p,
.reconciliation-approval-note {
  margin: 5px 0 0;
  color: #52675b;
  font-size: 10px;
  line-height: 1.5;
}

.reconciliation-approval-note {
  flex: 1;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f3f5f7;
  color: #667085;
}

/* WhatsApp connector settings */
.whatsapp-settings-page {
  width: 100%;
}

.whatsapp-status-card {
  margin-bottom: 14px;
  padding: 20px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.whatsapp-status-card.is-connected {
  border-color: #b9dec9;
  background: linear-gradient(135deg, #f1faf5, #ffffff 58%);
  box-shadow: 0 12px 30px rgba(37, 146, 97, .09);
}

.whatsapp-status-card.is-connected .whatsapp-status-heading strong {
  color: #198455;
}

.whatsapp-status-card.is-connected .whatsapp-connection-mark {
  background: #e5f6ed;
}

.whatsapp-status-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-status-heading > div {
  min-width: 0;
  flex: 1;
}

.whatsapp-status-heading span,
.whatsapp-status-heading strong,
.whatsapp-status-heading small {
  display: block;
}

.whatsapp-status-heading > div > span {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.whatsapp-status-heading strong {
  margin-top: 3px;
  color: #273244;
  font-size: 15px;
}

.whatsapp-status-heading small {
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
}

.whatsapp-connection-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #eef1f4;
}

.whatsapp-connection-mark i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8d96a3;
  box-shadow: 0 0 0 5px rgba(141, 150, 163, .12);
}

.whatsapp-connection-mark.is-ready i {
  background: #259261;
  box-shadow: 0 0 0 5px rgba(37, 146, 97, .13);
}

.whatsapp-connection-mark.is-qr_required i,
.whatsapp-connection-mark.is-connecting i,
.whatsapp-connection-mark.is-authenticated i {
  background: #c99021;
  box-shadow: 0 0 0 5px rgba(201, 144, 33, .13);
}

.whatsapp-connection-mark.is-stale i,
.whatsapp-connection-mark.is-auth_failure i,
.whatsapp-connection-mark.is-not_configured i {
  background: #be3159;
  box-shadow: 0 0 0 5px rgba(190, 49, 89, .13);
}

.whatsapp-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.whatsapp-status-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e4e8ec;
  border-radius: 9px;
  background: #fafbfc;
}

.whatsapp-status-grid span,
.whatsapp-status-grid strong {
  display: block;
}

.whatsapp-status-grid span {
  color: #778190;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.whatsapp-status-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 10.5px;
}

.whatsapp-settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(440px, 1.25fr);
  gap: 14px;
}

.whatsapp-control-card {
  display: grid;
  align-content: start;
  gap: 0;
}

.whatsapp-control-card > label {
  margin: 18px 20px 0;
}

.whatsapp-control-card label {
  color: #667085;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.whatsapp-control-card input {
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
  padding: 0 11px;
  border: 1px solid #dce0e6;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #263143;
  font-size: 11.5px;
}

.whatsapp-setting-note {
  margin: 14px 20px 0;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.55;
}

#saveWhatsAppSettings {
  margin: 18px 20px 20px;
}

.whatsapp-command-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px;
}

.whatsapp-day-retrieval {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0 20px;
  padding: 16px 0 20px;
  border-top: 1px solid #eaedf0;
}

.whatsapp-day-retrieval label {
  display: grid;
  gap: 7px;
}

.whatsapp-day-retrieval input {
  margin-top: 0;
}

.whatsapp-day-retrieval > button {
  height: 40px;
  align-self: end;
}

.whatsapp-qr-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 14px;
  padding: 20px;
}

.whatsapp-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #dfe4ea;
  border-radius: 50%;
  background: #fff;
  color: #667085;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.whatsapp-qr-close:hover,
.whatsapp-qr-close:focus-visible {
  border-color: #b21646;
  background: #fff5f7;
  color: #b21646;
  outline: none;
}

.whatsapp-qr-card[hidden] {
  display: none;
}

.whatsapp-qr-card h3 {
  margin: 5px 0 7px;
  color: #273244;
  font-size: 17px;
}

.whatsapp-qr-copy {
  min-width: 0;
}

.whatsapp-qr-copy > p:not(.section-number) {
  max-width: 600px;
  margin: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.55;
}

.whatsapp-qr-card img {
  width: 190px;
  height: 190px;
  border: 10px solid #fff;
  border-radius: 12px;
  box-shadow: 0 5px 24px rgba(18, 30, 48, .12);
  transition: opacity .2s ease, filter .2s ease;
  margin-right: 34px;
}

.whatsapp-qr-countdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid #e1e6ec;
  border-radius: 9px;
  background: #f7f9fb;
}

.whatsapp-qr-countdown span {
  color: #8a94a4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.whatsapp-qr-countdown strong {
  color: #273244;
  font-size: 12px;
}

.whatsapp-qr-card.is-refreshing img {
  opacity: .32;
  filter: grayscale(1);
}

.whatsapp-activity-card {
  margin-top: 14px;
}

.whatsapp-command-list {
  max-height: 235px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  margin: 16px 20px 20px;
  border: 1px solid #e3e7eb;
  border-radius: 9px;
}

.whatsapp-command-list:focus-visible {
  outline: 2px solid rgba(196, 30, 77, .32);
  outline-offset: 2px;
}

.whatsapp-command-list::-webkit-scrollbar {
  width: 7px;
}

.whatsapp-command-list::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c8ced7;
}

.whatsapp-command-list > p {
  margin: 0;
  padding: 18px;
  color: #788190;
  font-size: 10.5px;
}

.whatsapp-command-list > div {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #edf0f3;
}

.whatsapp-command-list > div:first-child {
  border-top: 0;
}

.whatsapp-command-list strong,
.whatsapp-command-list small {
  display: block;
}

.whatsapp-command-list strong {
  color: #344054;
  font-size: 10.5px;
  text-transform: capitalize;
}

.whatsapp-command-list small {
  margin-top: 3px;
  color: #7b8492;
  font-size: 9px;
}

.whatsapp-command-status {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff3d5;
  color: #7a5613;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.whatsapp-command-status.is-completed {
  background: #e8f6ee;
  color: #237a52;
}

.whatsapp-command-status.is-failed {
  background: #fde8ee;
  color: #9e1740;
}

.reconciliation-evidence-panel h4 {
  margin: 16px 0 8px;
  color: #475467;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reconciliation-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2e6eb;
  border-radius: 9px;
}

.reconciliation-evidence-grid > div {
  min-width: 0;
  padding: 10px 11px;
  border-top: 1px solid #edf0f3;
  border-left: 1px solid #edf0f3;
}

.reconciliation-evidence-grid > div:nth-child(-n + 2) {
  border-top: 0;
}

.reconciliation-evidence-grid > div:nth-child(2n + 1) {
  border-left: 0;
}

.reconciliation-evidence-grid span,
.reconciliation-evidence-grid strong {
  display: block;
}

.reconciliation-evidence-grid span {
  color: #667085;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reconciliation-evidence-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 10.5px;
}

.reconciliation-whatsapp-placeholder {
  padding: 12px 13px;
  border: 1px solid #dce4df;
  border-radius: 9px;
  background: #f7faf8;
}

.reconciliation-whatsapp-placeholder > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reconciliation-whatsapp-placeholder strong {
  color: #335044;
  font-size: 11px;
}

.reconciliation-whatsapp-placeholder span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e7efe9;
  color: #456454;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.reconciliation-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.reconciliation-actions .compact-button {
  flex: 1;
}

.reconciliation-evidence-empty {
  display: grid;
  min-height: 400px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: #667085;
  text-align: center;
}

.reconciliation-evidence-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #edf1f4;
  color: #475467;
  font-size: 18px;
}

.reconciliation-evidence-empty h3 {
  margin: 12px 0 4px;
  color: #344054;
  font-size: 14px;
}

.reconciliation-evidence-empty p {
  max-width: 280px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
}

.reconciliation-empty {
  min-height: 360px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.payment-filter-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 17px;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 26, 46, 0.045);
}

.payment-filter-card--compact {
  grid-template-columns: minmax(180px, 0.35fr) minmax(260px, 1fr);
}

.payment-filter-card label,
.settings-form label,
.manual-payment-grid label,
.payment-editor label {
  margin: 0;
  color: #667085;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.payment-filter-card input,
.payment-filter-card select,
.settings-form input,
.settings-form select,
.manual-payment-grid input,
.manual-payment-grid select,
.manual-payment-grid textarea,
.payment-editor input,
.payment-editor select,
.payment-editor textarea {
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
  padding: 0 11px;
  border: 1px solid #dce0e6;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #263143;
  font-size: 11.5px;
  letter-spacing: normal;
  text-transform: none;
}

.manual-payment-grid textarea,
.payment-editor textarea {
  min-height: 74px;
  padding-top: 10px;
  resize: vertical;
}

.payment-filter-card input:focus,
.payment-filter-card select:focus,
.settings-form input:focus,
.settings-form select:focus,
.manual-payment-grid input:focus,
.manual-payment-grid select:focus,
.manual-payment-grid textarea:focus,
.payment-editor input:focus,
.payment-editor select:focus,
.payment-editor textarea:focus {
  border-color: rgba(196, 30, 77, 0.52);
  box-shadow: 0 0 0 3px rgba(196, 30, 77, 0.08);
}

.table-search--standalone {
  width: 100%;
}

.table-search--standalone input {
  margin-top: 0;
  padding-left: 34px;
}

.payment-cycle-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #ead8aa;
  border-radius: 10px;
  background: #fffaf0;
  color: #72531a;
  font-size: 11.5px;
  line-height: 1.55;
}

.payment-cycle-note strong {
  flex: 0 0 auto;
  color: #5f4413;
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.payment-summary article {
  padding: 16px;
  border: 1px solid #e1e5ea;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 26, 46, 0.045);
}

.payment-summary span,
.payment-summary strong,
.payment-summary small {
  display: block;
}

.payment-summary span {
  color: #5f6978;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-summary strong {
  margin-top: 7px;
  color: #273244;
  font-family: var(--display);
  font-size: 21px;
}

.payment-summary small {
  margin-top: 4px;
  color: #667085;
  font-size: 9.5px;
}

.payment-summary article.is-primary {
  border-color: #222b39;
  background: #222b39;
}

.payment-summary article.is-primary span,
.payment-summary article.is-primary small {
  color: #aeb7c4;
}

.payment-summary article.is-primary strong {
  color: #fff;
}

.payment-table td {
  font-variant-numeric: tabular-nums;
}

.payment-table td:nth-last-child(-n + 3) {
  white-space: nowrap;
}

.payment-status {
  display: inline-flex !important;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: #5e6877;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: capitalize;
}

.payment-status--approved,
.payment-status--locked {
  background: #eaf7f0;
  color: #16734a;
}

.payment-status--review,
.payment-status--needs-review {
  background: #fff3d6;
  color: #8a5700;
}

.payment-status--superseded {
  background: #f2f4f7;
  color: #8b94a2;
}

.payment-review-flags {
  display: flex;
  max-width: 190px;
  flex-wrap: wrap;
  gap: 4px;
  white-space: normal;
}

.payment-review-flags span {
  display: inline-flex !important;
  padding: 4px 6px;
  border-radius: 999px;
  background: #fff3d6;
  color: #8a5700;
  font-size: 9.5px;
  font-weight: 750;
}

.settings-form {
  display: grid;
  gap: 13px;
}

.settings-card {
  overflow: hidden;
  border: 1px solid #e1e4e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 26, 46, 0.04);
}

.settings-card__heading {
  padding: 15px 17px;
  border-bottom: 1px solid #eaecf0;
  background: #fafbfc;
}

.settings-card__heading strong,
.settings-card__heading span {
  display: block;
}

.settings-card__heading strong {
  color: #273244;
  font-size: 12px;
}

.settings-card__heading span {
  margin-top: 3px;
  color: #667085;
  font-size: 9.5px;
  line-height: 1.45;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 17px;
}

.settings-grid + .settings-grid {
  padding-top: 0;
}

.settings-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-form label small {
  color: #667085;
  font-size: 8.5px;
  font-weight: 500;
  text-transform: none;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-message {
  padding: 0;
}

.access-user-form {
  margin-bottom: 14px;
}

.access-user-fields {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.45fr) auto;
  align-items: end;
  gap: 15px;
  padding: 17px;
}

.access-user-fields .compact-button {
  min-width: 112px;
}

.access-scope-note {
  margin: 0 17px 17px;
  padding: 11px 13px;
  border: 1px solid #e2e5ea;
  border-radius: 9px;
  background: #f8f9fb;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.55;
}

.access-user-form .settings-message {
  margin: 0 17px 17px;
}

.access-user-list-card {
  margin-top: 14px;
}

.access-user-table td:first-child {
  color: #273244;
  font-weight: 700;
}

.access-user-type,
.access-user-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.access-user-type {
  background: #eef1f5;
  color: #536071;
}

.access-user-type--local {
  background: #eaf2ff;
  color: #295b9b;
}

.access-user-type--foreign {
  background: #f4edff;
  color: #6941a5;
}

.access-user-type--super-admin {
  background: #fcedf1;
  color: #a91e42;
}

.access-user-status {
  background: #eaf7f0;
  color: #16734a;
}

.payment-dialog {
  width: min(94vw, 820px);
  max-height: 90vh;
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 15px;
  background: transparent;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.36);
}

.payment-dialog::backdrop {
  background: rgba(8, 13, 23, 0.68);
  backdrop-filter: blur(4px);
}

.payment-dialog__card {
  padding: 23px;
  background: #fff;
}

.add-worker-dialog {
  width: min(95vw, 980px);
}

.add-worker-dialog__card {
  padding: 0;
}

.add-worker-dialog__card > .review-card__header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 22px 24px;
  border-bottom: 1px solid #e6e9ee;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.add-worker-detected {
  margin: 18px 24px 0;
  padding: 13px 15px;
  border: 1px solid #e1e5eb;
  border-radius: 10px;
  background: #f8fafc;
}

.add-worker-detected span,
.add-worker-detected strong,
.add-worker-detected small {
  display: block;
}

.add-worker-detected span {
  color: #7d8796;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.add-worker-detected strong {
  margin-top: 5px;
  color: #273244;
  font-size: 12px;
}

.add-worker-detected small {
  margin-top: 3px;
  color: #8a929f;
  font-size: 9.5px;
}

.add-worker-form-body {
  display: grid;
  gap: 14px;
  padding: 18px 24px 2px;
}

.add-worker-section {
  box-shadow: none;
}

.add-worker-section .add-worker-grid {
  margin: 0;
  padding: 17px;
}

.add-worker-grid--deductions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.add-worker-dialog__card > .payment-dialog__message {
  margin: 16px 24px 0;
}

.add-worker-dialog__actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e6e9ee;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

@media (max-width: 760px) {
  .add-worker-grid--deductions,
  .add-worker-grid {
    grid-template-columns: 1fr;
  }

  .add-worker-grid .field-span {
    grid-column: auto;
  }
}

.manual-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 19px;
}

.manual-payment-grid .field-span {
  grid-column: 1 / -1;
}

.manual-kind-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.worker-search-results {
  display: grid;
  max-height: 230px;
  margin-top: 5px;
  overflow-y: auto;
  border: 1px solid #dce0e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 13px 30px rgba(16, 26, 46, 0.14);
}

.worker-search-results button {
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid #edf0f3;
  background: #fff;
  color: #344054;
  cursor: pointer;
  text-align: left;
}

.worker-search-results button:first-child {
  border-top: 0;
}

.worker-search-results button:hover {
  background: #f8f9fb;
}

.worker-search-results strong,
.worker-search-results small {
  display: block;
}

.worker-search-results strong {
  font-size: 11.5px;
}

.worker-search-results small {
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
}

.payment-dialog__message {
  padding: 13px 0 0;
}

.payment-detail-card {
  overflow: hidden;
  border: 1px solid #e1e4e9;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 26, 46, 0.055);
}

.payment-detail-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid #e8eaf0;
}

.payment-detail-card__header h2 {
  margin: 0 0 5px;
  color: #192437;
  font-family: var(--display);
  font-size: 26px;
}

.payment-detail-card__header p:last-child {
  margin: 0;
  color: #5f6978;
  font-size: 10.5px;
}

.payment-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.payment-detail-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px 24px;
}

.payment-profile-grid,
.payment-totals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
}

.payment-profile-grid > div,
.payment-totals-grid > div {
  padding: 12px;
  border-left: 1px solid #edf0f3;
  border-top: 1px solid #edf0f3;
}

.payment-profile-grid > div:nth-child(-n + 4),
.payment-totals-grid > div:nth-child(-n + 4) {
  border-top: 0;
}

.payment-profile-grid > div:nth-child(4n + 1),
.payment-totals-grid > div:nth-child(4n + 1) {
  border-left: 0;
}

.payment-profile-grid span,
.payment-profile-grid strong,
.payment-totals-grid span,
.payment-totals-grid strong,
.payment-totals-grid small {
  display: block;
}

.payment-profile-grid span,
.payment-totals-grid span {
  color: #667085;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-profile-grid strong,
.payment-totals-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 11.5px;
}

.payment-totals-grid strong {
  font-family: var(--display);
  font-size: 17px;
}

.payment-totals-grid small {
  margin-top: 4px;
  color: #667085;
  font-size: 9.5px;
}

.payment-totals-grid > div.is-primary {
  background: #222b39;
}

.payment-totals-grid > div.is-primary span,
.payment-totals-grid > div.is-primary small {
  color: #abb4c1;
}

.payment-totals-grid > div.is-primary strong {
  color: #fff;
}

.payment-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-editor__section {
  padding: 15px;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  background: #fafbfc;
}

.payment-editor__section h3 {
  margin: 0 0 4px;
  color: #273244;
  font-size: 12px;
}

.payment-editor__section > p {
  margin: 0 0 12px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.5;
}

.payment-line {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 105px minmax(170px, 1.2fr) 30px;
  gap: 7px;
  margin-top: 7px;
}

.payment-line input,
.payment-line select {
  margin-top: 0;
}

.payment-line button {
  border: 1px solid #dce0e6;
  border-radius: 7px;
  background: #fff;
  color: #a91e42;
  cursor: pointer;
}

.payment-add-line {
  margin-top: 9px;
  padding: 6px 9px;
  border: 1px dashed #c5cad2;
  border-radius: 7px;
  background: #fff;
  color: #596474;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.payment-review-notice {
  padding: 11px 13px;
  border: 1px solid #ead29d;
  border-radius: 9px;
  background: #fffaf0;
  color: #775519;
  font-size: 10.5px;
  line-height: 1.55;
}

.payment-line.is-invalid select {
  border-color: #c41e4d;
  background: #fff4f7;
}

@media (max-width: 1180px) {
  .settings-grid--four,
  .payment-profile-grid,
  .payment-totals-grid,
  .worker-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .whatsapp-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whatsapp-settings-grid {
    grid-template-columns: 1fr;
  }

  .reconciliation-grid {
    grid-template-columns: 1fr;
  }

  .reconciliation-list-panel {
    border-right: 0;
    border-bottom: 1px solid #e6e9ee;
  }

  .reconciliation-list {
    max-height: 430px;
  }

  .payment-profile-grid > div:nth-child(-n + 4),
  .payment-totals-grid > div:nth-child(-n + 4) {
    border-top: 1px solid #edf0f3;
  }

  .payment-profile-grid > div:nth-child(-n + 2),
  .payment-totals-grid > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .payment-profile-grid > div:nth-child(4n + 1),
  .payment-totals-grid > div:nth-child(4n + 1) {
    border-left: 1px solid #edf0f3;
  }

  .payment-profile-grid > div:nth-child(2n + 1),
  .payment-totals-grid > div:nth-child(2n + 1) {
    border-left: 0;
  }
}

@media (max-width: 780px) {
  .payment-filter-card,
  .payment-filter-card--compact,
  .reconciliation-filters,
  .settings-grid,
  .settings-grid--three,
  .settings-grid--four,
  .manual-payment-grid,
  .manual-kind-fields,
  .payment-editor,
  .payment-line {
    grid-template-columns: 1fr;
  }

  .access-user-fields {
    grid-template-columns: 1fr;
  }

  .access-user-fields .compact-button {
    width: 100%;
  }

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

  .reconciliation-source-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .reconciliation-source-status {
    margin-left: 49px;
  }

  .whatsapp-status-grid,
  .whatsapp-day-retrieval,
  .whatsapp-qr-card {
    grid-template-columns: 1fr;
  }

  .whatsapp-qr-card img {
    width: min(190px, 100%);
    height: auto;
    margin-right: 0;
  }

  .reconciliation-evidence-grid {
    grid-template-columns: 1fr;
  }

  .reconciliation-evidence-grid > div,
  .reconciliation-evidence-grid > div:nth-child(-n + 2) {
    border-top: 1px solid #edf0f3;
    border-left: 0;
  }

  .reconciliation-evidence-grid > div:first-child {
    border-top: 0;
  }

  .reconciliation-actions {
    flex-direction: column;
  }

  .payment-cycle-note,
  .payment-detail-card__header,
  .worker-detail-card__header {
    flex-direction: column;
  }

  .worker-detail-section {
    grid-template-columns: 1fr;
  }

  .payment-detail-actions {
    justify-content: flex-start;
  }

  .payment-profile-grid,
  .payment-totals-grid,
  .worker-detail-grid {
    grid-template-columns: 1fr;
  }

  .worker-detail-grid > div.is-wide {
    grid-column: auto;
  }

  .payment-profile-grid > div,
  .payment-totals-grid > div,
  .payment-profile-grid > div:nth-child(-n + 2),
  .payment-totals-grid > div:nth-child(-n + 2) {
    border-top: 1px solid #edf0f3;
    border-left: 0;
  }

  .payment-profile-grid > div:first-child,
  .payment-totals-grid > div:first-child {
    border-top: 0;
  }
}

@media (max-width: 520px) {
  .payment-summary,
  .reconciliation-summary {
    grid-template-columns: 1fr;
  }
}
