*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

:root {
  color-scheme: light;
  --bg-main: #f7fafc;
  --sidebar-bg: #012825;
  --primary: #009d94;
  --secondary: #00cabf;
  --accent: #bee2ea;
  --surface: #ffffff;
  --surface-soft: #f0f7f9;
  --line: #d7e7eb;
  --text: #0f2f31;
  --text-muted: #4f6b6d;
  --text-on-dark: #f3fbfd;
  --success: #2e7d32;
  --danger: #c62828;
  --warning: #b26a00;
  --accent-strong: #0f5f66;
  --chart-1: #009d94;
  --chart-2: #00cabf;
  --chart-3: #78b9c7;
  --chart-4: #0c7f77;
  /* paleta categórica, ordem estável, não reordenar
     (reordenar troca a cor de categorias já vistas pelo usuário). */
  --chart-5: #6b4ea8;
  --chart-6: #4a7c59;
  --chart-7: #c45c26;
  --chart-8: #2f5d8a;
  --chart-warn: #D09A22; /* preenchimento de série; NÃO usar em texto */
  --chart-grid: #d7e7eb;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ink-3: #4f6b6d;
  --ink-2: #234344;
  --ink-4: #6d8c8f;
  --header: #012825;
  --text-muted-on-dark: #bee2ea;
  --mix-lift: #ffffff; /* clareia superfície no tema claro */
  --overlay: rgba(0, 0, 0, 0.34);
  --scrollbar-track: var(--surface-soft);
  --scrollbar-thumb: var(--line);
  --skeleton-base: #e3f0f2;
  --skeleton-sheen: #f8fcfd;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-soft: 0 12px 32px rgba(1, 40, 37, 0.09);
  --shadow-lift: 0 16px 34px rgba(1, 40, 37, 0.15);
  --card: var(--surface);
  --border: var(--line);
  --surface-alt: var(--surface-soft);
  --action-bg: var(--primary);
  --action-text: var(--text-on-dark);
  --brand-400: var(--secondary);
  --brand-900: var(--sidebar-bg);
  --brand-600: var(--primary);
  --brand-700: var(--accent-strong);
  --pos: var(--success);
  --neg: var(--danger);
  --warn: var(--warning);
  --ink-600: var(--text-muted);
  --page-inset: 28px;
}

html.dark,
body.dark {
  color-scheme: dark;
  --mix-lift: #000000; /* escurece superfície no tema escuro */
  --bg-main: #0b1617;
  --surface: #122022;
  --surface-soft: #163033;
  --line: #5a7d80;
  --text: #e7f4f5;
  --text-muted: #9bb5b7;
  --sidebar-bg: #061112;
  --header: #163033;
  --success: #81c784;
  --danger: #e57373;
  --warning: #ffb74d;
  --ink-2: #cfe3e4;
  --ink-3: #9bb5b7;
  --ink-4: #8aa3a5;
  --chart-grid: #5a7d80;
  --overlay: rgba(0, 0, 0, 0.64);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lift: 0 16px 34px rgba(0, 0, 0, 0.52);
  --card: var(--surface);
  --border: var(--line);
  --surface-alt: var(--surface-soft);
  --pos: var(--success);
  --neg: var(--danger);
  --warn: var(--warning);
  --ink-600: var(--text-muted);
  --brand-900: var(--sidebar-bg);
  --skeleton-base: color-mix(in srgb, var(--surface) 82%, var(--mix-lift));
  --skeleton-sheen: color-mix(in srgb, var(--surface-soft) 70%, var(--line));
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.app {
  display: block;
  min-height: 100vh;
}

.main {
  min-width: 0;
  margin-left: 264px;
  width: calc(100% - 264px);
  max-width: calc(100% - 264px);
  overflow-x: hidden;
  transition: margin-left 250ms ease, width 250ms ease, max-width 250ms ease;
}

body.sidebar-collapsed .main {
  margin-left: 76px;
  width: calc(100% - 76px);
  max-width: calc(100% - 76px);
}

.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--page-inset);
  min-width: 0;
}

.glass-card {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--mix-lift));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 264px;
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--text-on-dark);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: width 250ms ease;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 30;
}

