:root {
  --navy: #0d2844;
  --navy-2: #123a61;
  --blue: #1b75d0;
  --gold: #d4af37;
  --green: #16a34a;
  --red: #ef233c;
  --orange: #f97316;
  --ink: #162033;
  --muted: #667085;
  --line: #d9e2ec;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --soft-blue: #e9f2ff;
  --soft-green: #e8f8ee;
  --soft-red: #ffecee;
  --shadow: 0 10px 30px rgba(15, 35, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

body:not(.logged-in) {
  overflow: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 175, 55, 0.22), transparent 28%),
    linear-gradient(135deg, #04101b 0%, #082338 52%, #020a12 100%);
}

.login-screen.hidden {
  display: none;
}

.login-brand-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border-right: 1px solid rgba(212, 175, 55, 0.32);
  color: #fff;
  padding: 40px;
  text-align: center;
}

.login-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 14px;
  color: #d4af37;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 32px;
  font-weight: 800;
}

.login-brand-panel h1 {
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-brand-panel h1 span {
  color: #d4af37;
}

.login-brand-panel p {
  margin: 0;
  color: #dbe5ee;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-card {
  align-self: center;
  justify-self: center;
  display: grid;
  width: min(440px, calc(100vw - 40px));
  gap: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-card h2 {
  margin-bottom: 4px;
  font-size: 30px;
}

.login-card span,
.login-card small {
  color: var(--muted);
}

.login-card label,
.user-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card input,
.user-form input,
.user-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

button,
input,
select {
  font: inherit;
}

.payment-date-input,
.table-date-input {
  min-height: 30px;
  width: 142px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
}

.table-text-input,
.table-select-input,
.table-money-input {
  min-height: 30px;
  width: 150px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
}

.table-money-input {
  width: 110px;
  text-align: right;
}

.table-text-input.wide {
  width: 220px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  overflow-y: auto;
  padding: 20px 16px 16px;
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.12), transparent 24%),
    linear-gradient(180deg, #04101b 0%, #082238 58%, #03101a 100%);
  color: #fff;
  box-shadow: 12px 0 34px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 10px;
  color: #d4af37;
  background: rgba(1, 11, 20, 0.78);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.brand strong span {
  color: #d4af37;
}

.brand small {
  margin-top: 8px;
  color: #d7dde5;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: #f1f6fb;
  background: transparent;
  text-align: left;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.menu-item span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 7px;
  color: #d4af37;
  font-size: 14px;
}

.menu-item:hover,
.menu-item.active {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.07));
}

.menu-item.active::before {
  position: absolute;
  inset: 8px auto 8px -1px;
  width: 4px;
  border-radius: 999px;
  background: #d4af37;
  content: "";
}

.sidebar-support {
  margin-top: 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 14px;
  background: rgba(1, 11, 20, 0.48);
}

.sidebar-support strong,
.sidebar-support span,
.sidebar-version span,
.sidebar-version strong {
  display: block;
}

.sidebar-support strong {
  color: #fff;
  font-size: 13px;
}

.sidebar-support span {
  margin-top: 4px;
  color: #d7dde5;
  font-size: 12px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(212, 175, 55, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.sidebar-logout span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 7px;
  color: #d4af37;
  font-size: 13px;
}

.sidebar-logout:hover {
  border-color: rgba(212, 175, 55, 0.85);
  background: rgba(212, 175, 55, 0.22);
}

.sidebar-version {
  margin-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.32);
  padding: 12px 8px 0;
  color: #d7dde5;
  font-size: 12px;
  text-transform: uppercase;
}

.sidebar-version strong {
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
  text-transform: none;
}

.app {
  width: calc(100% - 260px);
  margin-left: 260px;
  padding: 28px;
}

.view {
  display: none;
}

.view.active-view {
  display: block;
}

.topbar,
.section-heading,
.top-actions,
.legend {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 16px;
}

.top-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#launchView .topbar {
  align-items: flex-start;
}

#launchView .top-actions {
  max-width: 760px;
}

#launchView .top-actions button {
  white-space: nowrap;
}

.home-executive-dashboard {
  min-height: calc(100vh - 48px);
  border-radius: 12px;
  padding: 24px;
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.14), transparent 22%),
    linear-gradient(160deg, #04101b 0%, #072236 52%, #03101a 100%);
  box-shadow: var(--shadow);
}

.home-executive-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.home-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 10px;
  color: #d4af37;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.home-brand-lockup strong {
  display: block;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.home-brand-lockup strong span {
  color: #d4af37;
}

.home-brand-lockup small,
.home-title-block p,
.home-top-actions span,
.home-kpi-card small {
  color: #dbe5ee;
}

.home-brand-lockup small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-title-block h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-title-block p {
  margin: 6px 0 0;
}

.home-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-gold-button,
.home-clear-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-gold-button {
  border: 0;
  color: #05121e;
  background: linear-gradient(135deg, #f3c35a, #d4af37);
}

.home-clear-button {
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #fff;
  background: rgba(2, 10, 18, 0.42);
}

.home-filter-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
  gap: 14px;
  margin-bottom: 18px;
}

.home-filter-row label {
  min-height: 62px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(1, 11, 20, 0.62);
}

.home-filter-row span,
.home-filter-row select,
.home-kpi-card span,
.home-kpi-card strong,
.home-kpi-card small {
  display: block;
}

.home-filter-row span {
  color: #d4af37;
  font-size: 11px;
  font-weight: 800;
}

.home-filter-row select {
  width: 100%;
  min-height: 28px;
  margin-top: 6px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 19px;
  font-weight: 800;
  outline: none;
}

.home-filter-row option {
  color: #071423;
}

.home-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.home-kpi-card {
  position: relative;
  min-height: 156px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 18px 16px 14px;
  color: #071423;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.has-tooltip {
  position: relative;
}

.home-kpi-card.has-tooltip {
  overflow: visible;
}

.home-kpi-card.has-tooltip::after,
.home-bottom-strip .has-tooltip::after {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: calc(100% + 10px);
  width: min(260px, 90vw);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: #061421;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.home-kpi-card.has-tooltip:hover::after,
.home-bottom-strip .has-tooltip:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.home-kpi-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid #d4af37;
  border-radius: 50%;
  color: #d4af37;
  background: #061421;
  font-weight: 900;
}

.home-kpi-card span {
  color: #071423;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-kpi-card strong {
  margin-top: 8px;
  color: #071423;
  font-size: 22px;
}

.home-kpi-card small {
  margin-top: 4px;
  color: #344456;
  font-size: 12px;
}

.home-finance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.home-finance-card {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 16px 18px;
  color: #071423;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

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

.home-finance-card span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-finance-card strong {
  margin-top: 8px;
  color: #071423;
  font-size: 24px;
}

.home-finance-card small {
  margin-top: 4px;
  color: #344456;
  font-size: 12px;
}

.home-kpi-change {
  position: absolute;
  top: 22px;
  right: 18px;
  color: #c88405;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.home-kpi-change.down {
  color: #e11d2e;
}

.home-analytics-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(500px, 1fr);
  gap: 14px;
}

.home-dashboard-panel {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #071423;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.home-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #04101b, #0b2b45);
}

.home-panel-heading h2 {
  font-size: 14px;
  text-transform: uppercase;
}

