:root {
  /* Paleta oficial (definida pelo Kaue) */
  --brand-orange: #E87F24;
  --brand-orange-hover: #cc6f1f;
  --brand-orange-active: #b0601b;
  --brand-orange-bg: #FEFDDF;
  --brand-yellow: #FFC81E;
  --brand-navy: #052859;
  --brand-cream: #fbfbf2;

  --brand-green: #198754;
  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-warning-text: #8a5a00;
  --status-critical: #d03b3b;
  --status-critical-text: #a52a2a;

  /* Bootstrap radius vars — visual mais arredondado/amigável, combinando com o logo */
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.25rem;
  --bs-border-radius-2xl: 1.75rem;
  --bs-border-radius-pill: 50rem;
}

body {
  background-color: var(--brand-cream);
  font-family: 'Nunito', system-ui, sans-serif;
}

/* Checkbox/switch marcado usa laranja da marca em vez do azul padrão do Bootstrap
   — aplicado global (não só um caso especial) porque esse azul não existe em
   nenhum outro lugar do app. */
.form-check-input:checked {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}
.form-check-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 0.25rem rgba(232, 127, 36, 0.25);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.fw-semibold {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}

.btn {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  border-radius: var(--bs-border-radius);
}

.card, .form-control, .form-select, .alert, .modal-content {
  border-radius: var(--bs-border-radius);
}

/* Retema o Bootstrap pra laranja sem recompilar o Sass */
.btn-primary {
  --bs-btn-bg: var(--brand-orange);
  --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-bg: var(--brand-orange-hover);
  --bs-btn-hover-border-color: var(--brand-orange-hover);
  --bs-btn-active-bg: var(--brand-orange-active);
  --bs-btn-active-border-color: var(--brand-orange-active);
  --bs-btn-disabled-bg: var(--brand-orange);
  --bs-btn-disabled-border-color: var(--brand-orange);
  --bs-btn-focus-shadow-rgb: 232, 127, 36;
}

/* "Entrada" (renda) usa o azul sóbrio da paleta em vez do verde padrão do Bootstrap —
   só nos botões de ação da home, não em todo .btn-success (alertas de sucesso etc). */
.action-buttons .btn-success {
  --bs-btn-bg: var(--brand-navy);
  --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-bg: #0d2140;
  --bs-btn-hover-border-color: #0d2140;
  --bs-btn-active-bg: #0a1a33;
  --bs-btn-active-border-color: #0a1a33;
}

.btn-outline-primary {
  --bs-btn-color: var(--brand-orange);
  --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-bg: var(--brand-orange);
  --bs-btn-hover-border-color: var(--brand-orange);
  --bs-btn-active-bg: var(--brand-orange);
  --bs-btn-active-border-color: var(--brand-orange);
  --bs-btn-focus-shadow-rgb: 232, 127, 36;
}

.text-primary { color: var(--brand-orange) !important; }
.bg-primary { background-color: var(--brand-orange) !important; }
.border-primary { border-color: var(--brand-orange) !important; }

/* nav-pills (abas tipo País/Evento do modal de linha do tempo) usa o azul padrão
   do Bootstrap por padrão — laranja da marca igual todo o resto do app. */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--brand-orange);
  color: #fff;
}
.nav-pills .nav-link {
  color: var(--brand-orange);
}