body.sidebar-collapsed .sidebar {
  width: 76px;
}

body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .logo-brand-caption,
body.sidebar-collapsed .userMeta,
body.sidebar-collapsed .logout-label,
body.sidebar-collapsed .sidebar-toggle-label,
body.sidebar-collapsed .nav-group-label {
  display: none;
}

body.sidebar-collapsed .navItem {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .btn-danger {
  justify-content: center;
  padding: 0;
}

#sidebarToggle {
  width: 100%;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(190, 226, 234, 0.28);
  color: var(--text-on-dark);
}

#sidebarToggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(190, 226, 234, 0.45);
  color: #fff;
}

body.sidebar-collapsed #sidebarToggle {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .userCard {
  justify-content: center;
  padding: 10px 0;
}

body.sidebar-collapsed .logo-brand {
  display: none;
}

body.sidebar-collapsed .sidebarLogoImg--collapsed {
  display: grid;
}

body:not(.sidebar-collapsed) .sidebarLogoImg--expanded {
  display: block;
}

body:not(.sidebar-collapsed) .sidebarLogoImg--collapsed {
  display: none;
}

.sidebar-top {
  display: grid;
  gap: 14px;
}

.logo-brand {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(190, 226, 234, 0.25);
  border-radius: var(--r-md);
  padding: 16px;
}

.logo-brand-word {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.logo-brand-accent {
  color: var(--secondary);
}

.logo-brand-suffix {
  color: var(--accent);
  font-weight: 500;
}

.logo-brand-caption {
  display: block;
  margin-top: 5px;
  color: #d0eaee;
  font-size: 0.75rem;
}

.sidebarLogoImg--collapsed {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(190, 226, 234, 0.28);
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-group-label {
  margin: 8px 10px 2px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb0b3;
}

.navItem {
  position: relative;
  border-radius: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #c2dddf;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 250ms ease;
}

.navItem svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
  flex-shrink: 0;
}

.nav-label {
  white-space: nowrap;
}

.navItem:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.navItem[data-active="true"] {
  background: var(--primary);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.navItem[data-active="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: #dffeff;
  box-shadow: 0 0 18px rgba(223, 254, 255, 0.9);
}

.nav-status-dot {
  display: none;
}

.dot-green {
  background: #33c877;
}

.dot-amber {
  background: #e8b330;
}

.dot-red {
  background: #ec6161;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.userCard {
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.83rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--sidebar-bg);
}

.userMeta small {
  color: #aad2d5;
  font-size: 0.68rem;
  display: block;
}

.userMeta span {
  color: #f2fbfc;
  font-size: 0.8rem;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__inner {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--page-inset);
  min-width: 0;
}

.titleWrap {
  min-width: 0;
  flex: 1 1 240px;
  padding: 2px 8px 2px 0;
}

.titleWrap .pageTitle {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pageSub {
  margin-top: 8px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill {
  height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--accent) 42%, var(--mix-lift));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--line));
  font-size: 0.76rem;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 280px;
}

.profile-menu {
  position: relative;
}

.profile-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(78vh, 640px);
  overflow: auto;
}

.profile-menu__dropdown[hidden] {
  display: none !important;
}

