@charset "UTF-8";
/*
 * Book Keeper Dashboard styles. Plain CSS: edit this file directly, no build step.
 * Loaded after vendor/bootstrap/bootstrap.min.css, so rules here win over Bootstrap.
 * Brand colors: green #8cbc43 (links #5b7a2c), dark #1b1b1b, page background #f6f8f4.
 */

body {
  background-color: #f6f8f4;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}
@media (min-width: 992px) {
  .auth-shell {
    grid-template-columns: minmax(360px, 5fr) 7fr;
  }
}

.auth-brand {
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.75);
  background: #1b1b1b radial-gradient(circle at 20% 110%, rgba(140, 188, 67, 0.28), transparent 55%);
}
.auth-brand h2 {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.15;
}

.auth-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.auth-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.auth-points .bi {
  color: #8cbc43;
  font-size: 1.15rem;
  line-height: 1.4;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card.auth-card-wide {
  max-width: 620px;
}
.auth-card .form-floating > label {
  color: #6c757d;
}

.form-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6c757d;
}
.form-section::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e4e9de;
}

.password-field .form-control {
  padding-right: 2.75rem;
}
.password-field .form-control.is-invalid {
  padding-right: 4.5rem;
  background-position: right 2.6rem center;
}
.password-field .password-toggle {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  height: calc(3.125rem + 2px);
  padding: 0 0.85rem;
  border: 0;
  background: none;
  color: #6c757d;
}
.password-field .password-toggle:hover, .password-field .password-toggle:focus-visible {
  color: #202426;
}

.auth-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-steps span {
  flex: 1;
  padding-top: 0.5rem;
  border-top: 3px solid #dfe5d8;
  color: #6c757d;
}
.auth-steps .active {
  border-color: #8cbc43;
  color: #202426;
}

.plan-price {
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  --bs-offcanvas-width: 260px;
  --bs-offcanvas-bg: #1b1b1b;
  --bs-offcanvas-color: rgba(255, 255, 255, .8);
  background: #1b1b1b;
  color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 992px) {
  .app-sidebar {
    position: sticky;
    top: 0;
    flex: 0 0 248px;
    width: 248px;
    height: 100vh;
    overflow-y: auto;
  }
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 0.85rem;
  width: 100%;
  background: #1b1b1b;
}

.sidebar-brand img {
  width: 170px;
  height: auto;
}

.sidebar-section {
  margin: 1.4rem 0.65rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 1px;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  text-decoration: none;
}
.sidebar-link .bi {
  font-size: 1.05rem;
  opacity: 0.85;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.sidebar-link.active {
  position: relative;
  background: rgba(140, 188, 67, 0.18);
  color: #c3e28f;
  font-weight: 600;
}
.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #8cbc43;
}
.sidebar-link.disabled {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.4);
}
.sidebar-link .badge-soon {
  margin-left: auto;
  padding: 0.1rem 0.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-company {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
.sidebar-company:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.sidebar-company .small {
  color: rgba(255, 255, 255, 0.6);
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.2rem;
  border-radius: 50%;
  background: #9aa39c;
  vertical-align: middle;
}
.status-dot.is-active {
  background: #8cbc43;
  box-shadow: 0 0 0 3px rgba(140, 188, 67, 0.25);
}

.sidebar-promo {
  margin-top: auto;
  padding: 0.9rem;
  border-radius: 0.65rem;
  background: linear-gradient(160deg, rgba(140, 188, 67, 0.22), rgba(140, 188, 67, 0.06));
  border: 1px solid rgba(140, 188, 67, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

nav + .sidebar-promo {
  margin-top: 1.5rem;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e4e9de;
}

.app-content {
  flex: 1;
  padding: 1.5rem;
}
@media (max-width: 575.98px) {
  .app-content {
    padding: 1rem;
  }
}

.skip-link {
  position: absolute;
  z-index: 2000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #1b1b1b;
  color: #fff;
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  color: #3e4a40;
}
.btn-icon:hover, .btn-icon:focus-visible {
  background: #f1f4ec;
  color: #202426;
}

.topbar-search {
  position: relative;
  width: min(360px, 40vw);
}
.topbar-search .bi {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #7b857d;
  pointer-events: none;
}
.topbar-search .form-control {
  padding-left: 2.2rem;
  border-color: transparent;
  background: #f3f6ef;
}
.topbar-search .form-control:focus {
  background: #fff;
  border-color: #c5de9f;
}

.topbar-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.05rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 1rem;
  border: 2px solid #fff;
  background: #b3261e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 0.85rem;
  text-align: center;
}

.user-menu-toggle {
  padding: 0.2rem 0.4rem;
  border: 0;
  border-radius: 0.6rem;
}
.user-menu-toggle:hover, .user-menu-toggle:focus-visible, .user-menu-toggle.show {
  background: #f1f4ec;
}

.dropdown-menu {
  padding: 0.35rem;
  border-radius: 0.65rem;
  box-shadow: 0 10px 30px rgba(27, 27, 27, 0.12);
  font-size: 0.9rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
}
.dropdown-item .bi {
  width: 1rem;
  color: #6b756d;
}
.dropdown-item.text-danger .bi {
  color: inherit;
}

.user-menu {
  min-width: 260px;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #8cbc43;
  color: #1b1b1b;
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.avatar.avatar-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
}
.avatar.avatar-md {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
}
.avatar.avatar-xl {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.7rem;
}
.avatar.avatar-square {
  border-radius: 0.55rem;
}
.avatar.avatar-photo {
  object-fit: cover;
  background: #eef5e3;
  border: 1px solid #e4e9de;
}

/* A category that can be changed (Transactions): looks like the badge, opens the dialog */
button.category-badge.category-edit {
  border: 1px dashed transparent;
  cursor: pointer;
}
button.category-badge.category-edit .bi {
  font-size: 0.7rem;
  opacity: 0.45;
}
button.category-badge.category-edit:hover,
button.category-badge.category-edit:focus-visible {
  border-color: #8cbc43;
}
button.category-badge.category-edit:hover .bi {
  opacity: 1;
}

/* App confirmation dialog (replaces the browser's confirm box) */
.confirm-modal {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(27, 27, 27, 0.18);
}
.confirm-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #eef5e3;
  color: #3d5a1c;
  font-size: 1.2rem;
}
.confirm-icon.is-danger {
  background: #fdecea;
  color: #b42318;
}

/* Add-on report page */
.addon-hero {
  border: 0;
  background: linear-gradient(135deg, #1b1b1b 0%, #2a3320 100%);
  color: #fff;
}
.addon-hero .text-secondary {
  color: rgba(255, 255, 255, 0.72) !important;
}
.addon-hero .badge.text-bg-light {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.addon-badge {
  background: #8cbc43;
  color: #1b1b1b;
}
.addon-preview {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}
.addon-preview-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.85;
}
.addon-preview-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
}
.addon-lock-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: #1b1b1b;
  color: #8cbc43;
  font-size: 1.15rem;
}
.addon-order {
  top: 1rem;
  border-color: #8cbc43;
  box-shadow: 0 12px 32px rgba(27, 27, 27, 0.08);
}
.addon-summary {
  margin: 0;
}
.addon-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #e4e9de;
}
.addon-summary dt {
  font-weight: 400;
  color: #5f6b62;
}
.addon-summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.addon-summary .addon-summary-total {
  border-bottom: 0;
  padding-top: 0.6rem;
}
.addon-summary .addon-summary-total dt,
.addon-summary .addon-summary-total dd {
  color: #1b1b1b;
  font-weight: 700;
}
.addon-assurance li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.addon-assurance .bi {
  color: #5b7a2c;
}
.addon-related {
  transition: border-color 0.15s, box-shadow 0.15s;
}
.addon-related:hover {
  border-color: #8cbc43;
  box-shadow: 0 6px 18px rgba(27, 27, 27, 0.06);
}

