:root {
  --bc-rose: #b76e79;
  --bc-rose-dark: #8f4f5c;
  --bc-rose-soft: #f7e7e5;
  --bc-cream: #fbf7f4;
  --bc-sand: #f2e9e2;
  --bc-ink: #2f2a2a;
  --bc-muted: #7a6f6f;
  --bc-line: #eadfd8;
  --bc-green: #2f7d5c;
  --bc-green-soft: #e4f3ec;
  --bc-amber: #b7791f;
  --bc-amber-soft: #fdf1dc;
  --bc-blue: #3b6ea5;
  --bc-blue-soft: #e7f0fa;
  --bc-surface: #fffdfb;
  --bc-surface-hover: #fffaf8;
  --bc-input-border: #e2d5cd;
  --bc-dashed-border: #d9c5bb;
  --bc-border-hover: #d6b4bd;
  --bc-rose-soft-strong: #efd3da;
  --bc-gray-soft: #eee8e3;
  --bc-progress-track: #eee4de;
  --bc-topbar-bg: rgba(251, 247, 244, 0.94);
  --bc-bottom-nav-bg: rgba(255, 253, 251, 0.97);
  --bc-hero-from: #fffaf7;
  --bc-hero-to: #f7e6e9;
  --bs-primary: #b76e79;
  --bs-primary-rgb: 183, 110, 121;
  --bs-body-bg: #fbf7f4;
  --bs-body-color: #2f2a2a;
  --bs-border-color: #eadfd8;
  --bs-border-radius: 1rem;
  --bs-border-radius-lg: 1.25rem;
  --bs-font-sans-serif: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(180, 83, 107, 0.08), transparent 28rem),
    var(--bc-cream);
  color: var(--bc-ink);
  font-family: var(--bs-font-sans-serif);
  padding-bottom: 84px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--bc-rose-dark);
  text-decoration: none;
}

a:hover {
  color: var(--bc-rose);
  text-decoration: underline;
}

h1, h2, h3, h4, h5 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

.text-muted {
  color: var(--bc-muted) !important;
}

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

@media (min-width: 992px) {
  .w-lg-auto {
    width: auto !important;
  }
}

.message-preview {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bc-sand);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-family: var(--bs-font-sans-serif);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--bc-ink);
}

.text-rose {
  color: var(--bc-rose) !important;
}

.text-green {
  color: var(--bc-green) !important;
}

.bg-cream {
  background: var(--bc-cream) !important;
}

.bg-sand {
  background: var(--bc-sand) !important;
}

.bg-rose-soft {
  background: var(--bc-rose-soft) !important;
}

.bg-green-soft {
  background: var(--bc-green-soft) !important;
}

.topbar {
  background: var(--bc-topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bc-line);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 4px 7px rgba(74, 52, 46, 0.16));
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.18rem;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bc-ink);
}

.brand-tagline {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--bc-rose);
  text-transform: uppercase;
}

.login-logo {
  width: min(360px, 84vw);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 16px 28px rgba(74, 52, 46, 0.14));
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-lux {
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 162, 126, 0.22), transparent 20rem),
    linear-gradient(135deg, #100d0e 0%, #24191d 70%, #3a2329 100%);
  color: #fffaf6;
  border: 1px solid #3f2b31;
  border-radius: 1.6rem;
  padding: 1.5rem;
}

.hero-lux .text-muted,
.hero-lux .help-text {
  color: rgba(255, 250, 246, 0.72) !important;
}

.hero-lux .step-pill {
  background: rgba(201, 162, 126, 0.16);
  color: #efd3bd;
}

.hero-lux h1,
.hero-lux h2,
.hero-lux h3 {
  color: #fffaf6;
}

.date-badge {
  width: 58px;
  height: 62px;
  border-radius: 14px;
  background: var(--bc-rose-soft);
  color: var(--bc-rose-dark);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.date-badge .day {
  font-size: 1.3rem;
  font-weight: 800;
}

.date-badge .month {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.18rem;
}

.invoice-card {
  border: 1px solid var(--bc-line);
  border-radius: 1.25rem;
  background: var(--bc-surface);
  padding: 1rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.invoice-card:hover {
  border-color: var(--bc-border-hover);
  box-shadow: 0 10px 28px rgba(74, 52, 46, 0.07);
}

.invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.65rem;
}

.invoice-meta .label {
  display: block;
  color: var(--bc-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invoice-meta .value {
  font-weight: 800;
  font-size: 1.02rem;
}

.seller-total {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--bc-ink);
}

.seller-profit {
  font-weight: 800;
  color: var(--bc-green);
}

.seller-list-item {
  border: 1px solid var(--bc-line);
  border-radius: 1rem;
  padding: 0.85rem;
  background: var(--bc-surface);
  margin-bottom: 0.65rem;
}

.seller-list-item:last-child {
  margin-bottom: 0;
}

.seller-installment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--bc-line);
}

