@charset "UTF-8";
:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #203b35;
  background: #f6f7f3;
  font-synthesis: none;
  --green: #183b34;
  --muted: #75817b;
  --line: #e4e9e2;
  --orange: #ce673e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select {
  border: 1px solid #d5ded6;
  border-radius: 7px;
  padding: 11px 12px;
  background: white;
  color: #203b35;
  min-width: 0;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #be7750;
  outline-offset: 3px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1.1px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
.primary {
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}
.primary:hover {
  background: #28594b;
}
.quiet {
  padding: 9px 10px;
  border: 1px solid #dfe6de;
  border-radius: 6px;
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: #77887b;
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  font-size: 33px;
  font-weight: 750;
  letter-spacing: -1.6px;
}
.brand span {
  font-weight: 500;
}
.brand sup {
  font-size: 10px;
  letter-spacing: 1px;
  margin-left: 6px;
  align-self: flex-start;
  padding-top: 6px;
  color: #b8c6b7;
}
.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #e2e8dd;
  padding: 32px 22px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar .brand {
  margin: 0 10px 38px;
}
.tenant-label {
  font-size: 10px;
  color: #b6c8bc;
  font-weight: 400;
  margin: 0 4px 35px;
}
.tenant-label select {
  background: #274a40;
  border: 1px solid #426052;
  color: #f1f3eb;
  font-size: 12px;
  padding: 11px 8px;
}
.nav-title,
.account-heading {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9eb4a5;
  font-weight: 600;
  margin: 0 10px 12px;
}
.nav-overview {
  text-align: left;
  font-size: 12px;
  padding: 13px 12px;
  border-radius: 7px;
  width: 100%;
  margin-bottom: 34px;
  display: flex;
  gap: 12px;
}
.nav-overview.active {
  background: #38574b;
  color: #fff;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.account-heading button {
  font-size: 22px;
  line-height: 14px;
  color: #c5d2c4;
  padding: 8px;
}
.account-nav-item {
  padding: 13px 10px;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  text-align: left;
  border-radius: 7px;
  margin-bottom: 3px;
}
.account-nav-item.active {
  background: #38574b;
}
.account-nav-item:hover {
  background: #2b4d41;
}
.account-nav-item .nav-icon {
  color: #9cb19c;
  font-size: 16px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 10px;
  color: #b6c6b4;
  padding: 30px 8px 0;
}
.sidebar-bottom small {
  display: block;
  color: #8da390;
  font-size: 9px;
  margin: 9px 0;
}
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9ad75;
  margin-right: 6px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fcfcf8;
  gap: 12px;
}
.breadcrumb {
  font-size: 11px;
  color: #8c968c;
  display: flex;
  gap: 13px;
}
.breadcrumb b {
  font-weight: 500;
  color: #3b4e43;
}
.breadcrumb span {
  color: #c6ccc3;
}
.user-tools {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 11px;
  color: #5e7061;
}
#network-status {
  font-size: 10px;
  color: #687e68;
}
#network-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #80a279;
  margin-right: 6px;
}
.content {
  padding: 43px 42px;
  max-width: 1640px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.page-heading h1 {
  margin-bottom: 11px;
}
.page-heading p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 0;
  font-size: 16px;
}
.section-heading span {
  font-size: 10px;
  color: var(--muted);
}
.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.account-card {
  background: #fff;
  border: 1px solid #e0e6dc;
  border-radius: 11px;
  padding: 21px;
  text-align: left;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.account-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px #183b340d;
}
.account-card:first-child {
  background: #e8eddf;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.card-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #d5dece;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #5c7156;
  background: #f4f6ed;
}
.card-type {
  font-size: 10px;
  color: #788570;
}
.account-card h3 {
  margin-bottom: 10px;
  color: #55674e;
  font-weight: 500;
  font-size: 12px;
}
.account-card strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.account-card .card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7a8774;
  margin-top: 16px;
}
.welcome-panel {
  margin-top: 31px;
  background: #f0eee3;
  border: 1px solid #e6e5d7;
  border-radius: 11px;
  display: flex;
  gap: 28px;
  padding: 32px;
  align-items: center;
}
.welcome-panel .large-symbol {
  font-size: 44px;
  font-weight: 300;
  color: #aab797;
  align-self: flex-start;
}
.welcome-panel h2 {
  font-size: 22px;
  font-weight: 500;
}
.welcome-panel p:last-child {
  font-size: 12px;
  line-height: 1.9;
  color: #7c8573;
  max-width: 510px;
  margin-bottom: 0;
}
.welcome-badge {
  margin-left: auto;
  border-left: 1px solid #dcdfce;
  padding-left: 28px;
  white-space: nowrap;
  font-size: 10px;
  line-height: 2;
  color: #8c927d;
}
.welcome-badge b {
  font-weight: 500;
  color: #55654d;
}
.prototype-note {
  font-size: 10px;
  color: #949b8e;
  margin-top: 23px;
}
.app-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 22px 42px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #8c978a;
}
.notice {
  border: 1px solid #d9e1d2;
  border-radius: 7px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #f0f3e8;
  font-size: 12px;
  line-height: 1.6;
}
.register-summary {
  background: #e9eddf;
  border: 1px solid #dce3d3;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 52px;
  margin-bottom: 30px;
}
.register-summary span {
  font-size: 10px;
  color: #75826e;
  display: block;
  margin-bottom: 8px;
}
.register-summary strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.register-summary b {
  font-weight: 500;
  font-size: 12px;
}
.register-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.register-toolbar h2 {
  font-size: 16px;
  margin: 0;
}
.search {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid #dce3d7;
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
  gap: 6px;
}
.search input {
  font-weight: 400;
  font-size: 11px;
  border: 0;
  width: 235px;
  outline: none;
  padding: 10px 3px;
}
.search span {
  font-size: 22px;
  color: #7c8e75;
}
.register-scroll {
  border: 1px solid #e1e6dc;
  border-radius: 8px;
  overflow: auto;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #829078;
  font-weight: 500;
  background: #f5f6ef;
  padding: 15px 16px;
  white-space: nowrap;
}
td {
  padding: 16px;
  border-top: 1px solid #edf0e9;
  white-space: nowrap;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fafbf5;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td.numeric {
  font-weight: 500;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.amount-positive {
  color: #398067;
}
.category-pill {
  font-size: 10px;
  color: #738367;
  background: #f1f3e9;
  border-radius: 4px;
  padding: 5px 8px;
}
.category-pill.split {
  color: #8f7757;
  background: #f4efe4;
}
.void-row {
  color: #a1a99c;
}
.void-row .entry-title {
  text-decoration: line-through;
}
.void-button {
  font-size: 10px;
  color: #87917e;
  padding: 6px;
}
.void-button:hover {
  color: #ad533a;
}
.register-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #8c9883;
  padding: 16px 2px;
  gap: 12px;
}
.empty {
  padding: 30px;
  color: #8c9782;
  font-size: 12px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  padding: 60px 12%;
  background: #193e35;
  color: #e3e9dc;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.login-story .brand {
  margin-bottom: 65px;
}
.login-story h1 {
  font-size: clamp(35px, 3.8vw, 58px);
  letter-spacing: -2px;
  line-height: 1.18;
  font-weight: 450;
  margin-bottom: 25px;
}
.login-story p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  color: #b4c6b2;
}
.login-story .eyebrow {
  color: #a7bea4;
  letter-spacing: 1.5px;
  font-size: 10px;
}
.story-register {
  margin: 30px 0 50px;
  padding: 25px 30px;
  border: 1px solid #42614c;
  background: #274a3c;
  border-radius: 11px;
  transform: rotate(-2deg);
  width: 100%;
  max-width: 380px;
}
.story-register span {
  font-size: 10px;
  color: #b3c5a6;
  display: block;
}
.story-register strong {
  display: block;
  margin: 10px 0 20px;
  font-size: 22px;
  font-weight: 450;
}
.story-register div {
  font-size: 11px;
  color: #ced8c3;
  padding: 9px 0;
  border-top: 1px solid #44604b;
}
.story-register i {
  display: inline-block;
  background: #b8c892;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 12px;
}
.login-story small {
  color: #92aa91;
  margin-top: auto;
}
.login-card {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 390px;
  padding: 35px;
}
.login-card h2 {
  font-size: 28px;
  font-weight: 500;
}
.login-card > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: #84907c;
}
.login-card form {
  margin-top: 30px;
}
.login-card label {
  margin-bottom: 19px;
  font-size: 11px;
}
.login-card button {
  width: 100%;
  margin-top: 6px;
}
.login-card .login-note {
  margin-top: 28px;
  font-size: 10px !important;
  line-height: 1.9;
}
.form-error,
#login-error,
#account-error,
#void-error {
  font-size: 12px;
  color: #a0442a;
  line-height: 1.7;
}
dialog {
  border: 1px solid #d8e0d2;
  border-radius: 12px;
  padding: 0;
  width: min(620px, 95vw);
  max-height: 92dvh;
  color: #203b35;
  box-shadow: 0 25px 90px #122d2740;
}
dialog::backdrop {
  background: #122d2770;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 24px 28px;
}
.dialog-header h2,
.dialog-header .eyebrow {
  margin-bottom: 0;
}
.dialog-header .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}
.close-dialog {
  font-size: 23px;
  color: #8e9a86;
  padding: 4px 8px;
}
.dialog-body {
  padding: 24px 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.span-two {
  grid-column: span 2;
}
.dialog-body label {
  margin-bottom: 15px;
  font-size: 11px;
}
.dialog-body input,
.dialog-body select {
  font-size: 12px;
}
.dialog-footer {
  background: #f6f7f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
}
.dialog-footer > span {
  font-size: 10px;
  color: #8b9682;
  max-width: 170px;
}
.split-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.split-row select {
  flex: 1;
  min-width: 0;
}
.split-row input {
  width: 125px;
}
.split-row button {
  font-size: 20px;
  color: #a1ac98;
  padding: 6px;
}
.danger {
  background: #a64d35;
  color: white;
  padding: 12px 20px;
  border-radius: 7px;
}
.mobile-only {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 52px;
  }
  .account-cards {
    gap: 20px;
  }
  .account-card {
    padding: 25px;
  }
  .account-card strong {
    font-size: 30px;
  }
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 15px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .account-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .user-tools {
    gap: 10px;
  }
  .welcome-badge {
    display: none;
  }
  .app-footer {
    padding: 20px 25px;
  }
  .login-story {
    padding: 45px 10%;
  }
}
@media (max-width: 700px) {
  .login-screen {
    display: block;
  }
  .login-story {
    padding: 28px;
  }
  .login-story .brand {
    margin-bottom: 28px;
  }
  .login-story h1 {
    font-size: 34px;
  }
  .login-story p:not(.eyebrow),
  .story-register,
  .login-story small {
    display: none;
  }
  .login-card {
    padding: 35px 28px;
    max-width: 480px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 252px;
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.15s;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 0 0 0 100vmax #12372c50;
  }
  .mobile-only {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .breadcrumb {
    display: none;
  }
  .user-tools {
    margin-left: auto;
    gap: 10px;
  }
  #user-name {
    font-size: 10px;
  }
  #network-status {
    display: none;
  }
  .content {
    padding: 28px 18px;
  }
  .page-heading {
    flex-wrap: wrap;
    margin-bottom: 25px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .primary {
    padding: 11px 14px;
    font-size: 11px;
  }
  .account-cards {
    gap: 10px;
  }
  .account-card {
    padding: 16px;
  }
  .card-top {
    margin-bottom: 22px;
  }
  .account-card strong {
    font-size: 23px;
  }
  .card-type {
    font-size: 9px;
  }
  .welcome-panel {
    padding: 22px 18px;
    gap: 15px;
    margin-top: 22px;
  }
  .welcome-panel .large-symbol {
    font-size: 28px;
  }
  .welcome-panel h2 {
    font-size: 19px;
  }
  .welcome-panel p:last-child {
    font-size: 11px;
  }
  .welcome-panel .eyebrow {
    font-size: 9px;
  }
  .app-footer {
    padding: 18px;
    font-size: 8px;
  }
  .register-summary {
    gap: 24px;
    padding: 18px;
    flex-wrap: wrap;
  }
  .register-summary > div:first-child {
    width: 100%;
  }
  .register-summary strong {
    font-size: 30px;
  }
  .search input {
    width: 165px;
  }
  .register-toolbar {
    gap: 8px;
  }
  th,
  td {
    padding: 13px 11px;
  }
  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
  td {
    font-size: 11px;
  }
  td:nth-child(2) {
    white-space: normal;
    min-width: 120px;
  }
  td small {
    max-width: 150px;
    overflow-wrap: anywhere;
  }
  .register-footer {
    font-size: 8px;
  }
  .dialog-header,
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 16px 20px;
  }
  .dialog-footer > span {
    display: none;
  }
  .dialog-footer .primary {
    width: 100%;
  }
  .form-grid {
    gap: 12px;
  }
  .split-row input {
    width: 100px;
  }
  .split-row select {
    font-size: 11px;
  }
  .prototype-note {
    font-size: 9px;
    line-height: 1.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (max-width: 700px) {
  td:last-child,
  th:last-child {
    padding-left: 4px;
    padding-right: 4px;
  }
  .void-button {
    font-size: 0;
    min-width: 28px;
    min-height: 36px;
    padding: 4px;
  }
  .void-button::after {
    content: "↶";
    font-size: 19px;
  }
}

.master-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.master-toolbar label {
  min-width: 220px;
}
.master-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.master-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.master-row:last-child {
  border-bottom: 0;
}
.master-row strong {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.master-row small {
  display: block;
  margin-top: 5px;
}
.master-row.inactive {
  opacity: 0.65;
}
.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.master-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.master-toolbar + .register-toolbar {
  margin-top: 20px;
}
.split-row {
  flex-wrap: wrap;
}
.split-dimensions {
  display: flex;
  flex-basis: 100%;
  gap: 10px;
}
.split-dimensions label {
  flex: 1;
  min-width: 0;
}
.split-dimensions select {
  width: 100%;
  font-size: 11px;
}
#master-close {
  font-size: 25px;
  padding: 4px 8px;
}
@media (max-width: 700px) {
  .master-toolbar {
    gap: 12px;
  }
  .master-toolbar label {
    min-width: 0;
    flex: 1;
  }
  .master-toolbar .primary {
    padding: 12px;
    font-size: 11px;
  }
  .master-row {
    padding: 15px;
    gap: 12px;
  }
  .master-row strong {
    font-size: 12px;
  }
  .master-row .quiet {
    white-space: nowrap;
  }
  .split-dimensions {
    flex-direction: column;
  }
}
