:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #152257;
  background: #f5f6fa;
  font-synthesis: none;
  --navy: #152257;
  --orange: #e2572e;
  --muted: #758098;
  --line: #e7e9f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--navy);
  font-weight: 600;
}
button:hover {
  background: #f1f3f9;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
button.primary:hover {
  background: #672074;
}
.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 236px;
  height: 100vh;
}
.brand {
  width: 156px;
  margin: 0 12px 7px;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  margin: 3px 13px 44px;
  color: var(--muted);
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  border: 0;
  text-align: left;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  background: none;
  color: #68748b;
}
.nav button.active {
  background: #eff1f9;
  color: var(--navy);
  font-weight: 650;
}
.nav .icon {
  width: 20px;
  font-size: 19px;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 8px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.avatar {
  float: left;
  background: #f3eaf2;
  color: #672074;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  margin-right: 10px;
  font-weight: 700;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #ffffffa8;
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb strong {
  color: var(--navy);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.private {
  color: #4c665d;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #46a284;
  border-radius: 50%;
  margin-right: 6px;
}
.content {
  padding: 36px 40px 55px;
  max-width: 1600px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 9px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  margin: 0 0 7px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.period {
  display: flex;
  align-items: center;
  gap: 8px;
}
.period select {
  min-width: 100px;
}
.notice {
  border: 1px solid #eddfc9;
  border-left: 3px solid #dcab61;
  background: #fffcf5;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 12px;
  color: #7f673f;
  line-height: 1.6;
  margin-bottom: 25px;
}
.notice strong {
  display: block;
  font-size: 13px;
  color: #66502e;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat label {
  font-size: 12px;
  color: var(--muted);
}
.stat-value {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 15px 0 10px;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 23px;
  margin-bottom: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.panel-body {
  padding: 24px;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 650;
  background: #f0f2f8;
  color: #66728b;
  white-space: nowrap;
}
.badge.green {
  background: #e9f5f0;
  color: #288168;
}
.badge.orange {
  background: #fff0e5;
  color: #b96c33;
}
.badge.purple {
  background: #f3eaf6;
  color: #843a92;
}
.row {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f1f5;
  display: flex;
  gap: 13px;
  align-items: center;
}
.row:last-child {
  border: 0;
}
.row .grow {
  flex: 1;
}
.row p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.row strong {
  font-size: 13px;
}
.number {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.big-number {
  font-size: 42px;
  letter-spacing: -2px;
  font-weight: 600;
}
.progress {
  height: 7px;
  background: #edf0f5;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0 10px;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e2572e, #800f65);
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
input,
select,
textarea {
  border: 1px solid #dce1eb;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--navy);
  background: white;
  max-width: 100%;
}
input[type="search"] {
  flex: 1;
  min-width: 160px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 17px;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  background: #fafbfc;
  color: #8590a3;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 13px 20px;
  font-weight: 600;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f5;
  vertical-align: middle;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
}
tr:last-child td {
  border: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #faf9fd;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.text-link {
  color: #672074;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #15225760;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
}
.drawer {
  background: #fff;
  width: 520px;
  max-width: 100%;
  height: 100%;
  overflow: auto;
  padding: 30px;
  box-shadow: -10px 0 50px #15225718;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.detail-amount {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.journal-preview {
  background: #f7f8fb;
  border-radius: 8px;
  padding: 16px;
  margin: 15px 0;
}
.journal-preview .row {
  padding: 9px 0;
  font-size: 12px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  margin: 18px 0;
}
.check input {
  margin-top: 3px;
}
.login {
  max-width: 460px;
  margin: 12vh auto;
  background: white;
  border: 1px solid var(--line);
  padding: 45px;
  border-radius: 16px;
}
.login .brand {
  margin: 0 0 32px;
}
.login h1 {
  font-size: 25px;
}
.login button {
  width: 100%;
  margin-top: 15px;
}
.login p {
  font-size: 13px;
  color: var(--muted);
}
.loading {
  padding: 80px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #152257;
  color: white;
  border-radius: 8px;
  padding: 14px 22px;
  box-shadow: 0 5px 25px #15225740;
  display: none;
  z-index: 30;
  max-width: 90%;
  font-size: 13px;
}
.report-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.report-tabs button.active {
  background: #152257;
  color: white;
}
.split-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.task-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f5f0f7;
  display: grid;
  place-items: center;
  color: #894185;
  font-size: 17px;
  flex-shrink: 0;
}
.bar-chart {
  height: 135px;
  display: flex;
  align-items: end;
  gap: 26px;
  padding: 10px 10px 0;
}
.bar-group {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.bar {
  width: 35%;
  min-height: 3px;
  max-height: 90px;
  background: #7ba5d9;
  border-radius: 4px 4px 0 0;
  margin: 0 auto 10px;
}
.bar.expense {
  background: #c8b4d3;
}
.caption {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.definition {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.error {
  color: #a93245;
  background: #fff0f1;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
  margin: 14px 0;
}
a {
  color: #672074;
}
code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 20px;
  }
  .brand {
    width: 125px;
  }
  .brand-sub {
    margin: 0 12px 20px;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 3px;
  }
  .nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 9px;
  }
  .nav .icon {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  .topbar {
    height: 56px;
    padding: 0 20px;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    flex-direction: column;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 23px;
  }
  .topbar-right .private {
    display: none;
  }
  h1 {
    font-size: 27px;
  }
  .panel-head {
    padding: 18px;
  }
  .row {
    padding: 15px 18px;
  }
  td,
  th {
    padding: 13px;
  }
  .drawer {
    padding: 23px;
  }
  .split-form {
    grid-template-columns: 1fr;
  }
  .login {
    margin: 8vh 15px;
    padding: 30px;
  }
}
.sidebar {
  overflow-y: auto;
}
.sidebar-foot {
  flex-shrink: 0;
}
.nav button {
  padding-top: 10px;
  padding-bottom: 10px;
}
