.welcome {
  background: #173e40;
  color: #edf8f5;
  padding: 27px 30px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}
.welcome h2 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.8px;
  margin: 9px 0;
}
.welcome p {
  color: #b5d0cb;
  font-size: 10px;
  line-height: 1.8;
}
.welcome .eyebrow {
  color: #9dcfc8;
}
.welcome button {
  z-index: 1;
  flex-shrink: 0;
}
.welcome:after {
  content: "";
  width: 270px;
  height: 270px;
  border: 1px solid #4c968d;
  position: absolute;
  right: 70px;
  top: -65px;
  border-radius: 50%;
  opacity: 0.3;
  box-shadow:
    0 0 0 35px #417c7644,
    0 0 0 70px #417c7633,
    0 0 0 105px #417c7622;
  pointer-events: none;
}
.chart-panel {
  overflow: visible;
}
.chart {
  padding: 20px 22px 15px;
}
.chart-key {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 9px;
  color: var(--muted);
}
.chart-key span:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #58b5a8;
  border-radius: 2px;
  margin-right: 5px;
}
.chart-key span:last-child:before {
  background: #bedad4;
}
.chart-area {
  height: 190px;
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  padding-bottom: 22px;
  min-width: 38px;
}
.bars {
  display: flex;
  gap: 7%;
  flex: 1;
  align-items: flex-end;
  padding-top: 5px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 42px,
    var(--line) 43px,
    transparent 44px
  );
}
.bar-group {
  flex: 1;
  height: 100%;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  padding-bottom: 22px;
  position: relative;
  min-width: 0;
}
.bar {
  border: 0;
  padding: 0;
  border-radius: 3px 3px 0 0;
  width: 50%;
  min-width: 0;
  min-height: 2px;
  background: #58b5a8;
}
.bar.pale {
  background: #bedad4;
}
.bar:hover,
.bar:focus-visible {
  outline: 2px solid var(--link);
}
.bar-group label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 8px;
  text-align: center;
  color: var(--muted);
}
.chart-tooltip {
  position: absolute;
  display: none;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  width: 195px;
  background: #203f40;
  color: white;
  border: 1px solid #446b67;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 8px 24px #0002;
  pointer-events: none;
  z-index: 6;
  font-size: 10px;
}
.chart-tooltip strong {
  display: block;
  margin-bottom: 10px;
}
.chart-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #bfdad4;
  margin: 7px 0;
}
.chart-tooltip b {
  color: white;
  font-size: 10px;
}
.chart-tooltip small {
  color: #9abbb4;
  border-top: 1px solid #3c605c;
  margin-top: 10px;
  padding-top: 8px;
  font-size: 9px;
}
.bar-group:first-child .chart-tooltip {
  left: 0;
  transform: none;
}
.bar-group:last-child .chart-tooltip {
  left: auto;
  right: 0;
  transform: none;
}
.bar-group:hover .chart-tooltip,
.bar-group:focus-within .chart-tooltip {
  display: block;
}
[data-theme="dark"] .bar.pale {
  background: #416a63;
}
[data-theme="dark"] .chart-key span:last-child:before {
  background: #416a63;
}
.activity {
  padding: 0 22px;
}
.activity-row {
  display: flex;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--link);
  flex-shrink: 0;
}
.activity-icon svg {
  width: 13px;
  height: 13px;
}
.activity-row p {
  color: var(--muted);
  font-size: 9px;
  margin: 4px 0;
}
.activity-row time {
  font-size: 8px;
  color: var(--muted);
}
.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 95px 28px;
  gap: 7px;
  align-items: end;
  margin-bottom: 12px;
}
.item-row .field {
  margin: 0;
}
.item-row button {
  padding: 7px 0;
  min-height: 36px;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.paper {
  --line: #dfe9e9;
  --muted: #708789;
  --ink: #283b43;
  background: #fff;
  color: #283b43;
  min-height: 680px;
  padding: 37px 32px;
  border: 1px solid #dfe9e9;
  border-radius: 3px;
  box-shadow: 0 9px 25px #163c3a08;
  font-family: Relit, sans-serif;
}
.paper-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #173e40;
  padding-bottom: 24px;
}
.paper-brand {
  font-size: 22px;
  letter-spacing: -1px;
  font-weight: 700;
}
.paper-brand small {
  font-size: 7px;
  letter-spacing: 2px;
  font-weight: 400;
}
.paper-title {
  text-align: right;
  font-size: 18px;
  letter-spacing: 1.3px;
}
.paper-title small {
  font-size: 8px;
  letter-spacing: 0;
}
.paper-address {
  font-size: 8px;
  color: #708789;
  line-height: 1.9;
  margin-top: 10px;
  white-space: pre-line;
}
.paper-parties {
  display: flex;
  justify-content: space-between;
  margin: 28px 0;
  gap: 15px;
}
.paper-parties > div {
  min-width: 0;
}
.paper-parties p {
  font-size: 11px;
  margin-top: 7px;
}
.paper-parties small {
  font-size: 8px;
  white-space: pre-line;
  color: #708789;
}
.paper .eyebrow {
  font-size: 8px;
}
.paper th {
  background: white;
  font-size: 7px;
  padding: 11px 0;
  border-color: #dfe9e9;
}
.paper td {
  font-size: 9px;
  padding: 13px 3px;
  border-color: #e6efed;
}
.paper th:last-child,
.paper td:last-child {
  text-align: right;
}
.paper-totals {
  margin: 20px 0 25px auto;
  width: 70%;
}
.paper-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 9px;
}
.paper-totals .grand {
  font-weight: 700;
  font-size: 13px;
  border-top: 1px solid #dfe9e9;
  padding-top: 14px;
}
.paper-notes {
  border-top: 1px solid #dfe9e9;
  padding-top: 19px;
  font-size: 8px;
  line-height: 1.9;
  color: #708789;
  white-space: pre-wrap;
}
.paper-content {
  font-size: 9px;
  line-height: 1.9;
  white-space: pre-wrap;
  margin-bottom: 25px;
}
.paper-bottom {
  font-size: 8px;
  color: #708789;
  margin-top: 30px;
}
.qr-payment {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 9px;
  color: #708789;
  margin-bottom: 20px;
}
.qr-payment img {
  width: 95px;
  height: 95px;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #173e40;
  color: #edf8f5;
  padding: 50px clamp(25px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
}
.login-story .brand {
  color: #edf8f5;
  padding: 0;
}
.login-story .mark {
  background: #64d8c7;
  color: #173e40;
}
.login-story h1 {
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.2;
  max-width: 500px;
  letter-spacing: -1.8px;
}
.login-story p {
  font-size: 13px;
  color: #b5d0cb;
  line-height: 1.9;
  max-width: 370px;
  margin-top: 20px;
}
.login-story .eyebrow {
  color: #9dcfc8;
}
.login-pane {
  display: grid;
  place-items: center;
  padding: 40px 25px;
}
.login-card {
  width: 100%;
  max-width: 370px;
}
.login-card h1 {
  font-size: 29px;
  margin: 12px 0;
}
.login-card .subtitle {
  font-size: 12px;
  margin-bottom: 27px;
}
.login-card .field {
  font-size: 11px;
  margin-bottom: 20px;
}
.login-card input {
  padding: 13px !important;
  font-size: 16px !important;
}
.login-card button.primary {
  width: 100%;
  min-height: 46px;
  margin: 4px 0 18px;
}
.login-card .note {
  margin-top: 20px;
}
.login-card small {
  text-align: center;
  line-height: 1.8;
}
.login-card .theme-toggle {
  float: right;
}
@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 270px;
    padding: 26px;
    gap: 30px;
  }
  .login-story h1 {
    font-size: 29px;
    margin-top: 12px;
  }
  .login-story p {
    font-size: 11px;
    margin-top: 12px;
  }
  .login-story > .eyebrow {
    display: none;
  }
  .login-pane {
    padding: 35px 25px;
  }
  .login-card h1 {
    font-size: 25px;
  }
}
.document-logo {
  display: block;
  max-width: 145px;
  max-height: 55px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 13px;
}
.mark.has-logo {
  background: transparent;
}
.mark.has-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
