:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #23352f;
  background: #f6f8f6;
  font-synthesis: none;
  --green: #265c45;
  --muted: #718077;
  --border: #e0e7e1;
  --navy: #142e28;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9dbb70;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
small {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6a806d;
  margin-bottom: 14px;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #d9e3dd;
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  display: flex;
  gap: 13px;
  align-items: center;
  line-height: 1.45;
}
.brand-mark {
  width: 42px;
  height: 46px;
  border: 1px solid #749183;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  color: #c9d7ac;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #869e91;
  margin: 52px 0 18px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  border: 0;
  background: none;
  color: #b4c5bb;
  text-align: left;
  font-size: 13px;
  padding: 13px 12px;
  border-radius: 6px;
  display: flex;
  gap: 13px;
  align-items: center;
}
nav button span {
  font-size: 19px;
  width: 20px;
  color: #a6b9ac;
}
nav button.active {
  background: #2b453b;
  color: #fff;
}
nav button:hover {
  background: #243d33;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #355044;
  padding-top: 24px;
  font-size: 11px;
  color: #a0b4a7;
}
.sidebar-bottom strong {
  font-size: 11px;
  color: #d6e2d8;
}
.sidebar-bottom p {
  margin: 10px 0 25px;
  font-size: 11px;
}
.secure-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #b1ca86;
  border-radius: 50%;
  margin-right: 7px;
}
.account {
  padding-top: 16px;
  border-top: 1px solid #355044;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.sidebar .text-button {
  color: #c5d4c8;
  padding-left: 0;
  font-size: 11px;
}
.main-shell {
  margin-left: 238px;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 12px;
  color: #829084;
}
.topbar strong {
  font-weight: 500;
  color: #3e5145;
}
.topbar span {
  margin: 0 12px;
}
.topbar-right {
  display: flex;
  align-items: center;
}
.topbar .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8ede6;
  display: grid;
  place-items: center;
  color: #4a664e;
  font-size: 11px;
  margin-right: 0;
}
.mode {
  font-size: 10px;
  letter-spacing: 0.4px;
}
.main-shell main {
  padding: 30px 42px 50px;
  min-height: calc(100vh - 132px);
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  margin: 15px 0 30px;
}
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.heading-row p,
.page-heading > p {
  margin-top: 11px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 5px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.primary:hover {
  background: #194832;
}
.secondary {
  background: white;
  border: 1px solid var(--border);
  color: #43564a;
}
.secondary:hover {
  background: #f1f5ef;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 10px;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0 38px;
}
.stats article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 22px;
}
.stats article > span {
  display: block;
  font-size: 12px;
  color: #66786b;
}
.stats strong {
  font-size: 32px;
  font-weight: 500;
  display: block;
  margin: 17px 0 10px;
  letter-spacing: -1px;
}
.stats small {
  font-size: 10px;
  color: #8a968c;
  display: block;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 18px;
}
.section-heading p {
  font-size: 12px;
  margin-top: 6px;
}
.search-list {
  display: grid;
  gap: 12px;
}
.search-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(170px, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.search-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-title .tile {
  width: 38px;
  height: 40px;
  background: #f0f4ed;
  border: 1px solid #e3e9dc;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #6b8262;
  flex-shrink: 0;
}
.search-title h3 {
  font-size: 13px;
}
.search-title small {
  color: #839084;
  font-size: 10px;
}
.search-progress .numbers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 12px;
}
.search-progress small {
  color: #7b8b7d;
  font-size: 10px;
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 5px;
  background: #edf1eb;
  margin: 11px 0 5px;
  appearance: none;
}
progress::-webkit-progress-bar {
  background: #edf1eb;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #728e61;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #728e61;
  border-radius: 5px;
}
.badge {
  display: inline-flex;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: #edf1ec;
  color: #647165;
  white-space: nowrap;
}
.badge.completed,
.badge.disposed {
  background: #eaf3e9;
  color: #437543;
}
.badge.processing,
.badge.pending {
  background: #f8f0df;
  color: #917239;
}
.badge.failed,
.badge.needs-review {
  background: #fbeae6;
  color: #a24f3a;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.info-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  background: #f0f3ed;
  position: relative;
}
.info-icon {
  float: left;
  font-size: 25px;
  width: 44px;
  color: #6b865c;
}
.info-card h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.info-card p {
  font-size: 11px;
  color: #748170;
  margin-left: 44px;
  max-width: 390px;
}
.page-footer {
  padding: 20px 42px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #96a194;
}
.page-footer span:first-child {
  letter-spacing: 1.5px;
}
.demo-banner,
.notice {
  background: #edf2e5;
  color: #64714a;
  padding: 13px 17px;
  font-size: 11px;
  border: 1px solid #dce5cd;
  border-radius: 5px;
  line-height: 1.6;
}
.demo-banner {
  margin-bottom: 25px;
}
.demo-banner strong {
  margin-right: 10px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  background: white;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 7px 7px 0 0;
}
.filters label {
  margin: 0;
}
.grow {
  flex: 1;
}
.filters input,
.filters select {
  min-width: 110px;
}
.filter-second {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-top: 0;
  background: #fff;
  margin-bottom: 22px;
  border-radius: 0 0 7px 7px;
  font-size: 12px;
}
.filter-second label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.filter-second input {
  padding: 7px;
  max-width: 190px;
}
.table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  color: #7e8c7f;
  background: #f9fbf8;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 18px;
  border-bottom: 1px solid #edf0eb;
  vertical-align: middle;
}
td:first-child {
  min-width: 230px;
  max-width: 350px;
}
td strong {
  font-weight: 500;
  display: block;
  line-height: 1.6;
}
td small {
  display: block;
  color: #8a968d;
  margin-top: 5px;
  font-size: 10px;
}
td .text-button {
  padding: 4px;
  font-size: 11px;
}
.table-footer {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7f8d80;
  font-size: 11px;
}
.table-footer div {
  display: flex;
  gap: 8px;
}
.table-footer button {
  font-size: 11px;
  padding: 8px 12px;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: #819080;
  font-size: 13px;
}
.empty h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  color: #52674e;
  margin-bottom: 12px;
  font-weight: 400;
}
.empty button {
  margin-top: 18px;
}
.queue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.queue-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 7px;
}
.queue-card h3 {
  margin-bottom: 20px;
}
.queue-counts {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #83917f;
}
.queue-counts strong {
  display: block;
  font-size: 25px;
  color: #395439;
  margin-bottom: 7px;
}
.event {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.7;
}
.event small {
  color: #87947f;
}
.event p {
  overflow-wrap: anywhere;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #53664f;
  margin: 18px 0;
}
label span {
  display: block;
  margin-bottom: 7px;
}
label > .muted {
  display: inline;
}
input,
select {
  display: block;
  background: #fff;
  border: 1px solid #dce4d9;
  padding: 11px 12px;
  border-radius: 4px;
  width: 100%;
  margin-top: 7px;
  color: #33492e;
  font-size: 12px;
}
input::placeholder {
  color: #a0aa9b;
}
.form-card {
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
}
.form-card small {
  font-size: 10px;
  color: #83917a;
  font-weight: 400;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  width: min(580px, calc(100% - 32px));
  color: #32452e;
  box-shadow: 0 30px 100px #12201730;
  max-height: 90vh;
}
dialog::backdrop {
  background: #122b2490;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
.icon-button {
  border: 0;
  background: #f1f4ef;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 22px;
  color: #73836c;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid label {
  margin: 12px 0;
}
.dialog-footer {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 22px;
}
.detail-dialog {
  width: min(730px, calc(100% - 32px));
}
.detail-title {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 25px 0 12px;
  line-height: 1.4;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 23px;
}
.detail-grid dt {
  font-size: 10px;
  color: #819175;
  margin-bottom: 6px;
}
.detail-grid dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.document-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.document-row small {
  display: block;
  color: #86927d;
}
.document-row a {
  font-size: 11px;
  color: var(--green);
  padding: 5px;
}
.document-row .error {
  max-width: 400px;
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #203e30;
  color: white;
  padding: 16px 22px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 20;
  max-width: 440px;
  box-shadow: 0 8px 30px #0002;
}
.error {
  font-size: 12px;
  color: #a94435;
  margin: 10px 0;
  line-height: 1.6;
}
.error-banner {
  background: #fff0ea;
  border: 1px solid #efd0c7;
  color: #a14832;
  padding: 13px;
  margin-bottom: 16px;
  border-radius: 5px;
  font-size: 12px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-story {
  background: var(--navy);
  color: #eaf0df;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story h1 {
  font-size: 64px;
  letter-spacing: -2px;
  line-height: 1.12;
}
.login-story p {
  max-width: 390px;
  font-size: 14px;
  color: #aabbad;
  margin-top: 30px;
}
.login-story .eyebrow {
  color: #9bb17c;
}
.login-story small {
  color: #92a786;
  font-size: 11px;
}
.login-form {
  width: 360px;
  max-width: 85%;
  margin: auto;
}
.login-form h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 14px;
}
.login-form .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
}
.login-form > small {
  display: block;
  margin-top: 26px;
  font-size: 11px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1500px) {
  .main-shell main {
    padding-top: 45px;
  }
  .search-card {
    padding: 28px;
  }
  .stats article {
    padding: 28px;
  }
  .stats {
    margin: 38px 0 48px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 30px 18px;
  }
  .main-shell {
    margin-left: 200px;
  }
  .main-shell main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    gap: 10px;
  }
  .stats article {
    padding: 17px;
  }
  .stats strong {
    font-size: 27px;
  }
  .search-card {
    gap: 16px;
    padding: 18px;
  }
  .search-card .card-actions {
    flex-direction: column;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .grow {
    min-width: 220px;
  }
  .queue-grid {
    grid-template-columns: 1fr;
  }
  .heading-row h1 {
    font-size: 33px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .sidebar .brand {
    font-size: 11px;
  }
  .sidebar .brand-mark {
    height: 32px;
    width: 30px;
    font-size: 26px;
  }
  .sidebar .brand br {
    display: none;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    overflow: auto;
  }
  nav button {
    padding: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  nav button span {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .main-shell main {
    padding: 18px;
  }
  .heading-row {
    align-items: start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin: 24px 0;
  }
  .search-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .search-card .card-actions {
    flex-direction: row;
    justify-content: end;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 14px;
  }
  .filters label {
    flex: 1;
    min-width: 120px;
  }
  .filter-second {
    flex-wrap: wrap;
    padding: 12px;
  }
  .table-footer {
    gap: 15px;
  }
  .table-footer > span {
    font-size: 10px;
  }
  .page-footer {
    padding: 20px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 25px;
  }
  .login-story > div:nth-child(2),
  .login-story > small {
    display: none;
  }
  .login-form {
    padding: 50px 0;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 22px;
  }
  .document-row {
    align-items: start;
    flex-direction: column;
  }
}
#worker-health {
  margin-bottom: 20px;
}

.geography-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.geography-filters label {
  margin: 0;
}
.geography-filters p {
  grid-column: 1/-1;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .geography-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.location-status {
  grid-column: 1/-1;
  font-size: 11px;
}
.location-status p:empty {
  display: none;
}

.export-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.export-toolbar select {
  width: auto;
  max-width: 100%;
}
.export-toolbar p {
  flex-basis: 100%;
  margin: 0;
}
#records-table .selection-cell {
  min-width: 44px;
  width: 44px;
  max-width: 44px;
}
#records-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent, #147d73);
}
#records-table td:nth-child(2) {
  min-width: 230px;
  max-width: 350px;
}

/* Ensure consistent branding sizes and prevent layout shifts */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sidebar .brand-mark {
  max-height: 32px;
  width: auto;
  /* If your logo is dark and needs to be inverted on the dark sidebar: */
  /* filter: brightness(0) invert(1); */
}

.login-story .brand-mark {
  max-height: 40px;
  width: auto;
}