.home-dre-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.home-dre-panel .table-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.home-dre-table th,
.home-dre-table td {
  border-bottom: 1px solid #e4e9f0;
  padding: 9px 10px;
  text-align: right;
  white-space: nowrap;
}

.home-dre-table th:first-child,
.home-dre-table td:first-child {
  width: 15%;
  text-align: left;
  white-space: normal;
}

.home-dre-table th:nth-child(2),
.home-dre-table td:nth-child(2) {
  width: 5%;
}

.home-dre-table th:nth-child(3),
.home-dre-table td:nth-child(3) {
  width: 5%;
}

.home-dre-table th:nth-child(4),
.home-dre-table td:nth-child(4) {
  width: 75%;
}

.home-dre-table th {
  color: #172236;
  background: #f4f7fa;
  font-size: 11px;
  text-transform: uppercase;
}

.home-dre-table tr.total-row td {
  color: #a66d00;
  background: #fff8e8;
  font-weight: 900;
}

.home-dre-table tr.positive-row td {
  color: #008f3a;
  background: #eaf8ef;
  font-weight: 900;
}

.home-dre-table tr.negative-row td {
  color: #071423;
  background: #fff;
  font-weight: 400;
}

.home-chart-stack {
  display: grid;
  gap: 14px;
}

.home-line-chart,
.home-bar-chart {
  min-height: 250px;
  padding: 16px;
}

.home-line-chart svg,
.home-bar-chart svg {
  width: 100%;
  height: 250px;
}

.home-small-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.home-donut-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 180px;
  padding: 16px;
}

.home-donut {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.home-donut-list,
.home-horizontal-bars {
  display: grid;
  gap: 9px;
  padding: 16px;
  font-size: 12px;
}

.home-donut-list {
  width: 100%;
  padding: 0;
  font-size: 13px;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
}

.home-donut-list > div {
  min-width: 0;
}

.home-donut-list span {
  overflow-wrap: break-word;
}

.home-legend-item,
.home-company-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.home-legend-item i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.home-company-track {
  grid-column: 1 / -1;
  height: 14px;
  border-radius: 99px;
  background: #edf1f5;
  overflow: hidden;
}

.home-company-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #061421, #0d2b45);
}

.home-bottom-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  background: rgba(1, 11, 20, 0.72);
}

.home-bottom-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 76px;
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  padding: 16px 18px;
}

.home-bottom-strip div:last-child {
  border-right: 0;
}

.home-bottom-strip p,
.home-bottom-strip strong {
  display: block;
}

.bottom-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 50%;
  color: #d4af37;
  font-size: 15px;
  font-weight: 900;
}

.home-bottom-strip p {
  margin: 0;
  color: #dbe5ee;
  font-size: 13px;
}

.home-bottom-strip strong {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  padding-left: 46px;
}

.home-hidden-metrics {
  display: none;
}

.calendar-actions label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-actions select {
  min-width: 160px;
  min-height: 44px;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.economic-calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.economic-calendar-summary .metric {
  border-top: 3px solid #d4af37;
}

.calendar-bank-panel {
  margin-bottom: 18px;
}

.calendar-bank-grid .bank-card {
  border-top: 3px solid #d4af37;
}

.budget-filter-panel {
  margin-bottom: 18px;
}

.economic-calendar-panel {
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  overflow: auto;
}

.budget-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.assistant-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
}

.training-layout,
.support-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
}

.platform-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.platform-form {
  display: grid;
  gap: 12px;
}

.budget-form {
  display: grid;
  gap: 12px;
}

.user-form {
  display: grid;
  gap: 12px;
}

.subscription-panel {
  border-top: 3px solid var(--gold);
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.subscription-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.subscription-grid span,
.subscription-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 18px;
}

.subscription-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e8f7ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.subscription-badge.vencida,
.subscription-badge.bloqueada,
.subscription-badge.cancelada {
  background: #ffe9ec;
  color: var(--red);
}

.subscription-badge.teste {
  background: #fff6d8;
  color: #9a6a00;
}

.subscription-badge.gratuita {
  background: #e8f7ef;
  color: var(--green);
}

.subscription-note {
  margin-top: 12px;
  text-transform: none;
}

.training-list {
  display: grid;
  gap: 10px;
}

.training-card {
  width: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--blue);
  text-align: left;
  cursor: pointer;
}

.training-card.active {
  border-color: var(--gold);
  background: #fffaf0;
}

.training-card span,
.training-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.training-card strong {
  display: block;
  margin: 6px 0;
  font-size: 17px;
}

.training-player-panel {
  min-height: 520px;
}

