:root {
  --ink: #19302f;
  --muted: #6e7d7a;
  --paper: #f5f7f7;
  --line: #e0e7e5;
  --green: #126c58;
  --mint: #dceee6;
  --orange: #b8662b;
  --nav: #173b35;
  --white: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #65ad91;
}
a {
  color: var(--green);
}
.loading {
  padding: 70px;
  text-align: center;
}
button {
  border: 0;
}
.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #ecf6f1;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -2px;
  padding: 0 12px;
}
.brand-mark {
  font-size: 37px;
  color: #b1d7bf;
  letter-spacing: -12px;
  width: 39px;
  transform: rotate(-25deg);
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  display: block;
  margin-top: -4px;
  color: #b4c9c2;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9eb7ae;
  margin: 45px 14px 14px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  gap: 13px;
  align-items: center;
  background: none;
  color: #c0d2cb;
  text-align: left;
  padding: 13px 14px;
  border-radius: 7px;
  font-size: 14px;
}
.nav button:hover {
  background: #22473f;
}
.nav button.active {
  background: #dcefe3;
  color: #173b35;
  font-weight: 650;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex-shrink: 0;
}
.side-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.demo-side {
  border: 1px solid #47645c;
  padding: 15px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: #c5d8cf;
}
.demo-side strong {
  display: block;
  color: #e8f5eb;
  font-size: 13px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 12px;
}
.avatar {
  background: #dce8df;
  color: #254539;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-weight: 650;
}
.account small {
  display: block;
  color: #9eb7ae;
  font-size: 10px;
  margin-top: 4px;
}
.logout {
  margin-left: auto;
  background: transparent;
  color: #ccddd5;
  padding: 7px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 83px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  margin-left: 10px;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.demo-pill {
  background: #fff4dc;
  color: #846222;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 5px;
}
.company {
  font-weight: 600;
}
.main {
  max-width: 1490px;
  margin: auto;
  padding: 35px 40px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 8px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 9px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin: 0;
}
p.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  background: var(--green);
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(0.95);
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost {
  background: transparent;
  color: var(--green);
  padding: 6px;
}
.btn.danger {
  background: #b8473e;
}
.head-actions {
  display: flex;
  gap: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 10px;
}
.stat:first-child {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat:first-child .stat-label,
.stat:first-child .stat-foot {
  color: #c6e4d9;
}
.stat-value {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 17px 0 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
}
.stat-foot em {
  font-style: normal;
  color: var(--orange);
}
.dashboard-middle {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 24px 12px;
  gap: 15px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
.chart {
  padding: 12px 24px 18px;
}
.chart svg {
  display: block;
  width: 100%;
  height: 167px;
}
.chart text {
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  fill: #71827d;
}
.chart .bar-pending {
  fill: #dbe9e3;
}
.chart .bar-paid {
  fill: #3b8b70;
}
.legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 15px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #dbe9e3;
  margin-right: 5px;
}
.legend span:first-child:before {
  background: #3b8b70;
}
.attention {
  padding: 6px 23px 18px;
}
.attention-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1ef;
}
.attention-row:last-child {
  border-bottom: 0;
}
.attention-row .avatar {
  background: #fcf1e8;
  color: #a87042;
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.attention-row strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.attention-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.attention-row .right {
  margin-left: auto;
  text-align: right;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 550;
  color: var(--muted);
  background: #fafcfb;
  padding: 14px 23px;
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
}
td {
  padding: 16px 23px;
  border-bottom: 1px solid #edf1ef;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fbfcfc;
}
.customer-cell {
  display: flex;
  gap: 11px;
  align-items: center;
}
.customer-cell .avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 10px;
}
.customer-cell strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.customer-cell small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  white-space: nowrap;
  background: #edf2f0;
  color: #6c7e74;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.paid,
.badge.active {
  background: #e7f3eb;
  color: #2c7e51;
}
.badge.overdue {
  background: #fff0e7;
  color: #ad6135;
}
.badge.pending {
  background: #edf1f8;
  color: #627697;
}
.row-btn {
  background: none;
  color: var(--green);
  padding: 6px;
  font-size: 11px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 340px;
}
.toolbar select {
  max-width: 180px;
}
.count {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.field input,
.field select,
.toolbar input,
.toolbar select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d5dfda;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
.empty {
  text-align: center;
  padding: 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 19px;
  line-height: 1.8;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.integration {
  padding: 25px;
}
.provider-logo {
  width: 49px;
  height: 49px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf3f0;
  font-size: 21px;
  font-weight: 750;
  margin-bottom: 20px;
}
.integration p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 66px;
}
.notice {
  padding: 17px 20px;
  background: #eaf0ec;
  border: 1px solid #d9e5dd;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 23px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--nav);
  padding: 55px 12%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brand {
  padding: 0;
}
.login-story h1 {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 45px 0 23px;
}
.login-story p {
  font-size: 15px;
  line-height: 1.9;
  color: #b8d0c4;
}
.login-story small {
  color: #8eafa0;
  font-size: 11px;
}
.login-form {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  width: 100%;
  margin: auto;
}
.login-form h1 {
  font-size: 30px;
}
.login-form form {
  margin-top: 28px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
.full {
  width: 100%;
}
.demo-choices {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.demo-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
  line-height: 1.8;
}
.form-error {
  color: #ab4036;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 14px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: 510px;
  max-width: calc(100% - 28px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 22px 100px #173b3525;
}
dialog::backdrop {
  background: #0e282860;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.close {
  font-size: 25px;
  background: none;
  color: var(--muted);
}
.modal-body {
  padding: 24px 26px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-value {
  font-size: 39px;
  font-weight: 600;
  margin: 15px 0 25px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.detail-row span:first-child {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav);
  color: white;
  border-radius: 9px;
  box-shadow: 0 6px 30px #19302f22;
  padding: 14px 23px;
  z-index: 10;
  font-size: 13px;
  display: none;
}
#toast.visible {
  display: block;
}
.public-page {
  max-width: 500px;
  margin: 8vh auto;
  padding: 24px;
}
.public-page .brand {
  justify-content: center;
  margin-bottom: 30px;
}
.public-card {
  padding: 35px;
}
.public-card h1 {
  font-size: 23px;
}
.activity-row {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 20px;
}
.activity-row small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.activity-row time {
  color: var(--muted);
  font-size: 11px;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  .main {
    padding-top: 45px;
  }
  .stat-value {
    font-size: 34px;
  }
  .chart svg {
    height: 190px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
    padding: 28px 12px;
  }
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .main {
    padding: 27px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 23px;
  }
  .dashboard-middle {
    grid-template-columns: 1.3fr 1fr;
  }
  .integration-grid {
    grid-template-columns: 1fr 1fr;
  }
  .company {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px;
  }
  .sidebar .brand,
  .nav-label,
  .side-bottom {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .nav .icon {
    display: none;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .main {
    padding: 25px 17px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  h1 {
    font-size: 27px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-value {
    font-size: 25px;
  }
  .dashboard-middle {
    grid-template-columns: 1fr;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 25px 30px;
  }
  .login-story h1 {
    font-size: 34px;
    margin: 23px 0 15px;
  }
  .login-story p,
  .login-story small {
    display: none;
  }
  .login-form {
    padding: 30px;
  }
  .top-tools {
    gap: 8px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    max-width: none;
  }
  .count {
    margin-left: 0;
  }
  .panel-head {
    padding: 20px 18px 14px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .public-page {
    margin: 20px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .sidebar .side-bottom {
    display: block;
    padding-top: 8px;
  }
  .sidebar .demo-side {
    display: none;
  }
  .sidebar .account {
    margin-top: 5px;
  }
  .sidebar .account small {
    display: none;
  }
}
.sidebar {
  overflow-y: auto;
}
.nav {
  gap: 2px;
}
.nav button {
  padding-top: 9px;
  padding-bottom: 9px;
}
.nav-label {
  margin-top: 26px;
}
.side-bottom {
  padding-top: 18px;
}
.demo-side {
  display: none;
}
.cell-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.check-field {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin: 15px 0 22px;
}
.check-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.padded {
  padding: 25px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.account-settings {
  margin-top: 22px;
}
.section-title {
  margin: 30px 0 15px;
}
.message-preview {
  white-space: normal;
  max-width: 420px;
  font-size: 11px;
  line-height: 1.7;
}
.copy-text {
  width: 100%;
  min-height: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font:
    13px/1.7 "Segoe UI",
    sans-serif;
  resize: vertical;
}
.public-balance {
  color: var(--muted);
  margin: -10px 0 22px;
  font-size: 12px;
}
.sandbox-payment {
  margin: 22px 0 6px;
  padding: 18px;
  border: 1px solid #f0c36a;
  border-radius: 8px;
  background: #fffaf0;
}
.sandbox-payment p {
  color: var(--muted);
  font-size: 12px;
}
.sandbox-payment .copy-text {
  min-height: 90px;
  margin: 10px 0;
}
.wrap {
  flex-wrap: wrap;
}
#workspace-switch {
  max-width: 200px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  color: var(--ink);
  background: white;
  font-size: 12px;
}
.top-tools .company {
  display: none;
}
@media (max-width: 760px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  #workspace-switch {
    max-width: 130px;
  }
  .nav {
    display: flex;
  }
  .nav button {
    flex-shrink: 0;
  }
  .demo-pill {
    font-size: 9px;
  }
  .topbar {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .top-tools .avatar {
    display: none;
  }
}
