:root {
  color-scheme: light;
  --blue: #1268ff;
  --cyan: #18d8ff;
  --teal: #12bfc9;
  --night: #07111f;
  --night-soft: #0d1c31;
  --ink: #132033;
  --muted: #66758a;
  --line: #d7e6f0;
  --soft: #edf7fb;
  --white: #ffffff;
  --page-bg: #edf7fb;
  --surface: #ffffff;
  --surface-soft: #f6fbfe;
  --surface-gradient-start: #edf7fb;
  --surface-gradient-end: #ffffff;
  --text: #132033;
  --text-muted: #66758a;
  --navbar-bg: #07111f;
  --navbar-line: rgba(24,216,255,.28);
  --control-bg: #ffffff;
  --control-text: #132033;
  --control-placeholder: #7a8aa0;
  --shadow-card: rgba(18,104,255,.08);
  --shadow-media: rgba(18,104,255,.12);
  --chart-text: #66758a;
  --chart-grid: #d7e6f0;
  --chart-empty: #edf7fb;
  --chart-center: #ffffff;
  --chart-strong: #132033;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf6ff;
  --muted: #a9bad0;
  --line: #263f56;
  --soft: #081421;
  --page-bg: #081421;
  --surface: #101b2d;
  --surface-soft: #0c1828;
  --surface-gradient-start: #081421;
  --surface-gradient-end: #101b2d;
  --text: #edf6ff;
  --text-muted: #a9bad0;
  --navbar-bg: #050b14;
  --navbar-line: rgba(24,216,255,.2);
  --control-bg: #0b1626;
  --control-text: #edf6ff;
  --control-placeholder: #7f91a8;
  --shadow-card: rgba(0,0,0,.3);
  --shadow-media: rgba(0,0,0,.34);
  --chart-text: #a9bad0;
  --chart-grid: #263f56;
  --chart-empty: #0b1626;
  --chart-center: #101b2d;
  --chart-strong: #edf6ff;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(24,216,255,.16), transparent 34rem),
    var(--page-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

a { text-decoration: none; }
img, canvas, svg { max-width: 100%; }
.text-muted { color: var(--text-muted) !important; }
.text-dark { color: var(--text) !important; }
.text-primary { color: var(--blue) !important; }
.text-success { color: var(--teal) !important; }
.bg-white { background: var(--surface) !important; }
.border-top,
.border-bottom {
  border-color: var(--line) !important;
}
.bg-light.text-primary {
  color: var(--night) !important;
  background: rgba(24,216,255,.92) !important;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.theme-toggle {
  white-space: nowrap;
}

.btn-primary,
.btn-success {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  box-shadow: 0 10px 20px rgba(18,104,255,.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  border-color: var(--cyan);
  background: linear-gradient(135deg, #0d57d7, var(--teal));
  color: var(--white);
}

.btn-outline-primary,
.btn-outline-success {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 .2rem rgba(24,216,255,.22);
}

.form-control,
.form-select {
  background-color: var(--control-bg);
  border-color: var(--line);
  color: var(--control-text);
}

.form-control::placeholder {
  color: var(--control-placeholder);
}

.form-control:disabled,
.form-select:disabled {
  background-color: var(--surface-soft);
  color: var(--text-muted);
}

.form-control-color {
  min-height: 38px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.brand-logo {
  width: 74px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(24,216,255,.45);
  box-shadow: 0 8px 18px rgba(18,104,255,.18);
  flex: 0 0 auto;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(24,216,255,.12);
}

.sidebar-brand .brand-logo {
  width: 92px;
  height: 56px;
  background: rgba(255,255,255,.04);
}

.sidebar-brand-text {
  min-width: 0;
}

.sidebar-brand-text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.navbar.bg-white {
  background: var(--navbar-bg) !important;
  border-color: var(--navbar-line) !important;
}

.navbar .container {
  gap: 12px;
}

.navbar-brand {
  min-width: 0;
}

.navbar-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--white);
}

.navbar .btn-outline-primary {
  border-color: var(--cyan);
  color: var(--cyan);
}

.navbar .btn-outline-primary:hover,
.navbar .btn-outline-primary:focus {
  background: var(--cyan);
  color: var(--night);
}

.landing-hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(7,17,31,.96), rgba(18,104,255,.82), rgba(24,216,255,.62)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.hero-panel {
  max-width: 760px;
  padding: 72px 0;
}

.hero-panel h1 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-band {
  padding: 72px 0;
  background: var(--surface);
}

.story-image,
.feature-photo {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px var(--shadow-media);
}

.story-image {
  aspect-ratio: 16 / 10;
}

.feature-photo {
  aspect-ratio: 4 / 3;
}

.dream-band {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--surface-gradient-start), var(--surface-gradient-end));
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.goal-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.goal-examples span {
  border: 1px solid rgba(18,104,255,.2);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(18,104,255,.06);
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  background:
    linear-gradient(180deg, var(--night), var(--night-soft));
  border-right: 1px solid rgba(24,216,255,.24);
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  color: var(--white);
}

.nav-link {
  color: #c9d8e8;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 3px 0;
}
.nav-link.active,
.nav-link:hover {
  color: var(--night);
  background: linear-gradient(135deg, var(--cyan), #78ecff);
}

.sidebar .logout-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 1px solid rgba(255,77,109,.45);
  background: rgba(255,77,109,.1);
  color: #ff8da1 !important;
  font-weight: 800;
}

.sidebar .logout-link:hover,
.sidebar .logout-link:focus {
  color: var(--white) !important;
  border-color: #ff4d6d;
  background: #ef233c;
  box-shadow: 0 10px 22px rgba(239,35,60,.22);
}

.content {
  padding: 28px;
  min-width: 0;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  overflow-wrap: anywhere;
}

.card-lite {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px var(--shadow-card);
  min-width: 0;
  color: var(--text);
}

.metric {
  min-height: 136px;
  padding: 22px;
}

.metric .label {
  color: var(--muted);
  font-size: .92rem;
}

.metric .value {
  font-size: 1.85rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mini-report {
  min-height: 154px;
}

.expense-highlight {
  padding: 14px;
  border: 1px solid rgba(255,77,109,.22);
  border-radius: 8px;
  background: rgba(255,77,109,.06);
}

.expense-highlight strong {
  display: block;
}

.report-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.report-list-item:last-child {
  border-bottom: 0;
}

.goal-suggestion {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.goal-suggestion:last-child {
  margin-bottom: 0;
}

.goal-suggestion.is-good {
  border-color: rgba(18,191,201,.28);
  background: rgba(18,191,201,.08);
}

.goal-suggestion.is-warning {
  border-color: rgba(245,158,11,.32);
  background: rgba(245,158,11,.1);
}

.debt-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255,77,109,.22);
  border-radius: 8px;
  background: rgba(255,77,109,.07);
}

.debt-plan strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ff4d6d;
}

.solution-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.solution-card strong {
  font-size: .98rem;
}

.solution-card span {
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.45;
}

.solution-danger {
  border-color: rgba(255,77,109,.32);
  background: rgba(255,77,109,.08);
}

.solution-warning {
  border-color: rgba(245,158,11,.36);
  background: rgba(245,158,11,.1);
}

.solution-success {
  border-color: rgba(18,191,201,.32);
  background: rgba(18,191,201,.09);
}

.solution-primary {
  border-color: rgba(18,104,255,.26);
  background: rgba(18,104,255,.08);
}

.solution-steps {
  display: grid;
  gap: 10px;
}

.solution-summary {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.solution-summary li {
  margin-bottom: 4px;
}

.solution-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.solution-step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--night);
  background: var(--cyan);
  font-size: .82rem;
  font-weight: 800;
}

.solution-step p {
  margin: 0;
  color: var(--text-muted);
}

.badge-plan {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(24,216,255,.16);
  color: var(--cyan);
  border: 1px solid rgba(24,216,255,.32);
}

.status-button,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 32px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.status-success {
  background: #16a34a !important;
  color: #ffffff !important;
}

.status-danger {
  background: #ef233c !important;
  color: #ffffff !important;
}

.status-warning {
  background: #facc15 !important;
  color: #1f2937 !important;
}

.status-secondary {
  background: #64748b !important;
  color: #ffffff !important;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-hover-bg: rgba(24,216,255,.08);
  color: var(--text);
  width: 100%;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.table-responsive .table {
  min-width: 0;
}

.table th,
.table td {
  padding: .72rem .58rem;
}

.table th {
  font-size: .82rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.table td {
  overflow-wrap: anywhere;
}

.table .action-column {
  width: 132px;
  min-width: 132px;
}

.finance-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 132px;
  min-width: 0;
  white-space: normal;
  flex-wrap: wrap;
}

.finance-actions.gap-2 {
  gap: 6px !important;
}

.finance-actions.flex-nowrap {
  flex-wrap: wrap !important;
}

.finance-actions form {
  display: inline-flex;
  margin: 0;
}

.finance-actions .btn {
  width: auto;
  min-width: 58px;
  padding-right: .55rem;
  padding-left: .55rem;
  margin-bottom: 0;
}

.provisions-table .provision-action-column {
  width: 188px;
  min-width: 188px;
}

.provision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 176px;
  margin-left: auto;
}

.provision-actions form {
  display: block;
  margin: 0;
  min-width: 0;
}

.provision-actions .btn {
  width: 100%;
  min-height: 34px;
  padding-right: .55rem;
  padding-left: .55rem;
  line-height: 1.1;
  white-space: nowrap;
}

.provision-action-wide {
  grid-column: 1 / -1;
}

.expense-toolbar form {
  margin: 0;
}

.modal-content {
  max-height: calc(100vh - 32px);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-height: 0;
}

.modal-dialog-scrollable .modal-content {
  overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
  min-height: 0;
  overflow-y: auto;
}

.modal-header,
.modal-footer {
  flex: 0 0 auto;
  border-color: var(--line);
}

.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--surface);
}