a { color: var(--brand-orange); }
a:hover { color: #c04909; }

.navbar-brand {
  color: var(--brand-orange) !important;
  font-weight: 700;
}
.nav-logo {
  height: 44px;
  width: auto;
}

/* Fundo do nav — quente igual o resto do app (bg-light do Bootstrap puxa pro azulado),
   só um pouquinho mais escuro que o --brand-cream da página pra dar separação sutil. */
.guardiola-navbar {
  background-color: #F5F1E6;
}
.guardiola-navbar .nav-link i {
  color: var(--brand-orange);
  margin-right: 0.3rem;
}
/* 7 links + usuário + sair — fonte menor pra caber numa linha só a partir do lg */
@media (min-width: 992px) {
  .guardiola-navbar .nav-link {
    font-size: 0.78rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    white-space: nowrap;
  }
  .guardiola-navbar .nav-link i {
    margin-right: 0.2rem;
  }
}

/* Hamburguer discreto: sem borda/caixa, só o ícone */
.navbar-toggler {
  border: none;
  padding: 0.25rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Home no desktop já tem o hero (logo + boas-vindas) e os shortcuts de navegação,
   não precisa repetir a navbar ali — só nessa página, só a partir do lg. */
@media (min-width: 992px) {
  .nav-home-desktop-hide {
    display: none;
  }
  /* Sem navbar ali em cima, o conteúdo ficava grudado no topo — repõe o respiro */
  .home-top-row {
    margin-top: 3rem;
  }
}

/* Logo centralizado no mobile (abaixo do breakpoint do navbar-expand-lg) */
@media (max-width: 991.98px) {
  .navbar > .container {
    position: relative;
  }
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

/* Home page */
.total-card {
  background: linear-gradient(135deg, var(--brand-orange-bg), #fff);
  border: 1px solid #ffe3c7;
  border-radius: 1rem;
  padding: 1.5rem;
}

.home-hero-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}
.home-hero-welcome {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
}

/* Transações (tela cheia) */
.min-width-0 { min-width: 0; }

.tx-filter-panel {
  width: 260px;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
}
@media (min-width: 992px) {
  .tx-filter-panel {
    position: sticky;
    top: 1rem;
  }
}
.tx-filter-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.tx-row {
  cursor: pointer;
}

/* Últimas transações (home) */
.tx-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin: 0 0 0.75rem;
}
.tx-section-title.income i { color: var(--brand-navy); }
.tx-section-title.expense i { color: var(--brand-orange); }
.tx-section-title.transfer i { color: #898781; }

.tx-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.category-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 1rem;
  white-space: nowrap;
}
.tx-value-usd {
  font-weight: 700;
}
.tx-value-original {
  font-size: 0.72rem;
  color: #adb5bd;
}

/* Número grande do total — trocado pro League Spartan (mais sóbrio/reto que o Baloo 2).
   !important pra vencer o .fw-bold (700 !important) do Bootstrap que já vem na tag. */
#total-value, .usd-figure {
  font-family: 'League Spartan', 'Nunito', system-ui, sans-serif;
  font-weight: 800 !important;
}

.action-buttons .btn {
  min-height: 88px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  flex: 1 1 0; /* largura igual pro Entrada/Saída, independente do tamanho do texto */
  min-width: 0; /* sem isso o min-content do texto ("Entrada" > "Saída") vence o flex-basis:0 */
}

/* No desktop analisamos mais do que lançamos — os botões de ação importam menos
   ali (o oposto do mobile, onde são a ação principal), então ficam discretos. */
@media (min-width: 992px) {
  .action-buttons {
    justify-content: center;
  }
  .action-buttons .btn {
    flex: 0 0 auto;
    min-height: auto;
    flex-direction: row !important;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    gap: 0.4rem;
  }
  .action-buttons .btn i {
    font-size: 1rem !important;
  }
}

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* No desktop tem espaço de sobra pra 4 por linha — com 7 atalhos, isso rende
   2 linhas (4 + 3) em vez de 3 linhas com a última quase vazia. */
@media (min-width: 992px) {
  .shortcut-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shortcut-card {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #eee;
  color: #333;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.shortcut-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: var(--brand-orange);
}
.shortcut-card i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand-orange);
}

.wallet-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.wallet-carousel::-webkit-scrollbar { height: 6px; }
.wallet-carousel::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.wallet-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 140px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
}
.wallet-card:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.wallet-card .wallet-name { font-size: 0.8rem; color: #888; }
.wallet-card .wallet-balance { font-weight: 600; }

/* Placeholders (Dashboard / Planejamento Anual) */
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.placeholder-card {
  border: 1px dashed #ddd;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
  color: #666;
}
.placeholder-card i {
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
  display: block;
}

/* Gráficos do Dashboard (Chart.js) — altura fixa via CSS + maintainAspectRatio:false
   no JS, senão a altura encolhe junto com a largura em tela estreita e tudo fica
   espremido/ilegível no celular. */
.chart-wrap {
  position: relative;
  height: 260px;
  width: 100%;
}
@media (min-width: 768px) {
  .chart-wrap { height: 320px; }
}
.chart-wrap.chart-wrap-tall { height: 320px; }
@media (min-width: 768px) {
  .chart-wrap.chart-wrap-tall { height: 400px; }
}

/* Seletor de cor por categoria (Configurações > Categorias) */
.category-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.category-color-swatch.active {
  border-color: #333;
  box-shadow: 0 0 0 2px #fff inset;
}
.category-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

/* Configurações > Categorias (drag-and-drop + dropdown de cor) */
.category-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.category-row.sortable-ghost {
  opacity: 0.4;
}
.drag-handle {
  cursor: grab;
  color: #ccc;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.drag-handle:active {
  cursor: grabbing;
}
.category-row-name {
  flex: 1;
  min-width: 0;
}
.category-row-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}
.category-color-trigger {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.category-color-trigger .category-color-dot {
  width: 14px;
  height: 14px;
  margin-right: 0;
}
.category-color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  width: 132px;
}
.category-color-swatch-grid .category-color-swatch {
  width: 24px;
  height: 24px;
}

