:root {
  --ink: #1c302b;
  --muted: #76807b;
  --green: #216c54;
  --green-dark: #174d3d;
  --paper: #f6f7f3;
  --line: #e6eae2;
  --bs-primary: #216c54;
  --bs-success: #267a5b;
  --bs-danger: #bf594c;
  --bs-body-color: #253b32;
  --bs-border-color: #e1e7df;
  --bs-body-font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a {
  color: var(--green);
}
a:hover {
  color: var(--green-dark);
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
.btn {
  border-radius: 9px;
  padding: 0.65rem 1rem;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 12px;
}
.btn-primary {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-dark);
  --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-bg: var(--green-dark);
  --bs-btn-active-border-color: var(--green-dark);
  --bs-btn-disabled-bg: var(--green);
  --bs-btn-disabled-border-color: var(--green);
}
.btn-outline-primary {
  --bs-btn-color: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green);
  --bs-btn-hover-border-color: var(--green);
}
.btn-light {
  background: #f0f2ed;
  border-color: #f0f2ed;
}
.btn-outline-secondary {
  --bs-btn-color: #596b60;
  --bs-btn-border-color: #d7dfd6;
  --bs-btn-hover-bg: #edf1ea;
  --bs-btn-hover-border-color: #bbcaba;
  --bs-btn-hover-color: #213b2c;
}
.text-success {
  color: #237252 !important;
}
.text-danger {
  color: #b25146 !important;
}
.text-primary {
  color: #4c6d97 !important;
}
.text-secondary {
  color: var(--muted) !important;
}
.sidebar {
  width: 244px !important;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: #fff !important;
  border-right: 1px solid var(--line);
  z-index: 1050 !important;
}
.sidebar .offcanvas-body {
  padding: 32px 20px 20px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #e6f0e8;
  color: var(--green);
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 650;
  margin-top: 5px;
  color: #7b8d80;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #97a39a;
  font-weight: 700;
  margin: 44px 12px 13px;
}
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #788379;
  font-size: 13px;
  border-radius: 8px;
  font-weight: 500;
}
.sidebar .nav-link.active {
  background: #eaf2e9;
  color: var(--green);
  font-weight: 700;
}
.sidebar .nav-link:hover {
  background: #f2f5ef;
  color: var(--green);
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e8ebdf;
  color: #526943;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
}
.avatar svg {
  width: 18px;
  height: 18px;
}
.main {
  margin-left: 244px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 77px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.45);
}
.topbar strong {
  font-weight: 600;
}
.top-divider {
  margin: 0 13px;
  color: #bbc4b9;
}
.today {
  color: var(--muted);
}
.page-content {
  padding: 34px 40px 45px;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 6px;
  line-height: 1.3;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.footer {
  padding: 18px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8a968b;
}
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  height: 100%;
  min-height: 175px;
}
.summary-card > span,
.summary-card > div {
  font-size: 12px;
}
.summary-card h2 {
  font-size: clamp(23px, 2.1vw, 32px);
  font-weight: 650;
  letter-spacing: -0.9px;
  margin: 20px 0 12px;
  overflow-wrap: anywhere;
}
.summary-card small {
  font-size: 10px;
  color: var(--muted);
}
.total-card {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
  position: relative;
  overflow: hidden;
}
.total-card small {
  color: #accab5;
}
.total-card:after {
  content: "";
  width: 150px;
  height: 150px;
  border: 1px solid #ffffff0f;
  border-radius: 50%;
  position: absolute;
  right: -58px;
  bottom: -74px;
  box-shadow:
    0 0 0 30px #ffffff03,
    0 0 0 60px #ffffff03;
  pointer-events: none;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.stat-dot.in {
  background: #5d9973;
}
.stat-dot.out {
  background: #cc927d;
}
.section-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 5px #293f1c02;
  overflow: hidden;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 23px 24px;
}
.section-heading h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.section-heading p {
  font-size: 11px;
  margin: 5px 0 0;
  color: var(--muted);
}
.subtle-link {
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 600;
}
.subtle-link svg {
  width: 14px;
}
.account-tile {
  display: block;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.account-tile:hover {
  background: #fafcf8;
  border-color: #a8bda6;
}
.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.account-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #eef2e8;
  display: grid;
  place-items: center;
  color: #688258;
}
.tiny-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8a968c;
}
.account-tile > strong {
  font-size: 14px;
}
.account-tile > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.account-balance {
  margin-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  gap: 8px;
  overflow-wrap: anywhere;
}
.account-balance svg {
  color: #9bac99;
  width: 16px;
  flex-shrink: 0;
}
.category-stat {
  margin-bottom: 20px;
  font-size: 11px;
}
.category-stat strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.category-stat small {
  font-size: 9px;
  color: #94a08f;
}
.progress {
  height: 5px;
  background: #edf1e9;
  border-radius: 5px;
}
.progress-bar {
  background: #799b68;
}
.soft-note {
  background: #f4f6ef;
  border-radius: 9px;
  padding: 15px;
  color: #879180;
  font-size: 11px;
}
.soft-note strong {
  font-size: 18px;
  color: #617854;
  display: block;
  margin-top: 5px;
}
.table {
  font-size: 12px;
  --bs-table-color: var(--ink);
}
.table > thead > tr > th {
  font-size: 10px;
  letter-spacing: 0.4px;
  font-weight: 600;
  color: #929b91;
  background: #fafbf7;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 13px 18px;
}
.table > tbody > tr > td {
  padding: 17px 18px;
  border-color: #edf0e8;
}
.table > tbody > tr:last-child > td {
  border-bottom: 0;
}
.table strong {
  font-weight: 550;
}
.cell-sub {
  display: block;
  font-size: 10px;
  color: #8c968a;
  margin-top: 3px;
}
.type-label {
  font-weight: 600;
}
.money {
  white-space: nowrap;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.cancelled {
  opacity: 0.6;
}
.cancelled .money {
  text-decoration: line-through;
}
.welcome-banner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
  background: #eaf1e3;
  border-radius: 13px;
}
.welcome-banner p {
  font-size: 12px;
  color: #6e8163;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #52614f;
}
.form-control,
.form-select {
  min-height: 45px;
  border-radius: 8px;
  font-size: 13px;
  border-color: #dfe5db;
}
.form-control:focus,
.form-select:focus {
  border-color: #84a588;
  box-shadow: 0 0 0 3px #216c5412;
}
.form-text {
  font-size: 11px;
  color: #8a9586;
}
.optional {
  font-weight: 400;
  color: #9aa393;
  font-size: 11px;
  margin-left: 4px;
}
.recorder {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f5f7f0;
  color: #738467;
  font-size: 13px;
}
.transaction-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 0;
  gap: 8px;
  background: #fcfdf9;
}
.transaction-tabs a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #8b9685;
  font-size: 13px;
  font-weight: 600;
  padding: 16px 6px;
  border-bottom: 3px solid transparent;
}
.transaction-tabs a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.transaction-tabs a.type-keluar {
  color: #b0644e;
  border-bottom-color: #b0644e;
}
.transaction-tabs a.type-transfer {
  color: #557ca7;
  border-bottom-color: #557ca7;
}
.input-money .input-group-text {
  background: #f4f6ef;
  border-color: #dfe5db;
  color: #7e8d72;
  font-size: 18px;
  border-radius: 8px 0 0 8px;
}
.input-money input {
  font-size: 28px;
  font-weight: 600;
  padding: 15px;
  letter-spacing: -0.5px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 30px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #839678;
}
.mini-stat {
  padding: 18px 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.mini-stat strong {
  display: block;
  font-size: 21px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
}
.page-link {
  color: var(--green);
  border-color: #dfe6d9;
}
.active > .page-link {
  background: var(--green);
  border-color: var(--green);
}
.pagination-bar .form-select {
  min-height: 32px;
}
.detail-amount {
  font-size: 38px;
  letter-spacing: -1.5px;
  overflow-wrap: anywhere;
}
.detail-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 17px;
  font-size: 13px;
  margin: 0;
}
.detail-list dt {
  font-weight: 400;
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.note-text {
  white-space: normal;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.member-row:last-child {
  border-bottom: 0;
}
.badge {
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 0.5em 0.7em;
}
.text-bg-success {
  background: #e2f1e7 !important;
  color: #337954 !important;
}
.text-bg-danger {
  background: #f8e9e3 !important;
  color: #af5e47 !important;
}
.text-bg-primary {
  background: #e8eef5 !important;
  color: #557799 !important;
}
.empty-small {
  text-align: center;
  color: #9ea995;
  font-size: 12px;
  padding: 20px 5px;
}
.empty-small svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}
.alert {
  font-size: 13px;
  border-radius: 10px;
}
.alert-success {
  background: #eaf3e7;
  border-color: #d8e9d1;
  color: #436d40;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
}
.auth-story {
  background: #173e31;
  color: white;
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.auth-story .brand-sub {
  color: #a0bd9d;
}
.auth-story .brand-mark {
  background: #315b44;
  color: #d4e5ba;
}
.auth-story > small {
  color: #83a089;
  font-size: 11px;
  margin-top: 30px;
}
.auth-copy {
  padding: 65px 0 35px;
}
.auth-copy .eyebrow {
  color: #96b48d;
  font-size: 9px;
}
.auth-copy h1 {
  font-size: clamp(40px, 4.4vw, 68px);
  letter-spacing: -2.7px;
  font-weight: 450;
  line-height: 1.09;
  margin: 23px 0;
}
.auth-copy p {
  color: #9db7a3;
  font-size: 14px;
  max-width: 330px;
  line-height: 1.9;
}
.auth-visual {
  max-width: 330px;
  background: #244c3b;
  border: 1px solid #48654d;
  border-radius: 14px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.auth-visual span {
  font-size: 12px;
  color: #a4b89a;
}
.auth-visual strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  margin-top: 5px;
  color: #e1ebce;
}
.visual-arrow {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #c1d495;
  display: grid;
  place-items: center;
}
.visual-arrow svg {
  color: #26492d;
  width: 25px;
  height: 25px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  background: #fafbf7;
}
.auth-form {
  max-width: 395px;
  width: 100%;
}
.auth-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 13px 0;
}
.auth-form .form-control {
  min-height: 49px;
  background: #fff;
}
.auth-form .btn-primary {
  min-height: 48px;
}
.auth-footnote {
  font-size: 11px;
  text-align: center;
  color: #98a18f;
  margin-top: 24px;
}
.auth-form .text-secondary {
  font-size: 13px;
  line-height: 1.8;
}

@media (min-width: 1600px) {
  .page-content {
    padding-left: 55px;
    padding-right: 55px;
  }
}
@media (max-width: 1199px) {
  .page-content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .auth-story {
    padding: 45px 40px;
  }
  .summary-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 991px) {
  .main {
    margin-left: 0;
  }
  .sidebar .offcanvas-body {
    padding-top: 15px;
  }
  .sidebar {
    width: 265px !important;
  }
  .nav-label {
    margin-top: 30px;
  }
  .auth-shell {
    grid-template-columns: 40% 60%;
  }
  .auth-story {
    padding: 35px 25px;
  }
  .auth-copy h1 {
    font-size: 40px;
  }
  .auth-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .auth-visual {
    padding: 18px;
  }
  .auth-visual strong {
    font-size: 22px;
  }
  .auth-story .brand {
    font-size: 17px;
  }
}
@media (max-width: 767px) {
  .page-content {
    padding: 22px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 66px;
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .summary-card {
    min-height: 145px;
    padding: 22px;
  }
  .summary-card h2 {
    margin: 13px 0 8px;
  }
  .section-heading {
    padding: 20px;
  }
  .footer {
    padding: 18px 16px;
  }
  .footer span {
    display: none;
  }
  .detail-list {
    grid-template-columns: 115px 1fr;
    gap: 15px;
    font-size: 12px;
  }
  .detail-amount {
    font-size: 30px;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    min-height: auto;
    padding: 25px;
  }
  .auth-copy {
    padding: 25px 0 0;
  }
  .auth-copy h1 {
    font-size: 34px;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 12px 0;
  }
  .auth-copy h1 br {
    display: none;
  }
  .auth-copy p,
  .auth-visual,
  .auth-story > small,
  .auth-copy .eyebrow {
    display: none;
  }
  .auth-form-wrap {
    padding: 32px 25px 50px;
    align-items: flex-start;
  }
  .auth-form {
    max-width: 460px;
  }
  .auth-title {
    font-size: 26px;
  }
  .transaction-tabs {
    gap: 0;
    padding: 5px 10px 0;
  }
  .transaction-tabs a {
    font-size: 12px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .btn-primary {
    flex-grow: 1;
  }
  .welcome-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .pagination-bar {
    padding: 18px 16px;
  }
  .top-divider {
    margin: 0 6px;
  }
}

/* Topbar profile, logout, and responsive sidebar */
.topbar-left {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.topbar-left > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  min-height: 40px;
}
.topbar-profile {
  padding: 3px 7px 3px 3px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.topbar-profile:hover {
  background: #eef3eb;
}
.topbar-profile .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.topbar-profile strong {
  font-size: 12px;
  line-height: 1.25;
  color: var(--ink);
}
.topbar-profile small {
  font-size: 10px;
  line-height: 1.25;
}
.topbar-actions form {
  display: flex;
  align-items: center;
}
.topbar-actions .btn-outline-danger {
  --bs-btn-color: #a95349;
  --bs-btn-border-color: #e5c7c1;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #a95349;
  --bs-btn-hover-border-color: #a95349;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
}
.topbar-actions .btn-outline-danger svg {
  width: 16px;
  height: 16px;
}
.sidebar .offcanvas-body::-webkit-scrollbar {
  width: 6px;
}
.sidebar .offcanvas-body::-webkit-scrollbar-thumb {
  background: #dce5d9;
  border-radius: 10px;
}
.sidebar .offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}
@media (max-width: 767px) {
  .topbar {
    min-height: 66px;
    padding: 10px 16px;
  }
  .topbar-actions {
    gap: 8px !important;
  }
  .topbar-profile {
    padding-right: 2px;
  }
  .topbar-profile .avatar {
    width: 34px;
    height: 34px;
  }
  .topbar-actions .btn-outline-danger {
    padding: 0.45rem 0.6rem;
  }
  .topbar-actions .btn-outline-danger span {
    display: inline;
  }
}
@media (max-width: 420px) {
  .topbar-actions .btn-outline-danger span {
    display: none;
  }
  .topbar-actions .btn-outline-danger {
    width: 36px;
    height: 36px;
    padding: 0;
  }
  .topbar-actions .btn-outline-danger svg {
    width: 17px;
    height: 17px;
  }
}
