:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263c37;
  background: #f5f7f4;
  font-size: 14px;
  --green: #17684f;
  --muted: #708079;
  --line: #e2e8e1;
  --red: #aa4c40;
  --amber: #97691d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--green);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #71b89c;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-bottom: 9px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.eyebrow,
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
}
.eyebrow {
  color: var(--green);
  margin-bottom: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #132f28;
  color: #e9f2e8;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  font-weight: 650;
  font-size: 23px;
  letter-spacing: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #628c77;
  border-radius: 12px;
  background: #234c3c;
  font-size: 30px;
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-top: 5px;
  color: #98b5a5;
}
.nav-label {
  color: #81a18f;
  margin: 54px 10px 14px;
  font-size: 9px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  color: #abc2b7;
  padding: 13px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.sidebar nav a span {
  font-size: 20px;
  width: 23px;
  text-align: center;
}
.sidebar nav a:hover {
  background: #1d4034;
}
.sidebar nav a.active {
  background: #d4e9be;
  color: #173f2e;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #b8cdc0;
  padding: 22px 9px 0;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #92ad9d;
  line-height: 1.8;
  margin-top: 10px;
}
.sidebar-reset {
  border: 0;
  background: none;
  padding: 0;
  color: #bfcebc;
  margin-top: 20px;
  text-decoration: underline;
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #c6e4ac;
  border-radius: 50%;
  margin-right: 5px;
}
.workspace {
  margin-left: 224px;
  min-height: 100vh;
}
.demo-banner {
  background: #ebf1df;
  color: #53643a;
  padding: 11px 34px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #dfe7d1;
}
.demo-banner strong {
  font-size: 9px;
  letter-spacing: 1px;
  margin-right: 12px;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #5e7267;
  background: #fafbf8;
}
.slash {
  padding: 0 12px;
  color: #a8b6a8;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
}
.avatar {
  background: #edf0e5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #526749;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.small {
  width: 30px;
  height: 30px;
  background: #dce7d3;
}
.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 17px;
  border-radius: 15px;
}
main {
  padding: 36px 38px 44px;
  max-width: 1600px;
  margin: auto;
  outline: none;
  min-height: calc(100vh - 170px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}
.date-chip {
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 11px;
  background: white;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 21px;
  min-height: 127px;
  position: relative;
}
.stat.highlight {
  background: #e7efdf;
  border-color: #dae5ce;
}
.stat-label {
  font-size: 11px;
  color: #697b70;
  display: block;
  margin-bottom: 13px;
}
.stat-value {
  display: block;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.stat-value.pending {
  font-size: 17px;
  letter-spacing: 0;
  color: #788675;
  line-height: 1.3;
}
.stat-note {
  color: #899288;
  font-size: 10px;
  margin-top: 12px;
}
.stat-unit {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  margin-right: 4px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.panel-heading h2 {
  margin: 0;
}
.panel-heading small {
  color: var(--muted);
  font-size: 11px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filter,
.tab {
  background: transparent;
  border: 0;
  padding: 9px 12px;
  border-radius: 6px;
  color: #7d897d;
  font-size: 11px;
}
.filter:hover,
.tab:hover {
  background: #f2f5ee;
}
.filter.selected,
.tab.selected {
  color: #235c42;
  background: #eaf1e3;
  font-weight: 600;
}
.search {
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 13px;
  background: #fbfcfa;
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #849184;
  font-weight: 600;
  padding: 14px 22px;
  background: #fbfcf9;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 18px 22px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcf9;
}
.person {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 170px;
}
.person strong {
  font-weight: 600;
  display: block;
  color: #304b3d;
  font-size: 12px;
}
.person small {
  color: #92a08e;
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  background: #f0f3ed;
  color: #758274;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.badge.green {
  color: #287354;
  background: #eaf3e7;
}
.badge.amber {
  color: #9c7226;
  background: #fcf4dd;
}
.badge.red {
  color: #a95142;
  background: #faeee8;
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.money.red {
  color: var(--red);
}
.subtext {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #8a9686;
}
.next-action {
  max-width: 240px;
  line-height: 1.5;
  color: #607461;
}
.arrow {
  border: 1px solid #e0e7db;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #72886e;
}
.callout {
  display: flex;
  gap: 12px;
  padding: 17px 21px;
  border: 1px solid #e7e5d4;
  border-radius: 9px;
  background: #f7f5e9;
  color: #897346;
  font-size: 12px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.callout p {
  margin: 0;
}
.callout strong {
  color: #726039;
}
.callout.info {
  background: #edf2e8;
  color: #68805b;
  border-color: #dfe8d7;
}
.empty {
  padding: 52px 25px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #50694e;
  font-size: 17px;
  margin-bottom: 8px;
}
.button {
  border: 1px solid #dce4d7;
  background: white;
  border-radius: 7px;
  padding: 10px 15px;
  color: #526d47;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button.primary {
  background: #245b42;
  color: white;
  border-color: #245b42;
}
.button:hover {
  filter: brightness(0.96);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.link-button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  padding: 5px 0;
  text-decoration: underline;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.panel-body {
  padding: 22px;
}
.aging-row {
  display: grid;
  grid-template-columns: 95px 1fr 110px;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  font-size: 11px;
}
.bar-track {
  height: 9px;
  background: #f1f4ed;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #a1bc89;
  border-radius: 4px;
}
.aging-row:nth-child(2) .bar-fill {
  background: #6b9765;
}
.request-list {
  padding: 0 22px;
}
.request-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.request-item:last-child {
  border: 0;
}
.request-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.request-item p {
  color: var(--muted);
  font-size: 11px;
  margin: 11px 0 0;
}
.back-link {
  font-size: 11px;
  display: inline-block;
  margin-bottom: 22px;
}
.customer-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}
.customer-heading h1 {
  font-size: 27px;
  margin: 0 0 8px;
}
.customer-meta {
  font-size: 11px;
  color: var(--muted);
}
.detail-actions {
  margin: 24px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 25px 0;
}
.period-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.period-card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.period-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 19px;
}
.period-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
  font-size: 11px;
  margin: 0;
}
.period-card dt {
  color: var(--muted);
}
.period-card dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.period-foot {
  font-size: 10px;
  line-height: 1.5;
  margin: 17px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #9a6b41;
}
.tabs {
  display: flex;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tab {
  white-space: nowrap;
}
.timeline {
  padding: 24px;
}
.event {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 17px;
  position: relative;
  padding-bottom: 28px;
}
.event:last-child {
  padding-bottom: 0;
}
.event-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #97b487;
  background: white;
  border-radius: 50%;
  margin-top: 4px;
}
.event:not(:last-child):before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 4px;
  width: 1px;
  background: #e2e9db;
}
.event-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.event-header time {
  color: #8b9887;
  font-size: 10px;
}
.event p {
  font-size: 12px;
  color: #687c60;
  margin: 8px 0;
}
.event-tag {
  font-size: 10px;
  color: #8e9b87;
}
.evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 17px 0;
}
.evidence dt,
.evidence dd {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.evidence dt {
  color: var(--muted);
}
.evidence dd {
  margin: 0;
  text-align: right;
}
.modal-eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 9px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(600px, calc(100% - 28px));
  max-height: 90vh;
  color: #304a3a;
  box-shadow: 0 30px 100px #102e2940;
}
dialog::backdrop {
  background: #173b3066;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  padding: 25px 26px 0;
  gap: 12px;
}
.modal-head h2 {
  font-size: 23px;
  margin-bottom: 8px;
}
.close-button {
  height: 30px;
  width: 30px;
  border: 0;
  background: #f0f4eb;
  border-radius: 50%;
  color: #607356;
  font-size: 18px;
}
.modal-body {
  padding: 10px 26px 26px;
}
.modal-body p {
  font-size: 12px;
  color: var(--muted);
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}
label {
  display: block;
  font-size: 12px;
  margin-top: 17px;
  color: #556e49;
}
label input,
label select,
label textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid #dce4d5;
  border-radius: 7px;
  background: #fcfdfb;
  color: #304a30;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.form-error {
  color: #a0493a !important;
  min-height: 20px;
  margin: 12px 0 0 !important;
}
.form-note {
  font-size: 10px !important;
  background: #f1f5eb;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 0 !important;
}
#toast {
  pointer-events: none;
  position: fixed;
  bottom: 25px;
  left: calc(50% + 110px);
  transform: translateX(-50%);
  max-width: calc(100vw - 35px);
  background: #234d39;
  color: white;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 24px #183b2520;
  z-index: 10;
  font-size: 12px;
}
.live-workspace .panel {
  margin-top: 22px;
}
.live-workspace .live-event {
  padding: 18px 24px;
  border-bottom: 1px solid #edf0eb;
}
.live-workspace .live-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.live-workspace .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.live-workspace main > .button {
  display: table;
  margin: 0 auto;
}
.reconciliation-workspace .panel {
  min-width: 0;
}
.reconciliation-workspace .filters {
  flex-wrap: wrap;
}
.reconciliation-evidence {
  padding: 0 24px 20px;
}
.reconciliation-evidence > div {
  padding: 14px 0;
  border-bottom: 1px solid #edf0eb;
}
.reconciliation-evidence dt {
  font-size: 11px;
  color: #69786f;
}
.reconciliation-evidence dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.match-body {
  padding: 18px 24px 24px;
}
.match-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  cursor: pointer;
}
.match-option:has(input:checked) {
  background: #eff4e9;
  border-color: #44634e;
}
.match-option input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 4px;
  accent-color: #345740;
}
.match-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.match-search .search {
  flex: 1;
  min-width: 150px;
}
.match-reason {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.match-reason textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  font: inherit;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  resize: vertical;
}
.match-preview {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #cddcc3;
  border-radius: 10px;
  background: #f4f7ef;
  overflow-wrap: anywhere;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f0f3ec;
}
.login-card {
  width: min(100%, 440px);
  min-width: 0;
  padding: 36px;
  background: white;
  border: 1px solid #dfe5dc;
  border-radius: 16px;
}
.login-brand {
  display: block;
  margin-bottom: 42px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.login-brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
}
.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.login-card input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cbd5c7;
  border-radius: 8px;
  font: inherit;
}
.login-card [hidden] {
  display: none;
}
.login-card .button {
  width: 100%;
}
.live-workspace .topbar-right {
  flex-wrap: wrap;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 0 38px 23px;
  font-size: 10px;
  color: #96a18f;
}
.skip {
  position: fixed;
  top: -50px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 48px;
  }
  .page-heading {
    margin-bottom: 34px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 190px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .demo-banner {
    padding: 10px 25px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px 15px;
  }
  .stat-value {
    font-size: 24px;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .next-action {
    min-width: 170px;
  }
  #toast {
    left: calc(50% + 95px);
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 18px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 25px;
  }
  .brand-sub {
    font-size: 7px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    justify-content: space-between;
  }
  .sidebar nav a {
    font-size: 10px;
    padding: 10px 7px;
    gap: 4px;
    white-space: nowrap;
  }
  .sidebar nav a span {
    font-size: 15px;
    width: 16px;
  }
  .workspace {
    margin: 0;
  }
  .demo-banner {
    padding: 10px 18px;
    font-size: 10px;
    line-height: 1.7;
  }
  .demo-banner > span:last-child {
    display: none;
  }
  .demo-banner strong {
    display: block;
  }
  .topbar {
    height: 52px;
    padding: 0 18px;
  }
  .topbar-right {
    font-size: 10px;
  }
  main {
    padding: 25px 17px;
  }
  h1 {
    font-size: 27px;
  }
  .date-chip {
    display: none;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    min-height: 115px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-note {
    line-height: 1.5;
  }
  .stat-label {
    font-size: 10px;
  }
  .panel-heading {
    padding: 18px;
  }
  .toolbar {
    padding: 14px;
  }
  .search {
    width: 100%;
  }
  .filter {
    font-size: 10px;
    padding: 8px;
  }
  .panel-heading small {
    font-size: 10px;
  }
  .period-grid {
    grid-template-columns: 1fr;
  }
  .period-card {
    padding: 19px;
  }
  .customer-heading h1 {
    font-size: 23px;
  }
  .customer-heading {
    gap: 12px;
  }
  .customer-meta {
    line-height: 1.8;
  }
  .customer-heading .badge {
    margin-top: 4px;
  }
  .detail-actions {
    gap: 7px;
  }
  .detail-actions .button {
    padding: 10px;
    font-size: 11px;
  }
  .callout {
    padding: 14px;
    font-size: 11px;
  }
  .two-columns {
    gap: 0;
  }
  .aging-row {
    grid-template-columns: 80px 1fr 95px;
    gap: 10px;
  }
  .event-header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .evidence {
    grid-template-columns: 1fr 1.2fr;
  }
  .modal-head {
    padding: 22px 20px 0;
  }
  .modal-body {
    padding: 10px 20px 22px;
  }
  #toast {
    left: 50%;
    width: max-content;
    text-align: center;
  }
  footer {
    padding: 0 18px 20px;
    font-size: 9px;
  }
  .person {
    min-width: 170px;
  }
  .tab {
    font-size: 11px;
  }
  td {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