/* Carteiras (grid de cards) */
.wallet-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 1rem;
}
.wallet-type-badge.cash { background: rgba(25, 135, 84, 0.12); color: var(--brand-green); }
.wallet-type-badge.bank_account { background: var(--brand-green); color: #fff; }
.wallet-type-badge.investment { background: var(--brand-navy); color: #fff; }

.wallet-grid-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.9rem;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
  cursor: pointer;
}
.wallet-grid-card:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07); }
.wallet-grid-card.wallet-inactive { opacity: 0.5; }
.wallet-grid-card .wallet-name { font-weight: 600; }

.wallet-grid-card .wallet-balance-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.wallet-grid-card .wallet-balance-primary { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.wallet-grid-card .wallet-balance-usd { font-size: 0.78rem; color: #6c757d; margin-top: 0.2rem; }

.wallet-grid-card .wallet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.wallet-grid-card .wallet-actions .btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #eee;
  color: #adb5bd;
}
.wallet-grid-card .wallet-actions .btn:hover { color: var(--brand-orange); border-color: var(--brand-orange); }

.wallet-type-section { margin-bottom: 2rem; }
.wallet-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 2px solid var(--brand-orange);
  padding-bottom: 0.5rem;
  margin: 0 0 1rem;
}

.quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.quota-card {
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 1.1rem 1.15rem 1rem;
  background: #fff;
}
.quota-card.state-warning { background: rgba(250, 178, 25, 0.14); }
.quota-card.state-critical {
  background: rgba(208, 59, 59, 0.09);
  border-color: rgba(208, 59, 59, 0.35);
}
.progress-bar { background-color: var(--brand-orange) !important; }

/* Planejamento Anual */
.quota-section { margin-bottom: 2rem; }
.quota-section-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.quota-section-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.section-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.section-dot.income { background: var(--brand-green); }
.section-dot.expense { background: var(--brand-orange); }

.quota-kind {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
}
.quota-kind.expense { background: var(--brand-orange-bg); color: var(--brand-orange); }
.quota-kind.income { background: rgba(25, 135, 84, 0.1); color: var(--brand-green); }

.quota-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.quota-tag {
  font-size: 0.72rem;
  color: #666;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 0.12rem 0.55rem;
}

.quota-meter { position: relative; margin: 1.4rem 0 0.35rem; }
.quota-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #ece9e4;
}
.quota-fill {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--status-good);
}
.quota-fill.warning { background: var(--status-warning); }
.quota-fill.critical { background: var(--status-critical); }
.quota-fill.growth { background: var(--brand-green); }

.quota-tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 18px;
  background: #949494;
  opacity: 0.55;
}
.quota-tick-label {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  font-size: 0.66rem;
  color: #949494;
  white-space: nowrap;
  line-height: 1.25;
  text-align: center;
}
.quota-tick-label b { color: #6c757d; display: block; }

.quota-numbers {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 2.4rem;
}
.quota-numbers .quota-real { font-size: 1.35rem; font-weight: 700; }
.quota-numbers .quota-real span { font-size: 0.8rem; font-weight: 500; color: #6c757d; }
.quota-numbers .quota-pct { font-size: 0.82rem; font-weight: 600; color: #6c757d; }

.quota-status-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.65rem;
}
.quota-status-note.warning { color: var(--status-warning-text); }
.quota-status-note.critical { color: var(--status-critical-text); }
.quota-status-note.good { color: var(--status-good); }
.quota-status-note.growth { color: var(--brand-green); }

/* Overview: cruzamento de cenários */
.scenario-overview {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.9rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}
.scenario-overview-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.95rem; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.scenario-col { border: 1px solid #eee; border-radius: 0.7rem; padding: 0.8rem 0.9rem; }
.scenario-col.danger {
  background: rgba(208, 59, 59, 0.09);
  border-color: rgba(208, 59, 59, 0.35);
}
.scenario-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #949494;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.scenario-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6c757d;
  padding: 0.1rem 0;
}
.scenario-pct { margin-top: 0.55rem; font-weight: 700; font-size: 0.88rem; }
.scenario-pct.critical { color: var(--status-critical-text); }
.scenario-pct.good { color: var(--status-good); }
.scenario-sobra { font-size: 0.78rem; color: #6c757d; }
.scenario-sobra.critical { color: var(--status-critical-text); font-weight: 700; }
.scenario-sobra.good { color: var(--status-good); }

.scenario-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #eee;
  font-size: 0.82rem;
  color: var(--status-critical-text);
  font-weight: 600;
  display: flex;
  gap: 0.4rem;
}
.scenario-real { margin-top: 0.75rem; font-size: 0.8rem; color: #6c757d; }
.scenario-real b { color: #212529; }

.year-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.year-nav { display: flex; align-items: center; gap: 0.9rem; }
.year-nav a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.year-nav .year { font-size: 1.15rem; font-weight: 700; }

@media (max-width: 640px) {
  .scenario-grid { grid-template-columns: 1fr; }
}

/* Dropdown "Minha conta" (navbar, desktop) e página cheia equivalente (mobile) */
.user-dropdown-card {
  width: 260px;
  border: none;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 10px 30px rgba(5, 40, 89, 0.12);
  padding: 1rem 1.1rem;
}
.account-menu-household {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #949494;
  font-weight: 700;
}
.account-menu-household i {
  color: var(--brand-orange);
  margin-right: 0.2rem;
}
.account-menu-name {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.85rem;
}
.account-menu-form .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.2rem;
}
.account-menu-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: #495057;
  text-decoration: none;
}
.account-menu-link:hover {
  color: var(--brand-orange);
}
.account-menu-link i {
  color: var(--brand-orange);
}

.account-page-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--bs-border-radius-xl);
  box-shadow: 0 6px 20px rgba(5, 40, 89, 0.08);
  padding: 1.5rem;
}
.change-password-icon {
  display: block;
  font-size: 1.8rem;
  color: var(--brand-orange);
  margin-bottom: 0.4rem;
}