/* Add-on purchase dialog */
.addon-modal {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(27, 27, 27, 0.2);
}
.addon-modal .modal-header,
.addon-modal .modal-body,
.addon-modal .modal-footer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.addon-modal .modal-header {
  padding-top: 1.5rem;
}
.addon-modal-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #8cbc43;
  color: #1b1b1b;
  font-size: 1.25rem;
}
.addon-note {
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  background: #f7fbf1;
  color: #3e4a40;
}
.addon-modal-foot {
  padding: 0.7rem 1.5rem;
  background: #f6f8f4;
  border-top: 1px solid #eef1ea;
}

/* Reports library */
.report-card {
  transition: border-color 0.15s, box-shadow 0.15s;
}
.report-card:hover {
  border-color: #c9d3c0;
  box-shadow: 0 6px 18px rgba(27, 27, 27, 0.06);
}
.report-card.is-addon {
  background: linear-gradient(180deg, #ffffff 60%, #f7fbf1 100%);
}
.report-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  background: #eef5e3;
  color: #3d5a1c;
  font-size: 1.1rem;
}
.report-card.is-addon .report-icon {
  background: #1b1b1b;
  color: #8cbc43;
}
.reports-summary {
  border: 0;
  background: linear-gradient(135deg, #1b1b1b 0%, #2a3320 100%);
  color: #fff;
}
.reports-summary .small {
  color: rgba(255, 255, 255, 0.72);
}

/* Kind of business next to a merchant's name ("Roofing contractor") */
.business-type {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #e4e9de;
  background: #f7f8f5;
  color: #5f6b62;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Dates first, before a list or ledger loads */
.date-first .btn-outline-primary {
  min-width: 8rem;
}

/* Dashboard "Get started" checklist */
.onboarding-steps {
  display: grid;
  gap: 0.5rem;
}
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #eef1ea;
  border-radius: 0.6rem;
}
.onboarding-step.is-next {
  border-color: #8cbc43;
  background: #f7fbf1;
}
.onboarding-step.is-done {
  color: #6b756d;
}
.onboarding-number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 2px solid #c9d3c0;
  font-weight: 700;
  font-size: 0.85rem;
}
.onboarding-step.is-next .onboarding-number {
  border-color: #8cbc43;
  color: #3d5a1c;
}
.onboarding-step.is-done .onboarding-number {
  border-color: #8cbc43;
  background: #8cbc43;
  color: #1b1b1b;
}

/* Guides: section list on the left, one card per section */
.guide-toc {
  top: 1rem;
  display: grid;
  gap: 0.15rem;
}
.guide-toc a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  color: #3e4a40;
  text-decoration: none;
  font-size: 0.9rem;
}
.guide-toc a:hover {
  background: #eef5e4;
  color: #1b1b1b;
}
.guide section {
  scroll-margin-top: 1rem;
}
.guide section ul,
.guide section ol {
  padding-left: 1.1rem;
}
.guide section li {
  margin-bottom: 0.35rem;
}

/* Help page */
.help-steps {
  counter-reset: help;
  display: grid;
  gap: 1rem;
}
.help-steps > li {
  display: flex;
  gap: 0.85rem;
}
.help-steps > li::before {
  counter-increment: help;
  content: counter(help);
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #8cbc43;
  color: #1b1b1b;
  font-weight: 700;
}
.help-faq details {
  border-top: 1px solid #eef1ea;
  padding: 0.75rem 0;
}
.help-faq summary {
  font-weight: 600;
  cursor: pointer;
}
.help-faq details p {
  margin: 0.5rem 0 0;
  color: #4a544c;
}

