:root {
  color-scheme: dark;
  --bg-0: #0b0f14;
  --bg-1: #101720;
  --surface-1: #141d28;
  --surface-2: #1b2531;
  --surface-3: #222e3b;
  --border: #2a3645;
  --text: #e9eef5;
  --muted: #9aa7b5;
  --subtle: rgba(255, 255, 255, 0.06);
  --subtle-2: rgba(255, 255, 255, 0.1);
  --field-bg: rgba(5, 8, 12, 0.7);
  --topbar-bg: rgba(15, 20, 28, 0.8);
  --sidebar-bg: linear-gradient(180deg, #111821, #0c121a);
  --body-glow: radial-gradient(circle at top, rgba(36, 54, 70, 0.35), transparent 55%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  --dot-pattern: rgba(255, 255, 255, 0.06);
  --tooltip-bg: rgba(12, 18, 26, 0.98);
  --panel-strong: rgba(12, 18, 28, 0.92);
  --accent: #67e08b;
  --accent-2: #2fd06f;
  --accent-3: #1ea45a;
  --info: #69c3ff;
  --warning: #f2c166;
  --danger: #ff6b6b;
  --shadow-soft: 0 18px 40px rgba(4, 8, 16, 0.45);
  --shadow-card: 0 10px 22px rgba(2, 6, 12, 0.4);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --font: "Sora", "Segoe UI", system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-0: #f5f7fb;
  --bg-1: #e9eef5;
  --surface-1: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #e9eef4;
  --border: #dce3ec;
  --text: #16202b;
  --muted: #5f6f82;
  --subtle: rgba(20, 32, 43, 0.08);
  --subtle-2: rgba(20, 32, 43, 0.14);
  --field-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.86);
  --sidebar-bg: linear-gradient(180deg, #ffffff, #edf3f8);
  --body-glow: radial-gradient(circle at top, rgba(103, 224, 139, 0.14), transparent 48%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  --dot-pattern: rgba(20, 32, 43, 0.07);
  --tooltip-bg: rgba(255, 255, 255, 0.98);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --accent: #158a4b;
  --accent-2: #24b25f;
  --accent-3: #0f703c;
  --info: #1478b8;
  --warning: #9b650f;
  --danger: #c83d3d;
  --shadow-soft: 0 18px 40px rgba(35, 52, 72, 0.13);
  --shadow-card: 0 10px 22px rgba(35, 52, 72, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--body-glow);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot-pattern) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.15;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  max-width: 100%;
}

.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--subtle);
  padding: 0 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 224, 139, 0.45) transparent;
  transition: width 0.2s ease, padding 0.2s ease;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(103, 224, 139, 0.35);
  border-radius: 999px;
}

.sidebar-head {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  width: 100%;
  padding: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.sidebar-brand img {
  width: 184px;
  height: 184px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(103, 224, 139, 0.35));
  margin: 0;
  padding: 0;
  transition: width 0.2s ease, height 0.2s ease;
}

.sidebar-brand img.vendlygo-logo {
  width: 164px;
  height: auto;
  max-height: 112px;
  filter: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  min-height: 92px;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
}