/* Login */
.login-page-wrap {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--bs-border-radius-2xl);
  box-shadow: 0 10px 30px rgba(5, 40, 89, 0.08);
  padding: 2.25rem 2rem;
  text-align: center;
}
.login-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}
.login-title {
  font-size: 1.3rem;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}
.login-subtitle {
  font-size: 0.85rem;
  color: #8a8a8a;
  margin-bottom: 1.75rem;
}
.login-card .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6c757d;
  text-align: left;
  width: 100%;
}
.login-card .input-group-text {
  background: #fff;
  border-right: none;
  color: var(--brand-orange);
}
.login-card .form-control {
  border-left: none;
}
.login-card .input-group:focus-within .input-group-text,
.login-card .input-group:focus-within .form-control {
  border-color: var(--brand-orange);
}
.login-card .form-control:focus {
  box-shadow: none;
}

/* Form de transação — cara de notinha de bar */
.receipt-wrap {
  display: flex;
  justify-content: center;
}
.receipt-card {
  width: 100%;
  max-width: 400px;
  background: #fffdf7;
  border-top: 3px dashed #ddd;
  border-bottom: 3px dashed #ddd;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  padding: 1.75rem 1.5rem 1.25rem;
  font-family: 'Courier New', Courier, monospace;
}

.receipt-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #ccc;
}
.receipt-header i { font-size: 1.5rem; color: var(--brand-orange); display: block; margin-bottom: 0.25rem; }
.receipt-store { font-weight: 800; letter-spacing: 0.14em; font-size: 1.1rem; text-transform: uppercase; }
.receipt-subtitle { font-size: 0.76rem; color: #999; text-transform: uppercase; letter-spacing: 0.06em; }
.receipt-cashier { text-align: center; font-size: 0.76rem; color: #999; margin-top: -0.75rem; margin-bottom: 1rem; }

.receipt-type-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.receipt-type-btn {
  flex: 1;
  border: 1px dashed #ccc;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.receipt-type-btn.active[data-value="income"] {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  border-style: solid;
  color: #fff;
}
.receipt-type-btn.active[data-value="expense"] {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  border-style: solid;
  color: #fff;
}
.receipt-type-btn.active[data-value="transfer"] {
  background: #898781;
  border-color: #898781;
  border-style: solid;
  color: #fff;
}

.receipt-line {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #ddd;
}
.receipt-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.25rem;
}
.receipt-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  color: #333;
}
.receipt-input:focus {
  outline: none;
  background: rgba(232, 127, 36, 0.06);
}

.receipt-amount-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.receipt-amount-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: 'League Spartan', monospace;
  font-weight: 800;
  font-size: 1.8rem;
  padding: 0;
  color: #222;
}
.receipt-amount-input:focus { outline: none; }
.receipt-currency-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  color: #888;
}

.receipt-barcode {
  height: 32px;
  margin: 1.25rem 0;
  background: repeating-linear-gradient(
    90deg,
    #333 0, #333 2px,
    transparent 2px, transparent 5px,
    #333 5px, #333 6px,
    transparent 6px, transparent 10px,
    #333 10px, #333 13px,
    transparent 13px, transparent 16px
  );
  opacity: 0.65;
}
