:root {
  --bg: #f7f9fd;
  --panel: #ffffff;
  --line: #dfe7f3;
  --line-soft: #edf2f8;
  --text: #0e1b3d;
  --muted: #6f7d99;
  --blue: #1268ff;
  --blue-soft: #eaf2ff;
  --green: #15b86a;
  --green-soft: #eaf9f1;
  --red: #ef394a;
  --red-soft: #fff0f2;
  --orange: #ff7a1a;
  --orange-soft: #fff4ea;
  --purple: #8d4bff;
  --purple-soft: #f3ecff;
  --shadow: 0 14px 34px rgba(15, 32, 64, 0.08);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a[href],
select:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
.checkline,
[role="button"],
[data-view],
[data-view-jump],
[data-timesheet-mode],
[data-timesheet-day-jump],
[data-employee-row],
[data-exception-row],
[data-open-employee],
[data-focus-first-empty],
[data-fill-bulk-hours],
[data-ref-create],
[data-set-payment-type],
[data-fill-advance],
[data-fill-balance],
[data-fix-excel-rate],
[data-fix-rate-problem],
[data-quality-filter],
[data-exception-filter],
[data-quality-open],
[data-payment-row-employee],
[data-card-action],
[data-problem-location],
.link-button,
.panel-link-button {
  cursor: pointer;
}

select:disabled,
input[type="checkbox"]:disabled,
input[type="radio"]:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 20% 10%, rgba(18, 104, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
}

.auth-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0d77ff, #0750e8);
  box-shadow: 0 10px 20px rgba(18, 104, 255, 0.22);
  font-weight: 800;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-card h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.auth-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  min-width: 0;
}

.field span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #52617f;
  font-size: 13px;
  font-weight: 650;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field.required-field > span::after {
  content: " *";
  color: var(--red);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  min-height: 42px;
  padding: 0 13px;
  outline: none;
}

.textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px 13px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(18, 104, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(18, 104, 255, 0.12);
}