.training-video-frame {
  display: grid;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.training-video-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.training-notes {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.training-notes h3 {
  margin-bottom: 8px;
  color: var(--blue);
}

.support-chat-panel {
  min-height: 620px;
}

.support-chat {
  display: grid;
  align-content: start;
  gap: 12px;
  height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.support-message {
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.support-message.user {
  justify-self: end;
  border-color: rgba(212, 175, 55, 0.55);
  background: #fffaf0;
}

.support-message.owner {
  border-color: rgba(11, 19, 32, 0.22);
  background: #eef4fb;
}

.support-message span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  margin-top: 12px;
}

.support-ticket-list {
  display: grid;
  gap: 10px;
}

.support-ticket {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.support-ticket strong,
.support-ticket span {
  display: block;
}

.support-ticket span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.platform-ticket {
  display: grid;
  gap: 12px;
}

.platform-ticket-messages {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.platform-ticket-messages .support-message {
  max-width: 100%;
}

.platform-ticket-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.platform-ticket-reply textarea {
  min-height: 56px;
  resize: vertical;
}

.platform-client-actions {
  display: grid;
  grid-template-columns: 130px 140px auto;
  gap: 8px;
  min-width: 360px;
  align-items: center;
}

.platform-client-actions select,
.platform-client-actions input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
}

.assistant-form {
  display: grid;
  gap: 12px;
}

.assistant-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-form textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  resize: vertical;
}

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

.assistant-preview-grid > div {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.assistant-preview-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-preview-grid strong {
  color: var(--navy);
  font-size: 15px;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.assistant-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.assistant-data-panel {
  margin-top: 18px;
}

.analysis-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.assistant-analysis-form {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.assistant-analysis-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-analysis-form textarea,
.assistant-analysis-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.assistant-analysis-form textarea {
  resize: vertical;
}

.data-analysis-result {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.analysis-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analysis-kpis div,
.analysis-text-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.analysis-kpis span,
.analysis-text-block span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 18px;
}

.analysis-text-block p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.assistant-history-table {
  min-width: 980px;
}

.budget-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.budget-form input,
.budget-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.budget-table {
  min-width: 1120px;
  width: 100%;
  border-collapse: collapse;
}

.budget-table th,
.budget-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.budget-table th {
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.budget-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.budget-status.success {
  color: var(--green);
  background: var(--soft-green);
}

.budget-status.warning {
  color: #a16207;
  background: #fff6df;
}

.budget-status.danger {
  color: var(--red);
  background: var(--soft-red);
}

.reconciliation-summary {
  margin-bottom: 18px;
}

.statement-bank-picker {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.statement-bank-picker select {
  min-width: 220px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.reconciliation-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.reconciliation-help div {
  display: grid;
  gap: 5px;
  padding-left: 12px;
  border-left: 3px solid #d4af37;
}

.reconciliation-help strong {
  color: var(--ink);
}

.reconciliation-help span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reconciliation-layout {
  display: block;
}

.import-progress,
.import-status {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  margin: -8px 0 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(15, 35, 55, 0.08);
}

.import-progress.hidden,
.import-status.hidden {
  display: none;
}

.import-progress strong,
.import-progress span,
.import-status strong,
.import-status span {
  display: block;
}

.import-progress span,
.import-status span {
  color: var(--muted);
  font-size: 13px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(212, 175, 55, 0.28);
  border-top-color: var(--gold);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reconciliation-table {
  min-width: 1420px;
  width: 100%;
  border-collapse: collapse;
}

.reconciliation-table th,
.reconciliation-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  white-space: nowrap;
}

.reconciliation-table th {
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.reconciliation-table tr {
  cursor: pointer;
}

.reconciliation-table .selected-row td {
  background: #fff8e1;
}

.reconciliation-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.reconciliation-status.matched {
  color: var(--green);
  background: var(--soft-green);
}

.reconciliation-status.pending {
  color: #a16207;
  background: #fff6df;
}

.reconciliation-status.suggested {
  color: var(--blue);
  background: #eaf2ff;
}

.reconciliation-status.divergent {
  color: var(--red);
  background: var(--soft-red);
}

.match-preview {
  display: grid;
  gap: 12px;
}

.match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.match-card strong,
.match-card span,
.match-values {
  display: block;
}

.match-card span,
.match-values span,
.match-score span {
  color: var(--muted);
  font-size: 12px;
}

.match-score,
.match-values {
  text-align: right;
}

.match-card .primary-button {
  grid-column: 1 / -1;
  min-height: 36px;
}

.suggestion-dialog {
  max-width: min(860px, calc(100vw - 28px));
}

.suggestion-list {
  display: grid;
  gap: 12px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}

.suggestion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

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

.suggestion-card span {
  color: var(--muted);
  font-size: 12px;
}

.suggestion-card .match-score {
  min-width: 96px;
}

.suggestion-card .suggestion-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

.suggestion-meta div {
  border-radius: 8px;
  background: var(--soft-blue);
  padding: 8px 10px;
}

.suggestion-card .primary-button {
  grid-column: 1 / -1;
  min-height: 38px;
}

.duplicate-import-dialog {
  max-width: min(980px, calc(100vw - 28px));
}

.duplicate-import-list {
  display: grid;
  gap: 12px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}

.duplicate-import-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.duplicate-import-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

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

.duplicate-import-columns > div {
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.duplicate-import-card strong,
.duplicate-import-card span {
  display: block;
}

.duplicate-import-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.duplicate-import-score {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--blue);
}

.duplicate-import-score strong {
  font-size: 20px;
}

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

.empty-state {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #f8fafc;
}

.economic-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  background: #fff;
}

.calendar-weekday {
  min-height: 40px;
  border-radius: 8px;
  padding: 10px 8px;
  color: #071423;
  background: #f3f6fa;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 206px;
  border: 1px solid #dde5ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 35, 55, 0.06);
  overflow: hidden;
}

.calendar-day.outside {
  background: #f8fafc;
  opacity: 0.7;
}

.calendar-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 8px;
  border-bottom: 1px solid #e5ebf2;
  padding: 0 12px;
  background: #f7f9fc;
}

.calendar-day.today header {
  background: #fff4d2;
}

.calendar-day header strong {
  color: #071423;
  font-size: 18px;
}

.calendar-day header span {
  border-radius: 999px;
  padding: 3px 7px;
  color: #8a5b00;
  background: #fff7d6;
  font-size: 11px;
  font-weight: 900;
}

.calendar-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: 18px 18px;
  align-items: center;
  min-height: 46px;
  gap: 8px;
  border-bottom: 1px solid #eef2f6;
  padding: 0 10px;
}

.calendar-row span {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  color: #344456;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-row strong {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
  color: #071423;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.calendar-row::before {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.calendar-row.muted span {
  grid-column: 1;
  color: #667085;
  font-weight: 700;
  text-transform: none;
}

.calendar-row.muted {
  grid-template-columns: 1fr;
  grid-template-rows: 18px 20px;
  align-items: start;
  min-height: 46px;
  padding-top: 8px;
  background: #f8fafc;
}

.calendar-row.muted strong {
  grid-column: 1;
  color: #0d2b45;
  text-align: left;
}

.calendar-row.income::before {
  color: var(--green);
  border: 1px solid var(--green);
  content: "↑";
}

.calendar-row.expense::before {
  color: var(--red);
  border: 1px solid var(--red);
  content: "↓";
}

.calendar-row.total::before {
  color: #d4af37;
  border: 1px solid #d4af37;
  content: "=";
}

.calendar-row.income strong {
  color: var(--green);
  background: transparent;
}

.calendar-row.expense strong {
  color: var(--red);
  background: transparent;
}

.calendar-row.total.positive strong {
  color: var(--green);
}

.calendar-row.total.negative strong {
  color: var(--red);
}

.brand-negative {
  color: var(--red) !important;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid #d4af37;
  padding: 0 18px;
  color: #0b1320;
  background: #d4af37;
}

.success-button,
.danger-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
}

.success-button {
  border: 1px solid #d4af37;
  color: #0b1320;
  background: #d4af37;
}

.danger-button {
  background: var(--red);
}

.secondary-button,
.text-button {
  color: var(--navy);
  background: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  padding: 0 16px;
}

.text-button,
.icon-button {
  border: 0;
}

.text-button {
  color: #0b1320;
  background: transparent;
}

.statement-filter-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.danger-text-button {
  color: var(--red);
}

.danger-text-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.permission-hidden {
  display: none !important;
}

.permission-locked {
  opacity: 0.55;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.summary-grid.compact .metric {
  min-height: 108px;
}

.metric,
.panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  color: var(--blue);
  font-size: 22px;
}

.metric.income strong {
  color: var(--green);
}

.metric.expense strong,
.metric.result.negative strong {
  color: var(--red);
}

.metric.result.positive strong {
  color: var(--green);
}

.panel,
.table-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

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

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 54px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 28px;
  color: #344054;
  background: transparent;
  font-weight: 800;
}

.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: #fff;
}

.tab[data-account-type="despesa"].active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.tab[data-account-type="centro"].active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab[data-account-type="outros"].active {
  color: #6d36b4;
  border-bottom-color: #6d36b4;
}

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

.chart-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chart-title h2 {
  color: var(--green);
  font-size: 22px;
  text-transform: uppercase;
}

.chart-icon.expense-mode + div h2 {
  color: var(--red);
}

.chart-icon.cost-mode + div h2 {
  color: var(--blue);
}

.chart-icon.other-mode + div h2 {
  color: #6d36b4;
}

.chart-title span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.chart-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 24px;
  font-weight: 800;
}

.chart-icon.expense-mode {
  background: var(--red);
}

.chart-icon.cost-mode {
  background: var(--blue);
}

.chart-icon.other-mode {
  background: #6d36b4;
}

.chart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-actions input {
  width: 360px;
}

.accounts-table {
  min-width: 1180px;
}

.banks-table {
  min-width: 1360px;
}

.invoice-table {
  min-width: 1540px;
}

.partners-table {
  min-width: 1080px;
}

.partner-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-filters {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(170px, 0.7fr));
}

.partner-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #4f2ac7;
  background: #efe9ff;
  font-size: 12px;
  font-weight: 800;
}

.partner-type {
  display: inline-flex;
  min-width: 94px;
  justify-content: center;
  border-radius: 6px;
  padding: 5px 8px;
  color: #4f2ac7;
  background: #f0e9ff;
  font-size: 12px;
  font-weight: 800;
}

.partner-type.cliente {
  color: var(--blue);
  background: var(--soft-blue);
}

.partner-type.colaborador {
  color: #b45309;
  background: #fff2df;
}

.tax-table {
  min-width: 1180px;
}

.irpj-csll-table {
  min-width: 1500px;
}

#taxView .summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tax-rates-table {
  min-width: 760px;
  margin-top: 14px;
}