.sidebar-toggle {
  width: 40px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--subtle-2);
  background: var(--surface-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle:hover {
  background: rgba(103, 224, 139, 0.1);
  border-color: rgba(103, 224, 139, 0.3);
  color: var(--text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  padding-bottom: 14px;
}

.nav-section {
  margin: 14px 8px 4px;
  color: rgba(154, 167, 181, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-item i {
  width: 20px;
  font-size: 1.05rem;
  color: var(--accent);
  text-align: center;
  flex: 0 0 20px;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: rgba(103, 224, 139, 0.12);
  color: var(--text);
  border: 1px solid rgba(103, 224, 139, 0.25);
  box-shadow: inset 3px 0 0 rgba(103, 224, 139, 0.85);
}

.nav-item.active i {
  color: var(--accent);
}

body.sidebar-collapsed .sidebar {
  width: 82px;
  padding: 10px 12px 12px;
}

body.sidebar-collapsed .sidebar-head {
  gap: 10px;
}

body.sidebar-collapsed .sidebar-brand img {
  width: 56px;
  height: 56px;
}

body.sidebar-collapsed .sidebar-toggle i {
  transform: rotate(180deg);
}

body.sidebar-collapsed .nav-section {
  height: 1px;
  margin: 12px 10px 6px;
  overflow: hidden;
  color: transparent;
  background: var(--subtle);
}

body.sidebar-collapsed .nav-item {
  justify-content: center;
  gap: 0;
  padding: 10px;
  position: relative;
}

body.sidebar-collapsed .nav-item i {
  width: 24px;
  font-size: 1.12rem;
}

body.sidebar-collapsed .nav-item {
  font-size: 0;
}

body.sidebar-collapsed .nav-item:hover::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--tooltip-bg);
  border: 1px solid var(--subtle-2);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: var(--shadow-card);
  z-index: 20;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--subtle);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
}

.topbar-title {
  font-weight: 600;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--subtle-2);
  background: var(--surface-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(103, 224, 139, 0.12);
  border-color: rgba(103, 224, 139, 0.35);
  color: var(--accent);
  transform: translateY(-1px);
}

.content {
  flex: 1;
  padding: 28px 32px 40px;
  min-width: 0;
}

.content.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 24px;
}

body.login-page .content.auth-layout {
  min-height: 100vh;
  padding: 24px;
}

body.login-page .content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

.page-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
}

.page-subtitle {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

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

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-soft {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid var(--subtle);
}

.alert-card {
  background: linear-gradient(135deg, rgba(242, 193, 102, 0.2), rgba(255, 107, 107, 0.12));
  border: 1px solid rgba(242, 193, 102, 0.45);
  box-shadow: var(--shadow-card);
}

.alert-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.alert-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--subtle);
}

.alert-badge {
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.16);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.35);
  font-size: 0.85rem;
}

.divider {
  height: 1px;
  background: var(--subtle);
  margin: 18px 0;
}

.stock-low td {
  background: rgba(255, 120, 80, 0.08);
}

.section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--subtle);
}

.sale-page {
  display: grid;
  gap: 18px;
}

.sale-header-actions {
  justify-content: flex-end;
}

.sale-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.sale-side {
  display: grid;
  gap: 18px;
}

.sale-panel {
  display: grid;
  gap: 16px;
}

.sale-main-panel {
  min-height: 540px;
}

.sale-card-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sale-section {
  display: grid;
  gap: 8px;
}

.sale-search-field {
  position: relative;
}

.sale-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sale-form-grid .label,
.sale-payment-extra .label {
  display: grid;
  gap: 7px;
}

.sale-items-table {
  min-height: 260px;
}

.sale-total-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--subtle);
}

.sale-total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.sale-total-row.is-main {
  color: var(--text);
  font-size: 1.02rem;
}

.sale-total-row.is-main strong {
  color: var(--accent);
}

.sale-benefit-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--subtle);
}

.sale-credit-row {
  margin-top: 0;
}

.sale-credit-row .input {
  max-width: 160px;
}

.sale-payment-extra {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--subtle);
}

.sale-card-simulation {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid rgba(103, 224, 139, 0.22);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.sale-installment-info {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(103, 224, 139, 0.1);
  border: 1px solid rgba(103, 224, 139, 0.28);
}

.sale-installment-custom {
  display: grid;
  gap: 8px;
}

.sale-installment-actions {
  margin-top: 0;
}

.sale-help-success {
  color: var(--accent);
}

.sale-final-actions {
  justify-content: flex-end;
}

.sale-detail-page {
  display: grid;
  gap: 18px;
}

.sale-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.sale-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sale-detail-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sale-detail-list > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--subtle);
}

.sale-detail-list .wide {
  grid-column: 1 / -1;
}

.sale-detail-list span,
.sale-status-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.sale-detail-list strong,
.sale-status-card strong {
  color: var(--text);
  font-weight: 700;
}

.sale-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.sale-status-card {
  display: grid;
  gap: 4px;
}

.sale-status-card.wide {
  grid-column: span 2;
}

.total-box {
  text-align: right;
  font-weight: 700;
  color: var(--accent);
}