.seller-installment:last-child {
  border-bottom: 0;
}

@media (max-width: 575.98px) {
  .invoice-card {
    padding: 0.85rem;
  }
  .hero-lux {
    padding: 1.15rem;
    border-radius: 1.25rem;
  }
  .seller-total {
    font-size: 1.3rem;
  }
}

.nav-link {
  color: var(--bc-muted);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 0.9rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bc-rose-dark);
  background: var(--bc-rose-soft);
  text-decoration: none;
}

.page-wrap {
  max-width: 1180px;
}

.hero {
  background: linear-gradient(135deg, var(--bc-hero-from) 0%, var(--bc-hero-to) 100%);
  border: 1px solid var(--bc-line);
  border-radius: 1.6rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 2rem;
  }
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.card {
  border: 1px solid var(--bc-line);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(74, 52, 46, 0.05);
}

.card-soft {
  background: var(--bc-surface);
}

.stat-card {
  height: 100%;
  padding: 1.15rem;
  border-radius: 1.25rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  box-shadow: 0 8px 24px rgba(74, 52, 46, 0.04);
}

.stat-label {
  color: var(--bc-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stat-value {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0;
}

.stat-hint {
  color: var(--bc-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.icon-bubble.rose {
  background: var(--bc-rose-soft);
  color: var(--bc-rose-dark);
}

.icon-bubble.green {
  background: var(--bc-green-soft);
  color: var(--bc-green);
}

.icon-bubble.amber {
  background: var(--bc-amber-soft);
  color: var(--bc-amber);
}

.icon-bubble.blue {
  background: var(--bc-blue-soft);
  color: var(--bc-blue);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--bc-rose);
  border-color: var(--bc-rose);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--bc-rose-dark);
  border-color: var(--bc-rose-dark);
}

.btn-outline-primary {
  color: var(--bc-rose-dark);
  border-color: var(--bc-rose);
}

.btn-outline-primary:hover {
  background: var(--bc-rose);
  border-color: var(--bc-rose);
}

.btn-soft {
  background: var(--bc-rose-soft);
  color: var(--bc-rose-dark);
  border: 1px solid transparent;
}

.btn-soft:hover {
  background: var(--bc-rose-soft-strong);
  color: var(--bc-rose-dark);
}

.btn-green {
  background: var(--bc-green);
  border-color: var(--bc-green);
  color: #fff;
}

.btn-green:hover {
  background: #266b4e;
  border-color: #266b4e;
  color: #fff;
}

.btn-quiet {
  background: transparent;
  border: 1px solid var(--bc-line);
  color: var(--bc-ink);
}

.btn-quiet:hover {
  background: var(--bc-sand);
  color: var(--bc-ink);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.badge-soft.rose { background: var(--bc-rose-soft); color: var(--bc-rose-dark); }
.badge-soft.green { background: var(--bc-green-soft); color: var(--bc-green); }
.badge-soft.amber { background: var(--bc-amber-soft); color: var(--bc-amber); }
.badge-soft.blue { background: var(--bc-blue-soft); color: var(--bc-blue); }
.badge-soft.gray { background: var(--bc-gray-soft); color: var(--bc-muted); }

.help-text {
  color: var(--bc-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-label {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: 0.9rem;
  border-color: var(--bc-input-border);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bc-rose);
  box-shadow: 0 0 0 0.2rem rgba(180, 83, 107, 0.15);
}

.form-control-lg {
  padding: 0.9rem 1rem;
}

.form-check-input:checked {
  background-color: var(--bc-rose);
  border-color: var(--bc-rose);
}

.alert {
  border-radius: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--bc-green-soft);
  color: #1f5e45;
  border-color: #c9e6d8;
}

.alert-info {
  background: var(--bc-blue-soft);
  color: #28527c;
  border-color: #cfe0f2;
}

.alert-warning {
  background: var(--bc-amber-soft);
  color: #7a4f10;
  border-color: #f0d9ae;
}

.alert-danger {
  background: #fbe9e9;
  color: #8a2f2f;
  border-color: #f0caca;
}

.upload-zone {
  border: 2px dashed var(--bc-dashed-border);
  border-radius: 1.25rem;
  background: var(--bc-surface);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--bc-rose);
  background: var(--bc-rose-soft);
}

.upload-zone .form-control {
  max-width: 420px;
  margin: 0 auto;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bc-rose-soft);
  color: var(--bc-rose-dark);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

.item-card {
  border: 1px solid var(--bc-line);
  border-radius: 1.25rem;
  background: var(--bc-surface);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.item-card:focus-within {
  border-color: var(--bc-border-hover);
  box-shadow: 0 0 0 0.2rem rgba(180, 83, 107, 0.08);
}

.item-card.is-personal {
  border-left: 5px solid var(--bc-blue);
}

.item-card.is-shared {
  border-left: 5px solid var(--bc-rose);
}

.item-card.is-deleted {
  opacity: 0.45;
}

.item-number {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bc-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.item-title {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.3;
  word-break: break-word;
}

.classification-choice .btn {
  border-radius: 0.9rem;
  padding: 0.7rem 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: normal;
  line-height: 1.2;
}

.classification-choice .btn-check:checked + .btn-outline-primary {
  background: var(--bc-rose);
  color: #fff;
  border-color: var(--bc-rose);
}

.classification-choice .btn-check:checked + .btn-outline-secondary {
  background: var(--bc-blue);
  color: #fff;
  border-color: var(--bc-blue);
}

.money-preview {
  background: var(--bc-sand);
  border-radius: 0.9rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
}

.money-preview strong {
  color: var(--bc-ink);
}

.summary-card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: 1.35rem;
  padding: 1.1rem;
  box-shadow: 0 12px 34px rgba(74, 52, 46, 0.07);
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--bc-line);
}

.summary-line:last-child {
  border-bottom: 0;
}

.summary-line .label {
  color: var(--bc-muted);
  font-size: 0.88rem;
}

.summary-line .value {
  font-weight: 800;
  white-space: nowrap;
}

.summary-total {
  background: var(--bc-rose-soft);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  margin-top: 0.75rem;
}

.summary-total .value {
  color: var(--bc-rose-dark);
  font-size: 1.45rem;
}

.sticky-summary {
  position: sticky;
  top: 88px;
}

@media (max-width: 991px) {
  .sticky-summary {
    position: static;
  }
}

.installment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bc-line);
}