/* Profile picture with its change / remove controls */
.avatar-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.avatar-editor .avatar-actions {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.avatar-editor .avatar-actions button,
.avatar-editor .avatar-actions label {
  padding: 0;
  border: 0;
  background: none;
  color: #5b7a2c;
  text-decoration: underline;
  cursor: pointer;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e4e9de;
  font-size: 0.8rem;
  color: #6b756d;
}
.app-footer a {
  color: inherit;
  text-decoration: none;
}
.app-footer a:hover {
  color: #5b7a2c;
  text-decoration: underline;
}

.profile-hero {
  background: linear-gradient(120deg, #fff 55%, #eef5e4);
}

.profile-nav {
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.profile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: #3e4a40;
  text-decoration: none;
}
.profile-nav a:hover {
  background: #fff;
  color: #202426;
}

.profile-section {
  scroll-margin-top: 5rem;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.page-head h1 {
  margin: 0;
}

.card {
  border-color: #e4e9de;
  box-shadow: 0 1px 2px rgba(27, 27, 27, 0.04);
}

.kpi-card {
  height: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid #e4e9de;
  border-radius: 0.75rem;
}
.kpi-card.tone-good {
  box-shadow: inset 3px 0 0 #4f8a2a;
}
.kpi-card.tone-bad {
  box-shadow: inset 3px 0 0 #b3261e;
}

.kpi-label {
  font-size: 0.78rem;
  color: #5f6b62;
}

.kpi-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #eef5e4;
  color: #5b7a2c;
  font-size: 0.9rem;
}

.card {
  border-radius: 0.85rem;
}

.kpi-value {
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kpi-sub {
  font-size: 0.75rem;
  color: #5f6b62;
}

.health-ring {
  --p: 0;
  --ring: #8cbc43;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), #e9ede4 0);
}
.health-ring span {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.health-ring.watch {
  --ring: #d99a00;
}
.health-ring.risk {
  --ring: #b3261e;
}

.health-parts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
  font-size: 0.82rem;
}

.severity {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.severity.high {
  background: #fbe7e5;
  color: #8c1d18;
}
.severity.warning {
  background: #fdf1dc;
  color: #7a4d00;
}
.severity.info {
  background: #e6eefb;
  color: #1d4a8f;
}

.chart-box {
  position: relative;
  height: 300px;
}

.min-w-0 {
  min-width: 0;
}

.card-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
}

.card-title-sm {
  margin: 0;
  font-size: 1.05rem;
}

.stat-card .card-body {
  padding: 1rem 1.15rem;
}

.stat-value {
  margin: 0.35rem 0 0.5rem;
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sparkline {
  flex: 0 0 auto;
  width: 96px;
  height: 32px;
}

.delta-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.delta {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.4rem 0.05rem 0.2rem;
  border-radius: 1rem;
  background: #eef1ea;
  color: #3e4a40;
  font-weight: 600;
  white-space: nowrap;
}
.delta .bi {
  font-size: 1.1em;
}
.delta.is-good {
  background: #e5f4ea;
  color: #1d6b3d;
}
.delta.is-bad {
  background: #fbe7e5;
  color: #a1221b;
}

.segmented {
  padding: 0.2rem;
  border-radius: 0.6rem;
  background: #eaefe4;
}
.segmented .btn {
  border: 0;
  border-radius: 0.45rem !important;
  color: #3e4a40;
  font-weight: 500;
}
.segmented .btn:hover {
  color: #202426;
}
.segmented .btn.active {
  background: #fff;
  color: #202426;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(27, 27, 27, 0.12);
}

.progress-thin {
  height: 6px;
  border-radius: 3px;
  background: #edf0e9;
}
.progress-thin .progress-bar {
  border-radius: 3px;
}

.metric-grid .col {
  border-bottom: 1px solid #eef1ea;
}
.metric-grid .col:nth-last-child(-n+4) {
  border-bottom: 0;
}

.metric {
  height: 100%;
  padding: 0.85rem 0.75rem 0.85rem 0;
}

.metric-value {
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.alert-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef1ea;
}
.alert-item:first-child {
  padding-top: 0;
}
.alert-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.75rem;
  border: 1px solid #e4e9de;
  border-radius: 0.65rem;
  color: #202426;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.report-tile:hover {
  border-color: #b9d68e;
  box-shadow: 0 2px 8px rgba(27, 27, 27, 0.06);
  color: #202426;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 2rem 1rem;
  border: 2px dashed #c9d6b8;
  border-radius: 0.85rem;
  background: #f9fbf6;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone > .bi {
  font-size: 2.25rem;
  color: #6f9a35;
}
.dropzone:hover, .dropzone.is-dragging, .dropzone:focus-within {
  border-color: #8cbc43;
  background: #f1f7e8;
}
.dropzone.is-invalid {
  border-color: #b3261e;
}

.upload-step {
  margin-bottom: 1.5rem;
}

.upload-step-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #1f2a20;
}

.upload-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #8cbc43;
  color: #fff;
  font-size: 0.85rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef5e3;
  color: #3d5a1c;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.category-badge.is-missing {
  background: #fff4e0;
  color: #8a5300;
}

.steps-list {
  padding-left: 1.1rem;
  margin: 0;
}
.steps-list li {
  margin-bottom: 0.6rem;
  color: #3e4a40;
}

.nav-pills-sm .nav-link {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  color: #3e4a40;
  font-size: 0.875rem;
}
.nav-pills-sm .nav-link.active {
  background: #fff;
  color: #202426;
  font-weight: 600;
  box-shadow: 0 0 0 1px #c5de9f;
}

.reconcile-bar {
  position: sticky;
  top: 4.25rem;
  z-index: 5;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pagination {
  --bs-pagination-color: #3e4a40;
  --bs-pagination-hover-color: #202426;
  --bs-pagination-hover-bg: #eef5e4;
  --bs-pagination-focus-color: #202426;
  --bs-pagination-active-bg: #8cbc43;
  --bs-pagination-active-border-color: #8cbc43;
  --bs-pagination-active-color: #1b1b1b;
  --bs-pagination-border-color: #e4e9de;
  gap: 0.25rem;
}
.pagination .page-link {
  min-width: 2rem;
  border-radius: 0.45rem !important;
  text-align: center;
}
.pagination .active .page-link {
  font-weight: 700;
}

.report-table {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.report-table th {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5f6b62;
  white-space: nowrap;
  border-bottom-width: 1px;
}
.report-table .num {
  text-align: right;
  white-space: nowrap;
}
.report-table .neg {
  color: #b3261e;
}
.report-table .indent-1 {
  padding-left: 1.75rem;
}
.report-table tr.row-heading td {
  padding-top: 1rem;
  font-weight: 700;
  background: #f6f8f4;
}
.report-table tr.row-section td {
  padding-top: 0.85rem;
  font-weight: 600;
  color: #3e4a40;
}
.report-table tr.row-subtotal td {
  font-weight: 600;
  border-top: 1px solid #c9d1c2;
}
.report-table tr.row-total td {
  font-weight: 700;
  border-top: 1px solid #202426;
}
.report-table tr.row-grand td {
  font-weight: 700;
  border-top: 2px solid #202426;
  border-bottom: 3px double #202426;
}
.report-table a {
  color: inherit;
  text-decoration: none;
}
.report-table a:hover {
  color: #5b7a2c;
  text-decoration: underline;
}

.report-toolbar .form-select,
.report-toolbar .form-control {
  width: auto;
}

.journal-lines td {
  vertical-align: middle;
}

@media print {
  .app-sidebar,
  .app-topbar,
  .report-toolbar,
  .no-print {
    display: none !important;
  }
  .app-content {
    padding: 0;
  }
  .card {
    border: 0;
    box-shadow: none;
  }
  body {
    background: #fff;
  }
}

/* ---- Debit / credit columns: very light red for debits, very light green for credits ---- */
.report-table.is-drcr td.col-debit,
.report-table.is-drcr th.col-debit {
  background-color: #fdf4f4;
  color: #9a3434;
}
.report-table.is-drcr td.col-credit,
.report-table.is-drcr th.col-credit {
  background-color: #f2f9f3;
  color: #2c6e3f;
}
.report-table.is-drcr thead th.col-debit {
  background-color: #fbe8e8;
  box-shadow: inset 0 -2px 0 #f0c6c6;
}
.report-table.is-drcr thead th.col-credit {
  background-color: #e5f3e8;
  box-shadow: inset 0 -2px 0 #bfe0c7;
}
.report-table.is-drcr tr.row-heading td.col-debit,
.report-table.is-drcr tr.row-heading td.col-credit {
  background-color: #f6f8f4;
}
.report-table.is-drcr.table-hover > tbody > tr:hover > td.col-debit { background-color: #f9e9e9; }
.report-table.is-drcr.table-hover > tbody > tr:hover > td.col-credit { background-color: #e7f3ea; }
.report-table.is-drcr tr.row-subtotal td.col-debit,
.report-table.is-drcr tr.row-grand td.col-debit { background-color: #fbecec; }
.report-table.is-drcr tr.row-subtotal td.col-credit,
.report-table.is-drcr tr.row-grand td.col-credit { background-color: #e9f5ec; }
.report-table.is-drcr tr.row-heading td {
  color: #202426;
  border-top: 1px solid #e4e9de;
}
@media print {
  .report-table.is-drcr td.col-debit,
  .report-table.is-drcr td.col-credit,
  .report-table.is-drcr th.col-debit,
  .report-table.is-drcr th.col-credit {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---- Transactions ---- */
.txn-card .report-table thead th,
.coa-table thead th {
  background: #f7f9f5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.txn-table > tbody > tr > td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.txn-date {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.txn-date-day {
  font-weight: 600;
  color: #202426;
}
.txn-date-year {
  font-size: 0.75rem;
  color: #7a857c;
}
.txn-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.9rem;
}
.txn-icon.is-in { background: #e8f5ec; color: #2c6e3f; }
.txn-icon.is-out { background: #fcefef; color: #9a3434; }
.txn-icon.is-move { background: #eef1f4; color: #55606b; }
.txn-through {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3e4a40;
}
.txn-through .bi { color: #8a948c; }
.amount-in,
.amount-out {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
  font-weight: 600;
}
.amount-in { background: #eef8f1; color: #2c6e3f; }
.amount-out { color: #202426; }

/* ---- Chart of accounts ---- */
.coa-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.coa-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e4e9de;
  border-radius: 0.75rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.coa-tile:hover {
  border-color: #c5de9f;
  box-shadow: 0 4px 14px rgba(32, 36, 38, 0.06);
  color: inherit;
}
.coa-tile .coa-amount { font-size: 1.1rem; }
.coa-tile-sub { font-size: 0.72rem; color: #8a948c; }
.coa-group { overflow: hidden; scroll-margin-top: 5rem; }
.coa-group-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e4e9de;
  border-left: 4px solid var(--coa-accent, #c9d1c2);
  background: #fff;
}
.coa-group-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  background: var(--coa-soft, #f1f3ef);
  color: var(--coa-ink, #55606b);
  font-size: 1.05rem;
}
.tone-asset { --coa-accent: #8fb4e3; --coa-soft: #edf3fb; --coa-ink: #2f5d94; }
.tone-liability { --coa-accent: #ecc08a; --coa-soft: #fdf4e8; --coa-ink: #8a5a17; }
.tone-equity { --coa-accent: #b9a6e0; --coa-soft: #f3effb; --coa-ink: #5b4593; }
.tone-income { --coa-accent: #9fd0ac; --coa-soft: #ecf7ef; --coa-ink: #2c6e3f; }
.tone-expense { --coa-accent: #eab0b0; --coa-soft: #fcefef; --coa-ink: #9a3434; }
.coa-code {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: #f3f5f1;
  color: #4a554c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}
.coa-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid #e4e9de;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #5f6b62;
  vertical-align: middle;
}
.coa-tag.is-muted { background: #f1f3ef; }
.coa-table tr.is-hidden td { color: #8a948c; }
.coa-table tr.is-hidden a { color: #8a948c; }
.coa-amount { font-variant-numeric: tabular-nums; }
.coa-amount.is-zero { color: #a3aca5; }
.coa-amount.neg { color: #b3261e; }
.coa-action {
  padding: 0.2rem 0.45rem;
  color: #5f6b62;
  border: 1px solid transparent;
}
.coa-action:hover,
.coa-action:focus-visible {
  border-color: #e4e9de;
  background: #f6f8f4;
  color: #202426;
}
.kpi-card.kpi-debit { background: #fdf4f4; border-color: #f3dada; }
.kpi-card.kpi-debit .kpi-value { color: #9a3434; }
.kpi-card.kpi-credit { background: #f2f9f3; border-color: #d3eadb; }
.kpi-card.kpi-credit .kpi-value { color: #2c6e3f; }
@media (max-width: 575.98px) {
  .coa-tile { padding: 0.75rem; gap: 0.5rem; }
  .coa-tile .coa-group-icon { display: none; }
  .coa-tile .coa-amount { font-size: 1rem; }
}

/* ---- Payment page (Stripe Payment Element inside our form) ---- */
.pay-plan {
  border-color: #c5de9f;
  background: linear-gradient(135deg, #fbfdf7 0%, #f2f8e8 100%);
}
.pay-plan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem 1rem;
}
.pay-form {
  overflow: hidden;
}
.pay-element {
  min-height: 3rem;
}
.pay-trust {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pay-trust .bi {
  margin-right: 0.4rem;
  color: #6c8f33;
}
.pay-powered {
  padding: 0.65rem 1rem;
  border-top: 1px solid #e4e9de;
  background: #f7f9f5;
  text-align: center;
}

/* ---- Invoice page ---- */
.invoice-sheet { max-width: 880px; }
.invoice-logo { width: 180px; height: auto; }
.invoice-title {
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ---- Light / dark switch ---- */
.auth-main { position: relative; }
.auth-theme { position: absolute; top: 1rem; right: 1rem; }

/* ==== DARK-MANUAL: hand-written dark mode rules (the DARK-AUTO block below is generated from the light rules) ==== */
[data-bs-theme="dark"] {
  --bs-body-bg: #1a1e1a;
  --bs-body-bg-rgb: 26, 30, 26;
  --bs-body-color: #dfe3dc;
  --bs-body-color-rgb: 223, 227, 220;
  --bs-emphasis-color: #f3f5f1;
  --bs-secondary-bg: #262b25;
  --bs-tertiary-bg: #20251f;
  --bs-border-color: #333a32;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.1);
  --bs-link-color: #a9d16a;
  --bs-link-color-rgb: 169, 209, 106;
  --bs-link-hover-color: #c3e392;
  --bs-link-hover-color-rgb: 195, 227, 146;
}
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light {
  background-color: var(--bs-body-bg) !important;
}
[data-bs-theme="dark"] .text-bg-light {
  background-color: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .btn-light {
  --bs-btn-color: #dfe3dc;
  --bs-btn-bg: #262b25;
  --bs-btn-border-color: #333a32;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2f352e;
  --bs-btn-hover-border-color: #3d453c;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #343b33;
  --bs-btn-active-border-color: #3d453c;
  --bs-btn-disabled-color: #9aa39a;
  --bs-btn-disabled-bg: #262b25;
}
[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color: #c4cbc2;
  --bs-btn-border-color: #4a5349;
  --bs-btn-hover-bg: #2f352e;
  --bs-btn-hover-border-color: #5a6459;
  --bs-btn-hover-color: #fff;
}
[data-bs-theme="dark"] .card {
  --bs-card-bg: #1a1e1a;
  --bs-card-border-color: #2c322b;
}
[data-bs-theme="dark"] .modal { --bs-modal-bg: #1d221d; }
[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #1d221d; --bs-dropdown-link-hover-bg: #262b25; }
[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(255, 255, 255, 0.035); }
[data-bs-theme="dark"] .alert-secondary { --bs-alert-bg: #262b25; --bs-alert-color: #c4cbc2; --bs-alert-border-color: #333a32; }
[data-bs-theme="dark"] .invoice-logo,
[data-bs-theme="dark"] .auth-card .auth-logo { filter: brightness(1.15); }
html[data-bs-theme="dark"] body { background-color: #121512; }
html[data-bs-theme="dark"] .tone-asset { --coa-accent: #4f74a3; --coa-soft: #1b2635; --coa-ink: #9fc0ea; }
html[data-bs-theme="dark"] .tone-liability { --coa-accent: #a37a3f; --coa-soft: #33281a; --coa-ink: #e6bd84; }
html[data-bs-theme="dark"] .tone-equity { --coa-accent: #7b68a8; --coa-soft: #2a2438; --coa-ink: #c4b5ec; }
html[data-bs-theme="dark"] .tone-income { --coa-accent: #4f8a5e; --coa-soft: #1a2e20; --coa-ink: #9fd6ad; }
html[data-bs-theme="dark"] .tone-expense { --coa-accent: #a35656; --coa-soft: #331d1d; --coa-ink: #eba9a9; }
@media print {
  [data-bs-theme="dark"] body { background: #fff !important; color: #000 !important; }
}



/* ---- Sign-up progress window ---- */
.signup-progress {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 20, 16, 0.55);
  backdrop-filter: blur(2px);
}
.signup-progress-card {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--bs-body-bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.signup-progress .progress {
  height: 0.6rem;
}
.signup-progress .progress-bar {
  background-color: #8cbc43;
  transition: width 0.25s ease;
}
.signup-progress-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  color: var(--bs-secondary-color);
}
.signup-progress-steps li.is-current {
  color: var(--bs-body-color);
  font-weight: 600;
}
.signup-progress-steps li.is-done .bi {
  color: #8cbc43;
}



/* ---- Notifications drop-down (header bell) ---- */
.notify-menu {
  width: 360px;
  max-width: calc(100vw - 1.5rem);
  overflow: hidden;
  border-radius: 0.85rem;
  box-shadow: 0 12px 40px rgba(16, 24, 16, 0.14);
}
.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e4e9de;
}
.notify-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eef1ea;
  color: inherit;
  text-decoration: none;
}
.notify-item:hover,
.notify-item:focus-visible {
  background: #f6f8f4;
  color: inherit;
}
.notify-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}
.notify-icon.is-high { background: #fcefef; color: #b3261e; }
.notify-icon.is-warning { background: #fff4e0; color: #8a5300; }
.notify-icon.is-info { background: #edf3fb; color: #2f5d94; }
.notify-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notify-action { margin-top: 0.15rem; color: #5b7a2c; font-weight: 600; }
.notify-empty {
  padding: 1.5rem 1rem;
  text-align: center;
}
.notify-empty .bi { font-size: 1.6rem; color: #8cbc43; }
.notify-foot {
  display: block;
  padding: 0.65rem 1rem;
  background: #f7f9f5;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5b7a2c;
  text-decoration: none;
}
.notify-foot:hover { background: #eef5e4; color: #3d5a1c; }

/* ==== DARK-AUTO start (generated, do not edit by hand) ==== */
[data-bs-theme="dark"] .auth-points .bi {
  color: #a8ca74;
}
[data-bs-theme="dark"] .auth-card .form-floating > label {
  color: #a1a8ae;
}
[data-bs-theme="dark"] .form-section {
  color: #a1a8ae;
}
[data-bs-theme="dark"] .form-section::after {
  border-top: 1px solid #3c4135;
}
[data-bs-theme="dark"] .password-field .password-toggle {
  color: #a1a8ae;
}
[data-bs-theme="dark"] .password-field .password-toggle:hover,
[data-bs-theme="dark"] .password-field .password-toggle:focus-visible {
  color: #e3e6e7;
}
[data-bs-theme="dark"] .auth-steps span {
  border-top: 3px solid #3d4337;
  color: #a1a8ae;
}
[data-bs-theme="dark"] .auth-steps .active {
  color: #e3e6e7;
}
[data-bs-theme="dark"] .app-topbar {
  background: #1b1b1b;
  border-bottom: 1px solid #3c4135;
}
[data-bs-theme="dark"] .btn-icon {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .btn-icon:hover,
[data-bs-theme="dark"] .btn-icon:focus-visible {
  background: #242a1b;
  color: #e3e6e7;
}
[data-bs-theme="dark"] .topbar-search .form-control {
  background: #22281a;
}
[data-bs-theme="dark"] .topbar-search .form-control:focus {
  background: #1b1b1b;
  border-color: #484d3f;
}
[data-bs-theme="dark"] .topbar-badge {
  border: 2px solid #333333;
}
[data-bs-theme="dark"] .user-menu-toggle:hover,
[data-bs-theme="dark"] .user-menu-toggle:focus-visible,
[data-bs-theme="dark"] .user-menu-toggle.show {
  background: #242a1b;
}
[data-bs-theme="dark"] .dropdown-item .bi {
  color: #a7afa9;
}
[data-bs-theme="dark"] .avatar.avatar-photo {
  background: #262c1c;
  border: 1px solid #3c4135;
}
[data-bs-theme="dark"] .confirm-icon {
  background: #262c1c;
  color: #d4e7bf;
}
[data-bs-theme="dark"] .confirm-icon.is-danger {
  background: #281b19;
  color: #d59590;
}
[data-bs-theme="dark"] .addon-summary > div {
  border-bottom: 1px dashed #3c4135;
}
[data-bs-theme="dark"] .addon-summary dt {
  color: #afb8b1;
}
[data-bs-theme="dark"] .addon-summary .addon-summary-total dt,
[data-bs-theme="dark"] .addon-summary .addon-summary-total dd {
  color: #ebebeb;
}
[data-bs-theme="dark"] .addon-assurance .bi {
  color: #c6dda5;
}
[data-bs-theme="dark"] .addon-note {
  background: #212618;
  color: #c8d1c9;
}
[data-bs-theme="dark"] .addon-modal-foot {
  background: #1f2618;
  border-top: 1px solid #393e33;
}
[data-bs-theme="dark"] .report-card:hover {
  border-color: #434a3c;
}
[data-bs-theme="dark"] .report-card.is-addon {
  background: linear-gradient(180deg, #1b1b1b 60%, #212618 100%);
}
[data-bs-theme="dark"] .report-icon {
  background: #262c1c;
  color: #d4e7bf;
}
[data-bs-theme="dark"] .business-type {
  border: 1px solid #3c4135;
  background: #21241a;
  color: #afb8b1;
}
[data-bs-theme="dark"] .onboarding-step {
  border: 1px solid #393e33;
}
[data-bs-theme="dark"] .onboarding-step.is-next {
  background: #212618;
}
[data-bs-theme="dark"] .onboarding-step.is-done {
  color: #a7afa9;
}
[data-bs-theme="dark"] .onboarding-number {
  border: 2px solid #434a3c;
}
[data-bs-theme="dark"] .onboarding-step.is-next .onboarding-number {
  color: #d4e7bf;
}
[data-bs-theme="dark"] .guide-toc a {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .guide-toc a:hover {
  background: #252c1c;
  color: #ebebeb;
}
[data-bs-theme="dark"] .help-faq details {
  border-top: 1px solid #393e33;
}
[data-bs-theme="dark"] .help-faq details p {
  color: #c0c7c2;
}
[data-bs-theme="dark"] .avatar-editor .avatar-actions button,
[data-bs-theme="dark"] .avatar-editor .avatar-actions label {
  color: #c6dda5;
}
[data-bs-theme="dark"] .app-footer {
  border-top: 1px solid #3c4135;
  color: #a7afa9;
}
[data-bs-theme="dark"] .app-footer a:hover {
  color: #c6dda5;
}
[data-bs-theme="dark"] .profile-hero {
  background: linear-gradient(120deg, #1b1b1b 55%, #252c1c);
}
[data-bs-theme="dark"] .profile-nav a {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .profile-nav a:hover {
  background: #1b1b1b;
  color: #e3e6e7;
}
[data-bs-theme="dark"] .card {
  border-color: #3c4135;
}
[data-bs-theme="dark"] .kpi-card {
  background: #1b1b1b;
  border: 1px solid #3c4135;
}
[data-bs-theme="dark"] .kpi-label {
  color: #afb8b1;
}
[data-bs-theme="dark"] .kpi-icon {
  background: #252c1c;
  color: #c6dda5;
}
[data-bs-theme="dark"] .kpi-sub {
  color: #afb8b1;
}
[data-bs-theme="dark"] .health-ring {
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), #272e1e 0);
}
[data-bs-theme="dark"] .health-ring span {
  background: #1b1b1b;
}
[data-bs-theme="dark"] .severity.high {
  background: #2a1c1b;
  color: #dda8a6;
}
[data-bs-theme="dark"] .severity.warning {
  background: #2c261c;
  color: #e6d7bd;
}
[data-bs-theme="dark"] .severity.info {
  background: #1b202a;
  color: #a1b8dc;
}
[data-bs-theme="dark"] .delta {
  background: #252b1c;
  color: #c8d1c9;
}
[data-bs-theme="dark"] .delta.is-good {
  background: #1c2c21;
  color: #b5e3c8;
}
[data-bs-theme="dark"] .delta.is-bad {
  background: #2a1c1b;
  color: #d89c99;
}
[data-bs-theme="dark"] .segmented {
  background: #262e1d;
}
[data-bs-theme="dark"] .segmented .btn {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .segmented .btn:hover {
  color: #e3e6e7;
}
[data-bs-theme="dark"] .segmented .btn.active {
  background: #1b1b1b;
  color: #e3e6e7;
}
[data-bs-theme="dark"] .progress-thin {
  background: #252b1d;
}
[data-bs-theme="dark"] .metric-grid .col {
  border-bottom: 1px solid #393e33;
}
[data-bs-theme="dark"] .alert-item {
  border-bottom: 1px solid #393e33;
}
[data-bs-theme="dark"] .report-tile {
  border: 1px solid #3c4135;
  color: #e3e6e7;
}
[data-bs-theme="dark"] .report-tile:hover {
  color: #e3e6e7;
}
[data-bs-theme="dark"] .dropzone {
  border: 2px dashed #454b3d;
  background: #1f2517;
}
[data-bs-theme="dark"] .dropzone > .bi {
  color: #b7d48e;
}
[data-bs-theme="dark"] .dropzone:hover,
[data-bs-theme="dark"] .dropzone.is-dragging,
[data-bs-theme="dark"] .dropzone:focus-within {
  background: #242a1b;
}
[data-bs-theme="dark"] .upload-step-head {
  color: #e0e8e0;
}
[data-bs-theme="dark"] .category-badge {
  background: #262c1c;
  color: #d4e7bf;
}
[data-bs-theme="dark"] .category-badge.is-missing {
  background: #2a251b;
  color: #e3d0b4;
}
[data-bs-theme="dark"] .steps-list li {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .nav-pills-sm .nav-link {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .nav-pills-sm .nav-link.active {
  background: #1b1b1b;
  color: #e3e6e7;
  box-shadow: 0 0 0 1px #484d3f;
}
[data-bs-theme="dark"] .pagination {
  --bs-pagination-color: #c8d1c9;
  --bs-pagination-hover-color: #e3e6e7;
  --bs-pagination-hover-bg: #252c1c;
  --bs-pagination-focus-color: #e3e6e7;
  --bs-pagination-border-color: #3c4135;
}
[data-bs-theme="dark"] .report-table th {
  color: #afb8b1;
}
[data-bs-theme="dark"] .report-table .neg {
  color: #d4918d;
}
[data-bs-theme="dark"] .report-table tr.row-heading td {
  background: #1f2618;
}
[data-bs-theme="dark"] .report-table tr.row-section td {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .report-table tr.row-subtotal td {
  border-top: 1px solid #434a3c;
}
[data-bs-theme="dark"] .report-table a:hover {
  color: #c6dda5;
}
[data-bs-theme="dark"] .report-table.is-drcr td.col-debit,
[data-bs-theme="dark"] .report-table.is-drcr th.col-debit {
  background-color: #251717;
  color: #d58f8f;
}
[data-bs-theme="dark"] .report-table.is-drcr td.col-credit,
[data-bs-theme="dark"] .report-table.is-drcr th.col-credit {
  background-color: #19261b;
  color: #acdebb;
}
[data-bs-theme="dark"] .report-table.is-drcr thead th.col-debit {
  background-color: #291a1a;
  box-shadow: inset 0 -2px 0 #443838;
}
[data-bs-theme="dark"] .report-table.is-drcr thead th.col-credit {
  background-color: #1c2c20;
  box-shadow: inset 0 -2px 0 #3b483e;
}
[data-bs-theme="dark"] .report-table.is-drcr tr.row-heading td.col-debit,
[data-bs-theme="dark"] .report-table.is-drcr tr.row-heading td.col-credit {
  background-color: #1f2618;
}
[data-bs-theme="dark"] .report-table.is-drcr.table-hover > tbody > tr:hover > td.col-debit {
  background-color: #291a1a;
}
[data-bs-theme="dark"] .report-table.is-drcr.table-hover > tbody > tr:hover > td.col-credit {
  background-color: #1c2c20;
}
[data-bs-theme="dark"] .report-table.is-drcr tr.row-subtotal td.col-debit,
[data-bs-theme="dark"] .report-table.is-drcr tr.row-grand td.col-debit {
  background-color: #281919;
}
[data-bs-theme="dark"] .report-table.is-drcr tr.row-subtotal td.col-credit,
[data-bs-theme="dark"] .report-table.is-drcr tr.row-grand td.col-credit {
  background-color: #1b2a1f;
}
[data-bs-theme="dark"] .report-table.is-drcr tr.row-heading td {
  color: #e3e6e7;
  border-top: 1px solid #3c4135;
}
[data-bs-theme="dark"] .txn-card .report-table thead th,
[data-bs-theme="dark"] .coa-table thead th {
  background: #1f2618;
}
[data-bs-theme="dark"] .txn-date-day {
  color: #e3e6e7;
}
[data-bs-theme="dark"] .txn-date-year {
  color: #9ba49d;
}
[data-bs-theme="dark"] .txn-icon.is-in {
  background: #1b2b20;
  color: #acdebb;
}
[data-bs-theme="dark"] .txn-icon.is-out {
  background: #261919;
  color: #d58f8f;
}
[data-bs-theme="dark"] .txn-icon.is-move {
  background: #1b2229;
  color: #afb7bf;
}
[data-bs-theme="dark"] .txn-through {
  color: #c8d1c9;
}
[data-bs-theme="dark"] .amount-in {
  background: #1a281e;
  color: #acdebb;
}
[data-bs-theme="dark"] .amount-out {
  color: #e3e6e7;
}
[data-bs-theme="dark"] .coa-tile {
  border: 1px solid #3c4135;
  background: #1b1b1b;
}
[data-bs-theme="dark"] .coa-tile:hover {
  border-color: #484d3f;
}
[data-bs-theme="dark"] .coa-group-head {
  border-bottom: 1px solid #3c4135;
  border-left: 4px solid var(--coa-accent, #434a3c);
  background: #1b1b1b;
}
[data-bs-theme="dark"] .coa-group-icon {
  background: var(--coa-soft, #22271d);
  color: var(--coa-ink, #afb7bf);
}
[data-bs-theme="dark"] .coa-code {
  background: #21261b;
  color: #bfc7c1;
}
[data-bs-theme="dark"] .coa-tag {
  border: 1px solid #3c4135;
  color: #afb8b1;
}
[data-bs-theme="dark"] .coa-tag.is-muted {
  background: #22271d;
}
[data-bs-theme="dark"] .coa-amount.neg {
  color: #d4918d;
}
[data-bs-theme="dark"] .coa-action {
  color: #afb8b1;
}
[data-bs-theme="dark"] .coa-action:hover,
[data-bs-theme="dark"] .coa-action:focus-visible {
  border-color: #3c4135;
  background: #1f2618;
  color: #e3e6e7;
}
[data-bs-theme="dark"] .kpi-card.kpi-debit {
  background: #251717;
  border-color: #403535;
}
[data-bs-theme="dark"] .kpi-card.kpi-debit .kpi-value {
  color: #d58f8f;
}
[data-bs-theme="dark"] .kpi-card.kpi-credit {
  background: #19261b;
  border-color: #37433b;
}
[data-bs-theme="dark"] .kpi-card.kpi-credit .kpi-value {
  color: #acdebb;
}
[data-bs-theme="dark"] .pay-plan {
  border-color: #484d3f;
  background: linear-gradient(135deg, #1f2417 0%, #242a1b 100%);
}
[data-bs-theme="dark"] .pay-trust .bi {
  color: #bed796;
}
[data-bs-theme="dark"] .pay-powered {
  border-top: 1px solid #3c4135;
  background: #1f2618;
}
[data-bs-theme="dark"] .signup-progress-steps li.is-done .bi {
  color: #a8ca74;
}
[data-bs-theme="dark"] .notify-head {
  border-bottom: 1px solid #3c4135;
}
[data-bs-theme="dark"] .notify-item {
  border-bottom: 1px solid #393e33;
}
[data-bs-theme="dark"] .notify-item:hover,
[data-bs-theme="dark"] .notify-item:focus-visible {
  background: #1f2618;
}
[data-bs-theme="dark"] .notify-icon.is-high {
  background: #261919;
  color: #d4918d;
}
[data-bs-theme="dark"] .notify-icon.is-warning {
  background: #2a251b;
  color: #e3d0b4;
}
[data-bs-theme="dark"] .notify-icon.is-info {
  background: #191f27;
  color: #95b3d7;
}
[data-bs-theme="dark"] .notify-action {
  color: #c6dda5;
}
[data-bs-theme="dark"] .notify-empty .bi {
  color: #a8ca74;
}
[data-bs-theme="dark"] .notify-foot {
  background: #1f2618;
  color: #c6dda5;
}
[data-bs-theme="dark"] .notify-foot:hover {
  background: #252c1c;
  color: #d4e7bf;
}
/* ==== DARK-AUTO end ==== */