.sale-summary {
  position: sticky;
  bottom: 18px;
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--subtle-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.sale-summary-valor {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.sale-summary-muted {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .sale-grid,
  .sale-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sale-form-grid,
  .sale-detail-list,
  .sale-detail-list.compact {
    grid-template-columns: 1fr;
  }

  .sale-status-card.wide {
    grid-column: auto;
  }

  .sale-summary {
    bottom: 10px;
  }

  .sale-final-actions .btn {
    width: 100%;
  }
}

.parcelas-opcoes {
  margin-top: 10px;
  display: none;
}

.data-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  color: var(--text);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--subtle);
  text-align: left;
}

.table th {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-3);
}

.table tr:hover td {
  background: rgba(103, 224, 139, 0.06);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions .btn,
.table-actions .btn-sm {
  white-space: nowrap;
}

.consignado-list-table th:last-child,
.consignado-list-table td:last-child {
  width: 260px;
}

.consignado-list-table .table-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: end;
  gap: 8px;
}

.consignado-list-table .table-actions .btn {
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.card .table-wrap {
  padding: 0;
  margin: 0;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--subtle-2);
  background: var(--field-bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 224, 139, 0.15);
  outline: none;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.btn:focus-visible,
.nav-item:focus-visible,
.btn-ghost:focus-visible,
.btn-outline:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.form-row > * {
  flex: 1 1 220px;
  min-width: 0;
}

.settings-page {
  gap: 24px;
}

.settings-form {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.settings-section {
  scroll-margin-top: 24px;
}

.settings-section .form-row {
  row-gap: 10px;
}

.settings-section .badge {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-header .form-row,
.card-header .form-row,
td.form-row {
  align-items: center;
}

.page-header .form-row > *,
.card-header .form-row > *,
td.form-row > * {
  flex: 0 0 auto;
}

.page-header .btn,
.card-header .btn {
  white-space: nowrap;
}

.card > form.form-row:first-child,
.card > form.form-grid:first-child {
  padding: 14px;
  border: 1px solid var(--subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.card > form.form-row:first-child + .table-wrap,
.card > form.form-grid:first-child + .table-wrap {
  margin-top: 16px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--subtle-2);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: 0 0 auto;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-track {
  background: rgba(103, 224, 139, 0.35);
  border-color: rgba(103, 224, 139, 0.6);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toggle-label {
  font-size: 0.95rem;
}

.page input,
.page select,
.page textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--subtle-2);
  background: var(--field-bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page input:focus,
.page select:focus,
.page textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 224, 139, 0.15);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.label {
  display: block;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0c1610;
  box-shadow: 0 8px 18px rgba(47, 208, 111, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--subtle-2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--subtle-2);
  color: var(--muted);
}

.btn-danger {
  background: linear-gradient(135deg, #ff7b7b, #d94a4a);
  color: #1a0d0d;
}

.btn-success {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0c1610;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
  min-height: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(103, 224, 139, 0.15);
  color: var(--accent);
  border: 1px solid rgba(103, 224, 139, 0.4);
}

.badge-warning {
  background: rgba(242, 193, 102, 0.16);
  color: var(--warning);
  border: 1px solid rgba(242, 193, 102, 0.35);
}

.badge-danger {
  background: rgba(255, 107, 107, 0.16);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.badge-info {
  background: rgba(105, 195, 255, 0.16);
  color: var(--info);
  border: 1px solid rgba(105, 195, 255, 0.35);
}

.tag-entrada { color: var(--accent); font-weight: 600; }
.tag-saida { color: var(--danger); font-weight: 600; }
.valor-entrada { color: var(--accent); font-weight: 700; }
.valor-saida { color: var(--danger); font-weight: 700; }
.saldo-destaque {
  background: rgba(105, 195, 255, 0.12);
  border: 1px solid rgba(105, 195, 255, 0.35);
  color: var(--info);
  padding: 6px 10px;
  border-radius: 10px;
  display: inline-block;
}
.card-soft.card-entrada {
  background: rgba(103, 224, 139, 0.08);
  border-color: rgba(103, 224, 139, 0.25);
}
.card-soft.card-saida {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.25);
}
.card-soft.card-saldo {
  background: rgba(105, 195, 255, 0.08);
  border-color: rgba(105, 195, 255, 0.25);
}

.notice {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.text-center { text-align: center; }
.text-end { text-align: right; }
.text-muted { color: var(--muted); }
.fw-bold { font-weight: 700; }
.small { font-size: 0.85rem; }

.footer {
  padding: 18px 32px 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

.messages-container {
  position: fixed;
  top: 90px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-strong);
  border: 1px solid var(--subtle-2);
  box-shadow: var(--shadow-card);
}

.alert-success { border-left: 4px solid var(--accent); }
.alert-warning { border-left: 4px solid var(--warning); }
.alert-danger { border-left: 4px solid var(--danger); }
.alert-info { border-left: 4px solid var(--info); }

.alert.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-host {
  position: fixed;
  top: 90px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}

.toast {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: var(--panel-strong);
  border: 1px solid var(--subtle-2);
  box-shadow: var(--shadow-card);
}

.toast-info { border-left: 4px solid var(--info); }
.toast-success { border-left: 4px solid var(--accent); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-danger { border-left: 4px solid var(--danger); }

.quick-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-card {
  background: linear-gradient(150deg, rgba(103, 224, 139, 0.15), var(--surface-1));
  border: 1px solid rgba(103, 224, 139, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card i {
  font-size: 1.9rem;
  color: var(--accent);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.home-dashboard {
  max-width: 1420px;
  gap: 22px;
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.home-date-picker,
.home-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--muted);
  box-shadow: var(--shadow-card);
  font-weight: 600;
}

.home-date-picker {
  flex: 0 1 360px;
}

.home-date-picker .input {
  min-width: 160px;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-weight: 700;
}

.home-date-picker .input:focus {
  box-shadow: none;
}

.home-date-picker .btn {
  min-height: 30px;
}

.home-visibility-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-visibility-toggle:hover {
  border-color: rgba(103, 224, 139, 0.42);
  background: rgba(103, 224, 139, 0.12);
}

.home-visibility-toggle.is-hidden {
  color: var(--muted);
}

.home-values-hidden-bootstrap .home-sensitive {
  color: transparent !important;
}

.home-kpi-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-kpi-card {
  min-height: 136px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-kpi-card span,
.home-chart-total span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.home-kpi-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.15;
}

.home-kpi-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.home-kpi-card > i {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  font-size: 1.55rem;
}

.home-kpi-card.is-green > i {
  background: rgba(103, 224, 139, 0.16);
  color: var(--accent);
}

.home-kpi-card.is-blue > i {
  background: rgba(105, 195, 255, 0.16);
  color: var(--info);
}

.home-kpi-card.is-orange > i {
  background: rgba(242, 193, 102, 0.18);
  color: var(--warning);
}

.home-actions-card {
  padding: 20px;
}

.home-action-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-action-card {
  min-height: 76px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 224, 139, 0.38);
  box-shadow: var(--shadow-card);
}

.home-action-card i {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(103, 224, 139, 0.13);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  font-size: 1.25rem;
}

.home-action-card.primary-action {
  background: linear-gradient(135deg, rgba(103, 224, 139, 0.12), var(--surface-2));
}

.home-action-card strong,
.home-action-card span {
  display: block;
}

.home-action-card strong {
  color: var(--text);
  font-size: 0.95rem;
}

.home-action-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
}

.home-chart-total {
  margin-bottom: 10px;
}

.home-chart-total strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 1.4rem;
}

.home-values-hidden #homeSalesChart {
  opacity: 0.72;
}

.compact-quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.compact-quick-grid .quick-card {
  min-height: 116px;
  padding: 16px;
  border-radius: var(--radius-md);
}

.compact-quick-grid .quick-card i {
  font-size: 1.45rem;
}

.compact-quick-grid .quick-card h3 {
  margin: 2px 0 0;
  font-size: 0.98rem;
}

.compact-quick-grid .quick-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.login-card {
  width: min(420px, 100%);
  background: var(--panel-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--subtle-2);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.login-card img {
  width: 150px;
  margin-bottom: 20px;
}

.login-card img.vendlygo-login-logo {
  width: 172px;
  height: auto;
}

.login-wordmark {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.login-card h2 {
  margin: 0 0 6px;
}

.login-card .sub {
  color: var(--muted);
  margin-bottom: 20px;
}

.messages-login {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sugestoes {
  background: var(--surface-1);
  border: 1px solid var(--subtle-2);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow: auto;
  position: absolute;
  z-index: 10;
  display: none;
  box-shadow: var(--shadow-card);
}

.sugestoes div {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--subtle);
}

.sugestoes div:hover {
  background: rgba(103, 224, 139, 0.08);
}

.sugestoes div.active {
  background: rgba(103, 224, 139, 0.16);
}

.alert-sucesso {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #67e08b;
  color: #0c1610;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(103, 224, 139, 0.35);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlide 0.4s forwards;
}

@keyframes fadeSlide {
  to { opacity: 1; transform: translateY(0); }
}

.folha {
  margin: 24px auto;
  width: 210px;
  height: 297px;
  border: 2px solid var(--subtle-2);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(13, 1fr);
  gap: 1px;
  background: var(--surface-2);
}

.celula {
  background: var(--surface-1);
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

.celula:hover {
  background: rgba(103, 224, 139, 0.12);
}

.celula:active {
  transform: scale(0.98);
}

.celula.marcada {
  background: rgba(103, 224, 139, 0.6);
  box-shadow: 0 0 6px rgba(103, 224, 139, 0.4);
}

.contador {
  color: var(--accent);
  font-weight: 700;
}

.financeiro-page .table-wrap {
  overflow-x: auto;
}

.financeiro-shell {
  gap: 18px;
}

.financeiro-compra-page {
  max-width: 1480px;
}

.financeiro-panel {
  padding: 18px 18px 20px;
  margin: 0 8px;
}

.financeiro-actions {
  gap: 8px;
  justify-content: flex-end;
}

.financeiro-search-bar {
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.financeiro-search-bar .input {
  flex: 1 1 280px;
}

.financeiro-filtros {
  margin: 0 0 18px;
  align-items: end;
}

.financeiro-filtros-toggle {
  margin-bottom: 18px;
}

.financeiro-filtros-toggle summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.financeiro-filtros-toggle summary::-webkit-details-marker {
  display: none;
}

.financeiro-filtros-toggle[open] .financeiro-filtros {
  margin-top: 14px;
}

.financeiro-filtros-acoes {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.financeiro-summary-grid-top {
  margin-bottom: 18px;
}

.financeiro-page .financeiro-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.financeiro-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.financeiro-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--subtle-2);
  box-shadow: inset 0 1px 0 var(--subtle);
}

.financeiro-summary-card-wide {
  grid-column: span 2;
}

.financeiro-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.financeiro-summary-value {
  margin-top: 6px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}

.financeiro-summary-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.financeiro-pagination {
  margin-top: 14px;
  justify-content: space-between;
  align-items: center;
}

.financeiro-table th {
  white-space: nowrap;
}

.financeiro-page .table td .stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.financeiro-parcelas-list {
  display: grid;
  gap: 14px;
}

.financeiro-parcela-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(420px, 1.35fr) minmax(260px, 0.85fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--subtle-2);
  box-shadow: inset 0 1px 0 var(--subtle);
}

.financeiro-parcela-card.is-overdue {
  border-left: 4px solid var(--danger);
}

.financeiro-parcela-card.is-partial {
  border-left: 4px solid var(--info);
}

.financeiro-parcela-card.is-paid {
  border-left: 4px solid var(--accent);
}

.financeiro-parcela-card.is-open {
  border-left: 4px solid var(--warning);
}

.financeiro-parcela-main,
.financeiro-parcela-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.financeiro-parcela-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.financeiro-parcela-head h5 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.15rem;
}

.financeiro-parcela-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.financeiro-parcela-facts > div {
  min-height: 68px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--subtle);
}

.financeiro-parcela-facts span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.financeiro-parcela-facts strong {
  color: var(--text);
  font-size: 0.98rem;
}

.financeiro-paybox {
  display: grid;
  gap: 10px;
  min-width: 280px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--subtle);
}

.financeiro-pay-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.financeiro-pay-summary > div {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--subtle-2);
}

.financeiro-pay-summary span,
.financeiro-pay-fields span,
.financeiro-field-label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.financeiro-pay-summary strong {
  color: var(--text);
  font-size: 0.98rem;
}

.financeiro-pay-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 0.9fr) minmax(150px, 1.1fr);
}

.financeiro-field-label {
  display: block;
}

.financeiro-card-config {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(174, 240, 195, 0.16);
}

.financeiro-card-preview {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18, 25, 23, 0.95), rgba(23, 37, 31, 0.92));
  border: 1px solid rgba(174, 240, 195, 0.2);
  color: #e0e0e0;
}