.installment-row:last-child {
  border-bottom: 0;
}

.installment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bc-amber);
  flex: 0 0 auto;
}

.installment-dot.paid {
  background: var(--bc-green);
}

.installment-dot.overdue {
  background: #b23a3a;
}

.progress {
  height: 0.55rem;
  border-radius: 999px;
  background: var(--bc-progress-track);
}

.progress-bar {
  background: var(--bc-green);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--bc-surface);
  border: 1px dashed var(--bc-dashed-border);
  border-radius: 1.35rem;
}

.empty-state .display-icon {
  font-size: 2.6rem;
  color: var(--bc-rose);
}

.list-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--bc-line);
  border-radius: 1rem;
  background: var(--bc-surface);
  margin-bottom: 0.7rem;
}

.list-tile:hover {
  border-color: var(--bc-border-hover);
  background: var(--bc-surface-hover);
  text-decoration: none;
}

.avatar-initial {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--bc-rose-soft);
  color: var(--bc-rose-dark);
  flex: 0 0 auto;
}

.help-step {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--bc-line);
}

.help-step:last-child {
  border-bottom: 0;
}

.help-step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bc-rose);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: var(--bc-bottom-nav-bg);
  border-top: 1px solid var(--bc-line);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem 0.4rem;
  color: var(--bc-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.bottom-nav a i {
  font-size: 1.2rem;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--bc-rose-dark);
}

.bottom-nav .nav-send i {
  background: var(--bc-rose);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -14px;
  box-shadow: 0 6px 16px rgba(180, 83, 107, 0.28);
}

@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
}

.modal-content {
  border: 0;
  border-radius: 1.35rem;
}

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

.table {
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  padding: 0.8rem 0.65rem;
  border-bottom-color: var(--bc-line);
}

.details-box {
  border: 1px solid var(--bc-line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bc-surface);
}

.details-box summary {
  cursor: pointer;
  font-weight: 700;
}

/* Botão de tema claro/escuro */
.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.theme-toggle i {
  font-size: 1.05rem;
  line-height: 1;
}

.theme-toggle-floating {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1040;
  background: var(--bc-surface);
  box-shadow: 0 8px 22px rgba(74, 52, 46, 0.14);
}