.profile-menu__profile .profile-panel {
  padding: 8px 8px 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-menu__profile .profile-panel h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.profile-menu__profile .profile-panel p {
  margin: 0 0 4px;
}

.profile-menu__profile .loginForm {
  margin-top: 10px;
}

.profile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.profile-menu__item {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.profile-menu__item:hover {
  background: var(--surface-alt, #f3f7f8);
  transform: none;
}

.profile-menu__item--primary {
  background: linear-gradient(135deg, var(--primary), #00857f);
  color: var(--action-text);
}

.profile-menu__item--primary:hover {
  background: linear-gradient(135deg, var(--primary), #00857f);
  filter: brightness(1.05);
}

.profile-menu__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-menu__icon svg,
.profile-menu__item svg {
  width: 16px;
  height: 16px;
}

.profile-menu__alerts {
  padding: 8px 8px 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.profile-menu__alerts[hidden] {
  display: none !important;
}

.btn {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 250ms ease;
  white-space: nowrap;
}

.btn svg,
.btn i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #00857f);
  color: var(--action-text);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
}

.btn-danger {
  color: #fff;
  background: rgba(220, 72, 72, 0.32);
  border-color: rgba(253, 162, 162, 0.5);
}

.filters {
  margin: 14px var(--page-inset) 0;
  min-width: 0;
  max-width: 100%;
}

.filters__inner {
  padding: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.fieldRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.filters .field {
  flex: 1 1 168px;
  max-width: 220px;
}

.filters .field--action {
  flex: 0 1 168px;
  max-width: 180px;
}

body.route-relatorios .filters,
body.route-indicadores .filters,
body.route-integracoes .filters,
body.route-usuarios .filters,
body.route-configuracoes .filters,
body.route-staff .filters {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.table-search-input,
.filter-select {
  min-height: 40px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

input,
select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--primary);
}

.field--action .btn {
  width: 100%;
  justify-content: center;
}

.field--check .checkInline {
  min-height: 40px;
}

input:focus,
select:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

.content {
  padding: 22px var(--page-inset) 32px;
  min-width: 0;
  overflow-x: hidden;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0 10px;
}

.tabs {
  display: none !important;
}

.agingStrip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.agingCell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface-alt, var(--surface));
}
.agingCell:hover {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
}
.agingCell:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.agingCell-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.agingCell-check {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--accent-strong);
}
.agingCell-value {
  font-size: 0.92rem;
}
.agingCell-value.is-zero {
  color: var(--text-muted);
  font-weight: 500;
}
.agingCell--warn .agingCell-value:not(.is-zero) { color: var(--warn); }
.agingCell--risk .agingCell-value:not(.is-zero) { color: var(--neg); }
.agingCell.is-selected {
  border-width: 2px;
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 38%, var(--surface));
  padding: 7px 9px;
}
.agingFilterBar {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  font-size: 0.82rem;
}
.agingFilterBar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.agingFilterBar-note {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.rankingList .table th,
.rankingList .table td {
  height: 34px;
  padding: 0 12px;
  vertical-align: middle;
  box-sizing: border-box;
}
.rankingList .table td {
  font-size: 13px;
}
@media (max-width: 900px) {
  .agingStrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tabBtn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.tabBtn.is-active {
  background: color-mix(in srgb, var(--accent) 55%, var(--mix-lift));
  color: var(--text);
  border-color: var(--line);
}

#globalFeedbackBar {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 0.86rem;
}

#globalFeedbackBar:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

body:not(.route-dashboard) #innovationDeck {
  display: none;
}

body.route-relatorios #loadDataBtn,
body.route-indicadores #loadDataBtn,
body.route-integracoes #loadDataBtn,
body.route-usuarios #loadDataBtn,
body.route-configuracoes #loadDataBtn,
body.route-staff #loadDataBtn,
body.route-relatorios #syncOmieBtn,
body.route-indicadores #syncOmieBtn,
body.route-usuarios #syncOmieBtn,
body.route-configuracoes #syncOmieBtn,
body.route-staff #syncOmieBtn {
  display: none;
}

.breadcrumb-sep[hidden],
#breadcrumbSection[hidden] {
  display: none;
}

#globalFeedbackBar.text-success,
#loginMessage.text-success {
  color: var(--success);
}

#globalFeedbackBar.text-error,
#loginMessage.text-error {
  color: var(--danger);
}