.financeiro-retroativo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.financeiro-bank-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(105, 195, 255, 0.08);
  border: 1px solid rgba(105, 195, 255, 0.22);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.financeiro-bank-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.financeiro-bank-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--subtle-2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.financeiro-bank-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.financeiro-bank-toggle-copy {
  min-width: 0;
}

.financeiro-bank-toggle-copy strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
}

.financeiro-bank-toggle-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.financeiro-bank-toggle:has(input:checked) {
  background: rgba(103, 224, 139, 0.1);
  border-color: rgba(103, 224, 139, 0.42);
  box-shadow: 0 0 0 1px rgba(103, 224, 139, 0.12);
}

.financeiro-bank-toggle input:checked + .financeiro-bank-toggle-track {
  background: rgba(103, 224, 139, 0.42);
  border-color: rgba(103, 224, 139, 0.68);
}

.financeiro-bank-toggle input:checked + .financeiro-bank-toggle-track::after {
  transform: translateX(20px);
}

.financeiro-bank-toggle input:checked ~ .financeiro-bank-toggle-copy strong {
  color: var(--accent);
}

.financeiro-bank-toggle input:focus-visible + .financeiro-bank-toggle-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.financeiro-ajuste-box {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(242, 193, 102, 0.08);
  border: 1px solid rgba(242, 193, 102, 0.22);
}