#expenseModal .modal-dialog {
  margin-top: .5rem;
  margin-bottom: .5rem;
}

#expenseModal .modal-body {
  max-height: calc(100vh - 170px);
}

.goal-actions {
  min-width: 0;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 15%, rgba(24,216,255,.28), transparent 26rem),
    linear-gradient(135deg, var(--night), #103a70 58%, var(--page-bg));
}

.auth-card {
  width: min(100%, 480px);
  padding: 28px;
}

.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.password-recovery-card {
  width: min(100%, 540px);
  padding: 32px;
}

.password-recovery-card .brand-logo {
  width: 92px;
  height: 54px;
}

.password-recovery-card .alert {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: .98rem;
}

.auth-title-block {
  margin-bottom: 22px;
}

.auth-title-block h1 {
  color: var(--text);
  font-weight: 800;
}

.auth-form {
  display: grid;
  gap: 2px;
}

.auth-form .form-control-lg {
  min-height: 48px;
  font-size: 1rem;
}

.auth-form .btn-lg {
  min-height: 48px;
  font-size: 1rem;
}

.auth-return {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-return a {
  font-weight: 600;
}

.progress {
  height: 10px;
  background-color: var(--surface-soft);
}

canvas.finance-chart {
  width: 100%;
  max-height: 320px;
}

canvas.pie-chart {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.percentage-list {
  display: grid;
  gap: 8px;
}

.percentage-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.percentage-list > div:last-child {
  border-bottom: 0;
}

.percentage-list span {
  min-width: 0;
}

.percentage-list strong {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .sidebar-brand {
    grid-template-columns: 76px minmax(0, 1fr);
    margin-bottom: 14px;
    padding: 8px;
  }
  .sidebar-brand .brand-logo {
    width: 76px;
    height: 46px;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .content { padding: 18px; }
  .metric {
    min-height: auto;
  }

  .expense-toolbar .row {
    align-items: stretch !important;
  }

  .expense-toolbar [class*="col-"] {
    width: 100%;
  }

  .modal-dialog {
    margin-right: .75rem;
    margin-left: .75rem;
  }
}

@media (max-width: 700px) {
  .table-responsive {
    overflow: visible;
  }

  .table-responsive .table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-responsive thead {
    display: none;
  }

  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .table-responsive tbody tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .table-responsive tbody tr:last-child {
    margin-bottom: 0;
  }

  .table-responsive td {
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0 !important;
    border: 0 !important;
    text-align: right !important;
  }

  .table-responsive td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    max-width: 42%;
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
  }

  .table-responsive td:not([data-label])::before {
    content: none;
  }

  .table-responsive td[colspan] {
    display: block;
    text-align: left !important;
  }

  .table-responsive td > * {
    min-width: 0;
  }

  .table-responsive td.action-column,
  .table-responsive td.provision-action-column {
    display: block;
    text-align: left !important;
  }

  .table-responsive td.action-column::before,
  .table-responsive td.provision-action-column::before {
    display: block;
    max-width: none;
    margin-bottom: 8px;
  }

  .finance-actions,
  .finance-actions.goal-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .finance-actions form {
    display: block;
    min-width: 0;
  }

  .finance-actions .btn,
  .finance-actions form .btn {
    width: 100%;
    min-width: 0;
    min-height: 34px;
  }

  .report-list-item strong,
  .percentage-list strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .provisions-table .provision-action-column {
    width: 100%;
    min-width: 0;
  }

  .provision-actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: .95rem;
  }

  .navbar .container {
    align-items: flex-start;
  }

  .navbar-brand {
    width: 100%;
  }

  .navbar .d-flex.gap-2 {
    width: 100%;
    flex-wrap: wrap;
  }

  .navbar .d-flex.gap-2 .btn {
    flex: 1 1 140px;
  }

  .theme-toggle {
    min-width: 0;
    width: 100%;
  }

  .navbar .theme-toggle {
    flex-basis: 100%;
  }

  .brand-logo {
    width: 58px;
    height: 36px;
  }

  .sidebar-brand {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .sidebar-brand .brand-logo {
    width: 70px;
    height: 42px;
  }

  .sidebar-brand-text strong {
    font-size: .95rem;
  }

  .landing-hero {
    min-height: auto;
  }

  .hero-panel {
    padding: 44px 0;
  }

  .hero-panel h1 {
    font-size: 2.35rem;
  }

  .hero-panel .lead {
    font-size: 1.25rem !important;
  }

  .section-band {
    padding: 44px 0;
  }

  .dream-band {
    padding: 44px 0;
  }

  .story-image,
  .feature-photo {
    aspect-ratio: 16 / 11;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    padding: 9px 10px;
    font-size: .92rem;
  }

  .content {
    padding: 12px;
  }

  .content h1,
  .content .h3 {
    font-size: 1.35rem;
  }

  .card-lite {
    box-shadow: 0 10px 24px rgba(18,104,255,.07);
  }

  .card-lite.p-3 {
    padding: .85rem !important;
  }

  .card-lite.p-4 {
    padding: 1rem !important;
  }

  .metric {
    padding: 16px;
  }

  .metric .value {
    font-size: 1.45rem;
  }

  .mini-report {
    min-height: auto;
  }

  .report-list-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .debt-plan {
    align-items: flex-start;
    flex-direction: column;
  }

  .solution-card {
    min-height: auto;
  }

  .display-6 {
    font-size: 1.75rem;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 42px;
  }

  .btn-sm {
    min-height: 34px;
  }

  .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
  }

  .modal-content {
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }

  .modal-body {
    max-height: none !important;
  }

  .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-footer > * {
    width: 100%;
    margin: 0 !important;
  }

  .auth-wrap {
    padding: 16px;
    align-items: start;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-card-top > a,
  .auth-card-top .theme-toggle {
    width: 100%;
  }

  .auth-card-top > a {
    min-width: 0;
  }

  .password-recovery-card {
    padding: 20px;
  }

  .password-recovery-card .brand-logo {
    width: 76px;
    height: 46px;
  }

  .table .action-column {
    width: 100%;
    min-width: 0;
  }

  .finance-actions {
    max-width: none;
    min-width: 0;
  }

  .finance-actions .btn {
    width: 100%;
    min-width: 0;
    padding-right: .45rem;
    padding-left: .45rem;
    margin-bottom: 0;
  }

  canvas.finance-chart {
    max-height: 260px;
  }

  canvas.pie-chart {
    max-width: 260px;
  }

  .percentage-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .percentage-list strong {
    text-align: left;
    white-space: normal;
  }
}
