:root {
  --ink: #16343b;
  --muted: #657b80;
  --teal: #097f74;
  --line: #dce6e5;
  --bg: #f4f7f5;
  --red: #b54949;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d7a75e;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 35px;
  line-height: 1.15;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 18px;
}
p {
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 750;
}
.mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #d5efdb;
  color: #193f3b;
  font-size: 28px;
  font-family: Georgia, serif;
  letter-spacing: -3px;
  padding-right: 4px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  color: white;
  background: #12373c;
  padding: 55px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 720px;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #46776e;
  border-radius: 50%;
  bottom: -340px;
  right: -170px;
  box-shadow:
    0 0 0 60px #1b4245,
    0 0 0 61px #3b625e;
}
.auth-story h1 {
  font-size: clamp(42px, 4.5vw, 70px);
  margin: 22px 0;
  letter-spacing: -2px;
}
.auth-story p {
  color: #adcbc8;
  font-size: 18px;
}
.story-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  position: relative;
  z-index: 1;
  color: #abc7c4;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-card {
  width: min(100%, 390px);
}
.auth-card h2 {
  font-size: 31px;
  margin-top: 24px;
}
.auth-card > p {
  margin: 8px 0 30px;
}
.auth-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 24px;
}
.pill {
  font-size: 11px;
  border-radius: 99px;
  background: #e4ece8;
  color: #426e61;
  padding: 7px 11px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 32px 22px;
  background: #112f35;
  color: #c0d4d3;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  color: white;
  margin-bottom: 50px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 0 15px 15px;
  color: #7fa29f;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: transparent;
  color: #bbd1ce;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
}
.sidebar nav button.active {
  color: #fff;
  background: #255149;
}
.sidebar nav button:hover {
  background: #20444a;
}
.sidebar nav button b {
  margin-left: auto;
  background: #cfe6cd;
  color: #285345;
  font-size: 11px;
  padding: 0 6px;
  border-radius: 6px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #355056;
  padding-top: 25px;
}
.avatar {
  background: #d1dfc5;
  color: #21483f;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-weight: bold;
}
.sidebar-bottom small {
  display: block;
  font-size: 11px;
  color: #8baba7;
}
.logout {
  background: transparent;
  color: #c9dad5;
  margin-left: auto;
  font-size: 24px;
}
.main {
  margin-left: 252px;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  background: #fcfdfb;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39977d;
  margin-right: 8px;
}
#content {
  padding: 35px 42px 50px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100dvh - 140px);
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  color: #8a9d98;
  margin-bottom: 8px;
  display: block;
}
.page-heading p {
  margin-top: 10px;
}
.buttons {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.primary,
.secondary,
.danger,
.ghost {
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.primary {
  background: var(--teal);
  color: white;
}
.primary:hover {
  background: #086d65;
}
.secondary {
  background: white;
  border: 1px solid #d6e1dd;
  color: var(--ink);
}
.danger {
  color: var(--red);
  background: #fcf0ef;
}
.ghost {
  background: transparent;
  color: var(--teal);
}
.wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.hero {
  padding: 29px 32px;
  background: #e5eedf;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}
.hero small {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #5c735f;
}
.hero .amount {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -1.5px;
  margin-top: 6px;
}
.hero-note {
  max-width: 210px;
  font-size: 13px;
  color: #5b725f;
}
.accounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 27px;
}
.account {
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6a7f7b;
  font-size: 12px;
}
.account-symbol {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #eaf2ef;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-weight: bold;
}
.account:nth-child(2) .account-symbol {
  color: #8d794c;
  background: #f5edda;
}
.account:nth-child(3) .account-symbol {
  color: #706596;
  background: #eeebf7;
}
.account:nth-child(4) .account-symbol {
  color: #9f725d;
  background: #f7eee8;
}
.account strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.7px;
  margin-top: 17px;
  overflow-wrap: anywhere;
}
.account small {
  display: block;
  font-size: 10px;
  color: #98aaa4;
  margin-top: 6px;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.panel-head {
  padding: 21px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf1ef;
}
.panel-head h3 {
  font-size: 15px;
}
.panel-body {
  padding: 23px;
}
.empty {
  padding: 38px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
}
.transaction {
  padding: 17px 23px;
  display: flex;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid #edf1ef;
}
.transaction:last-child {
  border: 0;
}
.tx-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #edf5ef;
  color: #387965;
  border-radius: 10px;
  flex: none;
}
.tx-icon.expense {
  background: #f9eeeb;
  color: #b36550;
}
.tx-icon.transfer {
  background: #eff0f7;
  color: #6d73a1;
}
.tx-title {
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.tx-meta {
  font-size: 11px;
  color: #879b96;
  margin-top: 3px;
}
.tx-amount {
  margin-left: auto;
  text-align: right;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
.tx-amount.income {
  color: var(--teal);
}
.due-item {
  padding: 18px 23px;
  border-bottom: 1px solid #edf1ef;
}
.due-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.due-row strong {
  font-size: 13px;
}
.badge {
  font-size: 10px;
  font-weight: 650;
  padding: 4px 8px;
  background: #f6eedb;
  color: #8a6b25;
  border-radius: 6px;
  white-space: nowrap;
}
.badge.overdue {
  background: #fbebe8;
  color: #b04b42;
}
.due-item p {
  font-size: 12px;
  margin: 8px 0;
}
.mini-summary {
  display: flex;
  gap: 25px;
  font-size: 12px;
  margin-top: 24px;
}
.mini-summary strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-top: 5px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}
.filters label {
  margin: 0;
  min-width: 150px;
}
.filters .buttons {
  align-self: center;
}
.report-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.report-totals > div {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}
.report-totals strong {
  display: block;
  color: var(--ink);
  font-size: 25px;
  margin-top: 8px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
td,
th {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid #edf1ef;
}
th {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #839790;
  background: #fafcf9;
}
.wrap-cell {
  white-space: normal;
  min-width: 140px;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.settings-grid p {
  font-size: 13px;
  margin-bottom: 22px;
}
.notice {
  padding: 14px 17px;
  background: #f7efdc;
  color: #836625;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d6e1dc;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-height: 44px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #e5f2ed;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 12px;
}
.check input {
  width: 17px;
  min-height: 17px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.error {
  color: #ad3e3e;
  font-size: 13px;
  margin: 10px 0;
  min-height: 18px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px;
  width: min(590px, calc(100% - 28px));
  max-height: 90dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #102e3599;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 26px;
}
.dialog-head h2 {
  margin-top: 5px;
}
.dialog-head .eyebrow {
  color: var(--teal);
}
.icon-button {
  background: #eff4f1;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 24px;
  color: var(--ink);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
}
#pay-detail {
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #163c37;
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  max-width: 90%;
  box-shadow: 0 8px 30px #17332e33;
}
footer {
  padding: 18px 42px;
  font-size: 11px;
  color: #93a49e;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  align-items: center;
  font-size: 12px;
}
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
    padding: 28px 15px;
  }
  .main {
    margin-left: 215px;
  }
  #content {
    padding: 28px;
  }
  header {
    padding: 0 28px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .account {
    padding: 16px;
  }
  .account strong {
    font-size: 20px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    min-height: 0;
    padding: 24px;
  }
  .auth-story > div:not(.brand) {
    display: none;
  }
  .auth-main {
    padding: 36px 24px;
  }
  .auth-card h2 {
    font-size: 28px;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    display: block;
  }
  .sidebar .brand {
    margin: 0 0 12px;
    font-size: 11px;
  }
  .sidebar .mark {
    width: 29px;
    height: 29px;
    font-size: 22px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }
  .sidebar nav button {
    font-size: 16px;
    justify-content: center;
    padding: 8px 2px;
    gap: 4px;
    flex-direction: column;
  }
  .sidebar nav button span {
    font-size: 9px;
  }
  .sidebar nav button b {
    display: none;
  }
  .main {
    margin: 0;
  }
  header {
    height: 45px;
    padding: 0 18px;
    font-size: 10px;
  }
  #content {
    padding: 25px 18px;
    min-height: 65vh;
  }
  h1 {
    font-size: 29px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .buttons {
    gap: 7px;
  }
  .primary,
  .secondary,
  .danger,
  .ghost {
    padding: 11px 12px;
    font-size: 12px;
  }
  .hero {
    padding: 22px;
  }
  .hero .amount {
    font-size: 33px;
  }
  .hero-note {
    display: none;
  }
  .accounts {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .account strong {
    font-size: 23px;
  }
  .grid-two {
    gap: 18px;
  }
  .report-totals {
    gap: 8px;
  }
  .report-totals > div {
    padding: 13px 10px;
  }
  .report-totals strong {
    font-size: 18px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .filters label {
    min-width: calc(50% - 8px);
    flex: 1;
  }
  .filters .buttons {
    width: 100%;
  }
  .settings-grid {
    gap: 20px;
  }
  footer {
    padding: 16px 18px;
    font-size: 10px;
  }
  .tx-amount {
    font-size: 13px;
  }
  .transaction {
    padding: 17px;
  }
  .panel-head {
    padding: 18px;
  }
  .due-item {
    padding: 17px;
  }
  .auth-card small {
    font-size: 11px;
  }
}
@media print {
  .sidebar,
  header,
  footer,
  .buttons,
  .filters,
  button {
    display: none !important;
  }
  .main {
    margin: 0;
  }
  #content {
    padding: 0;
  }
  .table-scroll {
    overflow: visible;
  }
  body {
    background: white;
  }
}
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .mini-summary {
    margin-top: 0;
  }
}