.financeiro-ajuste-box strong {
  display: block;
  color: var(--warning);
  font-size: 0.9rem;
}

.financeiro-ajuste-box span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.financeiro-ajuste-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
}

.financeiro-ajuste-controls .btn {
  min-height: 40px;
  white-space: nowrap;
}

.financeiro-parcela-actions {
  display: grid;
  gap: 8px;
}

.financeiro-parcela-actions .btn {
  width: 100%;
  min-height: 38px;
}

.financeiro-page .parcela-historico {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--subtle-2);
  border-radius: var(--radius-md);
  padding: 12px;
}

.financeiro-page .parcela-historico ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}

.financeiro-page .parcela-historico li {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--subtle);
  line-height: 1.35;
}

.financeiro-page .parcela-historico li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.financeiro-page .parcela-historico .btn {
  width: max-content;
  margin-top: 3px;
}

.historico-topline,
.historico-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.historico-topline {
  justify-content: space-between;
}

.historico-topline strong {
  color: var(--text);
}

.historico-topline span,
.historico-meta small,
.historico-obs {
  color: var(--muted);
  font-size: 0.78rem;
}

.historico-meta small {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--subtle);
}

.historico-obs {
  line-height: 1.35;
}

.produtos-page .produtos-filtros {
  padding: 18px 18px 20px;
  margin: 6px 8px 20px;
  align-items: flex-end;
}