.tax-rate-form {
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
  align-items: end;
}

.tax-quarter-config {
  margin: 12px 0 0;
}

.tax-info-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.tax-info-card {
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.tax-info-card p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, max-content);
  align-items: center;
  gap: 16px;
  margin: 12px 0;
  color: var(--muted);
}

.tax-info-card strong {
  max-width: 100%;
  color: var(--navy);
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tax-alert-card {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.tax-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 8px;
  padding: 14px;
}

.tax-alert strong,
.tax-alert span,
.tax-alert small {
  display: block;
}

.tax-alert span,
.tax-alert small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.tax-alert.success {
  background: var(--soft-green);
}

.tax-alert.success strong:last-child {
  color: var(--green);
}

.tax-alert.danger {
  background: var(--soft-red);
}

.tax-alert.danger strong:last-child {
  color: var(--red);
}

.tax-alert.warning {
  grid-template-columns: 1fr;
  background: #fff6df;
}

.report-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin-bottom: 0;
}

.report-tab {
  min-height: 58px;
  border: 1px solid var(--line);
  border-bottom: 0;
  color: #344054;
  background: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.report-tab.active {
  color: #3b16a3;
  border-top: 3px solid #3b16a3;
  box-shadow: var(--shadow);
}

.report-panel {
  margin-bottom: 18px;
}

.report-filters {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  margin-bottom: 18px;
}

.reports-table {
  min-width: 1660px;
}

.reports-table.receivable-risk-table {
  min-width: 1180px;
}

.receivable-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.receivable-risk-table td,
.receivable-risk-table th {
  white-space: nowrap;
}

.receivable-client-title td {
  padding-top: 18px;
  color: var(--navy);
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.receivable-client-header td {
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.risk-pill.low {
  color: var(--green);
  background: var(--soft-green);
}

.risk-pill.medium {
  color: #a16207;
  background: #fff6df;
}

.risk-pill.high {
  color: var(--orange);
  background: #fff4e8;
}

.risk-pill.critical {
  color: var(--red);
  background: var(--soft-red);
}

.reports-table td:first-child {
  font-weight: 800;
}

.reports-table tr.report-row-negative td {
  background: var(--soft-red);
}

.reports-table tr.report-row-synthetic td {
  background: #f7f9fc;
  font-weight: 900;
}

.reports-table tr.report-row-synthetic td.report-positive {
  color: var(--navy);
  background: #f7f9fc;
}

.reports-table tr.report-row-calculation td {
  background: #fff8e6;
  color: #8a5b00;
  font-weight: 900;
}

.reports-table .report-indent-1 {
  padding-left: 26px;
}

.reports-table .report-indent-2 {
  padding-left: 42px;
}

.reports-table .report-indent-3 {
  padding-left: 58px;
}

.report-positive {
  color: var(--green);
  background: var(--soft-green);
  font-weight: 800;
}

.report-negative {
  color: var(--red);
  background: var(--soft-red);
  font-weight: 800;
}

.account-group {
  display: inline-flex;
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 800;
}

.account-nature,
.account-status {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--green);
  background: var(--soft-green);
  font-size: 12px;
  font-weight: 800;
}

.account-nature.expense {
  color: var(--red);
  background: var(--soft-red);
}

.account-nature.synthetic {
  color: #1d2b3a;
  background: #eef2f7;
}

.fixed-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 6px;
  padding: 5px 10px;
  color: #9a6a00;
  background: #fff8df;
  font-size: 12px;
  font-weight: 800;
}

.accounts-table tr.synthetic-row td {
  background: #f7f9fc;
  font-weight: 800;
}

.accounts-table tr.analytic-row td:first-child {
  padding-left: 28px;
}

.account-status.inactive {
  color: var(--red);
  background: var(--soft-red);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.small-action {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
}

.other-panel {
  display: none;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.other-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.other-card-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 42px;
  color: #fff;
  background: #6d36b4;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.other-card-header input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.other-card-header input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.other-list {
  display: grid;
}

.other-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-align: center;
}

.other-actions {
  justify-content: center;
}

.other-row strong {
  font-size: 13px;
  padding: 0 10px;
}

.other-row span {
  color: #344054;
}

.inline-add-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
}