/* Tema escuro (ativado por data-bs-theme="dark" no <html>) */
[data-bs-theme="dark"] {
  color-scheme: dark;
  --bc-rose: #b76e79;
  --bc-rose-dark: #eab0b9;
  --bc-rose-soft: #3a2328;
  --bc-cream: #14100f;
  --bc-sand: #241b1d;
  --bc-ink: #f4ece9;
  --bc-muted: #b7a7a3;
  --bc-line: #3b2e30;
  --bc-green: #7fc7a6;
  --bc-green-soft: #17271f;
  --bc-amber: #e5b776;
  --bc-amber-soft: #2d2315;
  --bc-blue: #94bce2;
  --bc-blue-soft: #1a2634;
  --bc-surface: #1e1718;
  --bc-surface-hover: #261d1f;
  --bc-input-border: #453639;
  --bc-dashed-border: #4a3a34;
  --bc-border-hover: #6d4b53;
  --bc-rose-soft-strong: #4a2b32;
  --bc-gray-soft: #2a2224;
  --bc-progress-track: #2c2325;
  --bc-topbar-bg: rgba(20, 16, 15, 0.94);
  --bc-bottom-nav-bg: rgba(24, 18, 19, 0.97);
  --bc-hero-from: #221a1c;
  --bc-hero-to: #33232a;
  --bs-primary: #b76e79;
  --bs-primary-rgb: 183, 110, 121;
  --bs-body-bg: #1e1718;
  --bs-body-color: #f4ece9;
  --bs-border-color: #3b2e30;
  --bs-secondary-color: #c4b5b1;
  --bs-secondary-bg: #241b1d;
  --bs-tertiary-bg: #2c2325;
  --bs-emphasis-color: #fff;
  --bs-heading-color: #f4ece9;
  --bs-link-color: #eab0b9;
  --bs-link-hover-color: #f3c2c9;
}

[data-bs-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(183, 110, 121, 0.1), transparent 28rem),
    var(--bc-cream);
}

[data-bs-theme="dark"] .brand-tagline,
[data-bs-theme="dark"] .text-rose {
  color: #e0a0aa !important;
}

[data-bs-theme="dark"] .text-green {
  color: var(--bc-green) !important;
}

[data-bs-theme="dark"] .text-danger {
  color: #f0a6a6 !important;
}

[data-bs-theme="dark"] .text-success {
  color: #9fdcbc !important;
}

[data-bs-theme="dark"] .text-warning {
  color: #ecc78e !important;
}

[data-bs-theme="dark"] .hero-lux {
  border-color: #463136;
}

[data-bs-theme="dark"] .brand-mark {
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.55));
}

[data-bs-theme="dark"] .login-logo {
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}

[data-bs-theme="dark"] .theme-toggle-floating {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus {
  background: #a95f6b;
  border-color: #a95f6b;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  border-color: var(--bc-input-border);
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: #8a7a76;
}

[data-bs-theme="dark"] .alert-success {
  background: #15251e;
  color: #a7ddc4;
  border-color: #26483a;
}

[data-bs-theme="dark"] .alert-info {
  background: #16232f;
  color: #b3d2ee;
  border-color: #274257;
}

[data-bs-theme="dark"] .alert-warning {
  background: #2b2214;
  color: #edcf9c;
  border-color: #4d3d22;
}

[data-bs-theme="dark"] .alert-danger {
  background: #2c1719;
  color: #f0b0b4;
  border-color: #53292d;
}

.print-only {
  display: none;
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .topbar,
  .bottom-nav,
  .btn,
  .no-print {
    display: none !important;
  }
  .card,
  .summary-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .print-only {
    display: block;
  }
  html[data-bs-theme="dark"] body {
    background: #fff !important;
    color: #000 !important;
  }
  html[data-bs-theme="dark"] .card,
  html[data-bs-theme="dark"] .summary-card,
  html[data-bs-theme="dark"] .details-box,
  html[data-bs-theme="dark"] .invoice-card {
    --bs-card-bg: #fff;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
  }
}

@media (max-width: 575.98px) {
  .stat-card {
    padding: 0.9rem;
  }
  .hero {
    border-radius: 1.25rem;
  }
  .page-wrap {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .item-card {
    padding: 0.85rem;
  }
}

/* Friendly focus ring for keyboard users */
:focus-visible {
  outline: 3px solid rgba(180, 83, 107, 0.35);
  outline-offset: 2px;
}