.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #24405f;
  min-height: 42px;
  padding: 0 16px;
  min-width: 0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.btn:not(:disabled):hover {
  border-color: rgba(18, 104, 255, 0.42);
  box-shadow: 0 8px 18px rgba(18, 104, 255, 0.10);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn.ghost {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: #cfe0ff;
}

.btn.green {
  background: var(--green-soft);
  color: #079452;
  border-color: #c7efd9;
}

.btn.danger {
  background: #fff;
  color: var(--red);
  border-color: #ffccd2;
}

.owner-danger-zone {
  border-color: #ffd6dc;
  background: #fffafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.owner-danger-zone .panel-title {
  margin-bottom: 6px;
}

.error {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #ffd5da;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.success {
  color: #087d49;
  background: var(--green-soft);
  border: 1px solid #bdebd2;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  padding: 0 8px 20px;
  margin: 0;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 14px;
  background: transparent;
  color: #263a5f;
  text-align: left;
  font-weight: 650;
  min-width: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav button:not(.active):not(:disabled):hover {
  background: #f1f6ff;
  color: var(--blue);
  transform: translateX(2px);
}

.nav button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav button.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-icon {
  width: 22px;
  text-align: center;
  color: currentColor;
}

.sidebar-footer {
  margin-top: auto;
  color: var(--muted);
  padding: 12px 14px;
  font-size: 13px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.filter {
  min-width: 150px;
  max-width: 260px;
  flex: 0 1 240px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #243757;
  font-weight: 700;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.month-filter {
  padding-right: 8px;
}

.static-filter {
  cursor: default;
  background: #f9fbff;
}

.location-filter {
  position: relative;
  overflow: visible;
}

.location-search-results {
  min-width: min(420px, 78vw);
}

.topbar-select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  outline: none;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-combo {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  outline: none;
  min-width: 0;
}

.search {
  margin-left: auto;
  min-width: 220px;
  max-width: 520px;
  flex: 1;
  position: relative;
}

.search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 92px 0 42px;
  outline: none;
  text-overflow: ellipsis;
}

.search:before {
  content: "⌕";
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--muted);
  font-size: 20px;
}

.kbd {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
}

.global-search-results {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(520px, 72vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
}

.global-search-group + .global-search-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.global-search-summary {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #f5f9ff;
  color: #2f5aa8;
  font-size: 12px;
  font-weight: 800;
}

.global-search-title {
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.global-search-item {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.global-search-item:hover,
.global-search-item:focus-visible {
  background: #f2f7ff;
  outline: none;
}

.global-search-item strong {
  font-size: 14px;
  overflow-wrap: break-word;
}

.global-search-item span,
.global-search-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.global-search-empty {
  padding: 12px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 220px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe1cf, #b5c6e4);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.profile-name {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-role {
  color: var(--muted);
  font-size: 12px;
}

.notification-button {
  position: relative;
  min-width: 46px;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 2px #fff;
}

.content {
  padding: 24px 28px 28px;
}

.grid {
  display: grid;
  gap: 18px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 32, 64, 0.04);
  min-width: 0;
}

.metric-card {
  padding: 20px;
  display: grid;
  gap: 8px;
  min-height: 132px;
  min-width: 0;
  overflow: visible;
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.metric-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.tone-blue .metric-icon { background: var(--blue-soft); color: var(--blue); }
.tone-green .metric-icon { background: var(--green-soft); color: var(--green); }
.tone-red .metric-icon { background: var(--red-soft); color: var(--red); }
.tone-orange .metric-icon { background: var(--orange-soft); color: var(--orange); }
.tone-purple .metric-icon { background: var(--purple-soft); color: var(--purple); }
.tone-gray .metric-icon { background: #f2f5f9; color: #66758e; }
.metric-icon.tone-blue { background: var(--blue-soft); color: var(--blue); }
.metric-icon.tone-green { background: var(--green-soft); color: var(--green); }
.metric-icon.tone-red { background: var(--red-soft); color: var(--red); }
.metric-icon.tone-orange { background: var(--orange-soft); color: var(--orange); }
.metric-icon.tone-purple { background: var(--purple-soft); color: var(--purple); }
.metric-icon.tone-gray { background: #f2f5f9; color: #66758e; }

.metric-label {
  color: #33466b;
  font-weight: 750;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.metric-value {
  font-size: clamp(21px, 1.55vw, 28px);
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.metric-hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.interactive-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.interactive-card:hover,
.interactive-card:focus-visible,
.interactive-card.active {
  border-color: rgba(18, 104, 255, 0.45);
  box-shadow: 0 10px 26px rgba(18, 104, 255, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.panel-link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  padding: 0;
}

.split {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

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

.payout-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.payment-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 0 10px;
  margin-bottom: 12px;
  color: var(--muted);
  min-width: 0;
}

.payment-summary-line strong {
  color: var(--text);
  min-width: 0;
  overflow-wrap: break-word;
}

.work-location-grid {
  display: grid;
  gap: 10px;
}

.work-location-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.work-location-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.work-location-head strong {
  min-width: 0;
  overflow-wrap: break-word;
}

.work-location-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.work-location-stats div {
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 8px;
  min-width: 0;
}

.work-location-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.work-location-stats strong {
  overflow-wrap: break-word;
}

.payment-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.bulk-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 16px;
  background: #fbfdff;
}

.bulk-details {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bulk-details summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 850;
  color: var(--blue);
  list-style-position: inside;
}

.bulk-details summary strong,
.bulk-details summary span {
  display: block;
}

.bulk-details summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.bulk-details .bulk-panel {
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  margin: 0;
}

.bulk-details:not([open]) .bulk-panel {
  display: none;
}

.correction-panel {
  display: grid;
  grid-template-columns: minmax(200px, auto) minmax(240px, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 16px;
  background: #fff;
}

.correction-panel.active {
  border-color: rgba(18, 104, 255, 0.35);
  background: #fbfdff;
}

.bulk-panel-title {
  grid-column: 1 / -1;
  align-self: center;
  min-width: 0;
}

.bulk-panel-title strong {
  display: block;
  font-size: 14px;
}

.bulk-panel-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.bulk-success {
  grid-column: 1 / -1;
  margin: 0;
}

.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.quick-type-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.quick-type-grid .btn {
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  white-space: normal;
}

.quick-time-field {
  margin-bottom: 0;
}

.hire-form,
.dismissal-form {
  min-width: 0;
}

.form-block {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
  padding: 16px;
  margin-bottom: 14px;
}

.form-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
}

.compact-notice {
  margin: 0 0 14px;
  padding: 9px 11px;
}

.single-focus-panel {
  align-items: start;
}

.ledger-tabs {
  margin-bottom: 18px;
}

.ledger-employee-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  min-width: 0;
}

.ledger-employee-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ledger-employee-list {
  max-height: 440px;
  min-height: 300px;
}

.ledger-employee-detail {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.ledger-employee-detail.full {
  margin-top: 16px;
}

.ledger-mini-totals {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ledger-lines-mini {
  max-height: 260px;
}

.compact-quick {
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  margin: 0;
}

.timesheet-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.panel {
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel-link {
  color: var(--blue);
  font-weight: 750;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 23px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--line);
}

.step-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  z-index: 1;
}

.step.done .step-dot {
  color: var(--green);
  background: var(--green-soft);
  border-color: #aee9c8;
}

.step.active .step-dot {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #9ac0ff;
}

.step-label {
  font-weight: 780;
  min-height: 38px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.step-date {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin-top: 18px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  overflow-wrap: anywhere;
}

.notice.warning {
  border-color: #ffd7b5;
  background: var(--orange-soft);
  color: #8f3f00;
}

.import-preview {
  margin: 0 0 16px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f7fbff;
  padding: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.import-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.import-preview-head strong,
.import-preview-head span {
  display: block;
}

.import-preview-head span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.import-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-table table {
  min-width: 420px;
}

.compact-table th,
.compact-table td {
  white-space: normal;
}

.import-preview-warnings {
  margin: 0;
  display: block;
}

.chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 30px;
  padding: 20px 10px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-x: auto;
}

.bar-wrap {
  flex: 1;
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 8px;
}

.bar {
  width: min(68px, 70%);
  background: linear-gradient(180deg, #98c8ff, #0d67f2);
  border-radius: 5px 5px 0 0;
}

.bar-label,
.bar-value {
  color: #566681;
  font-size: 13px;
  font-weight: 700;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  min-width: 0;
}

.wide-table {
  min-width: 1120px;
}

.sticky-table-shell {
  max-height: calc(100vh - 300px);
  min-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: #8eb8ff #edf4ff;
  box-shadow: inset -14px 0 18px -18px rgba(18, 104, 255, 0.65);
}

.sticky-table-shell::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.sticky-table-shell::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.sticky-table-shell::-webkit-scrollbar-thumb {
  background: #8eb8ff;
  border: 3px solid #edf4ff;
  border-radius: 999px;
}

.sticky-table-shell th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fbfdff;
  box-shadow: 0 1px 0 var(--line-soft);
}

.visible-x-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
  margin: 0 0 6px;
  scrollbar-width: auto;
  scrollbar-color: #8eb8ff #edf4ff;
}

.visible-x-scroll-bottom {
  position: sticky;
  bottom: 10px;
  z-index: 7;
  margin: 6px 0 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 -6px 14px -16px rgba(18, 104, 255, 0.5);
}

.visible-x-scroll-inner {
  height: 1px;
}

.visible-x-scroll::-webkit-scrollbar {
  height: 14px;
}

.visible-x-scroll::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.visible-x-scroll::-webkit-scrollbar-thumb {
  background: #8eb8ff;
  border: 3px solid #edf4ff;
  border-radius: 999px;
}

.employees-table-shell,
.dismissal-table-shell,
.hire-table-shell {
  max-height: calc(100vh - 270px);
  min-height: 380px;
}

.exception-table-shell {
  max-height: calc(100vh - 270px);
  min-height: 460px;
}

.ledger-employee-table-shell {
  max-height: calc(100vh - 330px);
  min-height: 360px;
  width: 100%;
}

.ledger-employee-table-shell .wide-table {
  min-width: 1320px;
}

.ledger-detail-table-shell {
  max-height: 300px;
  min-height: 180px;
}

.report-table-shell {
  max-height: calc(100vh - 330px);
  min-height: 300px;
}

.report-table-shell .wide-table {
  min-width: 1180px;
}

.reference-tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.reference-tabs button {
  white-space: nowrap;
}

.reference-tab-panel {
  margin-top: 18px;
}

.reference-inner-title {
  margin-bottom: 14px;
}

.reference-table-shell {
  max-height: calc(100vh - 340px);
  min-height: 420px;
}

.reference-locations-shell .wide-table,
.reference-rates-shell .wide-table {
  min-width: 1280px;
}

.reference-positions-shell .wide-table,
.reference-cities-shell .wide-table {
  min-width: 760px;
}

.reference-types-shell .wide-table,
.reference-rules-shell .wide-table {
  min-width: 1080px;
}

.audit-table-shell {
  max-height: calc(100vh - 300px);
  min-height: 520px;
}

.audit-table {
  min-width: 1280px;
}

.base-pay-preview-shell,
.base-pay-missing-shell {
  max-height: calc(100vh - 330px);
  min-height: 320px;
}

.base-pay-preview-shell .wide-table {
  min-width: 980px;
}

.base-pay-missing-shell .wide-table {
  min-width: 1040px;
}

.quality-table-shell {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 290px);
  min-height: 390px;
  scrollbar-width: auto;
  scrollbar-color: #8eb8ff #edf4ff;
  box-shadow: inset -14px 0 18px -18px rgba(18, 104, 255, 0.65);
}

.quality-table-shell::-webkit-scrollbar {
  height: 14px;
}

.quality-table-shell::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.quality-table-shell::-webkit-scrollbar-thumb {
  background: #8eb8ff;
  border: 3px solid #edf4ff;
  border-radius: 999px;
}

.quality-table {
  min-width: 1180px;
}

.payment-register-wrap {
  display: grid;
  gap: 8px;
}

.payment-register-shell {
  position: relative;
  isolation: isolate;
  max-height: calc(100vh - 320px);
  min-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: #8eb8ff #edf4ff;
  box-shadow: inset -14px 0 18px -18px rgba(18, 104, 255, 0.65);
}

.payment-register-shell::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.payment-register-shell::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.payment-register-shell::-webkit-scrollbar-thumb {
  background: #8eb8ff;
  border: 3px solid #edf4ff;
  border-radius: 999px;
}

.payment-register-table {
  min-width: 1180px;
}

.payment-register-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fbfdff;
  box-shadow: 0 1px 0 var(--line-soft);
}

.payment-register-row:hover td {
  background: #f4f8ff;
}

.payment-register-xbar {
  position: sticky;
  bottom: 0;
  z-index: 12;
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #edf4ff;
  scrollbar-width: auto;
  scrollbar-color: #0d67f2 #edf4ff;
  box-shadow: 0 -8px 18px rgba(246, 249, 254, 0.92);
}

.payment-register-xbar::-webkit-scrollbar {
  height: 16px;
}

.payment-register-xbar::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.payment-register-xbar::-webkit-scrollbar-thumb {
  background: #0d67f2;
  border: 3px solid #edf4ff;
  border-radius: 999px;
}

.payment-register-xbar-inner {
  height: 1px;
  min-width: 1180px;
}

.timesheet-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.timesheet-row-search {
  flex: 1 1 300px;
  max-width: 420px;
  margin-bottom: 0;
}

.timesheet-row-search .input {
  min-height: 36px;
}

.day-jump-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timesheet-scroll-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.timesheet-filter-count {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.timesheet-table-shell {
  position: relative;
  isolation: isolate;
  max-height: calc(100vh - 260px);
  min-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: #8eb8ff #edf4ff;
  box-shadow: inset -14px 0 18px -18px rgba(18, 104, 255, 0.65);
}

.timesheet-table-shell::-webkit-scrollbar {
  height: 14px;
}

.timesheet-table-shell::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.timesheet-table-shell::-webkit-scrollbar-thumb {
  background: #8eb8ff;
  border: 3px solid #edf4ff;
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  padding: 12px 12px;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
  max-width: 360px;
}

th {
  color: #415170;
  font-size: 12px;
  background: #fbfdff;
  font-weight: 800;
}

td.strong {
  font-weight: 850;
  overflow-wrap: break-word;
}

.quality-message {
  white-space: normal;
  min-width: 260px;
  overflow-wrap: break-word;
}

.quality-issue {
  display: grid;
  gap: 4px;
  min-width: 220px;
  white-space: normal;
}

.quality-issue strong {
  color: var(--text);
  font-weight: 850;
}

.quality-issue span,
.quality-issue small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn.tiny {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.money-line-canceled {
  opacity: 0.68;
  background: #f8fafc;
}

.money-line-canceled td {
  text-decoration: none;
}

.searchable-select-wrap {
  display: grid;
  gap: 6px;
}

.select-search-input {
  min-height: 36px;
  font-size: 13px;
  background: #fbfdff;
}

.compact-select {
  min-width: 190px;
  max-width: 260px;
  min-height: 34px;
  padding: 0 8px;
}

.time-cell {
  min-width: 74px;
  padding: 6px 8px !important;
}

.timesheet-grid th.weekend-day,
.timesheet-grid td.weekend-day {
  background: #fff5f5;
  color: #c83232;
}

.timesheet-grid th.weekend-day span {
  color: #d94b4b;
}

.timesheet-grid th.day-jump-highlight {
  background: #eaf3ff !important;
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.time-cell-error {
  background: var(--red-soft);
}

.time-cell-locked {
  background: #f6f8fb;
}

.time-input {
  width: 62px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: center;
  padding: 0 6px;
}

.time-input:focus {
  background: #fff;
  border-color: rgba(18, 104, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(18, 104, 255, 0.12);
}

.time-input:disabled {
  color: #9aa8bd;
  cursor: not-allowed;
}

.time-input-error {
  border-color: var(--red);
  background: var(--red-soft);
}

.time-input-focus {
  border-color: var(--orange) !important;
  background: var(--orange-soft) !important;
  box-shadow: 0 0 0 4px rgba(255, 128, 36, 0.16) !important;
}

.time-cell-target {
  background: #fff7ed !important;
  box-shadow: inset 0 0 0 2px var(--orange);
}

.time-cell-pulse {
  background: #fff3e3 !important;
  box-shadow: inset 0 0 0 3px var(--orange), 0 0 0 4px rgba(255, 128, 36, 0.18);
}

.time-input-target {
  border-color: var(--orange) !important;
  background: #fff7ed !important;
  font-weight: 850;
}

.timesheet-issue-notice {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 128, 36, 0.34);
  border-radius: 8px;
  background: #fff7ed;
}

.timesheet-issue-notice .row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.timesheet-issue-notice div:first-child {
  display: grid;
  gap: 4px;
}

.timesheet-issue-notice span,
.timesheet-issue-notice small {
  color: var(--muted);
  line-height: 1.35;
}

.timesheet-grid th {
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: inset 0 -1px 0 var(--line);
}

.timesheet-grid th:first-child,
.timesheet-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.timesheet-grid th:first-child {
  z-index: 7;
  background: #fbfdff;
}

.timesheet-grid th:nth-child(2),
.timesheet-grid td:nth-child(2) {
  position: sticky;
  left: 240px;
  z-index: 2;
  background: #fff;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.timesheet-grid th:nth-child(2) {
  z-index: 7;
  background: #fbfdff;
}

.timesheet-profile-cell {
  display: grid;
  gap: 6px;
  align-content: start;
}

.timesheet-profile-cell strong,
.timesheet-profile-cell span {
  white-space: normal;
  line-height: 1.3;
}

.timesheet-profile-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.timesheet-profile-cell .compact-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

tr.selected {
  background: #f0f6ff;
}

tr[data-employee-row],
tr[data-exception-row],
tr[data-problem-location] {
  transition: background 0.15s ease;
}

tr[data-employee-row]:hover,
tr[data-exception-row]:hover,
tr[data-problem-location]:hover {
  background: #f6f9ff;
}

.link-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: left;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  outline: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.dot-green { background: var(--green); }
.dot-yellow { background: #ffc400; }
.dot-red { background: var(--red); }
.dot-purple { background: var(--purple); }
.dot-orange { background: var(--orange); }
.dot-gray { background: #a7b1c2; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.badge.green { background: var(--green-soft); color: #079452; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.gray { background: #f2f5f9; color: #66758e; }

.mini-stack {
  display: grid;
  gap: 4px;
  min-width: 150px;
  font-size: 12px;
  line-height: 1.35;
  color: #33415c;
}

.mini-stack strong {
  color: var(--ink);
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.tabs button {
  border: 0;
  background: transparent;
  min-height: 46px;
  padding: 0 14px;
  color: #344460;
  font-weight: 800;
  border-bottom: 2px solid transparent;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tabs button:not(.active):not(:disabled):hover {
  color: var(--blue);
  background: #f5f9ff;
}

.tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.toolbar .spacer {
  flex: 1;
}

.report-filters {
  margin-bottom: 0;
  align-items: end;
  flex-wrap: wrap;
}

.report-filters .field {
  margin-bottom: 0;
  min-width: 220px;
}

.report-filters .select {
  min-width: 220px;
}

.rules-list,
.activity-list,
.ledger-list {
  display: grid;
  gap: 14px;
}

.muted-mini {
  display: inline-block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  white-space: normal;
}

.rule,
.activity,
.ledger-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}

.rule-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
  margin: -8px 0 0;
}

.rule-button:hover,
.rule-button:focus-visible,
.rule-button.active {
  background: #f3f7ff;
  outline: none;
}

.blocker-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.mini-title {
  margin-bottom: 10px;
}

.mini-title h3 {
  margin: 0;
  font-size: 15px;
}

.activity:last-child,
.rule:last-child,
.ledger-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.round-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.rule-text,
.activity-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rule-text strong,
.activity-text strong {
  display: block;
  margin-bottom: 4px;
}

.rule-text span,
.activity-text span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.panel > .grid[style*="grid-template-columns:1fr 280px"] {
  grid-template-columns: minmax(0, 1fr) 280px !important;
}

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

.employee-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.employee-title h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.employee-sub {
  display: flex;
  gap: 22px;
  color: #415170;
  font-weight: 700;
}

.profile-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ddd, #aeb8c8);
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 850;
  justify-self: center;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 36px;
}

.detail {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
}

.detail-label {
  color: var(--muted);
}

.detail-value {
  font-weight: 800;
}

.exception-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 18px;
}

.exception-detail-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.exception-detail-modal .side-form {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.report-tabs-panel {
  padding-bottom: 0;
}

.report-tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.report-tabs button {
  white-space: nowrap;
}

.topbar-back {
  flex: 0 0 auto;
}

.help-button {
  flex: 0 0 auto;
  min-width: 98px;
}

.side-form .person-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.workflow-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.exception-calc-panel {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.exception-calc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 16px;
}

.exception-calc-panel .compact-notice {
  margin: 12px 0 0;
}

.workflow-step {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 12px;
}

.workflow-step strong {
  display: block;
  margin-bottom: 4px;
}

.workflow-step span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hr-addition-summary {
  display: grid;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.hr-addition-summary .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.hr-addition-summary .summary-row strong {
  color: var(--text);
  white-space: nowrap;
}

.hr-addition-summary .summary-row.total {
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  font-weight: 850;
}

.hr-addition-summary small {
  color: var(--muted);
  line-height: 1.35;
}

.cash-need-box {
  min-width: 0;
}

.cash-need-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.compact-toolbar {
  margin-top: 12px;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 48, 0.24);
  display: grid;
  place-items: center;
  z-index: 10;
}

.modal {
  width: min(520px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.modal-wide {
  width: min(760px, calc(100vw - 32px));
}

.payment-detail-modal {
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.help-modal {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.notifications-modal {
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.notification-item strong,
.notification-item span,
.notification-item small {
  display: block;
}

.notification-item strong {
  color: var(--text);
  line-height: 1.35;
}

.notification-item span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.notification-item small {
  margin-top: 5px;
  color: #71819a;
  font-weight: 700;
}

.help-modal .modal-head {
  align-items: flex-start;
}

.help-modal .modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.help-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
  min-width: 0;
}

.help-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.help-block ul {
  margin: 0;
  padding-left: 18px;
  color: #344460;
  line-height: 1.45;
}

.help-block li + li {
  margin-top: 7px;
}

.help-note {
  margin: 14px 0 0;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344460;
  font-weight: 750;
  margin: 4px 0 12px;
}

.compact-check {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  white-space: nowrap;
  margin: 0;
}

.checkline input {
  width: 18px;
  height: 18px;
}

.rate-change-mode {
  display: grid;
  align-items: start;
  justify-content: stretch;
}

.rate-change-mode .checkline {
  margin: 2px 0 0;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
}

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

@media (max-width: 1280px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel > .grid[style*="grid-template-columns:1fr 280px"] {
    grid-template-columns: 1fr !important;
  }

  .split,
  .three,
  .payout-picker,
  .bulk-panel,
  .exception-layout,
  .ledger-employee-layout,
  .timesheet-support-grid {
    grid-template-columns: 1fr;
  }

  .ledger-mini-totals {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    flex-wrap: wrap;
    height: auto;
  }

  .search {
    min-width: 100%;
    order: 3;
  }

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

  .details-grid,
  .steps,
  .profile-panel,
  .help-grid {
    grid-template-columns: 1fr;
  }
}