.bank-card {
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bank-card small,
.bank-card span {
  display: block;
}

.bank-card small {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.bank-card strong {
  color: var(--navy-2);
  font-size: 18px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  text-transform: none;
}

.table-heading {
  align-items: flex-end;
}

.legend {
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 999px;
}

.income-dot {
  background: var(--green);
}

.expense-dot {
  background: var(--red);
}

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

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}

.table-pagination.hidden {
  display: none;
}

.table-pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-pagination button {
  min-height: 38px;
}

.table-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

table {
  width: 100%;
  min-width: 1800px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

td.number,
th.number {
  text-align: right;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-width: 78px;
  justify-content: center;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.tag.receita {
  color: var(--green);
  background: var(--soft-green);
}

.tag.despesa {
  color: var(--red);
  background: var(--soft-red);
}

.tag.transferencia {
  color: var(--blue);
  background: var(--soft-blue);
}

.status.pago {
  color: var(--green);
  background: var(--soft-green);
}

.status.pendente {
  color: var(--orange);
  background: #fff4e8;
}

.status.vencido {
  color: var(--red);
  background: var(--soft-red);
}

.status-select {
  min-height: 30px;
  min-width: 110px;
  border: 0;
  border-radius: 6px;
  padding: 5px 28px 5px 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.status-select.pago {
  color: var(--green);
  background: var(--soft-green);
}

.status-select.pendente {
  color: var(--orange);
  background: #fff4e8;
}

.status-select.vencido {
  color: var(--red);
  background: var(--soft-red);
}

.entry-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  box-shadow: 0 22px 80px rgba(11, 19, 32, 0.22);
  overflow: auto;
}

.entry-dialog::backdrop {
  background: rgba(11, 19, 32, 0.42);
}

.entry-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.icon-button {
  width: 34px;
  min-height: 34px;
  color: #0b1320;
  background: #f5f7fa;
}

.full {
  width: 100%;
  margin-top: 4px;
}

.attachment-dialog {
  width: min(620px, calc(100% - 28px));
}

.attachment-list {
  display: grid;
  gap: 10px;
}

.attachment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.attachment-preview-link {
  overflow: hidden;
  color: #0b1320;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-empty,
.attachment-hint {
  margin: 0;
  color: #5f6b7a;
  font-size: 13px;
}

.attachment-button {
  white-space: nowrap;
}

/* Variáveis da paleta GestoraPro: globais porque .entries-table th (e outras
   regras não condicionadas a :not(#homeView)) dependem delas em toda página,
   já que agora todas as telas usam o mesmo shell escuro (id="homeView"). */
:root {
  --brand-navy: #0b1320;
  --brand-navy-2: #1d2b3a;
  --brand-gold: #d4af37;
  --brand-bg: #ffffff;
  --brand-soft: #f5f7fa;
  --brand-line: #e6e9ef;
  --brand-ink: #0b1320;
  --brand-muted: #5f6b7a;
}

/* Paleta GestoraPro nas telas internas. A tela de Inicio mantem o visual proprio do painel gerencial. */
.view:not(#homeView) {
  color: var(--brand-ink);
  min-height: calc(100vh - 56px);
  background: #fff;
}

.view:not(#homeView) .topbar {
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 18px;
}

.view:not(#homeView) .eyebrow,
.view:not(#homeView) .page-subtitle {
  color: var(--brand-muted);
}

.view:not(#homeView) .eyebrow {
  color: var(--brand-gold);
}

.view:not(#homeView) h1,
.view:not(#homeView) h2 {
  color: var(--brand-navy);
}

.view:not(#homeView) .panel,
.view:not(#homeView) .table-panel,
.view:not(#homeView) .report-panel,
.view:not(#homeView) .tax-simple-panel,
.view:not(#homeView) .economic-calendar-panel,
.view:not(#homeView) .bank-panel {
  border: 1px solid var(--brand-line);
  background: var(--brand-bg);
  box-shadow: 0 10px 26px rgba(11, 19, 32, 0.06);
}

.view:not(#homeView) .summary-grid .metric,
.view:not(#homeView) .metric,
.view:not(#homeView) .bank-card,
.view:not(#homeView) .home-finance-card,
.view:not(#homeView) .match-card {
  border: 1px solid var(--brand-line);
  border-top: 3px solid var(--brand-gold);
  background: var(--brand-bg);
  box-shadow: 0 8px 22px rgba(11, 19, 32, 0.05);
}

.view:not(#homeView) .metric span,
.view:not(#homeView) .bank-card span,
.view:not(#homeView) .section-heading span,
.view:not(#homeView) label {
  color: var(--brand-muted);
}

.view:not(#homeView) .metric strong,
.view:not(#homeView) .bank-card strong {
  color: var(--brand-navy);
}

.view:not(#homeView) input,
.view:not(#homeView) select,
.view:not(#homeView) textarea {
  border-color: var(--brand-line);
  color: var(--brand-navy);
  background: #fff;
}

.view:not(#homeView) input:focus,
.view:not(#homeView) select:focus,
.view:not(#homeView) textarea:focus {
  border-color: var(--brand-gold);
  outline: 2px solid rgba(212, 175, 55, 0.18);
}

.view:not(#homeView) table th,
.view:not(#homeView) .reports-table th,
.view:not(#homeView) .budget-table th,
.view:not(#homeView) .reconciliation-table th,
.view:not(#homeView) .tax-table th,
.view:not(#homeView) .users-table th,
.view:not(#homeView) .invoice-table th,
.view:not(#homeView) .partners-table th {
  color: #fff;
  background: var(--brand-navy);
}

.view:not(#homeView) table td {
  border-color: var(--brand-line);
}

.view:not(#homeView) tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.view:not(#homeView) .primary-button,
.view:not(#homeView) .success-button {
  border: 1px solid var(--brand-navy);
  color: #fff;
  background: var(--brand-navy);
}

.view:not(#homeView) .secondary-button,
.view:not(#homeView) .text-button,
.view:not(#homeView) .small-action,
.view:not(#homeView) .icon-button {
  border-color: var(--brand-line);
  color: var(--brand-navy);
  background: #fff;
}

.view:not(#homeView) .danger-button {
  border: 1px solid #ef233c;
  color: #fff;
  background: #ef233c;
}

.view:not(#homeView) .report-tab,
.view:not(#homeView) .tab {
  border-color: var(--brand-line);
  color: var(--brand-navy);
  background: #fff;
}

.view:not(#homeView) .report-tab.active,
.view:not(#homeView) .tab.active {
  border-top-color: var(--brand-gold);
  color: var(--brand-navy);
  background: #fff;
  box-shadow: inset 0 3px 0 var(--brand-gold);
}

.view:not(#homeView) .account-icon,
.view:not(#homeView) .bottom-icon,
.view:not(#homeView) .calendar-row i {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background: #fff;
}

.view:not(#homeView) .account-group,
.view:not(#homeView) .account-nature,
.view:not(#homeView) .tag,
.view:not(#homeView) .budget-status,
.view:not(#homeView) .reconciliation-status,
.view:not(#homeView) .account-status {
  border-radius: 999px;
}

.view:not(#homeView) .other-grid-header,
.view:not(#homeView) .other-table-title {
  color: #fff;
  background: var(--brand-navy);
}

.view:not(#homeView) .calendar-weekday,
.view:not(#homeView) .calendar-day-header {
  color: var(--brand-navy);
  background: var(--brand-soft);
}

.view:not(#homeView) .calendar-day.today .calendar-day-header {
  background: #fff4d2;
}

.view:not(#homeView) .selected-row td {
  background: #fff8e1 !important;
}

/* Ajuste fino da tela de Cadastros para manter a leitura operacional das abas. */
#chartView .success-button,
#chartView #openRevenueDialog.success-button {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

#chartView .danger-button,
#chartView #openRevenueDialog.danger-button {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

#chartView #newCostCenterAccount,
#chartView #openRevenueDialog.primary-button {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

#chartView .top-actions .success-button,
#chartView .top-actions .danger-button,
#chartView .top-actions .primary-button {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  line-height: 1.2;
}

#chartView .tabs {
  border-bottom-color: var(--line);
  background: #fff;
}

#chartView .tab {
  color: #344456;
  background: #fff;
  box-shadow: none;
}

#chartView .tab.active {
  background: #fff;
  box-shadow: none;
}

#chartView .tab[data-account-type="receita"].active {
  color: var(--green);
  border-bottom-color: var(--green);
}

#chartView .tab[data-account-type="despesa"].active {
  color: var(--red);
  border-bottom-color: var(--red);
}

#chartView .tab[data-account-type="centro"].active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

#chartView .tab[data-account-type="outros"].active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

#chartView .chart-title h2 {
  color: var(--green);
}

#chartView .chart-icon {
  color: #fff;
  background: var(--green);
}

#chartView .chart-icon.expense-mode {
  background: var(--red);
}

#chartView .chart-icon.cost-mode {
  background: var(--blue);
}

#chartView .chart-icon.other-mode {
  color: #fff;
  background: var(--navy);
}

#chartView .chart-icon.expense-mode + div h2 {
  color: var(--red);
}

#chartView .chart-icon.cost-mode + div h2 {
  color: var(--blue);
}

#chartView .chart-icon.other-mode + div h2 {
  color: var(--navy);
}

#chartView .other-card {
  border-color: var(--line);
  background: #fff;
}

#chartView .other-card-header {
  color: #fff;
  background: var(--navy);
}

#chartView .other-card-header input {
  color: #fff;
  background: transparent;
}

#chartView .other-card-header input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

#chartView .other-row strong,
#chartView .other-row span {
  color: var(--navy);
}

#chartView .inline-add-form .primary-button {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

@media (max-width: 1100px) {
  .sidebar {
    position: static;
    width: 100%;
  }

  .menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .summary-grid,
  .analysis-kpis,
  .bank-grid,
  .economic-calendar-summary,
  .receivable-summary-grid,
  .home-kpi-row,
  .home-finance-row,
  .home-analytics-grid,
  .home-small-charts,
  .home-bottom-strip,
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-executive-top,
  .home-filter-row,
  .assistant-analysis-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 18px;
  }

  .topbar,
  .top-actions,
  .section-heading,
  .legend,
  .chart-header,
  .chart-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-actions input {
    width: 100%;
  }

    .menu,
    .summary-grid,
    .analysis-kpis,
    .bank-grid,
    .economic-calendar-summary,
    .receivable-summary-grid,
  .filters,
  .other-grid,
  .report-filters,
  .tax-rate-form,
    .tax-info-grid,
    .home-kpi-row,
    .home-finance-row,
    .home-analytics-grid,
    .home-small-charts,
    .home-bottom-strip,
    .home-donut-panel,
    .assistant-layout,
    .training-layout,
    .support-layout,
    .platform-layout,
    .assistant-analysis-form {
    grid-template-columns: 1fr;
  }

  .home-executive-dashboard {
    padding: 16px;
  }

 /* =======================================
   GRID DO CALENDÁRIO RESPONSIVO
   ======================================= */
.economic-calendar-grid {
    display: grid;
    /* Ajustado para minmax(0, 1fr) para respeitar o espaço disponível */
    grid-template-columns: repeat(7, minmax(0, 1fr)); 
    gap: 4px; /* Reduzi um pouco o gap para ganhar espaço */
    background: #e5eaf0; /* Cor da borda entre dias */
    border: 1px solid #e5eaf0;
}

.calendar-weekday {
    padding: 10px 5px;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    background: #f1f5f9;
}

.calendar-day {
    min-height: 140px; /* Reduzido para caber melhor na tela */
    background: #fff;
    padding: 5px;
}

/* Garante que o conteúdo dentro do dia não force o alargamento da coluna */
.calendar-row {
    font-size: 0.7rem !important;
}

.calendar-row strong {
    font-size: 0.75rem !important;
    word-break: break-all; /* Quebra números longos se necessário */
}

  .home-executive-top,
  .home-top-actions,
  .home-brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .home-bottom-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  }

  .home-bottom-strip div:last-child {
    border-bottom: 0;
  }
}

@media print {
  body.printing-home-dashboard {
    background: #fff;
  }

  body.printing-home-dashboard .sidebar,
  body.printing-home-dashboard .view:not(#homeView),
  body.printing-home-dashboard .home-filter-row,
  body.printing-home-dashboard .home-top-actions {
    display: none !important;
  }

  body.printing-home-dashboard .app {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.printing-home-dashboard #homeView {
    display: block !important;
  }

  body.printing-home-dashboard .home-executive-dashboard {
    min-height: auto;
    border-radius: 0;
    padding: 14px;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-home-dashboard .home-executive-top {
    grid-template-columns: 1fr;
  }

  body.printing-home-dashboard .home-kpi-card,
  body.printing-home-dashboard .home-finance-card,
  body.printing-home-dashboard .home-dashboard-panel,
  body.printing-home-dashboard .home-bottom-strip {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* AJUSTES PREMIUM DE FONTE E ÍCONES */
body {
    font-size: 14px; /* Reduzindo a fonte para um visual mais limpo e corporativo */
}

/* Nova Navbar Superior */
.main-app-header {
    justify-content: space-between; /* Separa a esquerda da direita */
    padding: 0 30px;
}

.header-left-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    display: block;
}

.user-name {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-action-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-action-btn:hover {
    color: var(--gold);
}

/* Ajustes nos KPIs para os novos ícones */
.home-kpi-icon {
    font-size: 1.5rem; /* Aumenta um pouco os ícones premium Phosphor */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CSS DA NOVA NAVBAR (TOPBAR) */
.saas-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 260px; /* Largura da Sidebar */
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Afasta o conteúdo do sistema da Topbar */
.app {
    margin-top: 70px !important; 
}

/* Lado Esquerdo - Empresa */
.topbar-left .company-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.topbar-left .company-selector:hover {
    background: var(--bg);
}

.company-icon {
    width: 40px;
    height: 40px;
    background: var(--soft-blue);
    color: var(--blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.company-name {
    font-size: 0.95rem;
    color: var(--navy);
}

/* Lado Direito - Ações e Perfil */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.topbar-btn:hover {
    color: var(--blue);
}

.badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    color: var(--navy);
}

.user-role {
    font-size: 0.75rem;
    color: var(--muted);
}

.logout-link {
    color: var(--red);
    font-size: 1.5rem;
    margin-left: 15px;
    transition: opacity 0.2s;
}

.logout-link:hover {
    opacity: 0.7;
}

/* Correção dos links da Sidebar para parecerem botões */
.menu-item {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    color: #f1f6fb;
}

/* Nova Topbar Premium */
.saas-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 260px;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 40;
}

.topbar-left .company-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.company-icon {
    background: var(--navy);
    color: var(--gold);
    padding: 8px;
    border-radius: 6px;
    font-size: 1.2rem;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-info small {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
}

.company-info strong {
    font-size: 0.95rem;
    color: var(--navy);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-actions {
    display: flex;
    gap: 12px;
    border-right: 1px solid var(--line);
    padding-right: 24px;
}

.top-icon-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--muted);
    cursor: pointer;
    position: relative;
}

.top-icon-btn:hover { color: var(--navy); }

.notification-dot {
    position: absolute;
    top: 0;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 0.9rem;
    color: var(--navy);
}

.logout-text {
    font-size: 0.75rem;
    color: var(--red);
    text-decoration: none;
}
.logout-text:hover { text-decoration: underline; }

/* =======================================
   ESTILOS DA NOVA TOPBAR FUNCIONAL
   ======================================= */

/* Seletor Nativo da Empresa */
.native-company-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    outline: none;
    padding-right: 18px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.native-company-select option {
    font-weight: normal;
    color: #333;
}

.select-arrow {
    position: absolute;
    right: 0;
    bottom: 2px;
    pointer-events: none;
    color: var(--navy);
}

/* Sistema de Dropdowns (Notificações e Perfil) */
.dropdown-wrapper {
    position: relative;
}

.topbar-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.topbar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown {
    width: 200px;
}

.dropdown-header {
    padding: 12px 16px;
    font-weight: bold;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item i {
    font-size: 1.1rem;
    color: var(--muted);
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

.text-danger {
    color: var(--red);
}

.text-danger i {
    color: var(--red);
}

/* Custom Dropdown de Empresa */
.company-dropdown {
    width: 280px;
    left: 0;
    right: auto;
}

.company-badge {
    transition: background 0.2s;
}
.company-badge:hover {
    background: var(--bg);
}

.active-company {
    background: var(--soft-blue);
    font-weight: bold;
    border-left: 3px solid var(--blue);
}

/* =======================================
   CUSTOMIZAÇÃO PREMIUM DOS SELECTS
   ======================================= */
select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    color: var(--ink);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Seta customizada em SVG para garantir alta resolução */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.home-filter-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-filter-row span {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}
/* =======================================
   REFINAMENTO VISUAL E SIDEBAR RETRÁTIL
   ======================================= */

/* 1. Rodapé da aplicação (fica no fluxo normal da página, não sobrepõe conteúdo) */
.main-app-footer {
    position: relative;
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: transparent;
    padding: 20px 0;
    color: var(--muted);
    font-size: 0.75rem;
    opacity: 0.85;
    z-index: 10;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 30px;
    font-size: 0.7rem;
}

.footer-support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
}

.footer-support-link:hover {
    color: var(--gold);
}

/* 2. Comportamento da Sidebar Encolhida */
.sidebar {
    transition: width 0.3s ease;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 80px;
}

/* Esconde os textos quando encolhida */
.sidebar.collapsed .brand > div,
.sidebar.collapsed .menu-group-title,
.sidebar.collapsed .menu-item text,
.sidebar.collapsed .sidebar-support,
.sidebar.collapsed .sidebar-version {
    display: none;
}

/* Centraliza os ícones */
.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .menu-item span {
    margin: 0;
}

/* Ajusta o painel central e a Topbar quando a sidebar encolhe */
.app {
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.app.expanded {
    width: calc(100% - 80px);
    margin-left: 80px;
}

.saas-topbar {
    transition: left 0.3s ease;
}

.saas-topbar.expanded {
    left: 80px;
}

/* Botão de Toggle na Topbar */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 1.4rem;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
}
.sidebar-toggle-btn:hover {
    color: var(--gold);
}

/* =======================================
   RESPONSIVIDADE (TABLETS E CELULARES)
   ======================================= */

/* Para Tablets (Telas médias) */
@media (max-width: 1024px) {
    .home-kpi-row, .home-finance-row, .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Deixa 2 quadros por linha */
    }
    .home-analytics-grid, .home-chart-stack, .home-small-charts {
        grid-template-columns: 1fr; /* DRE e Gráficos um embaixo do outro */
    }
}

/* Para Celulares (Telas pequenas) */
@media (max-width: 768px) {
    /* 1. Comportamento da Barra Lateral (Escondida por padrão) */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Escondida fora da tela na esquerda */
        width: 260px !important;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    /* Quando ativada pelo botão, ela desliza pra dentro */
    .sidebar.show-mobile {
        left: 0;
    }

    /* Fundo escuro atrás do menu aberto no celular */
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(11, 19, 32, 0.6);
        backdrop-filter: blur(2px);
        z-index: 999;
    }
    .mobile-overlay.active {
        display: block;
    }

    /* 2. Topbar e Dashboard ocupam 100% da tela */
    .app {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 15px;
    }
    .saas-topbar {
        left: 0 !important;
        padding: 0 15px;
    }

    /* 3. Ajuste fino do Painel Gerencial para caber no celular */
    .home-executive-top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .home-filter-row {
        grid-template-columns: 1fr 1fr; /* Filtros de 2 em 2 no celular */
    }
    .home-filter-row button {
        grid-column: 1 / -1; /* Botão de limpar ocupa a linha toda */
    }

    .home-kpi-row, .home-finance-row {
        grid-template-columns: 1fr; /* 1 KPI por linha */
    }

    .home-bottom-strip {
        grid-template-columns: 1fr; /* Barras de baixo uma por linha */
    }
    .home-bottom-strip div {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    }

    /* 4. Encurtar os textos da Topbar para o perfil não quebrar */
    .company-info small, .user-info span {
        display: none; /* Esconde os subtítulos para ganhar espaço */
    }
    
    .table-wrapper {
        overflow-x: auto; /* Permite arrastar as tabelas pro lado com o dedo */
    }
}

/* =======================================
   REFINAMENTO DE ESCALA (COMPACTAÇÃO PREMIUM)
   ======================================= */

/* 1. Ajuste fino e redução da fonte nos Filtros Escuros */
.home-filter-row select {
    font-size: 13px !important; /* Reduzido de 19px para um tamanho elegante */
    font-weight: 700 !important;
    min-height: 20px !important;
    margin-top: 2px !important;
    padding: 0 !important;
    color: #ffffff;
    /* Remove a seta padrão para manter o visual minimalista nas caixas escuras */
    background-image: none !important; 
}

.home-filter-row label {
    min-height: 50px !important; /* Reduzido de 62px */
    padding: 8px 12px !important;
    gap: 2px !important;
}

/* 2. Compactando os KPIs (Remove os espaços em branco exagerados) */
.home-kpi-card {
    min-height: 120px !important; /* Reduzido de 156px */
    padding: 12px 14px 10px !important;
}

.home-kpi-icon {
    width: 32px !important; /* Reduzido de 42px */
    height: 32px !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
}

.home-kpi-card strong {
    font-size: 18px !important; /* Reduzido de 22px */
    margin-top: 2px !important;
}

.home-kpi-card span {
    font-size: 11px !important;
}

.home-kpi-change {
    top: 14px !important;
    right: 14px !important;
    font-size: 12px !important;
}

/* 3. Compactando os Resumos Financeiros (Contas a Pagar/Receber) */
.home-finance-card {
    padding: 12px 14px !important;
}

.home-finance-card strong {
    font-size: 18px !important; /* Reduzido de 24px */
    margin-top: 4px !important;
}

/* 4. Refinando o Cabeçalho (Títulos menores) */
.home-title-block h1 {
    font-size: 22px !important; /* Reduzido de 34px */
}

.home-executive-top {
    margin-bottom: 12px !important; /* Aproxima o cabeçalho dos filtros */
}

/* 5. Barras inferiores mais enxutas */
.home-bottom-strip div {
    min-height: 60px !important; /* Reduzido de 76px */
    padding: 10px 14px !important;
}

.bottom-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
}

.home-bottom-strip strong {
    font-size: 14px !important;
    padding-left: 40px !important;
}

.home-filter-row {
    grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(80px, auto) !important;
}

.home-clear-button {
    padding: 0 12px !important;
    font-size: 11px !important;
    white-space: nowrap;
}

/* Força os títulos dos KPIs e select a ficarem sempre em uma linha */
.home-kpi-card span,
.home-filter-row select {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10.5px !important;
}

.home-filter-row select {
    font-size: 13px !important;
}

/* =======================================
   CORREÇÃO DAS TABELAS OPERACIONAIS
   ======================================= */
.entries-table {
    width: 100%;
    min-width: 800px; /* Reduzido drasticamente para caber na tela */
    border-collapse: collapse;
}

.entries-table th, 
.entries-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--brand-line);
    text-align: left;
}

/* Permite que a descrição quebre a linha se for muito grande */
.entries-table td.wrap-text {
    white-space: normal;
    word-break: break-word;
}

.entries-table th {
    color: #fff;
    background: var(--brand-navy);
    font-size: 12px;
    text-transform: uppercase;
}

/* Botão de excluir vermelho */
.danger-icon-btn {
    color: var(--red) !important;
}
.danger-icon-btn:hover {
    background: var(--soft-red) !important;
}

/* Ajuste de alinhamento para o layout de colunas da Conciliação */
.reconciliation-side {
    display: flex;
    flex-direction: column;
}

.table-wrap {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 60vh; /* Limita a altura para não ocupar a tela toda */
}

/* =======================================
   LANDING PAGE (site público de vendas)
   ======================================= */

.landing-body {
    overflow: auto !important;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(4, 16, 27, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.landing-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-nav-links a {
    color: #dbe5ee;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.landing-nav-links a:hover {
    color: var(--gold);
}

.landing-nav-cta {
    background: var(--gold);
    color: #04101b !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800 !important;
}

.landing-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.22), transparent 32%),
        linear-gradient(135deg, #04101b 0%, #082338 55%, #020a12 100%);
    color: #fff;
    padding: 100px 24px 120px;
    text-align: center;
}

.landing-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.landing-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.landing-hero h1 {
    font-family: Georgia, serif;
    font-size: 46px;
    line-height: 1.25;
    margin: 0 0 20px;
}

.landing-hero h1 span {
    color: var(--gold);
}

.landing-hero-sub {
    font-size: 18px;
    color: #dbe5ee;
    line-height: 1.6;
    margin: 0 0 34px;
}

.landing-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.landing-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #04101b;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 30px;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.28);
}

.landing-cta-secondary {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.landing-hero-note {
    color: #9fb0c2;
    font-size: 13px;
}

.landing-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 24px;
}

.landing-section h2 {
    text-align: center;
    font-family: Georgia, serif;
    font-size: 32px;
    color: var(--navy);
    margin: 0 0 12px;
}

.landing-section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    margin: 0 auto 50px;
    max-width: 560px;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landing-feature-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.landing-feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.landing-feature-card h3 {
    font-size: 16px;
    color: var(--navy);
    margin: 0 0 8px;
}

.landing-feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.landing-pricing {
    background: var(--bg);
}

.landing-pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 28px;
    max-width: 760px;
    margin: 0 auto;
}

.landing-price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
}

.landing-price-highlight {
    border: 2px solid var(--gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.18);
}

.landing-price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #04101b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.landing-price-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 6px 0 16px;
}

.landing-price-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.landing-price-value small {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
}

.landing-price-note {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.landing-price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    text-align: left;
    font-size: 14px;
    color: var(--ink);
}

.landing-price-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
}

.landing-price-list i {
    color: var(--green);
    margin-top: 2px;
}

.landing-cta-banner {
    background: linear-gradient(135deg, #04101b 0%, #082338 55%, #020a12 100%);
    color: #fff;
    text-align: center;
    padding: 90px 24px;
}

.landing-cta-banner h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    margin: 0 0 28px;
}

.landing-footer {
    background: #04101b;
    color: #9fb0c2;
    text-align: center;
    padding: 26px 24px;
    font-size: 13px;
}

.landing-footer a {
    color: #dbe5ee;
    text-decoration: none;
    font-weight: 700;
}

/* =======================================
   LANDING PAGE — mockup do sistema, animações e interatividade
   ======================================= */

.landing-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-mockup-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.landing-mockup-tab {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-mockup-tab:hover {
    border-color: var(--gold);
    color: var(--navy);
}

.landing-mockup-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.landing-mockup-frame {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(13, 40, 68, 0.22);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.landing-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0b1320;
}

.landing-mockup-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
}

.landing-mockup-chrome span:first-child { background: #ef233c; }
.landing-mockup-chrome span:nth-child(2) { background: #f9a825; }
.landing-mockup-chrome span:nth-child(3) { background: #16a34a; }

.landing-mockup-url {
    margin-left: 10px;
    font-size: 12px;
    color: #9fb0c2;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 12px;
    border-radius: 6px;
}

.landing-mockup-body {
    background: linear-gradient(160deg, #0d2844 0%, #123a61 100%);
    padding: 28px;
}

.landing-mockup-view { display: none; }
.landing-mockup-view.active { display: block; animation: landingFadeIn 0.35s ease; }

@keyframes landingFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-mockup-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.landing-mockup-kpi {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
}

.landing-mockup-kpi-label {
    display: block;
    font-size: 11px;
    color: #9fb0c2;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.landing-mockup-kpi-value {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
}

.landing-mockup-kpi-value.up { color: #4ade80; }
.landing-mockup-kpi-value.down { color: #f87171; }

.landing-mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
}

.landing-mockup-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--gold), #8a6d1f);
    border-radius: 4px 4px 0 0;
    min-height: 6%;
    transition: height 1s ease;
}

.landing-mockup-table {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
}

.landing-mockup-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 11px 16px;
    color: #dbe5ee;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.landing-mockup-row:last-child { border-bottom: none; }

.landing-mockup-row-head {
    color: #9fb0c2;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.landing-mockup-row .tag {
    justify-self: start;
}

.landing-mockup-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--gold);
    font-size: 22px;
    margin: 4px 0;
}

.landing-mockup-recon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.landing-mockup-recon-col h4 {
    color: #9fb0c2;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 10px;
}

.landing-mockup-recon-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    color: #dbe5ee;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.landing-mockup-recon-item.matched {
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.landing-mockup-donut-row {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.landing-mockup-donut {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) 0deg 140deg, #4ade80 140deg 230deg, #38bdf8 230deg 300deg, rgba(255,255,255,0.15) 300deg 360deg);
    flex-shrink: 0;
}

.landing-mockup-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #dbe5ee;
}

.landing-mockup-legend span.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

@media (max-width: 900px) {
    .landing-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-mockup-kpis { grid-template-columns: repeat(2, 1fr); }
    .landing-mockup-recon { grid-template-columns: 1fr; }
    .landing-mockup-row { grid-template-columns: 2fr 1fr 1fr; font-size: 12px; }
    .landing-mockup-row span:nth-child(2) { display: none; }
    .landing-mockup-row-head span:nth-child(2) { display: none; }
}

@media (max-width: 640px) {
    .landing-nav-links { gap: 10px; }
    .landing-nav-optional { display: none; }
    .landing-nav-cta { padding: 9px 14px; font-size: 13px; }
    .landing-hero { padding: 70px 20px 90px; }
    .landing-hero h1 { font-size: 32px; }
    .landing-feature-grid { grid-template-columns: 1fr; }
    .landing-pricing-cards { grid-template-columns: 1fr; }
    .landing-section { padding: 60px 20px; }
    .landing-mockup-tabs { gap: 8px; }
    .landing-mockup-tab { padding: 8px 12px; font-size: 12px; }
    .landing-mockup-body { padding: 18px; }
    .landing-mockup-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .landing-mockup-kpi-value { font-size: 15px; }
    .landing-mockup-row { grid-template-columns: 2fr 1fr; font-size: 11px; padding: 9px 12px; }
    .landing-mockup-row span:nth-child(3) { display: none; }
    .landing-mockup-row-head span:nth-child(3) { display: none; }
    .landing-mockup-row span:nth-child(2) { display: none; }
    .landing-mockup-row-head span:nth-child(2) { display: none; }
    .landing-mockup-donut-row { justify-content: center; }
}