.status-bar {
  margin-bottom: 16px;
  padding: 12px 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.status-bar__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.status-bar__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.status-bar__hint {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.status-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-link:hover {
  color: var(--primary);
}

.sectionHeader {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sectionHeader h2 {
  font-size: 1.04rem;
}

.sectionHeader p {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.86rem;
}

.grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.grid > * {
  min-width: 0;
}

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

.grid.twoCol {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

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

.grid.thirdRow {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

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

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

.grid.twoCol:has(> .hidden),
.grid.tableTwoCol:has(> .hidden),
body.route-fluxo .grid.twoCol,
body.route-receber .grid.tableTwoCol,
body.route-pagar .grid.tableTwoCol {
  grid-template-columns: minmax(0, 1fr);
}

.kpiStrip {
  display: grid;
  gap: 10px;
  min-width: 0;
}

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

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

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

.kpi,
.card {
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--mix-lift));
  box-shadow: var(--shadow-soft);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.kpi:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.kpi {
  padding: 14px;
}

.kpiTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpiLabel {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
}

.kpiValue {
  margin-top: 8px;
  font-size: 1.26rem;
  font-weight: 700;
}

.card-value.opacity-0 {
  opacity: 0;
}

.card-skeleton {
  margin-top: 8px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--skeleton-base) 20%, var(--skeleton-sheen) 50%, var(--skeleton-base) 80%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.kpiFoot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.kpiDelta {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.sparkline {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  min-height: 26px;
}

.sparklineChart {
  display: block;
  width: 100%;
  height: 26px;
}

.sparklineChart svg {
  display: block;
}

.kpiIconCircle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 63%, var(--mix-lift));
  color: var(--ink-2);
}

.kpiIconCircle svg {
  width: 18px;
  height: 18px;
}

.card {
  padding: 16px;
}

.cardHeaderRow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cardTitle {
  font-weight: 700;
  font-size: 0.95rem;
}

.cardSub {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.8rem;
}

.chartBox {
  height: 280px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: color-mix(in srgb, var(--surface) 90%, var(--accent));
  overflow: hidden;
}

.chartCanvas,
.chartCanvas canvas,
.chartBox canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}

.gaugeWrap {
  display: grid;
  place-items: center;
  gap: 10px;
  margin-top: 6px;
}

.gauge {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg 252deg, var(--line) 252deg 360deg);
  position: relative;
}

.gauge::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.gaugeValue {
  position: absolute;
  font-size: 1.2rem;
  font-weight: 700;
}

.progressItem {
  display: grid;
  gap: 6px;
}

.progressHead {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.progressTrack {
  height: 9px;
  border-radius: 999px;
  background: #e7f1f3;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.tableWrap {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
}

.table-scroll-x {
  overflow-x: auto;
  max-width: 100%;
}

.dre-table,
.resumo-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
  max-width: none;
}

.dre-table {
  min-width: 2920px;
}

.resumo-table {
  min-width: 1520px;
}

.dre-table th,
.dre-table td,
.resumo-table th,
.resumo-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, var(--mix-lift));
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap;
}

.dre-th-account,
.resumo-th-account,
.dre-td-label,
.resumo-label {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  background: var(--surface);
  text-align: left;
  font-weight: 600;
  color: var(--text);
  box-shadow: 8px 0 10px -8px rgba(1, 40, 37, 0.18);
}

.dre-th-account,
.resumo-th-account {
  z-index: 4;
  background: var(--surface-soft);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.dre-td-label--strong,
.resumo-label--strong {
  font-weight: 700;
}

.dre-row--strong td,
.resumo-row:last-child td {
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--mix-lift));
}

.dre-row--strong .dre-td-label,
.resumo-row:last-child .resumo-label {
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--mix-lift));
}

.dre-th-month,
.resumo-th-month {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-soft);
}

.dre-th-month {
  width: 226px;
}

.resumo-th-month,
.resumo-cell {
  width: 108px;
  min-width: 108px;
}

.dre-th-sub {
  text-align: center;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-soft) 55%, var(--mix-lift));
}

.dre-col-valor { width: 110px; }
.dre-col-pct { width: 58px; }

.dre-td--value,
.dre-td--av,
.dre-td--ah,
.resumo-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dre-val,
.dre-ah,
.resumo-cell-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.dre-val--zero,
.dre-ah--muted,
.resumo-cell--muted {
  color: var(--text-muted);
}

.dre-val--neg,
.dre-ah--down,
.resumo-cell--neg {
  color: var(--neg);
}

.dre-val--pos,
.dre-ah--up,
.resumo-cell--pos {
  color: var(--pos);
}

.dre-val__icon,
.resumo-cell-icon {
  display: inline;
  font-size: 0.62rem;
  line-height: 1;
}

.table-toolbar {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-toolbar-spacer {
  flex: 1;
}

.table-export-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
}

.table-search-input {
  min-width: 0;
  flex: 1 1 160px;
}

.table,
.table-compact {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td,
.table-compact th,
.table-compact td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, var(--mix-lift));
  font-size: 0.84rem;
}