.produtos-page .produtos-tabela {
  padding: 16px 18px 20px;
  margin: 0 8px 8px;
}

.produtos-page .produtos-card {
  padding: 24px 24px 22px;
}

.clientes-page .table .btn-sm {
  padding: 8px 10px;
  min-height: 36px;
}

.clientes-page .form-row > .input,
.clientes-page .form-row > .btn {
  min-height: 40px;
}

.clientes-page .clientes-filtros {
  margin: 0 8px 12px;
}

.table .btn-sm:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.caixa-filtros .caixa-filtrar {
  align-self: flex-end;
}

.caixa-filtros .caixa-filtrar .btn {
  width: 100%;
  min-height: 40px;
}

@media (max-width: 980px) {
  .sidebar {
    display: none;
  }

  .content {
    padding: 24px 18px 32px;
  }

  .financeiro-parcela-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    gap: 16px;
  }

  .page-header {
    align-items: stretch;
  }

  .page-header > div,
  .page-header .form-row {
    width: 100%;
  }

  .page-header .form-row .btn,
  .page-header .form-row a,
  .page-header .form-row button {
    flex: 1 1 160px;
  }

  .card {
    padding: 16px;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .table.responsive-table {
    display: block;
    background: transparent;
    border-radius: 0;
  }

  .table.responsive-table thead {
    display: none;
  }

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

  .table.responsive-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--subtle-2);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    overflow: hidden;
  }

  .table.responsive-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 44px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--subtle);
    text-align: right;
  }

  .table.responsive-table td:last-child {
    border-bottom: 0;
  }

  .table.responsive-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }

  .table.responsive-table td[data-label=""] {
    display: block;
    text-align: left;
  }

  .table.responsive-table td[data-label=""]::before {
    display: none;
  }

  .table.responsive-table td.form-row {
    justify-content: flex-end;
  }

  .table.responsive-table td.form-row::before {
    margin-right: auto;
  }

  .table.responsive-table td.form-row > * {
    flex: 0 0 auto;
  }

  .table.responsive-table td .table-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .table.responsive-table.consignado-list-table th:last-child,
  .table.responsive-table.consignado-list-table td:last-child {
    width: 100%;
  }

  .table.responsive-table.consignado-list-table .table-actions {
    display: flex;
    justify-content: flex-end;
  }

  .table.responsive-table td .btn,
  .table.responsive-table td .btn-sm {
    white-space: nowrap;
  }

  .financeiro-summary-card-wide {
    grid-column: span 1;
  }

  .financeiro-actions {
    width: 100%;
    justify-content: stretch;
  }

  .financeiro-actions .btn,
  .financeiro-search-bar .btn,
  .financeiro-filtros-acoes .btn {
    width: 100%;
  }

  .financeiro-filtros-acoes {
    flex-direction: column;
    align-items: stretch;
  }

  .financeiro-page .table thead {
    display: none;
  }

  .financeiro-page .table,
  .financeiro-page .table tbody,
  .financeiro-page .table tr,
  .financeiro-page .table td {
    display: block;
    width: 100%;
  }

  .financeiro-page .table tr {
    border: 1px solid var(--subtle-2);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    padding: 6px 0;
  }

  .financeiro-page .table td {
    border-bottom: 1px solid var(--subtle);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
  }

  .financeiro-page .table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .financeiro-page .table td.pagamento-cell {
    display: block;
    width: 100%;
    gap: 10px;
  }

  .financeiro-page .table td.pagamento-cell .input,
  .financeiro-page .table td.pagamento-cell .select {
    width: 100%;
  }

  .financeiro-page .table td.pagamento-cell .stack {
    width: 100%;
  }

  .financeiro-paybox {
    min-width: 0;
  }

  .financeiro-pay-summary,
  .financeiro-pay-fields {
    grid-template-columns: 1fr;
  }

  .financeiro-page .table td.pagamento-cell .notice {
    margin-top: 2px;
  }

  .financeiro-page .table td.pagamento-cell::before {
    display: block;
    margin-bottom: 8px;
  }

  .financeiro-page .table tr.detail-row {
    background: transparent;
    border: none;
    padding: 0;
  }

  .financeiro-page .table tr.detail-row td {
    border: none;
    padding: 0;
  }

  .financeiro-parcela-facts,
  .financeiro-pay-summary,
  .financeiro-pay-fields,
  .financeiro-ajuste-controls {
    grid-template-columns: 1fr;
  }

  .home-kpi-grid,
  .home-action-grid,
  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .home-kpi-card {
    min-height: auto;
  }

  .home-action-card {
    min-height: 68px;
  }
}