.table th,
.table-compact th {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.69rem;
}

.table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 33%, var(--mix-lift));
}

.num,
.table-mono {
  font-variant-numeric: tabular-nums;
}

.num {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge--recebido {
  background: color-mix(in srgb, var(--success) 16%, var(--surface));
  color: var(--success);
}

.badge--a-vencer,
.badge--vence-hoje {
  background: color-mix(in srgb, var(--warning) 16%, var(--surface));
  color: #8f6406;
}

.badge--vencido {
  background: color-mix(in srgb, var(--danger) 16%, var(--surface));
  color: var(--danger);
}

.badge--neutro {
  background: color-mix(in srgb, var(--text-muted) 16%, var(--surface));
  color: var(--text-muted);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timelineItem {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.timelineIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 63%, var(--mix-lift));
  color: var(--ink-2);
}

.timelineMeta {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.insightsStack {
  display: grid;
  gap: 10px;
}

.insightCard {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--surface));
  font-size: 0.84rem;
}

#cacheIndicator {
  min-height: 24px;
}

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

.cache-chip--cached {
  background: color-mix(in srgb, var(--warning) 18%, var(--surface));
  color: var(--warning);
}

.cache-chip--fresh {
  background: color-mix(in srgb, var(--success) 18%, var(--surface));
  color: var(--success);
}

.cache-chip__icon {
  width: 12px;
  height: 12px;
}

.table-pagination {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-btn {
  min-width: 32px;
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.page-btn.active {
  background: var(--primary);
  color: var(--action-text);
  border-color: transparent;
}

.empty,
.emptyState,
.table-empty-message {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 24px;
  background: var(--overlay);
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.modal-total {
  padding: 12px 16px;
  text-align: right;
  font-weight: 700;
}

#loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  place-items: center;
  background: var(--overlay);
}

#loadingOverlay.isOn {
  display: grid;
}

.loadingCard {
  width: min(290px, 100%);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow-lift);
}

.loadingBar {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}

.loadingBar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  animation: loadingMove 1.1s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes loadingMove {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(300%);
  }
}

#loginView {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.loginCol-left {
  background: var(--sidebar-bg);
  color: var(--text-on-dark);
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 64px);
}

.loginBrand {
  max-width: 460px;
  display: grid;
  gap: 20px;
}

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

.loginBullets li {
  display: flex;
  gap: 10px;
  color: var(--text-muted-on-dark);
}

.loginCol-right {
  background: var(--bg-main);
  display: grid;
  place-items: center;
  padding: 20px;
}

.loginCard {
  width: min(430px, 100%);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

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

.loginBadge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 58%, var(--mix-lift));
  display: grid;
  place-items: center;
}

.loginForm {
  display: grid;
  gap: 12px;
}

.loginForm input,
.loginForm select {
  width: 100%;
  min-width: 0;
}

.loginForm .btn {
  width: 100%;
  justify-content: center;
}

.loginForm .btn--primary {
  background: var(--secondary);
  color: var(--brand-900, #012825);
}

.loginEnvHint {
  margin: 0;
  color: var(--text-muted-on-dark);
  font-size: 0.85rem;
}

.checkInline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-height: 40px;
}


.detailModal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}

.detailModal:not(.hidden) {
  display: block;
}

.detailModal__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.detailModal__card {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 48px auto 0;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.detailModal__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}

.detailModal__body {
  max-height: 65vh;
  overflow: auto;
  padding: 16px;
}

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

.detail-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.detail-value {
  margin-top: 4px;
  font-size: 0.87rem;
}

.toastStack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1600px) {
  .grid.kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpiStrip--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .grid.twoCol,
  .grid.tableTwoCol,
  .grid.thirdRow,
  .grid.fourthRow,
  .grid.fifthRow {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpiStrip--5,
  .kpiStrip--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sidebar {
    transform: translateX(-110%);
    width: 280px;
    max-width: 85vw;
    z-index: 50;
    transition: transform 250ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-collapsed .sidebar {
    width: 280px;
  }

  #mobileSidebarToggle {
    display: inline-flex !important;
  }

  #loginView {
    grid-template-columns: 1fr;
    overflow: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --page-inset: 16px;
  }

  .container {
    padding: 0 var(--page-inset);
  }

  .topbar__inner {
    padding: 12px var(--page-inset);
  }

  .content {
    padding: 16px var(--page-inset) 24px;
  }

  .filters {
    margin: 12px var(--page-inset) 0;
  }

  .grid.kpis,
  .kpiStrip--2,
  .kpiStrip--3,
  .kpiStrip--5 {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Integracoes e estado vazio
   ========================================================================== */

.int-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.int-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
}

.int-titulo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.int-sub {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.int-when-abs {
  color: var(--text-muted);
  font-weight: 400;
}

.int-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
}

.int-banner p {
  margin: 0;
}

.int-banner__icon {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 1px;
}

.int-banner--mock {
  background: color-mix(in srgb, var(--warning) 14%, var(--card));
}

.int-banner--mock .int-banner__icon {
  color: var(--warning);
}

.int-banner--unknown {
  background: var(--surface-alt);
}

.int-banner--unknown .int-banner__icon {
  color: var(--text-muted);
}

.int-empty-status {
  margin: 0;
  padding: 16px 20px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  text-align: left;
}

.int-empty-status__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.int-empty-status__body {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.int-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px 20px;
}

.int-entity-picker {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  min-inline-size: 0;
  width: 100%;
}

.int-entity-picker legend {
  float: none;
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.int-entity-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.int-entity-picker__help {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.int-btn-sync {
  background: var(--action-bg);
  color: var(--action-text);
  border: 0;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 250ms ease, transform 250ms ease;
}

.int-btn-sync:hover {
  filter: brightness(0.95);
}

.int-btn-sync:active {
  transform: scale(0.98);
}

.int-btn-sync[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.int-tabela-wrap {
  overflow-x: auto;
}

.int-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.int-caption {
  caption-side: top;
  text-align: left;
  padding: 0 20px 12px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 78ch;
}

.int-th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.int-td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.int-row--focus > .int-td {
  background: color-mix(in srgb, var(--primary) 14%, var(--mix-lift));
}

.int-nome {
  font-weight: 700;
  white-space: nowrap;
}

.int-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.int-acao {
  text-align: right;
}

.int-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.int-btn-detalhe {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-700);
  cursor: pointer;
  transition: background 250ms ease;
}

.int-btn-detalhe:hover {
  background: var(--surface-alt);
}

.int-pre {
  margin: 0;
  padding: 12px;
  background: var(--surface-alt);
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

.int-nota {
  margin: 0;
  padding: 14px 20px 18px;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 78ch;
}

.int-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.int-vazio {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 28px;
  max-width: 68ch;
}

.int-vazio-marca {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--brand-600);
  font-size: 1.125rem;
  margin-bottom: 14px;
}

.int-vazio-texto {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.int-vazio-bloqueio,
.int-vazio-ok {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.int-vazio-bloqueio {
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
  color: var(--text);
  border-left: 3px solid var(--warn);
}

.int-vazio-ok {
  background: var(--surface-alt);
  color: var(--text);
  border-left: 3px solid var(--brand-600);
}

@media (max-width: 720px) {
  .int-caption {
    padding-inline: 16px;
  }

  .int-head,
  .int-banner,
  .int-empty-status,
  .int-actions {
    padding-inline: 16px;
  }

  .int-vazio {
    padding: 28px 20px;
  }
}

/* Tabs */
.tab-panel-hidden { display: none !important; }
.insightCard--empty { opacity: 0.75; font-style: italic; }
.progressItem.is-empty-meta { opacity: 0.65; }
.alert-action {
  margin-top: 4px;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--primary, #009d94);
  font-weight: 600;
}
@media print {
  .sidebar, .topbar, .filters, .tabs, .topbar-actions, #loginView { display: none !important; }
  .main, .content, #standaloneRoutePanel, #page-resumo { display: block !important; width: 100% !important; }
}

.sync-topbar-progress {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sync-topbar-progress.is-active { color: var(--primary); }
body.sync-running #syncOmieBtn { opacity: 0.7; }
.nav-group-label {
  margin: 14px 12px 6px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark, #9bb5b7);
  opacity: 0.85;
}
