:root {
  --bg: #f6f4eb;
  --card: #ffffff;
  --text: #111111;
  --muted: #525252;
  --primary: #111111;
  --primary-strong: #000000;
  --border: #ded8c7;
  --accent: #f4c21d;
  --accent-strong: #d4a700;
  --accent-soft: #fff2b8;
}

.overview-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.overview-card { display:flex; min-height:190px; flex-direction:column; color:inherit; text-decoration:none; transition:transform .16s ease, border-color .16s ease; }
.overview-card:hover { transform:translateY(-2px); border-color:var(--accent-strong); }
.overview-card h3 { margin:8px 0; }
.overview-card p:not(.card-kicker) { color:var(--muted); line-height:1.5; }
.overview-card span { margin-top:auto; color:var(--accent-strong); font-weight:700; }
.overview-empty { max-width:620px; }
html.theme-dark .overview-card p:not(.card-kicker) { color:#b8b8b8; }


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.top-right-actions {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-right-actions form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.back-video {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1; /* Coloca o vídeo atrás do conteúdo */
  object-fit: cover; /* Ajusta o vídeo para cobrir a área */
  opacity: 65%;
}

.content {
  position: relative;
  z-index: 1; /* Garante que o texto fique na frente */
  
}

.login-page {
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 194, 29, 0.18), transparent 28%),
    linear-gradient(180deg, #111111 0%, #050505 100%);
}

.login-page .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page .content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-page .auth-card {
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(8px);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(244, 194, 29, 0.28);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: #fff;
}

h1, h2, h3 {
  display: flex;
  justify-content: center;
  margin-top: 0;
}
.nova-mov{
  display: flex;
  justify-content: left;
  margin-top: 8px;
}

p, li, label {
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 5px 0;
}

input{
  max-width: 150px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
}

.item_table{
  border: 1px var(--border);
}

select, textarea {
  max-width: 150px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 3px;
}

button {
  background: var(--primary);
  color: #fff;
  border: 1px;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.active-company-banner {
  margin: 0 0 12px;
  font-size: 15px;
}

.company-empty-state {
  margin-top: 18px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.edit-tooltip {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 85vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  z-index: 2200;
  padding: 14px;
}

.edit-tooltip[hidden] {
  display: none !important;
}

.edit-form {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

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

.edit-grid label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 13px;
  gap: 4px;
}

.edit-grid input,
.edit-grid select {
  width: 100%;
  max-width: none;
}

.edit-complemento {
  grid-column: 1 / -1;
}

.edit-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 37, 0.38);
  backdrop-filter: blur(2px);
  z-index: 2100;
}

.context-menu-hint {
  margin: 12px 0 0;
  color: var(--muted);
}

.transaction-row.has-context-menu {
  cursor: context-menu;
}

.transaction-row.has-context-menu:hover {
  background: rgba(44, 65, 63, 0.06);
}

.context-menu {
  position: fixed;
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  padding: 6px;
  z-index: 2300;
}

.context-menu[hidden] {
  display: none !important;
}

.context-menu-action {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.context-menu-action:hover {
  background: rgba(44, 65, 63, 0.1);
}

.context-menu-action.danger {
  color: #8b1e1e;
}

.company-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 41, 51, 0.46);
  backdrop-filter: blur(4px);
  z-index: 2400;
  padding: 24px;
}

.company-overlay-card {
  width: min(460px, 100%);
  background: linear-gradient(160deg, #ffffff 0%, #eef3f6 100%);
  border: 1px solid rgba(44, 65, 63, 0.18);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.company-overlay-card h2,
.company-overlay-card p {
  justify-content: flex-start;
  text-align: left;
}

.company-overlay-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
}

.company-overlay-form select,
.company-overlay-form button {
  max-width: none;
  width: 100%;
}
/* Form de criar nova movimentação */
.create{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 5px 0;
  width: 25%;
  justify-content: center;
}

.create-stack {
  width: 25%;
}

.create-stack .create {
  width: 100%;
}

.transferencia-title {
  margin-top: 12px;
}


/* Hover genérico legado: fora das telas internas. Nos módulos ele pintava de
   amarelo (--primary-strong do tema escuro) todo botão sem hover próprio. */
:where(body:not(.dashboard-page)) button:hover {
  background: var(--primary-strong);
}
/* TABELA */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  

}
.inferior{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.relatorio {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  width: 75%;
}

.relatorio h3 {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.relatorio p {
  margin: 0;
}

.relatorio-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.relatorio-table th,
.relatorio-table td {
  border: 1px solid var(--border);
  padding: 6px;
  text-align: left;
}

.exportacoes {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.exportacoes-descricao {
  margin-bottom: 10px;
  color: var(--muted);
}

.exportacoes-controles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.export-form {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.btn-export {
  min-width: 125px;
}

@media (max-width: 960px) {
  body {
    padding: 16px;
  }

  .inferior {
    flex-direction: column;
  }

  .create-stack,
  .relatorio,
  .create {
    width: 100%;
  }

  .filters-form {
    align-items: flex-start;
  }

  .filters-form input,
  .filters-form select {
    max-width: none;
    width: 100%;
  }

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

.export-layout {
  min-width: 150px;
}

@media (max-width: 900px) {
  .inferior {
    flex-direction: column;
  }

  .create,
  .create-stack,
  .relatorio {
    width: 100%;
  }

  .edit-grid {
    grid-template-columns: 1fr;
  }
}
/* Cabeçalho da Tabela */
th {
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: center;
}

tbody tr:nth-child(even) {
  background-color: #e2e2e2; /* Cor nas linhas pares */
}

tbody tr:nth-child(odd) {
  background-color: #ffffff; /* Cor nas linhas ímpares */
}

/* Efeito ao passar o mouse */
tbody tr:hover {
  background-color: #d1e7dd;
}

/* Itens da Tabela */
tbody td {
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: center;

}
/* FIM TABELA */
ul {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
}

.cadastro-list > li {
  margin-bottom: 6px;
}

.cadastro-list form {
  margin: 2px 0;
  padding: 8px 10px;
}

.cadastro-edit-form,
.cadastro-delete-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.auth-card {
  max-width: 460px;
  
}

/* A tela 403 (permission_denied.html) usa access-denied.css. */

.form_button{
  padding: 12px;
  margin: 5px 0;
  display: inline-flex;
  align-items: center;
  text-align: center;
}
.aviso{
  background-color: yellow;
}

/* Rodapé */
.main-footer {
    background-color: #bcbcbc; /* Cor de fundo escura */
    color: #fff; /* Cor do texto branca */
    text-align: center;
    padding: 1px;
    margin-top: auto; /* Empurra o footer para baixo em layouts flex */
    width: 100%;
    height: auto;
    margin-bottom: 1px;
}
.main-footer p{
  margin-top: 1px;
  margin-bottom: 1px;
}

.social-links a {
    color: #fff;
    margin-top: 1px;
    margin: 0 10px;
    text-decoration: none;
}
.login-page .logo-login {
  display: block;
  margin: 0 auto 12px;
  width: 80%;
}

/* Dashboard shell */
.dashboard-page {
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 194, 29, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f5ee 0%, #efede3 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

.dashboard-page.modal-open {
  overflow: hidden;
}

.dashboard-page .dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  align-items: start;
}

.dashboard-page .dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 20px 16px;
  background: linear-gradient(180deg, #111111 0%, #050505 100%);
  border-right: 1px solid rgba(244, 194, 29, 0.18);
  backdrop-filter: blur(14px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.18s ease, padding 0.22s ease, border-color 0.22s ease, max-height 0.22s ease;
}

.dashboard-page .dashboard-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dashboard-page .sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-page.company-admin-page .sidebar-head {
  gap: 12px;
  align-items: center;
}

.dashboard-page.company-admin-page .sidebar-brand {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
}

.dashboard-page.company-admin-page .sidebar-brand > div:last-child {
  min-width: 0;
}

.dashboard-page.company-admin-page .sidebar-brand h1 {
  max-width: 100%;
  white-space: normal;
  line-height: 1.02;
}

.dashboard-page.company-admin-page .sidebar-toggle-inline {
  flex: 0 0 auto;
  margin-left: auto;
  background: transparent;
  color: #FAD32B;
  border: 0;
  box-shadow: none;
  padding: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

.dashboard-page.cadastro-page .sidebar-toggle-inline {
  flex: 0 0 auto;
  margin-left: auto;
  background: transparent;
  color: #FAD32B;
  border: 0;
  box-shadow: none;
  padding: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

.dashboard-page.company-admin-page .dashboard-topbar h2 {
  color: #111111;
}

.dashboard-page.company-admin-page .dashboard-topbar .primary-cta {
  border-radius: 12px;
}

.dashboard-page.company-admin-page .dashboard-topbar .page-kicker,
.dashboard-page.company-admin-page .dashboard-topbar .page-subtitle {
  color: #525252;
}

html.theme-dark .dashboard-page.company-admin-page .dashboard-topbar h2 {
  color: #ffffff;
}

html.theme-dark .dashboard-page.company-admin-page .dashboard-topbar .page-subtitle {
  color: #b5bdcc;
}

.dashboard-page.associados-page .sidebar-toggle-inline {
  background: transparent;
  color: #FAD32B;
  border: 0;
  box-shadow: none;
}

.dashboard-page.associados-page .sidebar-toggle-inline:hover,
.dashboard-page.associados-page .sidebar-toggle-inline:focus-visible {
  background: transparent;
  color: #FAD32B;
  box-shadow: none;
}

.dashboard-page .sidebar-backdrop {
  display: none;
}

.dashboard-page .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-page.sidebar-collapsed .dashboard-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.dashboard-page.sidebar-collapsed .dashboard-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

.dashboard-page .sidebar-brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.dashboard-page .sidebar-brand-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  content: url("/static/polls/logo_branca_sozinha.df3139e02445.png");
}

.dashboard-page .sidebar-eyebrow,
.dashboard-page .page-kicker,
.dashboard-page .card-kicker,
.dashboard-page .sidebar-nav-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9c9c9;
}

.dashboard-page .sidebar-brand h1,
.dashboard-page .dashboard-topbar h2 {
  margin: 4px 0 0;
  justify-content: flex-start;
  color: #ffffff;
}

.dashboard-page .content-card h3,
.dashboard-page .company-overlay-card h2 {
  margin: 4px 0 0;
  justify-content: flex-start;
  color: #111111;
  font-size: 18px;
  line-height: 1.15;
}

.dashboard-page .sidebar-brand h1 {
  font-size: 22px;
  line-height: 1.15;
}

.dashboard-page .dashboard-topbar h2 {
  font-size: 34px;
  line-height: 1.08;
}

/* Título escuro no tema claro; no escuro, `html.theme-dark .dashboard-page .dashboard-topbar h2` volta ao branco. */
.dashboard-page.cadastro-page .dashboard-topbar h2,
.dashboard-page.boletim-page .dashboard-topbar h2 {
  color: #111111;
}

.dashboard-page.cadastro-page .dashboard-topbar .page-kicker,
.dashboard-page.cadastro-page .dashboard-topbar .page-subtitle {
  color: #525252;
}

.dashboard-page.cadastro-page .cadastro-erp-topbar-title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0 0 4px;
}

.dashboard-page.cadastro-page .cadastro-erp-topbar-title-row h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.dashboard-page.cadastro-page .cadastro-erp-topbar-title-row .company-pill {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}

.dashboard-page.cadastro-page .cadastro-erp-topbar-title-row .company-pill-static {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 760px) {
  .dashboard-page.cadastro-page .cadastro-erp-topbar-title-row {
    flex-wrap: wrap;
  }
}

.dashboard-page.cadastro-page .cadastro-main {
  display: grid;
  gap: 18px;
}

.dashboard-page.cadastro-page .content-card,
.dashboard-page.cadastro-page .filters-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 236, 0.96) 100%);
  border-color: rgba(17, 17, 17, 0.09);
}

.dashboard-page.cadastro-page .content-card h3,
.dashboard-page.cadastro-page .card-kicker,
.dashboard-page.cadastro-page .records-count,
.dashboard-page.cadastro-page .stat-label,
.dashboard-page.cadastro-page .stat-meta,
.dashboard-page.cadastro-page .cadastro-field label,
.dashboard-page.cadastro-page .company-empty-state p {
  color: #111111;
}

.dashboard-page.cadastro-page .company-pill {
  background: rgba(244, 194, 29, 0.16);
  border-color: rgba(244, 194, 29, 0.28);
  color: #111111;
}

.dashboard-page.cadastro-page .company-pill.is-muted {
  background: rgba(17, 17, 17, 0.06);
  border-color: rgba(17, 17, 17, 0.08);
  color: #525252;
}

.dashboard-page.cadastro-page .cadastro-selector-card {
  padding: 18px 20px;
}

.dashboard-page.cadastro-page .cadastro-company-form {
  grid-template-columns: minmax(0, 1.1fr) auto;
  align-items: end;
}

.dashboard-page.cadastro-page .cadastro-company-form .filter-field label {
  color: #111111;
}

.dashboard-page.associados-page .dashboard-topbar {
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.dashboard-page.associados-page .dashboard-topbar > div:first-child {
  max-width: 720px;
}

.dashboard-page.associados-page .sidebar-brand-mark {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-page.associados-page .sidebar-brand-logo {
  width: 44px;
}

.dashboard-page.associados-page .dashboard-topbar h2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
  flex-wrap: wrap;
}

.dashboard-page.associados-page .associados-page-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.dashboard-page.associados-page .associados-title-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  color: #111111;
  box-shadow: 0 10px 18px rgba(244, 194, 29, 0.16);
  transform: translateY(1px);
}

.dashboard-page.associados-page .associados-title-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dashboard-page.associados-page .dashboard-topbar h2 .associados-title-main,
.dashboard-page.associados-page .dashboard-topbar h2 .associados-title-accent {
  display: inline-block;
}

.dashboard-page.associados-page .dashboard-topbar h2 .associados-title-main {
  max-width: 100%;
  margin-top: 0;
}

.dashboard-page.associados-page .dashboard-topbar h2 .associados-title-accent {
  color: #f4c21d;
  font-size: 0.95em;
  line-height: 1;
}

.dashboard-page.associados-page .company-pill {
  background: rgba(244, 194, 29, 0.22);
  border-color: rgba(244, 194, 29, 0.42);
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 201, 0.24);
}

.dashboard-page.associados-page .associado-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-page.associados-page .associado-status-ativo {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.34);
  color: #047857;
}

.dashboard-page.associados-page .associado-status-inativo,
.dashboard-page.associados-page .associado-status-bloqueado {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.34);
  color: #b42318;
}

.dashboard-page.associados-page .page-subtitle {
  max-width: 620px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.dashboard-page.associados-page .topbar-actions {
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
}

.dashboard-page.associados-page .topbar-actions .primary-cta,
.dashboard-page.associados-page .topbar-actions .secondary-action,
.dashboard-page.associados-page .topbar-actions .associados-icon-action {
  min-height: 48px;
}

.dashboard-page.associados-page .topbar-actions .secondary-action,
.dashboard-page.associados-page .topbar-actions .primary-cta {
  padding: 0 18px;
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  border-color: rgba(202, 166, 43, 0.28);
  color: #111111;
  box-shadow: 0 12px 24px rgba(244, 194, 29, 0.16);
}

.dashboard-page.associados-page .topbar-actions .secondary-action:hover,
.dashboard-page.associados-page .topbar-actions .primary-cta:hover {
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
  color: #111111;
}

.dashboard-page.associados-page .associados-import-template {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dashboard-page.associados-page .associados-icon-action {
  width: 48px;
  min-width: 48px;
  padding: 0;
  justify-content: center;
}

.dashboard-page.associados-page .associados-icon-action svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dashboard-page.associados-page .cadastro-selector-card {
  padding: 20px 22px;
  margin-bottom: 24px;
}

.dashboard-page.associados-page .cadastro-company-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.dashboard-page.associados-page .cadastro-company-form .filter-submit {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.dashboard-page.associados-page .cadastro-company-form .filter-submit .primary-action {
  width: min(260px, 100%);
  min-height: 44px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: none;
}

.dashboard-page.associados-page .cadastro-company-form .filter-submit .primary-action:hover,
.dashboard-page.associados-page .cadastro-company-form .filter-submit .primary-action:focus-visible {
  box-shadow: none;
}

.dashboard-page.associados-page .cadastro-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px !important;
  padding-top: 10px;
}

.dashboard-page.associados-page.cadastro-page .cadastro-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page.associados-page .cadastro-stats-grid .stat-card {
  min-height: 86px;
  padding: 12px 14px;
}

.dashboard-page.associados-page .cadastro-stats-grid .stat-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.dashboard-page.associados-page .cadastro-stats-grid .stat-value {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-page.associados-page .cadastro-stats-grid .stat-meta {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
  color: #525252;
}

.dashboard-page.associados-page .cadastro-stats-grid .stat-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.24), 0 8px 18px rgba(250, 211, 43, 0.16);
}

.dashboard-page.associados-page .cadastro-stats-grid .stat-icon svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.dashboard-page.associados-page .cadastro-stats-grid .stat-card:hover .stat-icon,
.dashboard-page.associados-page .cadastro-stats-grid .stat-card:focus-within .stat-icon {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.30), 0 10px 20px rgba(250, 211, 43, 0.22);
}

.dashboard-page.associados-page .associados-cta-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.dashboard-page.associados-page #lista-associados-card {
  margin-top: 4px;
  margin-bottom: 18px;
}

.dashboard-page.associados-page .associados-cta-card {
  padding: 22px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 248, 239, 0.96) 100%);
  border-color: rgba(244, 194, 29, 0.18);
}

.dashboard-page.associados-page .associados-cta-layout {
  display: flex;
  align-items: center;
  gap: 26px;
}

.dashboard-page.associados-page .associados-cta-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 4px;
}

.dashboard-page.associados-page .associados-cta-copy .page-subtitle {
  margin-top: 0;
}

.dashboard-page.associados-page .associados-cta-art {
  position: relative;
  flex: 0 0 152px;
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 28px;
}

.dashboard-page.associados-page .associados-cta-art::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 1px;
  background: rgba(17, 17, 17, 0.10);
}

.dashboard-page.associados-page .associados-cta-logo-shell {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(244, 194, 29, 0.28);
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 194, 29, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 248, 236, 0.99) 100%);
  box-shadow:
    0 0 0 2px rgba(244, 194, 29, 0.34),
    0 0 0 12px rgba(244, 194, 29, 0.10),
    0 0 30px rgba(244, 194, 29, 0.22);
}

.dashboard-page.associados-page .associados-cta-logo {
  width: 100px;
  height: 100px;
  display: block;
  object-fit: contain;
}

.dashboard-page.associados-page .associados-cta-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dashboard-page.associados-page .associados-inline-action-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dashboard-page.associados-page .associados-cta-actions .secondary-action,
.dashboard-page.associados-page .associados-cta-actions .associados-outline-action {
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
}

.dashboard-page.associados-page .associados-inline-action-form .secondary-action {
  width: 100%;
}

.dashboard-page.associados-page .associados-cta-actions .secondary-action {
  background: #1a1a1a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.dashboard-page.associados-page .associados-cta-actions .secondary-action:hover,
.dashboard-page.associados-page .associados-cta-actions .secondary-action:focus-visible {
  background: #222222;
  color: #ffffff;
}

.dashboard-page.associados-page .associados-outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(202, 166, 43, 0.34);
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  color: #111111;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(244, 194, 29, 0.20);
}

.dashboard-page.associados-page .associados-outline-action-icon {
  position: relative;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-size: 0;
  flex: 0 0 22px;
}

.dashboard-page.associados-page .associados-outline-action-icon::before,
.dashboard-page.associados-page .associados-outline-action-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.dashboard-page.associados-page .associados-outline-action-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

html.theme-dark .dashboard-page.associados-page .associados-cta-card {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page.associados-page .associados-cta-art::after {
  background: rgba(255, 255, 255, 0.10);
}

html.theme-dark .dashboard-page.associados-page .associados-cta-logo-shell {
  border-color: rgba(244, 194, 29, 0.18);
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 194, 29, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(8, 8, 8, 0.99) 100%);
  box-shadow:
    0 0 0 2px rgba(244, 194, 29, 0.22),
    0 0 0 12px rgba(244, 194, 29, 0.08),
    0 0 38px rgba(244, 194, 29, 0.26);
}

html.theme-dark .dashboard-page.associados-page .associados-outline-action {
  color: #f4c21d;
  border-color: rgba(244, 194, 29, 0.60);
  background: transparent;
  box-shadow: none;
}

.dashboard-page.associados-page .associados-outline-action:hover,
.dashboard-page.associados-page .associados-outline-action:focus-visible {
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
  color: #111111;
  box-shadow: 0 14px 28px rgba(244, 194, 29, 0.26);
}

html.theme-dark .dashboard-page.associados-page .associados-outline-action:hover,
html.theme-dark .dashboard-page.associados-page .associados-outline-action:focus-visible {
  background: rgba(244, 194, 29, 0.10);
  color: #f4c21d;
  box-shadow: none;
}

html.theme-dark .dashboard-page.associados-page .associados-cta-actions .secondary-action {
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  border-color: rgba(202, 166, 43, 0.32);
  color: #111111;
  box-shadow: 0 12px 24px rgba(244, 194, 29, 0.16);
}

html.theme-dark .dashboard-page.associados-page .associados-cta-actions .secondary-action:hover,
html.theme-dark .dashboard-page.associados-page .associados-cta-actions .secondary-action:focus-visible {
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
  color: #111111;
  border-color: rgba(202, 166, 43, 0.36);
}

.dashboard-page.associados-page .dashboard-table {
  min-width: 1120px;
}

.dashboard-page.associados-page .dashboard-table .col-date {
  width: 96px;
  min-width: 96px;
}

.dashboard-page.associados-page .dashboard-table .col-description {
  width: 31%;
}

.dashboard-page.associados-page .dashboard-table .col-cpf {
  width: 130px;
  min-width: 130px;
}

.dashboard-page.associados-page .dashboard-table .col-holder {
  width: 11%;
  min-width: 126px;
}

.dashboard-page.associados-page .dashboard-table .col-amount {
  width: 140px;
  min-width: 140px;
  white-space: nowrap;
}

.dashboard-page.associados-page .dashboard-table .col-account {
  width: 14%;
  min-width: 150px;
  overflow-wrap: anywhere;
}

.dashboard-page.associados-page .dashboard-table .col-actions {
  width: 128px;
  min-width: 128px;
  background: transparent;
}

.dashboard-page.associados-page .dashboard-table th,
.dashboard-page.associados-page .dashboard-table td {
  padding: 12px 10px;
}

.dashboard-page.associados-page .dashboard-table th.col-actions,
.dashboard-page.associados-page .dashboard-table td.col-actions {
  position: sticky;
  right: 0;
  z-index: 2;
  background: transparent;
}

.dashboard-page.associados-page .dashboard-table th.col-actions {
  z-index: 3;
  box-shadow: none;
}

.dashboard-page.associados-page .dashboard-table td.col-actions {
  box-shadow: none;
}

.dashboard-page.associados-page .dashboard-table td.col-actions .secondary-action {
  width: 100%;
}

.dashboard-page.associados-page .dashboard-table td strong,
.dashboard-page.associados-page .dashboard-table .table-subtext {
  overflow-wrap: anywhere;
}

.dashboard-page.associados-page .associado-billing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.dashboard-page.associados-page .associado-billing-indicator > span:last-child {
  white-space: nowrap;
}

.dashboard-page.associados-page .associado-billing-indicator.is-active {
  color: #15803d !important;
}

.dashboard-page.associados-page .associado-billing-indicator.is-inactive {
  color: #64748b;
}

.dashboard-page.associados-page .associado-billing-indicator-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  border: 1px solid currentColor;
}

.dashboard-page.associados-page .associado-billing-indicator-icon svg {
  width: 10px;
  height: 10px;
  display: block;
}

.dashboard-page.associados-page .dashboard-table td.col-actions {
  background: transparent;
}

.dashboard-page.associados-page .associados-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.dashboard-page.associados-page .associados-row-icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: none;
  text-decoration: none;
}

.dashboard-page.associados-page .associados-row-icon-action:hover,
.dashboard-page.associados-page .associados-row-icon-action:focus-visible {
  background: #f4c21d;
  color: #111111;
  border-color: rgba(202, 166, 43, 0.32);
}

.dashboard-page.associados-page .associados-row-icon-action svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-page.associados-page .associados-row-actions .associados-row-icon-action:last-child svg {
  transform: translateY(-0.5px);
}

.dashboard-page.associados-page .associado-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.dashboard-page.associados-page .associado-view-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-page.associados-page .associado-view-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-page.associados-page .associado-view-billing {
  display: inline-flex;
  align-items: center;
}

.dashboard-page.associados-page .associado-view-notes {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-page.associados-page .associado-view-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.dashboard-page.associados-page .associado-view-note-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-page.associados-page .associado-view-note-card p {
  margin: 0;
  color: #0f172a;
  line-height: 1.5;
}

.dashboard-page.cadastro-page .cadastro-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.dashboard-page.cadastro-page .cadastro-section-block {
  display: grid;
  gap: 14px;
}

.dashboard-page.cadastro-page .cadastro-section-heading {
  margin-bottom: 0;
}

.dashboard-page.cadastro-page .cadastro-stats-grid .stat-card {
  min-height: 108px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 247, 236, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.16);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.dashboard-page.cadastro-page .cadastro-stats-grid .stat-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.dashboard-page.cadastro-page .cadastro-stats-grid .stat-value {
  font-size: 24px;
  line-height: 1;
  margin-top: 2px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-page.cadastro-page .cadastro-stats-grid .stat-meta {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
  color: #5f5f5f;
}

.dashboard-page.cadastro-page .cadastro-stats-grid .stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 15px;
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.24), 0 10px 20px rgba(250, 211, 43, 0.16);
}

.dashboard-page.cadastro-page .cadastro-stats-grid .stat-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-page.cadastro-page .cadastro-stats-grid .stat-card:hover .stat-icon,
.dashboard-page.cadastro-page .cadastro-stats-grid .stat-card:focus-within .stat-icon {
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
}

.dashboard-page.cadastro-page .cadastro-main-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.dashboard-page.cadastro-page .cadastro-module-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 247, 236, 0.96) 100%);
  border-color: rgba(244, 194, 29, 0.16);
}

.dashboard-page.fiscal-hub-page .dashboard-main {
  display: grid;
  gap: 18px;
}

.dashboard-page .fiscal-import-tabs-stack {
  display: grid;
  gap: 10px;
}

.dashboard-page.fiscal-settings-page .dashboard-main {
  display: grid;
  gap: 18px;
}

.dashboard-page.fiscal-settings-page .fiscal-readiness-card {
  padding: 22px;
  border-color: rgba(244, 194, 29, 0.25);
  background: radial-gradient(circle at 100% 0%, rgba(250, 211, 43, 0.16), transparent 34%), linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 240, 0.95));
}

.dashboard-page.fiscal-settings-page .fiscal-readiness-heading,
.dashboard-page.fiscal-settings-page .fiscal-settings-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-page.fiscal-settings-page .fiscal-readiness-heading h3,
.dashboard-page.fiscal-settings-page .fiscal-settings-card-heading h3 { margin: 2px 0 5px; }

.dashboard-page.fiscal-settings-page .fiscal-readiness-total,
.dashboard-page.fiscal-settings-page .fiscal-section-tag {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(202, 138, 4, 0.26);
  border-radius: 999px;
  background: rgba(250, 211, 43, 0.17);
  color: #805d00;
  font-size: 0.79rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-page.fiscal-settings-page .fiscal-readiness-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.dashboard-page.fiscal-settings-page .fiscal-readiness-item {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  text-decoration: none;
}

.dashboard-page.fiscal-settings-page .fiscal-readiness-item:hover,
.dashboard-page.fiscal-settings-page .fiscal-readiness-item:focus-visible { transform: translateY(-1px); border-color: rgba(202, 138, 4, 0.45); }

.dashboard-page.fiscal-settings-page .fiscal-readiness-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.dashboard-page.fiscal-settings-page .fiscal-readiness-item.is-ready .fiscal-readiness-icon { background: #dcfce7; color: #15803d; }
.dashboard-page.fiscal-settings-page .fiscal-readiness-item.is-pending .fiscal-readiness-icon { background: #fef3c7; color: #a16207; }
.dashboard-page.fiscal-settings-page .fiscal-readiness-item strong,
.dashboard-page.fiscal-settings-page .fiscal-readiness-item small { display: block; }
.dashboard-page.fiscal-settings-page .fiscal-readiness-item strong { font-size: 0.82rem; }
.dashboard-page.fiscal-settings-page .fiscal-readiness-item small,
.dashboard-page.fiscal-settings-page .fiscal-readiness-note { color: #64748b; font-size: 0.74rem; line-height: 1.4; }
.dashboard-page.fiscal-settings-page .fiscal-readiness-note { margin: 12px 0 0; }

.dashboard-page.fiscal-settings-page .fiscal-settings-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  background: rgba(248, 251, 253, 0.92);
  backdrop-filter: blur(12px);
}

.dashboard-page.fiscal-settings-page .fiscal-settings-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 194, 29, 0.28);
  border-radius: 12px;
  background: rgba(244, 194, 29, 0.08);
  color: #f7d75d;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-page.fiscal-settings-page .fiscal-settings-tabs a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(244, 194, 29, 0.22);
  color: inherit;
  font-size: 0.68rem;
}

.dashboard-page.fiscal-settings-page .fiscal-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-page.fiscal-settings-page .fiscal-settings-card {
  padding: 24px;
  scroll-margin-top: 64px;
}

.dashboard-page.fiscal-settings-page .fiscal-settings-rules {
  grid-column: 1 / -1;
}

.dashboard-page.fiscal-settings-page .fiscal-settings-card .modal-footer {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.17);
}

.dashboard-page.fiscal-settings-page .fiscal-settings-form { display: grid; gap: 20px; margin-top: 20px; }
.dashboard-page.fiscal-settings-page .fiscal-form-section { display: grid; gap: 11px; }
.dashboard-page.fiscal-settings-page .fiscal-form-section h4 { margin: 0; color: #475569; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.dashboard-page.fiscal-settings-page .fiscal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.dashboard-page.fiscal-settings-page .fiscal-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-page.fiscal-settings-page .fiscal-form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-page.fiscal-settings-page .fiscal-form-field { display: grid; gap: 6px; min-width: 0; }
.dashboard-page.fiscal-settings-page .fiscal-form-field label { color: #475569; font-size: 0.79rem; font-weight: 700; }

.dashboard-page.fiscal-settings-page .fiscal-form-field input[type="checkbox"] { width: 19px; height: 19px; margin: 4px 0 0; accent-color: #d4a20b; }
.dashboard-page.fiscal-settings-page .fiscal-form-help,
.dashboard-page.fiscal-settings-page .fiscal-form-errors { font-size: 0.73rem; line-height: 1.4; }
.dashboard-page.fiscal-settings-page .fiscal-form-help { color: #64748b; }
.dashboard-page.fiscal-settings-page .fiscal-form-errors,
.dashboard-page.fiscal-settings-page .fiscal-form-errors ul { margin: 0; padding-left: 16px; color: #b42318; }
.dashboard-page.fiscal-settings-page .fiscal-form-field.has-error input,
.dashboard-page.fiscal-settings-page .fiscal-form-field.has-error select,
.dashboard-page.fiscal-settings-page .fiscal-form-field.has-error textarea { border-color: #dc2626; }

.dashboard-page.fiscal-settings-page .fiscal-advanced-disclosure {
  padding: 14px 16px 16px;
  border: 1px dashed rgba(148, 163, 184, 0.36);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.dashboard-page.fiscal-settings-page .fiscal-advanced-disclosure summary { cursor: pointer; color: #475569; font-size: 0.84rem; font-weight: 800; }
.dashboard-page.fiscal-settings-page .fiscal-advanced-disclosure .fiscal-form-grid { margin-top: 16px; }

html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-readiness-card { background: radial-gradient(circle at 100% 0%, rgba(250, 211, 43, 0.12), transparent 34%), #1b1b1b; border-color: rgba(250, 211, 43, 0.22); }
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-readiness-item,
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-advanced-disclosure { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.12); color: #f8fafc; }
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-readiness-note,
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-readiness-item small,
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-form-help,
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-form-field label,
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-form-section h4,
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-advanced-disclosure summary { color: #cbd5e1; }
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-settings-tabs { background: rgba(20, 20, 20, 0.92); }
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-readiness-total,
html.theme-dark .dashboard-page.fiscal-settings-page .fiscal-section-tag { color: #f8d65d; }

@media (max-width: 860px) {
  .dashboard-page.fiscal-settings-page .fiscal-readiness-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-page.fiscal-settings-page .fiscal-form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dashboard-page.fiscal-settings-page .fiscal-readiness-card,
  .dashboard-page.fiscal-settings-page .fiscal-settings-card { padding: 18px; }
  .dashboard-page.fiscal-settings-page .fiscal-readiness-heading,
  .dashboard-page.fiscal-settings-page .fiscal-settings-card-heading { flex-direction: column; gap: 10px; }
  .dashboard-page.fiscal-settings-page .fiscal-readiness-list,
  .dashboard-page.fiscal-settings-page .fiscal-form-grid,
  .dashboard-page.fiscal-settings-page .fiscal-form-grid-3,
  .dashboard-page.fiscal-settings-page .fiscal-form-grid-4 { grid-template-columns: 1fr; }
}

.dashboard-page.fiscal-hub-page .fiscal-hub-topbar {
  align-items: flex-start;
  gap: 18px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-topbar-actions {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-card,
.dashboard-page.fiscal-hub-page .fiscal-chart-card,
.dashboard-page.fiscal-hub-page .fiscal-donut-card,
.dashboard-page.fiscal-hub-page .fiscal-obligations-card,
.dashboard-page.fiscal-hub-page .fiscal-table-card,
.dashboard-page.fiscal-hub-page .fiscal-pending-card,
.dashboard-page.fiscal-hub-page .fiscal-quick-actions-card,
.dashboard-page.fiscal-hub-page .fiscal-empty-state-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(31, 31, 31, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-card,
.dashboard-page.fiscal-hub-page .fiscal-table-card,
.dashboard-page.fiscal-hub-page .fiscal-pending-card,
.dashboard-page.fiscal-hub-page .fiscal-quick-actions-card,
.dashboard-page.fiscal-hub-page .fiscal-empty-state-card {
  padding: 22px;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-card,
.dashboard-page.fiscal-hub-page .fiscal-donut-card,
.dashboard-page.fiscal-hub-page .fiscal-obligations-card {
  padding: 24px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-tab {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #c7cbe0;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-tab:hover {
  border-color: rgba(244, 194, 29, 0.34);
  color: #ffffff;
  transform: translateY(-1px);
}

.dashboard-page.fiscal-hub-page .fiscal-hub-tab.is-active {
  border-color: rgba(244, 194, 29, 0.5);
  background: linear-gradient(180deg, rgba(244, 194, 29, 0.18) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #f7d75d;
  box-shadow: inset 0 -2px 0 rgba(244, 194, 29, 0.9);
}

.dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-page.fiscal-hub-page .fiscal-period-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #c7cbe0;
}

.dashboard-page.fiscal-hub-page .fiscal-period-pill strong {
  color: #ffffff;
}

.dashboard-page.fiscal-hub-page .fiscal-filter-toggle {
  min-height: 46px;
  padding-inline: 20px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-filter-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-page.fiscal-hub-page .fiscal-hub-filter-form[hidden] {
  display: none !important;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(31, 31, 31, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-card-layout {
  align-items: flex-start;
  gap: 18px;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-label,
.dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-meta {
  color: #b5bdcc;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-value {
  color: #ffffff;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-trend {
  min-width: 108px;
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-trend strong {
  font-size: 1.15rem;
  line-height: 1;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-trend span {
  color: #8f98aa;
  font-size: 0.8rem;
}

.dashboard-page.fiscal-hub-page .fiscal-trend-up strong {
  color: #4ade80;
}

.dashboard-page.fiscal-hub-page .fiscal-trend-down strong {
  color: #f87171;
}

.dashboard-page.fiscal-hub-page .fiscal-trend-neutral strong {
  color: #f7d75d;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.dashboard-page.fiscal-hub-page .fiscal-imported-obligations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-card,
.dashboard-page.fiscal-hub-page .fiscal-donut-card,
.dashboard-page.fiscal-hub-page .fiscal-obligations-card {
  min-height: 100%;
  min-width: 0;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 16px;
}

.dashboard-page.fiscal-hub-page .fiscal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b5bdcc;
  font-size: 0.88rem;
}

.dashboard-page.fiscal-hub-page .fiscal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-page.fiscal-hub-page .fiscal-legend-dot.is-received {
  background: #4ade80;
}

.dashboard-page.fiscal-hub-page .fiscal-legend-dot.is-emitted {
  background: #f4c21d;
}

.dashboard-page.fiscal-hub-page .fiscal-line-chart-shell {
  height: clamp(230px, 16vw, 280px);
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(0, 0, 0, 0.04) 100%);
  overflow: hidden;
}

.dashboard-page.fiscal-hub-page .fiscal-line-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-hit-area {
  cursor: pointer;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-hit-area:focus-visible {
  outline: none;
  fill: rgba(244, 194, 29, 0.08);
}

.dashboard-page.fiscal-hub-page .fiscal-chart-tooltip {
  position: absolute;
  top: 14px;
  z-index: 2;
  width: 184px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 194, 29, 0.24);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  color: #f5f7fb;
  font-size: 0.82rem;
  pointer-events: none;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-tooltip[hidden] {
  display: none;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-tooltip strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-tooltip span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c7cbe0;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-tooltip b {
  margin-left: auto;
  color: #ffffff;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-visual {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fiscal-donut-background, conic-gradient(#3a3a3a 0deg 360deg));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  justify-self: center;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-visual::after {
  content: "";
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.98) 0%, rgba(17, 17, 17, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: absolute;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-center strong {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-center span,
.dashboard-page.fiscal-hub-page .fiscal-donut-center small,
.dashboard-page.fiscal-hub-page .fiscal-obligation-copy span,
.dashboard-page.fiscal-hub-page .fiscal-obligation-copy small,
.dashboard-page.fiscal-hub-page .fiscal-quick-action-copy small {
  color: #b5bdcc;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-summary,
.dashboard-page.fiscal-hub-page .fiscal-obligations-list,
.dashboard-page.fiscal-hub-page .fiscal-quick-action-list {
  display: grid;
  gap: 12px;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-row:hover,
.dashboard-page.fiscal-hub-page .fiscal-donut-row:focus-visible,
.dashboard-page.fiscal-hub-page .fiscal-donut-row.is-active {
  border-color: rgba(244, 194, 29, 0.24);
  background: rgba(244, 194, 29, 0.08);
  transform: translateY(-1px);
}

.dashboard-page.fiscal-hub-page .fiscal-donut-row-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-row-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-row-meta {
  flex: 0 0 auto;
  color: #b5bdcc;
  font-size: 0.84rem;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-row,
.dashboard-page.fiscal-hub-page .fiscal-quick-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-date {
  width: 58px;
  border-radius: 14px;
  border: 1px solid rgba(244, 194, 29, 0.18);
  background: rgba(244, 194, 29, 0.08);
  padding: 8px 0;
  display: grid;
  justify-items: center;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-date strong {
  color: #f7d75d;
  font-size: 1.35rem;
  line-height: 1;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-date span {
  color: #f4c21d;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-copy strong,
.dashboard-page.fiscal-hub-page .fiscal-quick-action-copy strong,
.dashboard-page.fiscal-hub-page .card-link {
  color: #ffffff;
}

.dashboard-page.fiscal-hub-page .card-link {
  font-weight: 700;
  text-decoration: none;
}

.dashboard-page.fiscal-hub-page .card-link:hover,
.dashboard-page.fiscal-hub-page .fiscal-inline-link:hover {
  color: #f7d75d;
}

.dashboard-page.fiscal-hub-page .fiscal-table-card .table-shell,
.dashboard-page.fiscal-hub-page .fiscal-pending-card .table-shell {
  overflow-x: auto;
}

.dashboard-page.fiscal-hub-page .fiscal-dashboard-table {
  min-width: 860px;
}

.dashboard-page.fiscal-hub-page .fiscal-dashboard-table thead th {
  color: #8f98aa;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dashboard-page.fiscal-hub-page .fiscal-dashboard-table tbody td {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
}

.dashboard-page.fiscal-hub-page .fiscal-dashboard-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-page.fiscal-hub-page .fiscal-dashboard-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-page.fiscal-hub-page .fiscal-dashboard-table tbody tr:hover {
  background: rgba(244, 194, 29, 0.05);
}

.dashboard-page.fiscal-hub-page .fiscal-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.dashboard-page.fiscal-hub-page .fiscal-type-chip-nfe {
  color: #f7d75d;
  border-color: rgba(244, 194, 29, 0.2);
  background: rgba(244, 194, 29, 0.08);
}

.dashboard-page.fiscal-hub-page .fiscal-type-chip-nfse {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.09);
}

.dashboard-page.fiscal-hub-page .fiscal-type-chip-emitida {
  color: #ffe38a;
  border-color: rgba(255, 227, 138, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-page.fiscal-hub-page .fiscal-hub-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.dashboard-page.fiscal-hub-page .fiscal-inline-link,
.dashboard-page.fiscal-hub-page .fiscal-quick-action {
  color: #f7d75d;
  text-decoration: none;
}

.dashboard-page.fiscal-hub-page .fiscal-inline-link {
  font-weight: 700;
}

.dashboard-page.fiscal-hub-page .fiscal-quick-action {
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dashboard-page.fiscal-hub-page .fiscal-quick-action:hover {
  border-color: rgba(244, 194, 29, 0.26);
  background: rgba(244, 194, 29, 0.08);
  transform: translateY(-1px);
}

.dashboard-page.fiscal-hub-page .fiscal-quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fad32b 0%, #f4c21d 100%);
  color: #111111;
}

.dashboard-page.fiscal-hub-page .fiscal-quick-action-icon svg {
  width: 20px;
  height: 20px;
}

/* Mantem o hub fiscal denso o bastante para exibir os blocos operacionais sem rolagem excessiva. */
.dashboard-page.fiscal-hub-page .dashboard-main {
  gap: 14px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-topbar {
  gap: 12px;
}

.dashboard-page.fiscal-hub-page .dashboard-topbar h2 {
  font-size: 30px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-topbar-actions,
.dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-actions,
.dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-head {
  gap: 8px;
}

.dashboard-page.fiscal-hub-page .fiscal-topbar-action {
  width: auto;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-page.fiscal-hub-page .fiscal-import-action {
  border-color: rgba(244, 194, 29, 0.68);
  background: rgba(244, 194, 29, 0.12);
  color: #f7d75d;
}

.dashboard-page.fiscal-hub-page .fiscal-import-action:hover,
.dashboard-page.fiscal-hub-page .fiscal-import-action:focus-visible {
  border-color: #f7d75d;
  background: rgba(244, 194, 29, 0.2);
  color: #fff4b5;
}

.dashboard-page.fiscal-hub-page .fiscal-emit-action {
  border-color: #f4c21d;
  background: linear-gradient(135deg, #fad32b 0%, #dca900 100%);
  color: #111111;
}

.dashboard-page.fiscal-hub-page :is(.fiscal-hub-toolbar-card, .fiscal-table-card, .fiscal-pending-card, .fiscal-quick-actions-card, .fiscal-empty-state-card) {
  padding: 18px;
  border-radius: 20px;
}

.dashboard-page.fiscal-hub-page :is(.fiscal-chart-card, .fiscal-donut-card, .fiscal-obligations-card) {
  padding: 20px;
  border-radius: 20px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-tabs {
  gap: 8px;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-tab {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 14px;
  font-size: 0.88rem;
}

.dashboard-page.fiscal-hub-page :is(.fiscal-period-pill, .fiscal-filter-toggle) {
  min-height: 40px;
  border-radius: 14px;
  font-size: 0.84rem;
}

.dashboard-page.fiscal-hub-page .fiscal-period-pill {
  padding: 0 14px;
}

.dashboard-page.fiscal-hub-page .fiscal-filter-toggle {
  padding-inline: 16px;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-card {
  min-height: 104px;
  padding: 14px 16px;
  border-radius: 20px;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-card-layout {
  gap: 12px;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-value {
  font-size: 1.35rem;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-trend {
  min-width: 88px;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-trend strong {
  font-size: 1rem;
}

.dashboard-page.fiscal-hub-page .fiscal-kpi-trend span {
  font-size: 0.72rem;
}

.dashboard-page.fiscal-hub-page :is(.fiscal-hub-analytics-grid, .fiscal-hub-bottom-grid) {
  gap: 14px;
}

.dashboard-page.fiscal-hub-page .fiscal-chart-legend {
  gap: 12px;
  margin: 8px 0 12px;
}

.dashboard-page.fiscal-hub-page .fiscal-legend-item {
  font-size: 0.8rem;
}

.dashboard-page.fiscal-hub-page .fiscal-line-chart-shell {
  height: clamp(205px, 13vw, 240px);
}

.dashboard-page.fiscal-hub-page .fiscal-donut-layout {
  grid-template-columns: minmax(150px, 185px) minmax(0, 1fr);
  gap: 12px;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-visual {
  width: min(185px, 100%);
}

.dashboard-page.fiscal-hub-page :is(.fiscal-donut-summary, .fiscal-obligations-list, .fiscal-quick-action-list) {
  gap: 8px;
}

.dashboard-page.fiscal-hub-page .fiscal-donut-row {
  padding: 10px 12px;
  border-radius: 14px;
}

.dashboard-page.fiscal-hub-page .fiscal-obligations-card {
  align-self: start;
  min-height: 0;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-row {
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-date {
  width: 48px;
  padding: 6px 0;
  border-radius: 12px;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-date strong {
  font-size: 1.15rem;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-date span {
  font-size: 0.64rem;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-copy {
  gap: 2px;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-copy strong {
  font-size: 0.9rem;
}

.dashboard-page.fiscal-hub-page .fiscal-obligation-copy :is(span, small) {
  font-size: 0.76rem;
  line-height: 1.3;
}

.dashboard-page.fiscal-hub-page .fiscal-obligations-card .fiscal-status-pill {
  padding: 5px 9px;
  font-size: 0.72rem;
}

.dashboard-page.fiscal-hub-page .fiscal-quick-action-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-page.fiscal-hub-page .fiscal-quick-action::after {
  content: "›";
  color: #ffffff;
  font-size: 1.35rem;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-chart-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-donut-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-obligations-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-table-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-pending-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-quick-actions-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-empty-state-card,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-kpi-card {
  border-color: rgba(226, 232, 240, 0.9);
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-hub-tab,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-period-pill,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-donut-row,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-obligation-row,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-quick-action {
  border-color: rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-hub-tab.is-active {
  color: #111111;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-period-pill strong,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-donut-center strong,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-obligation-copy strong,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-quick-action-copy strong,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .card-link,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-dashboard-table tbody td,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-value {
  color: #111827;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-dashboard-table tbody tr:nth-child(odd),
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-dashboard-table tbody tr:nth-child(even) {
  background: transparent;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-label,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-kpi-card .stat-meta,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-kpi-trend span,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-donut-center span,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-donut-center small,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-donut-row-meta,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-obligation-copy span,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-obligation-copy small,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-quick-action-copy small,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-dashboard-table thead th {
  color: #64748b;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-line-chart-shell {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.96) 100%);
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-chart-tooltip {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(226, 232, 240, 0.94);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-chart-tooltip strong,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-chart-tooltip b {
  color: #111827;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-chart-tooltip span {
  color: #475569;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-donut-visual::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.86);
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-obligation-date {
  background: rgba(244, 194, 29, 0.12);
  border-color: rgba(244, 194, 29, 0.24);
}

@media (max-width: 1680px) {
  .dashboard-page.fiscal-hub-page .fiscal-hub-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-page.fiscal-hub-page .fiscal-kpi-grid,
  .dashboard-page.fiscal-hub-page .fiscal-hub-bottom-grid,
  .dashboard-page.fiscal-hub-page .fiscal-imported-obligations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-card,
  .dashboard-page.fiscal-hub-page .fiscal-chart-card,
  .dashboard-page.fiscal-hub-page .fiscal-donut-card,
  .dashboard-page.fiscal-hub-page .fiscal-obligations-card,
  .dashboard-page.fiscal-hub-page .fiscal-table-card,
  .dashboard-page.fiscal-hub-page .fiscal-pending-card,
  .dashboard-page.fiscal-hub-page .fiscal-quick-actions-card,
  .dashboard-page.fiscal-hub-page .fiscal-empty-state-card {
    padding: 18px;
  }

  .dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-head,
  .dashboard-page.fiscal-hub-page .fiscal-hub-topbar,
  .dashboard-page.fiscal-hub-page .fiscal-hub-topbar-actions,
  .dashboard-page.fiscal-hub-page .fiscal-hub-title-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-page.fiscal-hub-page .fiscal-hub-toolbar-actions {
    justify-content: stretch;
  }

  .dashboard-page.fiscal-hub-page .fiscal-hub-analytics-grid,
  .dashboard-page.fiscal-hub-page .fiscal-kpi-grid,
  .dashboard-page.fiscal-hub-page .fiscal-hub-bottom-grid,
  .dashboard-page.fiscal-hub-page .fiscal-imported-obligations-grid,
  .dashboard-page.fiscal-hub-page .fiscal-donut-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-page.fiscal-hub-page .fiscal-obligation-row,
  .dashboard-page.fiscal-hub-page .fiscal-quick-action {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-page.fiscal-hub-page .fiscal-obligation-row .fiscal-status-pill,
  .dashboard-page.fiscal-hub-page .fiscal-quick-action::after {
    grid-column: 2;
    justify-self: start;
  }
}

.dashboard-page.estoque-page .dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Painéis do topo do estoque: distribuição por categoria, movimentação e cadastro de produtos. */
.dashboard-page.estoque-page .estoque-panels {
  --estoque-panel-bg: #ffffff;
  --estoque-panel-border: #ebe6da;
  --estoque-panel-shadow: 0 1px 2px rgba(31, 27, 16, 0.04), 0 10px 26px rgba(31, 27, 16, 0.05);
  --estoque-panel-title: #1d2025;
  --estoque-panel-muted: #7b808a;
  --estoque-chart-grid: #eeebe3;
  --estoque-chart-tick: #8a9099;
  --estoque-chart-label: #262a31;
  --estoque-chart-category: #5d636d;
  --estoque-bar-top: #f8c62a;
  --estoque-bar-bottom: #eeb200;
  --estoque-entry: #f2b705;
  --estoque-exit: #8f98a3;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.dashboard-page.estoque-page .estoque-panels.is-catalog-only {
  grid-template-columns: minmax(0, 1fr);
}

/* No escuro, mesmo acabamento neutro dos indicadores logo abaixo (.estoque-stats-grid .stat-card). */
html.theme-dark .dashboard-page.estoque-page .estoque-panels {
  --estoque-panel-bg: #1c1f21;
  --estoque-panel-surface: linear-gradient(150deg, #202325, #181b1d);
  --estoque-panel-border: #303438;
  --estoque-panel-radius: 12px;
  --estoque-panel-shadow: none;
  --estoque-panel-title: #f4f5f7;
  --estoque-panel-muted: rgba(244, 245, 247, 0.62);
  --estoque-chart-grid: rgba(255, 255, 255, 0.08);
  --estoque-chart-tick: rgba(244, 245, 247, 0.55);
  --estoque-chart-label: #f4f5f7;
  --estoque-chart-category: rgba(244, 245, 247, 0.72);
  --estoque-exit: #a3adb8;
}

.dashboard-page.estoque-page .estoque-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px 20px 16px;
  border: 1px solid var(--estoque-panel-border);
  border-radius: var(--estoque-panel-radius, 14px);
  background: var(--estoque-panel-surface, var(--estoque-panel-bg));
  box-shadow: var(--estoque-panel-shadow);
  color: var(--estoque-panel-title);
}

.dashboard-page.estoque-page .estoque-panel h3 {
  display: block;
  margin: 0;
  color: var(--estoque-panel-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-page.estoque-page .estoque-panel p {
  margin: 4px 0 0;
  color: var(--estoque-panel-muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page.estoque-page .estoque-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page.estoque-page .estoque-panel-header > div {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-page.estoque-page select.estoque-panel-select {
  flex: 0 0 auto;
  field-sizing: content;
  width: auto;
  max-width: none;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 30px 0 10px !important;
  border: 1px solid #e2ddd0;
  border-radius: 8px;
  background-color: #ffffff;
  background-position: right 8px center;
  color: #262a31;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.dashboard-page.estoque-page select.estoque-panel-select:focus {
  border-color: #9aa6b0;
  outline: none;
}

html.theme-dark .dashboard-page.estoque-page select.estoque-panel-select:focus {
  border-color: #6b747a;
}

html.theme-dark .dashboard-page.estoque-page select.estoque-panel-select {
  border-color: rgba(255, 255, 255, 0.14);
  background: #232527 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3cad0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 16px;
  color: #f1f3f5;
}

html.theme-dark .dashboard-page.estoque-page select.estoque-panel-select option {
  background: #1b1b1b;
  color: #f1f3f5;
}

.dashboard-page.estoque-page .estoque-panel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: -2px;
  color: var(--estoque-chart-label);
  font-size: 12px;
  font-weight: 500;
}

.dashboard-page.estoque-page .estoque-panel-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-page.estoque-page .estoque-panel-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--estoque-entry);
}

.dashboard-page.estoque-page .estoque-panel-legend i.is-exit {
  background: var(--estoque-exit);
}

.dashboard-page.estoque-page .estoque-panel-chart {
  position: relative;
  flex: 1 1 auto;
  min-height: 176px;
}

.dashboard-page.estoque-page .estoque-panel-chart svg {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
  font-family: inherit;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-grid line {
  stroke: var(--estoque-chart-grid);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-tick {
  fill: var(--estoque-chart-tick);
  font-size: 10px;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-category {
  fill: var(--estoque-chart-category);
  font-size: 10.5px;
  font-weight: 500;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-value {
  fill: var(--estoque-chart-label);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-hit {
  fill: transparent;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-bar-stop-top { stop-color: var(--estoque-bar-top); }
.dashboard-page.estoque-page .estoque-panel-chart .chart-bar-stop-bottom { stop-color: var(--estoque-bar-bottom); }
.dashboard-page.estoque-page .estoque-panel-chart .chart-area-stop-top.is-entry { stop-color: var(--estoque-entry); stop-opacity: 0.26; }
.dashboard-page.estoque-page .estoque-panel-chart .chart-area-stop-bottom.is-entry { stop-color: var(--estoque-entry); stop-opacity: 0.02; }
.dashboard-page.estoque-page .estoque-panel-chart .chart-area-stop-top.is-exit { stop-color: var(--estoque-exit); stop-opacity: 0.2; }
.dashboard-page.estoque-page .estoque-panel-chart .chart-area-stop-bottom.is-exit { stop-color: var(--estoque-exit); stop-opacity: 0.02; }

.dashboard-page.estoque-page .estoque-panel-chart .chart-bar {
  transition: opacity 0.15s ease;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-bar-group:hover .chart-bar {
  opacity: 0.85;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-line.is-entry { stroke: var(--estoque-entry); }
.dashboard-page.estoque-page .estoque-panel-chart .chart-line.is-exit { stroke: var(--estoque-exit); }

.dashboard-page.estoque-page .estoque-panel-chart .chart-point {
  stroke: var(--estoque-panel-bg);
  stroke-width: 1.5;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-point.is-entry { fill: var(--estoque-entry); }
.dashboard-page.estoque-page .estoque-panel-chart .chart-point.is-exit { fill: var(--estoque-exit); }

.dashboard-page.estoque-page .estoque-panel-chart .chart-guide {
  stroke: var(--estoque-chart-tick);
  stroke-dasharray: 3 3;
  stroke-width: 1;
  opacity: 0;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-month:hover .chart-guide {
  opacity: 0.6;
}

.dashboard-page.estoque-page .estoque-panel-chart .chart-month:hover .chart-point {
  r: 5px;
}

.dashboard-page.estoque-page .estoque-panel p.estoque-panel-empty {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 176px;
  margin: 0;
  padding: 0 16px;
  border: 1px dashed var(--estoque-panel-border);
  border-radius: 10px;
  text-align: center;
  font-size: 12.5px;
}

.dashboard-page.estoque-page .estoque-panel-cadastro {
  gap: 16px;
}

.dashboard-page.estoque-page .estoque-panel-cadastro-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dashboard-page.estoque-page .estoque-panel-icon {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff4d2;
  color: #efb300;
}

.dashboard-page.estoque-page .estoque-panel-icon svg {
  width: 26px;
  height: 26px;
}

html.theme-dark .dashboard-page.estoque-page .estoque-panel-icon {
  background: rgba(244, 194, 29, 0.12);
  color: #f4c21d;
}

.dashboard-page.estoque-page form.estoque-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page.estoque-page .dashboard-main > .estoque-stats-grid.is-catalog-only {
  grid-template-columns: minmax(0, 1fr);
}

/*
 * Mesmo padrão dos botões dos cards de Clientes e bancos: "Abrir cadastro" (is-primary),
 * "Importar planilha" (is-import) e "Ver listagem" (estilo base). A fonte replica a padrão
 * dos botões nativos daquela tela, já que "Baixar modelo" é um link. A overlay de
 * Exportações (.exports-modal-button) reutiliza o mesmo padrão.
 */
.dashboard-page.estoque-page .estoque-panel-button,
body.dashboard-page .exports-modal-card .exports-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 33px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #d4dbe0;
  border-radius: 10px;
  background: #f7f8f9;
  color: #35424c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-page.estoque-page .estoque-panel-button svg,
body.dashboard-page .exports-modal-card .exports-modal-button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #fad32b;
}

.dashboard-page.estoque-page .estoque-panel-button.is-wide {
  grid-column: 1 / -1;
}

.dashboard-page.estoque-page .estoque-panel-button:hover:not(:disabled),
.dashboard-page.estoque-page .estoque-panel-button:focus-visible,
body.dashboard-page .exports-modal-card .exports-modal-button:hover:not(:disabled),
body.dashboard-page .exports-modal-card .exports-modal-button:focus-visible {
  border-color: #bec9d1;
  background: #eef1f3;
  color: #26333e;
}

.dashboard-page.estoque-page .estoque-panel-button:focus-visible,
body.dashboard-page .exports-modal-card .exports-modal-button:focus-visible {
  outline: 2px solid rgba(242, 183, 5, 0.55);
  outline-offset: 2px;
}

.dashboard-page.estoque-page .estoque-panel-button.is-import {
  min-height: 40px;
  border-radius: 16px;
}

.dashboard-page.estoque-page .estoque-panel-button.is-primary,
body.dashboard-page .exports-modal-card .exports-modal-button.is-primary {
  border-color: #e1b91d;
  background: #f6ca2c;
  color: #252018;
}

.dashboard-page.estoque-page .estoque-panel-button.is-primary svg,
body.dashboard-page .exports-modal-card .exports-modal-button.is-primary svg {
  color: #252018;
}

.dashboard-page.estoque-page .estoque-panel-button.is-primary:hover:not(:disabled),
.dashboard-page.estoque-page .estoque-panel-button.is-primary:focus-visible,
body.dashboard-page .exports-modal-card .exports-modal-button.is-primary:hover:not(:disabled),
body.dashboard-page .exports-modal-card .exports-modal-button.is-primary:focus-visible {
  border-color: #d8b01a;
  background: #f9d650;
  color: #252018;
}

.dashboard-page.estoque-page .estoque-panel-button:disabled,
body.dashboard-page .exports-modal-card .exports-modal-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

html.theme-dark .dashboard-page.estoque-page .estoque-panel-button,
html.theme-dark body.dashboard-page .exports-modal-card .exports-modal-button {
  border-color: #3a3e41;
  border-radius: 9px;
  background: #1c2022;
  color: #f1f3f5;
}

html.theme-dark .dashboard-page.estoque-page .estoque-panel-button:hover:not(:disabled),
html.theme-dark .dashboard-page.estoque-page .estoque-panel-button:focus-visible,
html.theme-dark body.dashboard-page .exports-modal-card .exports-modal-button:hover:not(:disabled),
html.theme-dark body.dashboard-page .exports-modal-card .exports-modal-button:focus-visible {
  border-color: #d7b51c;
  background: #24282b;
  color: #ffffff;
}

html.theme-dark .dashboard-page.estoque-page .estoque-panel-button.is-primary,
html.theme-dark body.dashboard-page .exports-modal-card .exports-modal-button.is-primary {
  border-color: #eccd29;
  background: linear-gradient(115deg, #ffde39, #fad021);
  color: #111111;
}

html.theme-dark .dashboard-page.estoque-page .estoque-panel-button.is-primary svg,
html.theme-dark body.dashboard-page .exports-modal-card .exports-modal-button.is-primary svg {
  color: #111111;
}

html.theme-dark .dashboard-page.estoque-page .estoque-panel-button.is-primary:hover:not(:disabled),
html.theme-dark .dashboard-page.estoque-page .estoque-panel-button.is-primary:focus-visible,
html.theme-dark body.dashboard-page .exports-modal-card .exports-modal-button.is-primary:hover:not(:disabled),
html.theme-dark body.dashboard-page .exports-modal-card .exports-modal-button.is-primary:focus-visible {
  border-color: #eccd29;
  background: linear-gradient(115deg, #ffe45c, #fbd640);
  color: #111111;
}

/*
 * Paginação da lista de produtos no mesmo padrão dos botões do Estoque: páginas como
 * "Ver listagem" e a página atual como "Abrir cadastro". No tema escuro, :not(#_) e o
 * !important na cor vencem a regra global (:is com !important) que pinta o texto de preto.
 */
.dashboard-page.estoque-page .pagination-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d4dbe0;
  border-radius: 10px;
  background: #f7f8f9;
  color: #35424c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-page.estoque-page a.pagination-link:hover,
.dashboard-page.estoque-page a.pagination-link:focus-visible {
  border-color: #bec9d1;
  background: #eef1f3;
  color: #26333e;
  text-decoration: none;
}

.dashboard-page.estoque-page .pagination-link.is-active {
  border-color: #e1b91d;
  background: #f6ca2c;
  color: #252018;
}

html.theme-dark .dashboard-page.estoque-page .pagination-link:not(#_) {
  border-color: #3a3e41;
  border-radius: 9px;
  background: #1c2022;
  color: #f1f3f5 !important;
}

html.theme-dark .dashboard-page.estoque-page a.pagination-link:not(#_):hover,
html.theme-dark .dashboard-page.estoque-page a.pagination-link:not(#_):focus-visible {
  border-color: #d7b51c;
  background: #24282b;
  color: #ffffff !important;
}

html.theme-dark .dashboard-page.estoque-page .pagination-link.is-active:not(#_) {
  border-color: #eccd29;
  background: linear-gradient(115deg, #ffde39, #fad021);
  color: #111111 !important;
}

@media (max-width: 1440px) {
  /* Cards mais estreitos: menos respiro interno para "Importar planilha" caber em uma linha. */
  .dashboard-page.estoque-page .estoque-panel-button {
    gap: 6px;
    padding-inline: 4px;
  }
}

@media (max-width: 1200px) {
  .dashboard-page.estoque-page .estoque-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page.estoque-page .estoque-panel-cadastro {
    grid-column: 1 / -1;
  }

  .dashboard-page.estoque-page .dashboard-main > .estoque-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-page.estoque-page .estoque-panels,
  .dashboard-page.estoque-page .dashboard-main > .estoque-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .dashboard-page.estoque-page form.estoque-panel-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dashboard-page.estoque-page .estoque-stats-grid .stat-card-warning .stat-icon {
  color: #d88a00;
  background: #fff7df;
}

.dashboard-page.estoque-page .estoque-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
  width: 100%;
}

.dashboard-page.estoque-page .estoque-stats-grid .stat-card {
  min-height: 108px;
  padding: 16px 18px;
}

.dashboard-page.estoque-page .estoque-stats-grid > * {
  min-width: 0;
}

.dashboard-page.estoque-page .estoque-stats-grid .stat-card-positive .stat-value {
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.dashboard-page.estoque-page .cadastro-stats-grid .stat-card-layout {
  align-items: flex-start;
}

.dashboard-page.estoque-page .cadastro-stats-grid .stat-icon {
  margin-top: 2px;
}

.dashboard-page.estoque-page .estoque-donut-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px;
  height: 100%;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 226, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.16);
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-card {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.06), transparent 32%),
    linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border-color: rgba(244, 194, 29, 0.14);
}

.dashboard-page.estoque-page .estoque-donut-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.dashboard-page.estoque-page .estoque-donut-visual {
  width: min(300px, 76vw);
  height: min(300px, 76vw);
  border-radius: 50%;
  background: var(--estoque-donut-background, conic-gradient(#e2e8f0 0deg 360deg));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(250, 211, 43, 0.1);
}

.dashboard-page.estoque-page .estoque-donut-hitbox {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.dashboard-page.estoque-page .estoque-donut-hitbox path {
  pointer-events: all;
  cursor: pointer;
  transition: stroke 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease, fill 0.15s ease;
}

.dashboard-page.estoque-page .estoque-donut-hitbox path.is-active {
  stroke: #f4c21d;
  stroke-width: 3;
  fill: transparent;
  filter: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}

.dashboard-page.estoque-page .card-heading-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.dashboard-page.estoque-page .estoque-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 194, 29, 0.16);
  background: rgba(22, 22, 22, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dashboard-page.estoque-page .estoque-filter-form {
  flex: 1 1 540px;
  justify-content: flex-end;
}

.dashboard-page.estoque-page .estoque-filter-control {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #aeb7c7;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page.estoque-page .estoque-filter-busca {
  flex: 1 1 190px;
}

.dashboard-page.estoque-page .estoque-filter-busca > span {
  font-size: 15px;
}

.dashboard-page.estoque-page .estoque-filter-situacao {
  flex: 0 1 128px;
}

.dashboard-page.estoque-page .estoque-filter-cfop {
  flex: 0 1 112px;
}

.dashboard-page.estoque-page .estoque-search-input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f7fb;
  box-shadow: none;
  outline: none;
  font-size: 13px;
}

.dashboard-page.estoque-page .estoque-filter-busca > span {
  flex: 0 0 auto;
}

.dashboard-page.estoque-page #estoque-search-input {
  flex: 1 1 0%;
  width: 0;
  max-width: none;
  min-width: 0;
}

.dashboard-page.estoque-page .estoque-search-input::placeholder {
  color: #8f99ad;
}

.dashboard-page.estoque-page .estoque-search-form:focus-within {
  outline: none;
  border-color: rgba(244, 194, 29, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 0 0 1px rgba(244, 194, 29, 0.08);
}

html.theme-dark .dashboard-page.estoque-page .estoque-search-input {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page.estoque-page select.estoque-search-input {
  color-scheme: dark;
}

html.theme-dark .dashboard-page.estoque-page select.estoque-search-input option {
  background: #171717;
  color: #f5f7fb;
}

html.theme-dark .dashboard-page.estoque-page .estoque-search-input::placeholder {
  color: #9aa3b2;
}

html.theme-dark .dashboard-page.estoque-page .estoque-search-form {
  background: rgba(22, 22, 22, 0.94);
  border-color: rgba(244, 194, 29, 0.16);
}

html.theme-dark .dashboard-page.estoque-page .estoque-filter-control {
  color: #c4ccda;
}

@media (max-width: 980px) {
  .dashboard-page.estoque-page .card-heading-actions {
    justify-content: flex-start;
  }

  .dashboard-page.estoque-page .estoque-filter-form {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .dashboard-page.estoque-page .estoque-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
  }

  .dashboard-page.estoque-page .estoque-filter-control,
  .dashboard-page.estoque-page .estoque-filter-busca,
  .dashboard-page.estoque-page .estoque-filter-situacao,
  .dashboard-page.estoque-page .estoque-filter-cfop {
    width: 100%;
    min-width: 0;
  }

  .dashboard-page.estoque-page .estoque-filter-busca {
    grid-column: 1 / -1;
  }

  .dashboard-page.estoque-page .estoque-filter-form .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.dashboard-page.estoque-page .estoque-donut-visual::after {
  content: "";
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.82);
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-visual::after {
  background: #171717;
  box-shadow: inset 0 0 0 1px rgba(250, 211, 43, 0.1);
}

.dashboard-page.estoque-page .estoque-donut-center {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.98);
  z-index: 3;
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-center {
  background: #171717;
}

.dashboard-page.estoque-page .estoque-donut-center strong {
  color: #102233;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-center strong {
  color: #ffffff;
}

.dashboard-page.estoque-page .estoque-donut-center span {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-center span {
  color: rgba(245, 247, 251, 0.72);
}

.dashboard-page.estoque-page .estoque-donut-center small {
  margin-top: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-center small {
  color: rgba(245, 247, 251, 0.82);
}

.dashboard-page.estoque-page .estoque-donut-summary {
  display: none;
}

.dashboard-page.estoque-page .estoque-donut-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.72);
  color: #102233;
  cursor: pointer;
  appearance: none;
  font: inherit;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-page.estoque-page .estoque-donut-row:hover,
.dashboard-page.estoque-page .estoque-donut-row:focus-visible,
.dashboard-page.estoque-page .estoque-donut-row.is-active {
  transform: translateY(-1px);
  border-color: rgba(244, 194, 29, 0.42);
  background: rgba(250, 211, 43, 0.12);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  outline: none;
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-row {
  border-color: rgba(250, 211, 43, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-row:hover,
html.theme-dark .dashboard-page.estoque-page .estoque-donut-row:focus-visible,
html.theme-dark .dashboard-page.estoque-page .estoque-donut-row.is-active {
  background: rgba(250, 211, 43, 0.08);
  border-color: rgba(250, 211, 43, 0.3);
}

.dashboard-page.estoque-page .estoque-donut-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 13px;
}

.dashboard-page.estoque-page .estoque-donut-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-page.estoque-page .estoque-donut-row-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page.estoque-page .estoque-donut-row-meta {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

html.theme-dark .dashboard-page.estoque-page .estoque-donut-row-meta {
  color: rgba(245, 247, 251, 0.72);
}

.dashboard-page.estoque-page .estoque-row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-page.estoque-page .estoque-row-actions .transaction-inline-action {
  min-width: 0;
}

.dashboard-page.estoque-page .estoque-row-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.dashboard-page.estoque-page .estoque-row-icon-button svg {
  width: 18px;
  height: 18px;
}

/* Gerenciar produto: "Excluir produto" logo abaixo de "Inativar item", com o motivo quando bloqueado. */
.dashboard-page.estoque-page .estoque-remove-form {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.dashboard-page.estoque-page .estoque-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dashboard-page.estoque-page .estoque-remove-button svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.dashboard-page.estoque-page .estoque-remove-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.dashboard-page.estoque-page .estoque-origin-modal-card {
  width: min(980px, 100%);
}

.dashboard-page.estoque-page #estoque-origens-modal .estoque-origin-modal-card {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.dashboard-page.estoque-page .stock-traceability-section { margin-top: 16px; }
.dashboard-page.estoque-page .stock-traceability-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 12px 0; color: #64748b; font-size: .8rem; }
.dashboard-page.estoque-page .stock-traceability-pagination button { min-height: 34px; padding: 7px 11px; border: 1px solid var(--border-color); border-radius: 7px; background: var(--surface-color); color: var(--text-color); font: inherit; font-weight: 650; cursor: pointer; }

.dashboard-page.estoque-page .estoque-origin-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-page.estoque-page .estoque-origin-summary p {
  margin: 0;
  color: #64748b;
  max-width: 520px;
}

html.theme-dark .dashboard-page.estoque-page .estoque-origin-summary p {
  color: rgba(245, 247, 251, 0.72);
}

.dashboard-page.estoque-page .estoque-origin-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.dashboard-page.estoque-page .estoque-origin-totals > div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-color) 82%, transparent);
}

.dashboard-page.estoque-page .estoque-origin-totals span {
  font-size: 0.78rem;
  color: #64748b;
}

.dashboard-page.estoque-page .estoque-origin-totals strong {
  font-size: 0.95rem;
}

.dashboard-page.estoque-page .estoque-origin-warning {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-left: 3px solid #d6a600;
  border-radius: 5px;
  background: color-mix(in srgb, #d6a600 10%, transparent);
  color: #64748b;
  font-size: 0.85rem;
}

.dashboard-page.estoque-page .estoque-unit-conversion-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 140px auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-color) 82%, transparent);
}

.dashboard-page.estoque-page .estoque-unit-conversion-form > div,
.dashboard-page.estoque-page .estoque-unit-conversion-form label { display: grid; gap: 4px; }
.dashboard-page.estoque-page .estoque-unit-conversion-form small { color: #64748b; font-size: .78rem; line-height: 1.35; }
.dashboard-page.estoque-page .estoque-unit-conversion-form label { font-size: .78rem; color: #475569; }
html.theme-dark .dashboard-page.estoque-page .estoque-unit-conversion-form small,
html.theme-dark .dashboard-page.estoque-page .estoque-unit-conversion-form label { color: rgba(245, 247, 251, .72); }
@media (max-width: 720px) { .dashboard-page.estoque-page .estoque-unit-conversion-form { grid-template-columns: 1fr; } }

html.theme-dark .dashboard-page.estoque-page .estoque-origin-totals span,
html.theme-dark .dashboard-page.estoque-page .estoque-origin-warning {
  color: rgba(245, 247, 251, 0.72);
}

.dashboard-page.estoque-page .table-section-heading {
  display: grid;
  gap: 4px;
  margin: 18px 0 10px;
}

.dashboard-page.estoque-page .table-section-heading h4 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-page.estoque-page .estoque-origin-table td strong,
.dashboard-page.estoque-page .estoque-origin-table td small {
  display: block;
}

.dashboard-page.estoque-page .estoque-origin-table td small {
  margin-top: 4px;
}

/* Availability stays grouped in the stock list without adding wide columns. */
body.dashboard-page.estoque-page .estoque-availability {
  display: grid;
  gap: 3px;
  min-width: 158px;
  color: #34414b;
  font-size: .78rem;
  line-height: 1.35;
}
body.dashboard-page.estoque-page .estoque-availability-note {
  margin: 0 0 10px;
  color: #46545e;
  font-size: .82rem;
  line-height: 1.45;
}
body.dashboard-page.estoque-page .estoque-availability span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
body.dashboard-page.estoque-page .estoque-availability b { font-weight: 550; }
body.dashboard-page.estoque-page .estoque-availability strong { font-weight: 750; text-align: right; }
html.theme-dark body.dashboard-page.estoque-page .estoque-availability { color: #e4e9ed; }
html.theme-dark body.dashboard-page.estoque-page .estoque-availability-note { color: #d2d9df; }
@media (max-width: 720px) {
  body.dashboard-page.estoque-page .estoque-availability { min-width: 0; }
}

.dashboard-page.cadastro-page .cadastro-module-top {
  display: grid;
  gap: 16px;
  width: 100%;
  align-content: start;
  justify-items: start;
}

.dashboard-page.cadastro-page .cadastro-module-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.24), 0 14px 26px rgba(250, 211, 43, 0.18);
}

.dashboard-page.cadastro-page .cadastro-module-icon svg {
  width: 28px;
  height: 28px;
}

.dashboard-page.cadastro-page .cadastro-module-copy {
  display: grid;
  gap: 8px;
  width: 100%;
}

.dashboard-page.cadastro-page .cadastro-module-copy .card-kicker {
  margin-bottom: 0;
}

.dashboard-page.cadastro-page .cadastro-module-copy h3 {
  margin: 0;
  font-size: 18px;
}

.dashboard-page.cadastro-page .cadastro-module-copy .page-subtitle {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-page.cadastro-page .cadastro-module-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  width: 100%;
  justify-items: center;
}

.dashboard-page.cadastro-page .cadastro-module-actions > :is(.primary-action, .cadastro-import-button, .cadastro-view-list-button) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 100%);
  min-height: 40px;
  margin-inline: auto;
  padding: 0 16px;
  border-radius: 10px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.dashboard-page.cadastro-page .cadastro-module-actions .primary-action {
  width: min(220px, 100%);
  justify-content: center;
  margin-inline: auto;
}

.dashboard-page.cadastro-page .cadastro-import-button {
  min-height: 40px;
  min-width: 214px;
  width: min(220px, 100%);
  padding: 0 16px;
  align-self: center;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  border-radius: 16px;
  background: transparent;
  color: #111111;
  border: 1px solid #111111;
  box-shadow: none;
  text-decoration: none;
}

.dashboard-page.cadastro-page .cadastro-import-button:hover,
.dashboard-page.cadastro-page .cadastro-import-button:focus-visible {
  background: transparent;
  color: #111111;
  border-color: #111111;
  box-shadow: none;
}

.dashboard-page.cadastro-page .cadastro-import-button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page.cadastro-page .cadastro-import-button-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dashboard-page.cadastro-page .cadastro-import-button[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-import-button,
html.theme-dark .dashboard-page.cadastro-page .cadastro-import-button:hover,
html.theme-dark .dashboard-page.cadastro-page .cadastro-import-button:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
  background: transparent;
}

.dashboard-page.cadastro-page .cadastro-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-page.cadastro-page .cadastro-create-secondary {
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  height: 100%;
}

.dashboard-page.cadastro-page .cadastro-create-secondary > .cadastro-form-card:last-child {
  height: 100%;
}

.dashboard-page.cadastro-page .cadastro-create-secondary > .cadastro-form-card:last-child .cadastro-create-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard-page.cadastro-page .cadastro-create-secondary > .cadastro-form-card:last-child .cadastro-create-form .modal-footer {
  margin-top: auto;
}

.dashboard-page.cadastro-page .cadastro-lists-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.dashboard-page.cadastro-page .cadastro-list-modal-card {
  width: min(1440px, 100%);
  max-height: calc(100vh - 32px);
  padding: 24px;
}

.dashboard-page.cadastro-page .cadastro-list-modal-card .cadastro-list-card {
  min-width: 0;
}

.dashboard-page.cadastro-page .cadastro-list-modal-card .dashboard-table .col-description {
  width: 22%;
}

.dashboard-page.cadastro-page .cadastro-list-modal-card .dashboard-table .col-account,
.dashboard-page.cadastro-page .cadastro-list-modal-card .dashboard-table .col-holder {
  width: 13%;
}

.dashboard-page.cadastro-page .cadastro-list-modal-card .dashboard-table .col-type {
  width: 10%;
}

.dashboard-page.cadastro-page .cadastro-view-list-button {
  width: min(220px, 100%);
}

.dashboard-page.cadastro-page a.cadastro-view-list-button {
  font-size: 13.3333px;
}

.dashboard-page.cadastro-page .cadastro-list-card .dashboard-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 13px;
}

.dashboard-page.cadastro-page .cadastro-list-card .dashboard-table th,
.dashboard-page.cadastro-page .cadastro-list-card .dashboard-table td {
  padding: 10px 8px;
}

.dashboard-page.cadastro-page .cadastro-list-card .dashboard-table .col-description {
  width: auto;
  padding-left: 4px;
}

.dashboard-page.cadastro-page .cadastro-list-card .cadastro-account-description {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page.cadastro-page .cadastro-list-card .dashboard-table .col-date {
  width: 72px;
  min-width: 72px;
  padding-right: 4px;
}

.dashboard-page.cadastro-page .cadastro-list-card .dashboard-table .col-type {
  width: 180px;
  min-width: 180px;
  text-align: center;
}

/* Estrutura contábil: Tipo só com a largura do selo (mais perto de Ações);
   o espaço liberado vai para a Descrição, que continua cortada com reticências. */
.dashboard-page.cadastro-page .cadastro-main .cadastro-list-card .dashboard-table .col-type {
  width: 100px;
  min-width: 100px;
}

.dashboard-page.cadastro-page .cadastro-list-card .dashboard-table .col-actions {
  width: 88px;
  min-width: 88px;
  text-align: center;
}

.dashboard-page.cadastro-page .cadastro-list-card .summary-account-search-field {
  width: min(260px, 100%);
  flex: 1 1 260px;
  min-width: 0;
}

.dashboard-page.cadastro-page .cadastro-partner-type-filter {
  flex: 0 0 190px;
}

.dashboard-page.cadastro-page .cadastro-partner-type-filter select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 9px 34px 9px 12px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font: inherit;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-partner-type-filter select {
  border-color: rgba(244, 194, 29, 0.18);
  background: #1a1a1a;
  color: #f5f7fb;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-partner-type-filter option {
  background: #1a1a1a;
  color: #f5f7fb;
}

@media (max-width: 760px) {
  .dashboard-page.cadastro-page .cadastro-list-card .summary-account-controls {
    flex-wrap: wrap;
  }

  .dashboard-page.cadastro-page .cadastro-partner-type-filter {
    flex: 1 1 100%;
  }

  .dashboard-page.cadastro-page .cadastro-list-card .dashboard-table .col-type,
  .dashboard-page.cadastro-page .cadastro-main .cadastro-list-card .dashboard-table .col-type {
    width: auto;
    min-width: 0;
  }
}

.dashboard-page.cadastro-page .summary-account-controls {
  width: 100%;
}

.dashboard-page.cadastro-page .cadastro-list-card .card-heading-actions {
  margin-bottom: 14px;
}

.dashboard-page.cadastro-page .cadastro-list-card .cadastro-row-actions {
  gap: 6px;
}

.dashboard-page.cadastro-page .cadastro-list-card .cheque-actions-summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
}

.dashboard-page.cadastro-page .cadastro-list-card .cadastro-row-icon-action {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.dashboard-page.cadastro-page .cadastro-list-card .cadastro-row-icon-action svg {
  width: 15px;
  height: 15px;
}

.dashboard-page.cadastro-page .cadastro-list-card .card-chip {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.dashboard-page.cadastro-page .cadastro-list-card .cadastro-status-ativo {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.34);
  color: #047857;
}

.dashboard-page.cadastro-page .cadastro-list-card .cadastro-status-inativo {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.34);
  color: #b42318;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-list-card .dashboard-table .cadastro-status-ativo {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.48);
  color: #86efac;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-list-card .dashboard-table .cadastro-status-inativo {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.52);
  color: #fca5a5;
}

.dashboard-page.cadastro-page .cadastro-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: start;
}

.dashboard-page.cadastro-page .cadastro-conta-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  grid-column: 1 / -1;
}

.dashboard-page.cadastro-page .cadastro-form-feedback {
  grid-column: 1 / -1;
}

.dashboard-page.cadastro-page .cadastro-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dashboard-page.cadastro-page .cadastro-form-field label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-page.cadastro-page .cadastro-type-export-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.dashboard-page.cadastro-page .cadastro-type-export-row .cadastro-form-field {
  margin: 0;
}

.dashboard-page.cadastro-page .cadastro-export-button {
  min-height: 40px;
  min-width: 214px;
  width: fit-content;
  padding: 0 16px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  border-radius: 16px;
  background: transparent;
  color: #111111;
  border-color: #111111;
  box-shadow: none;
}

.dashboard-page.cadastro-page .cadastro-export-button:hover,
.dashboard-page.cadastro-page .cadastro-export-button:focus-visible {
  background: transparent;
  color: #111111;
  border-color: #111111;
  box-shadow: none;
}

.dashboard-page.cadastro-page .cadastro-export-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.dashboard-page.cadastro-page .cadastro-form-grid-2 .modal-footer {
  grid-column: 1 / -1;
}

.dashboard-page.cadastro-page .cadastro-form-grid-2 .cadastro-recent-hint {
  grid-column: 1 / -1;
}

.dashboard-page.cadastro-page .cadastro-recent-hint {
  margin-top: 4px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.6);
}

.dashboard-page.cadastro-page .cadastro-recent-hint-title {
  margin: 0 0 10px;
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-page.cadastro-page .cadastro-recent-hint-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-page.cadastro-page .cadastro-recent-hint-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  font-size: 13px;
}

.dashboard-page.cadastro-page .cadastro-recent-hint-list li:last-child {
  border-bottom: 0;
}

.dashboard-page.cadastro-page .cadastro-recent-hint-code {
  font-weight: 700;
  color: #111111;
  min-width: 64px;
}

.dashboard-page.cadastro-page .cadastro-recent-hint-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page.cadastro-page .cadastro-recent-hint-empty {
  margin: 0;
  color: #6b6b6b;
  font-size: 13px;
}

.dashboard-page.cadastro-page .cadastro-form-card {
  display: grid;
  gap: 12px;
}

.dashboard-page.cadastro-page .cadastro-card-heading-icon {
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}

.dashboard-page.cadastro-page .cadastro-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fad32b;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.26), 0 8px 18px rgba(250, 211, 43, 0.16);
}

.dashboard-page.cadastro-page .cadastro-card-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.dashboard-page.cadastro-page .cadastro-save-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 8px;
  flex-shrink: 0;
}

.dashboard-page.cadastro-page .cadastro-create-form {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-page.cadastro-page .cadastro-create-form p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.dashboard-page.cadastro-page .cadastro-create-form label {
  color: #111111;
  font-weight: 600;
}

.dashboard-page.cadastro-page .cadastro-create-form input,
.dashboard-page.cadastro-page .cadastro-create-form select,
.dashboard-page.cadastro-page .cadastro-create-form textarea,
.dashboard-page.cadastro-page .cadastro-edit-row input,
.dashboard-page.cadastro-page .cadastro-edit-row select {
  width: 100%;
  max-width: none;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
}

.dashboard-page.cadastro-page .cadastro-create-form .modal-footer {
  margin-top: 4px;
}

.dashboard-page.cadastro-page .cadastro-table-card {
  padding-top: 18px;
}

.dashboard-page.cadastro-page .cadastro-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 249, 240, 0.96) 100%);
}

.dashboard-page.cadastro-page .cadastro-table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-page.cadastro-page .cadastro-table th {
  background: rgba(244, 194, 29, 0.14);
  color: #111111;
  font-weight: 700;
}

.dashboard-page.cadastro-page .cadastro-table td {
  vertical-align: middle;
}

.dashboard-page.cadastro-page .cadastro-table .col-code {
  width: 150px;
}

.dashboard-page.cadastro-page .cadastro-table .col-description {
  width: auto;
}

.dashboard-page.cadastro-page .cadastro-table .col-type {
  width: 170px;
}

.dashboard-page.cadastro-page .cadastro-table .col-actions {
  width: 180px;
}

.dashboard-page.cadastro-page .dashboard-table .col-type {
  width: 132px;
  min-width: 132px;
}

.dashboard-page.cadastro-page .dashboard-table .col-actions {
  width: 118px;
  min-width: 118px;
}

.dashboard-page.cadastro-page .dashboard-table .card-chip {
  max-width: none;
}

.dashboard-page.cadastro-page .cadastro-table-input {
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  color: #111111;
}

.dashboard-page.cadastro-page .cadastro-table-input:focus {
  outline: 2px solid rgba(244, 194, 29, 0.3);
  outline-offset: 1px;
  border-color: rgba(244, 194, 29, 0.5);
}

.dashboard-page.cadastro-page .cadastro-table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dashboard-page.cadastro-page .cadastro-table-empty {
  padding: 24px;
  text-align: center;
  color: #6b6b6b;
}

.dashboard-page.cadastro-page .cadastro-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-page.cadastro-page .cadastro-stack {
  gap: 14px;
}

.dashboard-page.cadastro-page .cadastro-item-card {
  padding: 18px;
  border-radius: 18px;
  border-color: rgba(17, 17, 17, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 236, 0.96) 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.dashboard-page.cadastro-page .cadastro-edit-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.6fr) auto;
}

.dashboard-page.cadastro-page .cadastro-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-page.cadastro-page .cadastro-actions-inline,
.dashboard-page.cadastro-page .cadastro-delete-inline {
  display: flex;
  justify-content: flex-end;
}

.dashboard-page.cadastro-page .company-empty-state {
  background: transparent;
  border: 0;
  padding: 8px 0 4px;
}

.dashboard-page.cadastro-page .company-empty-state h3 {
  color: #111111;
}

.dashboard-page.cadastro-page .card-empty-copy {
  color: #525252;
}

.dashboard-page.cadastro-page .cadastro-list-card .card-empty-copy[data-cadastro-empty] {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: #6b6b6b;
  font-weight: 600;
  text-align: center;
}

.dashboard-page.cadastro-page .cadastro-search-field {
  position: relative;
}

.dashboard-page.cadastro-page .cadastro-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.dashboard-page.cadastro-page .cadastro-search-field .summary-account-search {
  padding-left: 36px;
}

.dashboard-page.cadastro-page .cadastro-toolbar-icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page.cadastro-page .cadastro-toolbar-icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dashboard-page.cadastro-page .cadastro-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.dashboard-page.cadastro-page .cadastro-row-icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: none;
}

.dashboard-page.cadastro-page .cadastro-row-icon-action:hover,
.dashboard-page.cadastro-page .cadastro-row-icon-action:focus-visible {
  background: #f4c21d;
  color: #111111;
  border-color: rgba(202, 166, 43, 0.32);
}

.dashboard-page.cadastro-page .cadastro-row-icon-action svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-page.cadastro-page .cadastro-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.dashboard-page.cadastro-page .cadastro-view-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-page.cadastro-page .cadastro-view-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-page.cadastro-page .cadastro-view-all-row {
  margin-top: 14px;
  text-align: center;
}

.dashboard-page.cadastro-page .cadastro-view-all-link {
  background: none;
  border: 0;
  padding: 0;
  color: #a3790a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.dashboard-page.cadastro-page .cadastro-view-all-link:hover,
.dashboard-page.cadastro-page .cadastro-view-all-link:focus-visible {
  text-decoration: none;
}

.dashboard-page .modal-form .helptext {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page .modal-errors .errorlist,
.dashboard-page .modal-errors ul {
  margin: 0;
  padding-left: 18px;
}

.dashboard-page .modal-errors li {
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-page .modal-errors p {
  margin: 0 0 4px;
  color: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-page .modal-form-grid .estoque-form-field-error > label {
  color: #b42318;
}

.dashboard-page .modal-form-grid .estoque-form-field-error > input,
.dashboard-page .modal-form-grid .estoque-form-field-error > select,
.dashboard-page .modal-form-grid .estoque-form-field-error > textarea {
  border-color: #dc2626 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.dashboard-page .modal-form-grid .estoque-form-field-error .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-page .modal-form-grid .estoque-form-field-error .errorlist li {
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-page .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-page .sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-page .sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dashboard-page .sidebar-link-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fad32b;
}

.dashboard-page .sidebar-link-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.dashboard-page .sidebar-link-label {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-page .sidebar-module-status {
  width: 8px;
  height: 8px;
  min-width: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Disponibilidade de módulos é uma informação administrativa global. */
html:not(.is-system-admin) .dashboard-page .sidebar-module-status {
  display: none;
}

.dashboard-page .sidebar-module-status.is-enabled {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.dashboard-page .sidebar-module-status.is-disabled {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.dashboard-page .sidebar-module-status.is-fixed {
  background: #f4c21d;
  box-shadow: 0 0 0 3px rgba(244, 194, 29, 0.18);
}
/* Módulo visível no menu, mas não liberado na empresa ativa: rótulo mais apagado e cadeado.
   O link continua clicável e leva à tela de acesso negado com o motivo. */
.dashboard-page .sidebar-link.is-locked .sidebar-link-label,
.dashboard-page .sidebar-link.is-locked .sidebar-link-icon {
  opacity: 0.62;
}
.dashboard-page .sidebar-link.is-locked:hover .sidebar-link-label,
.dashboard-page .sidebar-link.is-locked:hover .sidebar-link-icon,
.dashboard-page .sidebar-link.is-locked:focus-visible .sidebar-link-label,
.dashboard-page .sidebar-link.is-locked:focus-visible .sidebar-link-icon {
  opacity: 0.9;
}
.dashboard-page .sidebar-link-lock {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(244, 194, 29, 0.14);
  color: #f4c21d;
}
.dashboard-page .sidebar-link-lock svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-page .sidebar-link:hover {
  background: rgba(244, 194, 29, 0.14);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(2px);
}

.dashboard-page .sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(244, 194, 29, 0.18), rgba(244, 194, 29, 0.08));
  color: #ffffff;
  font-weight: 600;
}

.dashboard-page .sidebar-link-button {
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.dashboard-page .sidebar-link-button:disabled,
.dashboard-page .primary-cta:disabled,
.dashboard-page .quick-action-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.dashboard-page .sidebar-footer {
  margin-top: auto;
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.08), transparent 34%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border: 1px solid rgba(244, 194, 29, 0.14);
  border-radius: 14px;
  padding: 12px;
}

.dashboard-page .sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-page .sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4c21d 0%, #d4a700 100%);
  color: #111111;
  font-weight: 700;
  font-size: 13px;
}

.dashboard-page .sidebar-user p {
  margin: 2px 0 0;
  color: #aeb4c5;
  font-size: 12px;
}

.dashboard-page .sidebar-user strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .sidebar-user > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-page .sidebar-footer-actions {
  display: grid;
  gap: 6px;
}

.dashboard-page .sidebar-inline-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-page .sidebar-inline-form button,
.dashboard-page .secondary-action,
.dashboard-page .danger-action,
.dashboard-page .primary-action,
.dashboard-page .primary-cta,
.dashboard-page .modal-close {
  width: 100%;
  border: 1px solid transparent;
}

.dashboard-page .sidebar-footer .sidebar-inline-form button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.dashboard-page .secondary-action {
  background: #1a1a1a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.10);
}

.dashboard-page .danger-action {
  background: #1a1113;
  color: #ffb7b7;
  border-color: rgba(239, 68, 68, 0.22);
}

.dashboard-page .secondary-action:hover {
  background: #222222;
}

.dashboard-page .danger-action:hover {
  background: #241214;
}

.dashboard-page .primary-action,
.dashboard-page .primary-cta {
  background: linear-gradient(135deg, #f4c21d 0%, #d4a700 100%);
  color: #111111;
  box-shadow: 0 12px 24px rgba(212, 167, 0, 0.22);
}

.dashboard-page .modal-close {
  width: auto;
  background: #fff;
  color: #111111;
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: none;
}

.dashboard-page .dashboard-main {
  position: relative;
  z-index: 1;
  min-height: 0;
  min-width: 0;
  padding: 12px 18px 18px;
  transition: margin-left 0.22s ease, padding 0.22s ease;
}

.dashboard-page.sidebar-collapsed .dashboard-main {
  margin-left: 0;
}

.dashboard-page .dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-page .app-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  margin: 0 0 10px;
  border: 1px solid #3b4145;
  border-radius: 9px;
  background: #1a1d1f;
  color: #f1f3f4;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.dashboard-page .app-back-button svg { width: 16px; height: 16px; }
.dashboard-page .dashboard-topbar > .app-back-button { flex: 0 0 auto; margin: 0 auto 0 0; }
.dashboard-page .app-back-button:hover { border-color: #d8b817; color: #f7d22b; background: #28281d; }
html:not(.theme-dark) .dashboard-page .app-back-button { border-color: #cbd3d8; background: #ffffff; color: #28343b; }
html:not(.theme-dark) .dashboard-page .app-back-button:hover { border-color: #cfab00; color: #705b00; background: #fff9df; }

.dashboard-page.cadastro-page .cadastro-topbar-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 4px;
}

.dashboard-page.cadastro-page .cadastro-topbar-title-row h2 {
  margin: 0;
  font-size: 26px;
}

.dashboard-page.cadastro-page .cadastro-topbar-title-row .cadastro-title-text {
  white-space: nowrap;
}

.dashboard-page.cadastro-page .cadastro-topbar-title-row .company-pill,
.dashboard-page.cadastro-page .cadastro-topbar-title-row .company-switcher {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 14px;
}

.dashboard-page.cadastro-page .dashboard-topbar .topbar-actions {
  margin-left: auto;
  width: auto;
  justify-content: flex-end;
}

.dashboard-page.cadastro-page .financeiro-topbar-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 4px;
}

.dashboard-page.cadastro-page .financeiro-topbar-title-row h2 {
  margin: 0;
  font-size: 26px;
}

.dashboard-page.cadastro-page .financeiro-topbar-title-row .cadastro-title-text {
  white-space: nowrap;
}

.dashboard-page.cadastro-page .financeiro-topbar-title-row .company-pill,
.dashboard-page.cadastro-page .financeiro-topbar-title-row .company-switcher {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 14px;
}

.dashboard-page .sidebar-toggle {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  color: #111111;
  border: 1px solid rgba(202, 166, 43, 0.28);
  box-shadow: 0 12px 24px rgba(244, 194, 29, 0.16);
}

.dashboard-page .sidebar-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-page .sidebar-toggle-inline {
  flex: 0 0 auto;
  margin: 4px 0 0;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  background: transparent;
  color: #FAD32B;
  border: 0;
  box-shadow: none;
}

.dashboard-page .sidebar-toggle-label {
  display: none;
}

.dashboard-page .sidebar-toggle-floating {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  display: none;
  z-index: 1400;
  background: transparent;
  color: #FAD32B;
  border-color: transparent;
  box-shadow: none;
}

.dashboard-page.sidebar-collapsed .sidebar-toggle-floating {
  display: inline-flex;
}

.dashboard-page.sidebar-collapsed .dashboard-topbar {
  padding-left: 60px;
  min-height: 48px;
}

.dashboard-page .page-kicker {
  display: none;
}

.dashboard-page .page-subtitle {
  margin: 6px 0 0;
  color: #525252;
  max-width: 560px;
  font-size: 14px;
}

.dashboard-page .topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.dashboard-page .topbar-actions .primary-cta,
.dashboard-page .topbar-actions .secondary-action {
  width: auto;
}

.dashboard-page .topbar-actions .theme-toggle {
  margin-left: auto;
}

.dashboard-page .company-pill,
.dashboard-page .card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 17, 17, 0.14);
  color: #111111;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page.estoque-page .estoque-status-chip {
  min-height: 30px;
  padding: 0 14px;
  font-size: 13px;
}

.dashboard-page.estoque-page .estoque-status-ativo {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
  color: #0f5132;
}

.dashboard-page.estoque-page .estoque-status-inativo {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.32);
  color: #7f1d1d;
}

html.theme-dark .dashboard-page.estoque-page .estoque-status-chip {
  background: rgba(32, 32, 32, 0.96);
  border-color: rgba(244, 194, 29, 0.18);
  color: #ffffff;
}

html.theme-dark .dashboard-page.estoque-page .estoque-status-ativo {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.42);
  color: #86efac;
}

html.theme-dark .dashboard-page.estoque-page .estoque-status-inativo {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
  color: #fca5a5;
}

.dashboard-page .company-pill.is-muted {
  color: #6b6b6b;
}

.dashboard-page .company-switcher {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
}

.dashboard-page .company-switcher-trigger {
  gap: 8px;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.dashboard-page .company-switcher-trigger svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: currentColor;
}

.dashboard-page .company-switcher-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.theme-dark .dashboard-page .company-switcher-trigger {
  background: rgba(32, 32, 32, 0.96);
  border-color: rgba(244, 194, 29, 0.22);
  color: #edf1f7;
}

html.theme-dark .dashboard-page .company-switcher-trigger svg {
  color: #c7cbe0;
}

.dashboard-page .company-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  max-width: 320px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(244, 194, 29, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 6px;
  z-index: 30;
}

.dashboard-page .company-switcher {
  z-index: 100;
}

.dashboard-page .company-switcher-menu.is-positioned {
  position: fixed;
  left: var(--company-menu-left);
  top: var(--company-menu-top);
  z-index: 5000;
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

.dashboard-page .company-switcher-menu.is-positioned .company-switcher-list {
  max-height: calc(100vh - 112px);
}

.dashboard-page .company-switcher-menu[hidden] {
  display: none !important;
}

.dashboard-page .company-switcher-search {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  background: #ffffff;
  color: #111111;
}

.dashboard-page .company-switcher-list {
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
}

.dashboard-page .company-switcher-option {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-page .company-switcher-option[hidden] {
  display: none !important;
}

.dashboard-page .company-switcher-option-code {
  font-weight: 400;
  color: #6b6b6b;
}

.dashboard-page .company-switcher-option:hover,
.dashboard-page .company-switcher-option.is-active {
  background: rgba(244, 194, 29, 0.12);
}

.dashboard-page .company-switcher-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: #6b6b6b;
}

html.theme-dark .dashboard-page .company-switcher-menu {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.18);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
}

html.theme-dark .dashboard-page .company-switcher-search {
  background: rgba(20, 20, 20, 0.9);
  border-color: rgba(244, 194, 29, 0.2);
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .company-switcher-option {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .company-switcher-option-code {
  color: #aeb4c5;
}

html.theme-dark .dashboard-page .company-switcher-option:hover,
html.theme-dark .dashboard-page .company-switcher-option.is-active {
  background: rgba(244, 194, 29, 0.14);
}

html.theme-dark .dashboard-page .company-switcher-empty {
  color: #aeb4c5;
}

.dashboard-page .mobile-filter-trigger {
  display: none;
}

.dashboard-page .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #111111;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dashboard-page .theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #9a9a9a;
  transition: color 0.18s ease;
}

.dashboard-page .theme-toggle-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-page .theme-toggle-icon-light {
  color: #fad32b;
}

.dashboard-page .theme-toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.16);
  transition: background 0.2s ease;
}

.dashboard-page .theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.dashboard-page .theme-toggle[aria-pressed="true"] .theme-toggle-track {
  background: linear-gradient(135deg, #fad32b 0%, #d1aa00 100%);
}

.dashboard-page .theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(16px);
  background: #111111;
}

.dashboard-page .theme-toggle[aria-pressed="true"] .theme-toggle-icon-dark {
  color: #fad32b;
}

.dashboard-page .theme-toggle[aria-pressed="true"] .theme-toggle-icon-light {
  color: #fad32b;
}

.dashboard-page .theme-toggle-label {
  white-space: nowrap;
}

.theme-dark .dashboard-page .theme-toggle {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.10);
  color: #f2f1f5;
}

.theme-dark .dashboard-page .theme-toggle-track {
  background: rgba(255, 255, 255, 0.14);
}

.theme-dark .dashboard-page .theme-toggle-thumb {
  background: #f2f1f5;
}

.theme-dark .dashboard-page .theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  background: #111111;
}

@media (max-width: 760px) {
  .dashboard-page .theme-toggle-label {
    display: none;
  }
}

html.theme-dark {
  color-scheme: dark;
  --bg: #1a1a1a;
  --card: #222222;
  --text: #ffffff;
  --muted: #ffffff;
  --primary: #f4c21d;
  --primary-strong: #ffd84d;
  --border: #363636;
  --accent: #f4c21d;
  --accent-strong: #d4a700;
  --accent-soft: rgba(244, 194, 29, 0.16);
}

html.theme-dark body {
  background:
    radial-gradient(circle at top left, rgba(244, 194, 29, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  color: var(--text);
}

html.theme-dark .dashboard-page {
  background: transparent;
  color: var(--text);
}

html.theme-dark .dashboard-page .dashboard-sidebar {
  background: linear-gradient(180deg, #151515 0%, #1a1a1a 100%);
  border-right-color: rgba(244, 194, 29, 0.14);
  box-shadow: 20px 0 45px rgba(0, 0, 0, 0.32);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

html.theme-dark .dashboard-page .sidebar-brand-mark {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html.theme-dark .dashboard-page .sidebar-eyebrow,
html.theme-dark .dashboard-page .sidebar-nav-title,
html.theme-dark .dashboard-page .sidebar-link-label,
html.theme-dark .dashboard-page .dashboard-topbar .page-subtitle,
html.theme-dark .dashboard-page .dashboard-topbar .page-kicker,
html.theme-dark .dashboard-page .records-count,
html.theme-dark .dashboard-page .stat-label,
html.theme-dark .dashboard-page .stat-meta,
html.theme-dark .dashboard-page .table-subtext,
html.theme-dark .dashboard-page .picker-trigger-label,
html.theme-dark .dashboard-page .picker-empty-state,
html.theme-dark .dashboard-page .picker-modal-hint,
html.theme-dark .dashboard-page .card-empty-copy,
html.theme-dark .dashboard-page .company-pill.is-muted,
html.theme-dark .dashboard-page .company-empty-state p {
  color: #b5bdcc;
}

html.theme-dark .dashboard-page .sidebar-brand h1,
html.theme-dark .dashboard-page .dashboard-topbar h2,
html.theme-dark .dashboard-page .content-card h3,
html.theme-dark .dashboard-page .company-empty-state h3,
html.theme-dark .dashboard-page.cadastro-page .dashboard-topbar h2 {
  color: #ffffff;
}

html.theme-dark .dashboard-page .sidebar-link {
  color: #edf1f7;
}

html.theme-dark .dashboard-page .sidebar-link:hover,
html.theme-dark .dashboard-page .sidebar-link.is-active {
  color: #ffffff;
}

html.theme-dark .dashboard-page .sidebar-link:hover {
  background: rgba(244, 194, 29, 0.10);
}

html.theme-dark .dashboard-page .sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(244, 194, 29, 0.18), rgba(244, 194, 29, 0.06));
}

html.theme-dark .dashboard-page .sidebar-footer {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.08), transparent 34%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border-color: rgba(244, 194, 29, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html.theme-dark .dashboard-page .sidebar-user strong {
  color: #ffffff;
}

html.theme-dark .dashboard-page .sidebar-user p {
  color: #aeb4c5;
}

html.theme-dark .dashboard-page .sidebar-footer .secondary-action {
  background: #1a1a1a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

html.theme-dark .dashboard-page .sidebar-footer .secondary-action:hover {
  background: #222222;
}

html.theme-dark .dashboard-page .sidebar-footer .danger-action {
  background: #1a1113;
  color: #ffb7b7;
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: none;
}

html.theme-dark .dashboard-page .sidebar-footer .danger-action:hover {
  background: #241214;
}

html.theme-dark .dashboard-page .sidebar-toggle:not(.sidebar-toggle-inline):not(.sidebar-toggle-floating),
html.theme-dark .dashboard-page .theme-toggle,
html.theme-dark .dashboard-page .secondary-action,
html.theme-dark .dashboard-page .modal-close,
html.theme-dark .dashboard-page .pagination-link,
html.theme-dark .dashboard-page .picker-trigger,
html.theme-dark .dashboard-page .transaction-inline-action {
  background: #fad32b;
  color: #111111;
  border-color: rgba(202, 166, 43, 0.26);
}

html.theme-dark .dashboard-page .sidebar-toggle-inline,
html.theme-dark .dashboard-page .sidebar-toggle-floating {
  background: transparent !important;
  color: #FAD32B !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html.theme-dark .dashboard-page .sidebar-footer .secondary-action {
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .theme-toggle {
  background: #1a1a1a;
  color: #f2f1f5;
  border-color: rgba(255, 255, 255, 0.10);
}

html.theme-dark .dashboard-page .theme-toggle:hover {
  background: #222222;
}

html.theme-dark .dashboard-page :is(
  .sidebar-eyebrow,
  .sidebar-nav-title,
  .sidebar-link-label,
  .dashboard-topbar .page-subtitle,
  .dashboard-topbar .page-kicker,
  .records-count,
  .stat-label,
  .stat-meta,
  .table-subtext,
  .picker-trigger-label,
  .picker-trigger-summary,
  .picker-empty-state,
  .picker-modal-hint,
  .card-empty-copy,
  .company-pill.is-muted,
  .company-empty-state p,
  .company-empty-state h3,
  .content-card h3,
  .card-kicker,
  .finance-chart-legend,
  .recent-moves-date,
  .recent-moves-copy strong,
  .recent-moves-copy span,
  .latest-tx-copy strong,
  .latest-tx-copy span,
  .finance-tab,
  .finance-mini-tab,
  .finance-tab:hover,
  .finance-mini-tab:hover,
  .finance-tab.is-active,
  .finance-mini-tab.is-active,
  .finance-date-pill,
  .primary-action:not(.cadastro-export-button),
  .primary-cta,
  .secondary-action,
  .modal-close,
  .pagination-link,
  .picker-trigger,
  .transaction-inline-action,
  .finance-ghost-action,
  .finance-topbar-action,
  .finance-period-option,
  .flash-message,
  .filter-field label,
  .filter-field input,
  .filter-field select,
  .company-overlay-form select,
  .modal-form label,
  .modal-form input,
  .modal-form select,
  .modal-form textarea,
  .export-layout,
  .select-search-input,
  .cadastro-field label,
  .dashboard-table th,
  .dashboard-table td,
  .relatorio-table th,
  .relatorio-table td,
  .cadastro-table th,
  .cadastro-table td
) {
  color: #ffffff !important;
}

.dashboard-page .cheque-table-footer .pagination-number,
.dashboard-page .cheque-table-footer .pagination-number:hover,
.dashboard-page .cheque-table-footer .pagination-number.is-active {
  color: #111111 !important;
}

.dashboard-page .cheque-table-footer .pagination-symbol,
.dashboard-page .cheque-table-footer .pagination-symbol:hover {
  color: #f4c21d !important;
}

html.theme-dark .dashboard-page .cheque-table-footer .pagination-number,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-number:hover,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-number.is-active {
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .cheque-table-footer .pagination-symbol,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-symbol:hover {
  color: #f4c21d !important;
}

/* A engrenagem de Cheques usa contraste escuro no tema claro. */
.dashboard-page:not(.theme-dark) .cheque-action-menu > summary.cheque-toolbar-icon,
.dashboard-page:not(.theme-dark) .cheque-action-menu > summary.cheque-toolbar-icon svg {
  color: #111111 !important;
  border-color: rgba(17, 17, 17, 0.22) !important;
}

html:not(.theme-dark) .dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon,
html:not(.theme-dark) .dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon svg {
  color: #111111 !important;
  border-color: rgba(17, 17, 17, 0.22) !important;
}

/* Garante as cores da paginação de Cheques após as regras responsivas do tema. */
.dashboard-page .cheque-table-footer .pagination-link,
.dashboard-page .cheque-table-footer .pagination-link:hover,
.dashboard-page .cheque-table-footer .pagination-link.is-active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dashboard-page .cheque-table-footer .pagination-number,
.dashboard-page .cheque-table-footer .pagination-number:hover,
.dashboard-page .cheque-table-footer .pagination-number.is-active {
  color: #111111 !important;
}

.dashboard-page .cheque-table-footer .pagination-symbol,
.dashboard-page .cheque-table-footer .pagination-symbol:hover {
  color: #f4c21d !important;
}

html.theme-dark .dashboard-page .cheque-table-footer .pagination-number,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-number:hover,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-number.is-active {
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .cheque-table-footer .pagination-symbol,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-symbol:hover {
  color: #f4c21d !important;
}

.dashboard-page .fiscal-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page .fiscal-status-pill.is-neutral {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

.dashboard-page .fiscal-status-pill.is-warning {
  background: rgba(244, 194, 29, 0.2);
  color: #7a5b00;
}

.dashboard-page .fiscal-status-pill.is-success {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.dashboard-page .fiscal-status-pill.is-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #b42318;
}

html.theme-dark .dashboard-page .fiscal-status-pill.is-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html.theme-dark .dashboard-page .fiscal-status-pill.is-warning {
  background: rgba(244, 194, 29, 0.16);
  color: #fbd34d;
}

html.theme-dark .dashboard-page .fiscal-status-pill.is-success {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html.theme-dark .dashboard-page .fiscal-status-pill.is-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.fiscal-attempt-details-stack {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.fiscal-attempt-details {
  margin-top: 8px;
  color: inherit;
}

.fiscal-attempt-details summary {
  cursor: pointer;
  color: #f5cd23;
  font-size: 0.78rem;
  font-weight: 700;
}

.fiscal-attempt-details pre {
  max-height: 220px;
  margin: 8px 0 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(245, 205, 35, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font: 0.72rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* The company hub groups long administrative forms into compact, independent panels. */
.dashboard-page .company-settings-nav {
  position: sticky;
  top: -22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -22px 18px;
  padding: 12px 22px;
  background: rgba(248, 251, 253, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(12px);
}

.dashboard-page .company-settings-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-page .company-settings-tab:hover,
.dashboard-page .company-settings-tab:focus-visible,
.dashboard-page .company-settings-tab.is-active {
  border-color: rgba(202, 138, 4, 0.58);
  background: #facc15;
  color: #1f2937;
}

.dashboard-page .company-settings-panel {
  display: none;
}

.dashboard-page .company-settings-panel.is-active {
  display: grid;
  gap: 14px;
}

.dashboard-page .company-settings-disclosure {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.dashboard-page .company-settings-disclosure summary {
  padding: 14px 16px;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-page .company-settings-disclosure .modal-form {
  padding: 0 16px 16px;
}

.dashboard-page .company-settings-panels .modal-form input[type="checkbox"] {
  appearance: auto;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  accent-color: #fad32b;
  cursor: pointer;
}

.dashboard-page .company-settings-disclosure .modal-form-grid p:has(input[type="checkbox"]) {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: calc(50% - 10px);
  margin-right: 16px;
  gap: 10px;
}

.dashboard-page .company-settings-disclosure .modal-form-grid p:has(input[type="checkbox"]) label {
  display: block;
  flex: 0 0 auto;
}

html.theme-dark .dashboard-page .company-settings-nav {
  background: rgba(24, 24, 24, 0.96);
  border-bottom-color: rgba(250, 211, 43, 0.2);
}

html.theme-dark .dashboard-page .company-settings-tab {
  border-color: rgba(255, 255, 255, 0.16);
  background: #252525;
  color: #e5e7eb;
}

html.theme-dark .dashboard-page .company-settings-tab:hover,
html.theme-dark .dashboard-page .company-settings-tab:focus-visible,
html.theme-dark .dashboard-page .company-settings-tab.is-active {
  border-color: #fad32b;
  background: #fad32b;
  color: #151515;
}

html.theme-dark .dashboard-page .company-settings-disclosure {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
}

html.theme-dark .dashboard-page .company-settings-disclosure summary {
  color: #ffffff;
}

html.theme-dark .dashboard-page .company-settings-panels .modal-form input[type="checkbox"] {
  background: transparent;
  border: 0;
  accent-color: #fad32b;
}

@media (max-width: 640px) {
  .dashboard-page .company-settings-nav {
    top: -18px;
    margin: 0 -16px 16px;
    padding: 10px 16px;
  }

  .dashboard-page .company-settings-disclosure .modal-form-grid p:has(input[type="checkbox"]) {
    display: flex;
    width: 100%;
    margin-right: 0;
  }
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-shell {
  padding: 22px;
  overflow: visible;
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background:
    radial-gradient(circle at top right, rgba(250, 211, 43, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-hero-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-backdrop-icon,
.dashboard-page.fiscal-emissoes-page .fiscal-form-title-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  background: linear-gradient(180deg, #fad32b 0%, #f4c21d 100%);
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.24);
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-backdrop-icon svg,
.dashboard-page.fiscal-emissoes-page .fiscal-form-title-icon svg {
  width: 22px;
  height: 22px;
  color: #111111;
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-workspace {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #5b6472;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tab:hover {
  border-color: rgba(244, 194, 29, 0.4);
}

.dashboard-page.fiscal-emissoes-page .fiscal-tab-index {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.06);
  color: #111111;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tab.is-active {
  border-color: rgba(244, 194, 29, 0.5);
  background: rgba(250, 211, 43, 0.14);
  color: #111111;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tab.is-active .fiscal-tab-index {
  background: linear-gradient(180deg, #fad32b 0%, #f4c21d 100%);
}

.dashboard-page.fiscal-emissoes-page .fiscal-tab.is-active .fiscal-tab-badge {
  background: rgba(17, 17, 17, 0.1);
}

.dashboard-page.fiscal-emissoes-page .fiscal-side-card,
.dashboard-page.fiscal-emissoes-page .fiscal-form-card {
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.dashboard-page.fiscal-emissoes-page .fiscal-side-card {
  padding: 22px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tip-list,
.dashboard-page.fiscal-emissoes-page .fiscal-summary-stack {
  display: grid;
  gap: 14px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-summary-mini-card strong,
.dashboard-page.fiscal-emissoes-page .fiscal-summary-highlight strong,
.dashboard-page.fiscal-emissoes-page .fiscal-side-card-heading h3 {
  display: block;
}

.dashboard-page.fiscal-emissoes-page .fiscal-tip-item,
.dashboard-page.fiscal-emissoes-page .fiscal-summary-mini-card span,
.dashboard-page.fiscal-emissoes-page .fiscal-summary-empty {
  font-size: 13px;
  line-height: 1.5;
  color: #5b6472;
}

.dashboard-page.fiscal-emissoes-page .fiscal-draft-form {
  display: grid;
  gap: 20px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-card {
  padding: 24px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-card-header,
.dashboard-page.fiscal-emissoes-page .fiscal-side-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-card-header-inline {
  align-items: center;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-errors {
  margin-bottom: 18px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-grid,
.dashboard-page.fiscal-emissoes-page .fiscal-item-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-field-full,
.dashboard-page.fiscal-emissoes-page .fiscal-item-field-full {
  grid-column: 1 / -1;
}

.dashboard-page.fiscal-emissoes-page .fiscal-draft-customer-date-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(150px, 1fr);
  gap: 16px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-date-field input {
  width: 100%;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-grid textarea {
  width: 100%;
  max-width: none;
  display: block;
  min-height: 120px;
  resize: vertical;
}

.dashboard-page.fiscal-emissoes-page .fiscal-consumer-field {
  display: grid;
  gap: 6px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  cursor: pointer;
  font-weight: 700;
}

.dashboard-page.fiscal-emissoes-page .fiscal-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #f5cd23;
}

.dashboard-page.fiscal-emissoes-page .fiscal-consumer-field small {
  color: var(--muted-text, #9da3ad);
  font-size: 0.78rem;
}

.dashboard-page.fiscal-emissoes-page .fiscal-additional-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.dashboard-page.fiscal-emissoes-page .fiscal-additional-details summary {
  cursor: pointer;
  font-weight: 800;
}

.dashboard-page.fiscal-emissoes-page .fiscal-additional-grid {
  margin-top: 16px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-formset-grid {
  display: grid;
  gap: 16px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.84);
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-table th,
.dashboard-page.fiscal-emissoes-page .fiscal-item-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  vertical-align: middle;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-table th {
  background: rgba(15, 23, 42, 0.04);
  color: #5b6472;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-table :is(input, select) {
  width: 100%;
  min-width: 0;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-number {
  width: 42px;
  color: #5b6472;
  font-weight: 800;
  text-align: center;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-product-cell {
  min-width: 260px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-cfop-cell {
  min-width: 150px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-actions-cell {
  width: 72px;
  text-align: right;
}

.dashboard-page.fiscal-emissoes-page .fiscal-selected-purchase-document {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-selected-purchase-document :is(strong, span, label) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-page.fiscal-emissoes-page .fiscal-selected-purchase-document form {
  margin-top: 4px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-remove-purchase-document-button {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.dashboard-page.fiscal-emissoes-page .fiscal-remove-purchase-document-button:hover,
.dashboard-page.fiscal-emissoes-page .fiscal-remove-purchase-document-button:focus-visible {
  border-color: #ef4444;
  background: rgba(220, 38, 38, 0.16);
  color: #b91c1c;
}

.dashboard-page.fiscal-emissoes-page .fiscal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-entry[hidden],
.dashboard-page.fiscal-emissoes-page .fiscal-summary-empty[hidden] {
  display: none !important;
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.84);
  background: rgba(248, 250, 252, 0.84);
}

.dashboard-page.fiscal-emissoes-page .fiscal-item-card-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-remove-item-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-page.fiscal-emissoes-page .fiscal-remove-item-button:hover,
.dashboard-page.fiscal-emissoes-page .fiscal-remove-item-button:focus-visible {
  color: #e11d48;
  text-decoration: none;
}

.dashboard-page.fiscal-emissoes-page .fiscal-emission-sidebar {
  display: grid;
  gap: 20px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-summary-highlight {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(244, 194, 29, 0.18);
  background:
    radial-gradient(circle at top right, rgba(250, 211, 43, 0.16), transparent 42%),
    rgba(17, 17, 17, 0.04);
}

.dashboard-page.fiscal-emissoes-page .fiscal-summary-highlight span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6472;
}

.dashboard-page.fiscal-emissoes-page .fiscal-summary-highlight strong {
  font-size: 28px;
  line-height: 1.1;
  color: #111111;
}

.dashboard-page.fiscal-emissoes-page .fiscal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page.fiscal-emissoes-page .fiscal-summary-mini-card,
.dashboard-page.fiscal-emissoes-page .fiscal-tip-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.84);
  background: rgba(248, 250, 252, 0.82);
}

.dashboard-page.fiscal-emissoes-page .fiscal-summary-mini-card strong {
  margin-top: 6px;
  font-size: 18px;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page.fiscal-emissoes-page .fiscal-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-emission-hero,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-side-card,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-form-card {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(31, 31, 31, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-card,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-summary-mini-card,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tip-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table-wrap {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #b5bdcc;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table td {
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-number {
  color: #b5bdcc;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-remove-purchase-document-button {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-remove-purchase-document-button:hover,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-remove-purchase-document-button:focus-visible {
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-remove-item-button {
  color: #ff8b8b;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tab {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  color: #b5bdcc;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tab:hover {
  border-color: rgba(244, 194, 29, 0.3);
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tab-index,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tab-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tab.is-active {
  border-color: rgba(244, 194, 29, 0.34);
  background: linear-gradient(180deg, rgba(244, 194, 29, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #ffffff;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tab.is-active .fiscal-tab-index {
  background: linear-gradient(180deg, #fad32b 0%, #f4c21d 100%);
  color: #111111;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-tip-item,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-summary-mini-card span,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-summary-empty,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-summary-highlight span {
  color: #b5bdcc;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-summary-highlight {
  border-color: rgba(244, 194, 29, 0.22);
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-summary-highlight strong,
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-summary-mini-card strong {
  color: #ffffff;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-form-footer .secondary-action {
  color: #111111 !important;
}

@media (max-width: 1380px) {
  .dashboard-page.fiscal-emissoes-page .fiscal-emission-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-emission-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-page.fiscal-emissoes-page .fiscal-emission-shell {
    padding: 16px;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-emission-hero,
  .dashboard-page.fiscal-emissoes-page .fiscal-form-card,
  .dashboard-page.fiscal-emissoes-page .fiscal-side-card {
    padding: 18px;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-tabs {
    gap: 8px;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 12px;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-tab-label {
    font-size: 0.85rem;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-emission-hero,
  .dashboard-page.fiscal-emissoes-page .fiscal-form-card-header-inline,
  .dashboard-page.fiscal-emissoes-page .fiscal-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-emission-hero-actions,
  .dashboard-page.fiscal-emissoes-page .fiscal-emission-sidebar {
    grid-template-columns: 1fr;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-form-grid,
  .dashboard-page.fiscal-emissoes-page .fiscal-item-fields,
  .dashboard-page.fiscal-emissoes-page .fiscal-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page.fiscal-emissoes-page .fiscal-draft-customer-date-row {
    grid-template-columns: 1fr;
  }
}

html.theme-dark .dashboard-page :is(
  .secondary-action,
  .primary-action:not(.cadastro-export-button),
  .primary-cta,
  .sidebar-toggle:not(.sidebar-toggle-inline):not(.sidebar-toggle-floating),
  .pagination-link,
  .transaction-inline-action,
  .summary-account-view-all,
  .edit-tooltip .edit-cancel,
  .modal-close
) {
  color: #111111 !important;
}

html.theme-dark .dashboard-page .sidebar-footer .sidebar-footer-actions .secondary-action {
  color: #ffffff !important;
}

/* Linguagem visual operacional compartilhada com o módulo Fiscal. */
html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) {
  --fiscal-panel: #1b1e20;
  --fiscal-panel-deep: #17191b;
  --fiscal-border: #303438;
  --fiscal-muted: #bec3cc;
  background: radial-gradient(ellipse at 70% 0, #222425 0, transparent 45%), #101213;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .dashboard-main {
  background: transparent;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .dashboard-topbar {
  border-bottom: 1px solid var(--fiscal-border);
  background: #121516;
}

html.theme-dark .dashboard-page:is(.cadastros-erp-page, .estoque-page) .dashboard-topbar {
  border-bottom-color: transparent;
  background: transparent;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.content-card, .filters-card) {
  border-color: var(--fiscal-border);
  border-radius: 13px;
  background: linear-gradient(115deg, var(--fiscal-panel), var(--fiscal-panel-deep));
  box-shadow: none;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .stat-card {
  border-color: var(--fiscal-border);
  border-radius: 12px;
  background: linear-gradient(150deg, #202325, #181b1d);
  box-shadow: none;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .stat-icon {
  border-radius: 11px;
  background: rgba(250, 211, 43, 0.18);
  color: #fad32b;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.primary-action, .primary-cta) {
  border-color: #eccd29;
  border-radius: 9px;
  background: linear-gradient(115deg, #ffde39, #fad021);
  color: #0c0d0d !important;
  box-shadow: none;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.secondary-action, .cadastro-import-button, .cadastro-export-button) {
  border-color: #3a3e41;
  border-radius: 9px;
  background: #1c2022;
  color: #f1f3f5;
  box-shadow: none;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.primary-action, .primary-cta, .secondary-action, .cadastro-import-button, .cadastro-export-button):hover {
  filter: none;
  border-color: #d7b51c;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .dashboard-table {
  border-color: var(--fiscal-border);
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .dashboard-table th {
  background: #202325;
  border-color: #34383b;
  color: #f5f5f6;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .dashboard-table td {
  border-color: #2d3134;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(input, select, textarea) {
  border-color: #35393c;
  background: #171a1c;
  color: #eff1f3;
}

html.theme-dark .dashboard-page .edit-tooltip .edit-form,
html.theme-dark .dashboard-page .edit-tooltip .app-modal-card,
html.theme-dark .dashboard-page .edit-tooltip .company-overlay-card {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.99) 0%, rgba(22, 22, 22, 0.99) 100%) !important;
  border-color: rgba(244, 194, 29, 0.16) !important;
  color: #ffffff !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42) !important;
}

html.theme-dark .dashboard-page .edit-tooltip .edit-grid label {
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .edit-tooltip .edit-grid input,
html.theme-dark .dashboard-page .edit-tooltip .edit-grid select {
  background: #1a1a1a !important;
  border-color: rgba(244, 194, 29, 0.18) !important;
  color: #f5f7fb !important;
}

html.theme-dark .dashboard-page .edit-tooltip .edit-grid input::placeholder {
  color: #8f98a8 !important;
}

html.theme-dark .dashboard-page .edit-tooltip .edit-cancel {
  background: #f4c21d !important;
  color: #111111 !important;
  border-color: rgba(244, 194, 29, 0.45) !important;
}

html.theme-dark .dashboard-page .edit-tooltip .primary-action {
  background: linear-gradient(135deg, #f4c21d 0%, #d4a700 100%) !important;
  color: #111111 !important;
}

html.theme-dark .dashboard-page :is(
  .value-positive,
  td.value-positive,
  .dashboard-table td.value-positive,
  .relatorio-table td.value-positive,
  .cadastro-table td.value-positive
) {
  color: #34d399 !important;
}

html.theme-dark .dashboard-page :is(
  .value-negative,
  td.value-negative,
  .dashboard-table td.value-negative,
  .relatorio-table td.value-negative,
  .cadastro-table td.value-negative
) {
  color: #f87171 !important;
}

html.theme-dark .dashboard-page .value-positive {
  color: #34d399 !important;
}

html.theme-dark .dashboard-page .value-negative {
  color: #f87171 !important;
}

html.theme-dark .dashboard-page :is(
  .sidebar-eyebrow,
  .sidebar-nav-title,
  .sidebar-link-label,
  .dashboard-topbar .page-subtitle,
  .dashboard-topbar .page-kicker,
  .records-count,
  .stat-label,
  .stat-meta,
  .table-subtext,
  .picker-trigger-label,
  .picker-trigger-summary,
  .picker-empty-state,
  .picker-modal-hint,
  .card-empty-copy,
  .company-pill.is-muted,
  .company-empty-state p,
  .company-empty-state h3,
  .content-card h3,
  .card-kicker,
  .finance-chart-legend,
  .recent-moves-date,
  .recent-moves-copy strong,
  .recent-moves-copy span,
  .latest-tx-copy strong,
  .latest-tx-copy span,
  .finance-tab,
  .finance-mini-tab,
  .finance-tab:hover,
  .finance-mini-tab:hover,
  .finance-tab.is-active,
  .finance-mini-tab.is-active,
  .finance-date-pill,
  .finance-ghost-action,
  .finance-topbar-action,
  .finance-period-option,
  .flash-message,
  .filter-field label,
  .filter-field input,
  .filter-field select,
  .company-overlay-form select,
  .modal-form label,
  .modal-form input,
  .modal-form select,
  .modal-form textarea,
  .export-layout,
  .select-search-input,
  .cadastro-field label,
  .dashboard-table th,
  .dashboard-table td,
  .relatorio-table th,
  .relatorio-table td,
  .cadastro-table th,
  .cadastro-table td
) {
  color: #ffffff !important;
}

/* Mantém todos os controles acionáveis planos, sem brilho ou sombra projetada. */
.dashboard-page :is(
  button,
  input[type="submit"],
  input[type="button"],
  .primary-action,
  .primary-cta,
  .secondary-action,
  .danger-action,
  .modal-close,
  .pagination-link,
  .picker-trigger,
  .transaction-inline-action,
  .finance-ghost-action,
  .finance-topbar-action,
  .summary-account-view-all,
  .associados-icon-action
) {
  box-shadow: none !important;
}

html.theme-dark .dashboard-page .sidebar-toggle:hover,
html.theme-dark .dashboard-page .secondary-action:hover,
html.theme-dark .dashboard-page .modal-close:hover,
html.theme-dark .dashboard-page .pagination-link:hover,
html.theme-dark .dashboard-page .picker-trigger:hover,
html.theme-dark .dashboard-page .transaction-inline-action:hover {
  background: #f4c21d;
}

html.theme-dark .dashboard-page .sidebar-toggle-inline:hover,
html.theme-dark .dashboard-page .sidebar-toggle-inline:focus-visible,
html.theme-dark .dashboard-page .sidebar-toggle-floating:hover,
html.theme-dark .dashboard-page .sidebar-toggle-floating:focus-visible {
  background: transparent !important;
  color: #FAD32B !important;
}

.dashboard-page .sidebar-toggle:hover,
.dashboard-page .sidebar-toggle:focus-visible {
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
  color: #111111;
}

.dashboard-page .sidebar-toggle-inline:hover,
.dashboard-page .sidebar-toggle-inline:focus-visible,
.dashboard-page .sidebar-toggle-floating:hover,
.dashboard-page .sidebar-toggle-floating:focus-visible {
  background: transparent;
  color: #FAD32B;
}

.dashboard-page.company-admin-page .sidebar-toggle-inline:hover,
.dashboard-page.company-admin-page .sidebar-toggle-inline:focus-visible {
  background: transparent;
  color: #FAD32B;
  box-shadow: none;
}

.dashboard-page.cadastro-page .sidebar-toggle-inline:hover,
.dashboard-page.cadastro-page .sidebar-toggle-inline:focus-visible {
  background: transparent;
  color: #FAD32B;
  box-shadow: none;
}

html.theme-dark .dashboard-page.company-admin-page .sidebar-toggle-inline:hover,
html.theme-dark .dashboard-page.company-admin-page .sidebar-toggle-inline:focus-visible {
  background: transparent;
  color: #FAD32B;
  box-shadow: none;
}

html.theme-dark .dashboard-page.cadastro-page .sidebar-toggle-inline:hover,
html.theme-dark .dashboard-page.cadastro-page .sidebar-toggle-inline:focus-visible {
  background: transparent;
  color: #FAD32B;
  box-shadow: none;
}

html.theme-dark .dashboard-page .primary-action,
html.theme-dark .dashboard-page .primary-cta {
  background: linear-gradient(135deg, #f4c21d 0%, #d4a700 100%);
  color: #111111;
  box-shadow: 0 12px 24px rgba(212, 167, 0, 0.22);
}

html.theme-dark .dashboard-page .filter-submit .primary-action {
  color: #111111 !important;
}

html.theme-dark .dashboard-page .danger-action {
  background: #1a1113;
  color: #ffb7b7;
  border-color: rgba(239, 68, 68, 0.22);
}

html.theme-dark .dashboard-page .filters-card,
html.theme-dark .dashboard-page .content-card,
html.theme-dark .dashboard-page .stat-card,
html.theme-dark .dashboard-page .flash-message,
html.theme-dark .dashboard-page .company-overlay-card,
html.theme-dark .dashboard-page .edit-tooltip,
html.theme-dark .dashboard-page .context-menu,
html.theme-dark .dashboard-page .app-modal-card,
html.theme-dark .dashboard-page .drawer-card {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
}

html.theme-dark .dashboard-page .company-overlay-card h2 {
  color: #ffffff;
}

html.theme-dark .dashboard-page .edit-tooltip .edit-form {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
}

html.theme-dark .dashboard-page .edit-tooltip .modal-header h3,
html.theme-dark .dashboard-page .edit-tooltip .modal-header .card-kicker,
html.theme-dark .dashboard-page .edit-tooltip .edit-grid label {
  color: #ffffff;
}

html.theme-dark .dashboard-page .edit-tooltip .edit-grid input,
html.theme-dark .dashboard-page .edit-tooltip .edit-grid select {
  background: #1a1a1a;
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.10);
}

html.theme-dark .dashboard-page .edit-tooltip .edit-grid input::placeholder {
  color: #9ba6b8;
}

html.theme-dark .dashboard-page .company-pill {
  background: rgba(244, 194, 29, 0.14);
  border-color: rgba(244, 194, 29, 0.22);
  color: #ffffff;
}

html.theme-dark .dashboard-page .company-pill.is-muted {
  background: rgba(255, 255, 255, 0.04);
}

html.theme-dark .dashboard-page .card-chip {
  background: rgba(32, 32, 32, 0.96);
  border-color: rgba(244, 194, 29, 0.18);
  color: #ffffff;
}

html.theme-dark .dashboard-page .filters-card .filter-field label {
  color: #ffffff;
}

html.theme-dark .dashboard-page .filters-card .filter-field input,
html.theme-dark .dashboard-page .filters-card .filter-field select {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact th,
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact td {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact thead th {
  background: rgba(244, 194, 29, 0.10);
  color: #ffffff;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:nth-child(odd),
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:hover td {
  background: rgba(244, 194, 29, 0.06);
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
}

html.theme-dark .dashboard-page .summary-modal-card .card-chip {
  background: rgba(32, 32, 32, 0.96);
  border-color: rgba(244, 194, 29, 0.22);
  color: #ffffff;
}

html.theme-dark .dashboard-page .summary-modal-card .summary-modal-hint {
  color: #aeb4c5;
}

html.theme-dark .dashboard-page .summary-account-search {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .summary-account-search::placeholder {
  color: #9ba6b8;
}

html.theme-dark .dashboard-page .summary-account-view-all {
  color: #111111 !important;
}

html.theme-dark .dashboard-page .picker-modal-card {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(24, 24, 24, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
}

html.theme-dark .dashboard-page .picker-modal-label {
  color: #ffffff;
}

html.theme-dark .dashboard-page .picker-modal-input {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .picker-modal-input::placeholder {
  color: #9ba6b8;
}

html.theme-dark .dashboard-page .picker-results-wrap {
  background: rgba(18, 18, 18, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page .picker-result-item {
  color: #f5f7fb;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark .dashboard-page .picker-result-item:hover,
html.theme-dark .dashboard-page .picker-result-item.is-active {
  background: linear-gradient(180deg, rgba(244, 194, 29, 0.12), rgba(255, 255, 255, 0.03));
}

html.theme-dark .dashboard-page .picker-result-label {
  color: #ffffff;
}

html.theme-dark .dashboard-page .picker-result-value {
  color: #b5bdcc;
}

html.theme-dark .dashboard-page .picker-empty-state {
  color: #b5bdcc;
}

html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact th,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact td {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #f5f7fb !important;
}

html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact thead th {
  background: rgba(244, 194, 29, 0.12) !important;
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:nth-child(odd),
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04) !important;
}

html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:hover td {
  background: rgba(244, 194, 29, 0.06) !important;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:first-child th:first-child,
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:first-child td:first-child,
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact thead tr:first-child th:first-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:first-child th:first-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:first-child td:first-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact thead tr:first-child th:first-child {
  border-top-left-radius: 14px;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:first-child th:last-child,
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:first-child td:last-child,
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact thead tr:first-child th:last-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:first-child th:last-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:first-child td:last-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact thead tr:first-child th:last-child {
  border-top-right-radius: 14px;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:last-child th:first-child,
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:last-child td:first-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:last-child th:first-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:last-child th:last-child,
html.theme-dark .dashboard-page .compact-card .relatorio-table-compact tbody tr:last-child td:last-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:last-child th:last-child,
html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:first-child td {
  color: #34d399 !important;
}

html.theme-dark .dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:nth-child(2) td {
  color: #f87171 !important;
}

html.theme-dark .dashboard-page .summary-modal-card .modal-close,
html.theme-dark .dashboard-page .summary-modal-card .secondary-action {
  color: #111111 !important;
}

html.theme-dark .dashboard-page .transaction-inline-action > span[aria-hidden="true"],
html.theme-dark .dashboard-page .transaction-inline-action svg {
  color: #111111;
}

html.theme-dark .dashboard-page .transaction-inline-action.danger {
  color: #111111;
  border-color: rgba(202, 166, 43, 0.26);
}

html.theme-dark .dashboard-page .transaction-inline-action.danger:hover {
  background: #f4c21d;
}

html.theme-dark .dashboard-page.associados-page .dashboard-topbar .page-subtitle {
  color: #c0c7d4;
}

html.theme-dark .dashboard-page.associados-page .dashboard-topbar {
  background: transparent;
  border-bottom-color: transparent;
}

html.theme-dark .dashboard-page.associados-page .company-pill {
  background: rgba(26, 26, 26, 0.96);
  border-color: rgba(244, 194, 29, 0.20);
  color: #ffffff;
}

html.theme-dark .dashboard-page.associados-page .associado-status-ativo {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

html.theme-dark .dashboard-page.associados-page .associado-status-inativo,
html.theme-dark .dashboard-page.associados-page .associado-status-bloqueado {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

html.theme-dark .dashboard-page.associados-page .cadastro-stats-grid .stat-meta {
  color: #edf1f7;
}

html.theme-dark .dashboard-page.associados-page .topbar-actions .secondary-action,
html.theme-dark .dashboard-page.associados-page .associados-icon-action {
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.18);
  color: #f5f7fb;
  box-shadow: none;
}

html.theme-dark .dashboard-page.associados-page .topbar-actions .secondary-action,
html.theme-dark .dashboard-page.associados-page .topbar-actions .primary-cta {
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  border-color: rgba(202, 166, 43, 0.28);
  color: #111111;
  box-shadow: 0 12px 24px rgba(244, 194, 29, 0.16);
}

html.theme-dark .dashboard-page.associados-page .topbar-actions .secondary-action:hover,
html.theme-dark .dashboard-page.associados-page .topbar-actions .primary-cta:hover {
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
  color: #111111;
}

html.theme-dark .dashboard-page.associados-page .topbar-actions .secondary-action:hover,
html.theme-dark .dashboard-page.associados-page .associados-icon-action:hover {
  background: #222222;
  border-color: rgba(244, 194, 29, 0.32);
}

html.theme-dark .dashboard-page.associados-page .associados-icon-action svg {
  color: #ffffff;
}

html.theme-dark .dashboard-page.associados-page .associados-cta-card {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page.associados-page .associados-title-icon {
  box-shadow: 0 10px 18px rgba(244, 194, 29, 0.18);
}

html.theme-dark .dashboard-page.associados-page .associados-outline-action {
  color: #f4c21d;
  border-color: rgba(244, 194, 29, 0.34);
}

html.theme-dark .dashboard-page.associados-page .associados-outline-action:hover {
  background: rgba(244, 194, 29, 0.10);
  border-color: rgba(244, 194, 29, 0.48);
}

.dashboard-page .finance-period-control {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.dashboard-page .finance-period-chip {
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.dashboard-page .finance-period-chip svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: currentColor;
}

html.theme-dark .dashboard-page .finance-period-chip {
  background: rgba(32, 32, 32, 0.96);
  border-color: rgba(244, 194, 29, 0.22);
  color: #edf1f7;
}

html.theme-dark .dashboard-page .finance-period-chip svg {
  color: #c7cbe0;
}

.dashboard-page .finance-period-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(244, 194, 29, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 6px;
  z-index: 25;
}

.dashboard-page .finance-period-menu[hidden] {
  display: none !important;
}

.dashboard-page .finance-period-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-page .finance-period-option:hover,
.dashboard-page .finance-period-option.is-active {
  background: rgba(244, 194, 29, 0.12);
}

html.theme-dark .dashboard-page .finance-period-menu {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.18);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
}

html.theme-dark .dashboard-page .finance-period-option {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .finance-period-option:hover,
html.theme-dark .dashboard-page .finance-period-option.is-active {
  background: rgba(244, 194, 29, 0.14);
}

html.theme-dark .dashboard-page .filter-field label,
html.theme-dark .dashboard-page .modal-form label,
html.theme-dark .dashboard-page .cadastro-field label,
html.theme-dark .dashboard-page .card-kicker {
  color: #edf1f7;
}

html.theme-dark .dashboard-page .filter-field input,
html.theme-dark .dashboard-page .filter-field select,
html.theme-dark .dashboard-page .company-overlay-form select,
html.theme-dark .dashboard-page .modal-form input,
html.theme-dark .dashboard-page .modal-form select,
html.theme-dark .dashboard-page .modal-form textarea,
html.theme-dark .dashboard-page .export-layout,
html.theme-dark .dashboard-page .picker-trigger,
html.theme-dark .dashboard-page .cadastro-table-input {
  background: #1a1a1a;
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.10);
}

html.theme-dark .dashboard-page .select-search-input {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.10);
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .dashboard-table th {
  background: rgba(244, 194, 29, 0.12);
  color: #f7fafc;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark .dashboard-page .dashboard-table td {
  border-bottom-color: rgba(255, 255, 255, 0.04);
  color: #e7ebf2;
}

html.theme-dark .dashboard-page .dashboard-table tbody tr:hover {
  background: rgba(244, 194, 29, 0.06);
}

html.theme-dark .dashboard-page .table-wrap,
html.theme-dark .dashboard-page .cadastro-table-wrap {
  background: rgba(20, 20, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page .cadastro-table th {
  background: rgba(244, 194, 29, 0.10);
  color: #f7fafc;
}

html.theme-dark .dashboard-page .flash-message {
  color: #eef2f8;
}

html.theme-dark .dashboard-page .flash-message.error {
  border-color: rgba(239, 68, 68, 0.26);
}

html.theme-dark .dashboard-page .stat-value {
  color: #ffffff;
}

html.theme-dark .dashboard-page .company-empty-state {
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page .cheque-type-recebido,
html.theme-dark .dashboard-page .tipo-badge-entrada {
  background: rgba(22, 163, 74, 0.16);
  color: #34d399;
}

html.theme-dark .dashboard-page .cheque-type-emitido,
html.theme-dark .dashboard-page .tipo-badge-saida {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

html.theme-dark .dashboard-page .stat-card-negative {
  --stat-accent-color: #ef4444;
}

html.theme-dark .dashboard-page.cadastro-page .dashboard-topbar .page-kicker,
html.theme-dark .dashboard-page.cadastro-page .dashboard-topbar .page-subtitle {
  color: #b5bdcc;
}

html.theme-dark .dashboard-page.cadastro-page .content-card h3,
html.theme-dark .dashboard-page.cadastro-page .card-kicker,
html.theme-dark .dashboard-page.cadastro-page .records-count,
html.theme-dark .dashboard-page.cadastro-page .stat-label,
html.theme-dark .dashboard-page.cadastro-page .stat-meta,
html.theme-dark .dashboard-page.cadastro-page .page-subtitle,
html.theme-dark .dashboard-page.cadastro-page .cadastro-field label,
html.theme-dark .dashboard-page.cadastro-page .company-empty-state p,
html.theme-dark .dashboard-page.cadastro-page .card-empty-copy {
  color: #edf1f7;
}

html.theme-dark .dashboard-page.cadastro-page .company-pill,
html.theme-dark .dashboard-page.cadastro-page .company-pill.is-muted {
  color: #ffffff;
}

html.theme-dark .dashboard-page.associados-page .dashboard-table td.col-actions {
  background: transparent;
}

html.theme-dark .dashboard-page.associados-page .dashboard-table th.col-actions {
  background: rgba(244, 194, 29, 0.12);
  box-shadow: none;
}

html.theme-dark .dashboard-page.associados-page .dashboard-table td.col-actions {
  box-shadow: none;
}

html.theme-dark .dashboard-page.associados-page .associados-row-icon-action {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 20, 0.92);
  color: #e7ebf2;
}

/* Sem troca de cor no hover/clique: o botão mantém o fundo escuro. */
html.theme-dark .dashboard-page.associados-page .associados-row-icon-action:hover,
html.theme-dark .dashboard-page.associados-page .associados-row-icon-action:focus-visible {
  background: rgba(20, 20, 20, 0.92);
  color: #e7ebf2;
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .dashboard-page.associados-page .associado-billing-indicator.is-active {
  color: #4ade80 !important;
}

html.theme-dark .dashboard-page.associados-page .associado-billing-indicator.is-inactive {
  color: #94a3b8;
}

html.theme-dark .dashboard-page.associados-page .associado-view-item {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page.associados-page .associado-view-note-card {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page.associados-page .associado-view-note-card p {
  color: #e7ebf2;
}

html.theme-dark .dashboard-page.associados-page .associado-view-label {
  color: #aab3c5;
}

html.theme-dark .dashboard-page.cadastro-page .topbar-actions .company-pill,
html.theme-dark .dashboard-page.cadastro-page .topbar-actions .company-pill.is-muted,
html.theme-dark .dashboard-page.cadastro-page .company-empty-state h3,
html.theme-dark .dashboard-page.cadastro-page .cadastro-selector-card label,
html.theme-dark .dashboard-page.cadastro-page .cadastro-selector-card select {
  color: #ffffff !important;
}

html.theme-dark .dashboard-page.cadastro-page .topbar-actions .company-pill {
  background: rgba(244, 194, 29, 0.14);
  border-color: rgba(244, 194, 29, 0.22);
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-table-card,
html.theme-dark .dashboard-page.cadastro-page .cadastro-item-card,
html.theme-dark .dashboard-page.cadastro-page .cadastro-selector-card {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page.cadastro-page .app-modal-card {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(34, 34, 34, 0.99) 0%, rgba(20, 20, 20, 0.99) 100%);
  border-color: rgba(244, 194, 29, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

html.theme-dark .dashboard-page.cadastro-page .app-modal-card .modal-header h3,
html.theme-dark .dashboard-page.cadastro-page .app-modal-card .card-kicker,
html.theme-dark .dashboard-page.cadastro-page .app-modal-card .modal-form label {
  color: #f5f7fb !important;
}

html.theme-dark .dashboard-page.cadastro-page .cheque-actions-panel {
  background: linear-gradient(180deg, rgba(235, 238, 243, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(244, 194, 29, 0.14);
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-create-form input,
html.theme-dark .dashboard-page.cadastro-page .cadastro-create-form select,
html.theme-dark .dashboard-page.cadastro-page .cadastro-create-form textarea,
html.theme-dark .dashboard-page.cadastro-page .cheque-edit-panel input,
html.theme-dark .dashboard-page.cadastro-page .cheque-edit-panel select,
html.theme-dark .dashboard-page.cadastro-page .cheque-edit-panel textarea {
  background: #1a1a1a !important;
  color: #f5f7fb !important;
  border-color: rgba(244, 194, 29, 0.20) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-create-form input::placeholder,
html.theme-dark .dashboard-page.cadastro-page .cadastro-create-form textarea::placeholder,
html.theme-dark .dashboard-page.cadastro-page .cheque-edit-panel input::placeholder,
html.theme-dark .dashboard-page.cadastro-page .cheque-edit-panel textarea::placeholder {
  color: #8f98a8;
}

html.theme-dark .dashboard-page.cadastro-page .cheque-edit-panel {
  border-bottom-color: rgba(244, 194, 29, 0.12);
}

html.theme-dark .dashboard-page.cadastro-page .modal-form .helptext,
html.theme-dark .dashboard-page.cadastro-page .table-subtext {
  color: #aeb4c5 !important;
}

html.theme-dark .dashboard-page.cadastro-page .modal-errors li {
  color: #ffb4b4;
}

html.theme-dark .dashboard-page.cadastro-page .modal-form-grid .estoque-form-field-error > label,
html.theme-dark .dashboard-page.cadastro-page .modal-form-grid .estoque-form-field-error .errorlist li {
  color: #ff9b9b !important;
}

html.theme-dark .dashboard-page.cadastro-page .modal-form-grid .estoque-form-field-error > input,
html.theme-dark .dashboard-page.cadastro-page .modal-form-grid .estoque-form-field-error > select,
html.theme-dark .dashboard-page.cadastro-page .modal-form-grid .estoque-form-field-error > textarea {
  border-color: #ff6b6b !important;
  background: rgba(110, 26, 26, 0.32) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
}

html.theme-dark .dashboard-page.cadastro-page .dashboard-table .card-chip {
  background: rgba(26, 26, 26, 0.98);
  border-color: rgba(244, 194, 29, 0.22);
  color: #f5f7fb;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-table-input {
  background: #1a1a1a;
  color: #f5f7fb;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-table-empty {
  color: #b5bdcc;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-row-icon-action {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(26, 26, 26, 0.96);
  color: #e7ebf2;
}

/* Sem troca de cor no hover/clique: o botão mantém o fundo escuro. */
html.theme-dark .dashboard-page.cadastro-page .cadastro-row-icon-action:hover,
html.theme-dark .dashboard-page.cadastro-page .cadastro-row-icon-action:focus-visible {
  background: rgba(26, 26, 26, 0.96);
  color: #e7ebf2;
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-export-button,
html.theme-dark .dashboard-page.cadastro-page .cadastro-export-button:hover,
html.theme-dark .dashboard-page.cadastro-page .cadastro-export-button:focus-visible {
  background: transparent;
  color: #fad32b !important;
  border-color: #fad32b;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-view-item {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-view-label {
  color: #aab3c5;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-view-all-link {
  color: #f4c21d;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-recent-hint {
  background: rgba(26, 26, 26, 0.5);
  border-color: rgba(244, 194, 29, 0.18);
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-recent-hint-title,
html.theme-dark .dashboard-page.cadastro-page .cadastro-recent-hint-empty {
  color: #aeb4c5;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-recent-hint-name {
  color: #cbd5e1;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-recent-hint-code {
  color: #ffffff;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-recent-hint-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dashboard-page .flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.dashboard-page .flash-message {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(244, 194, 29, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.dashboard-page .flash-message.error {
  border-color: rgba(239, 68, 68, 0.24);
}

.dashboard-page.estoque-page .flash-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4700;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.dashboard-page.estoque-page .flash-toast {
  pointer-events: auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.10);
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
  font-size: 13px;
  line-height: 1.35;
  transition: opacity 180ms ease, transform 180ms ease;
  will-change: opacity, transform;
}

.dashboard-page.estoque-page .flash-toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.dashboard-page.estoque-page .flash-toast.error {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(255, 243, 243, 0.98);
  color: #b91c1c;
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.12);
}

.app-navigation-loading {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(244, 194, 29, 0.18), transparent 38%),
    rgba(10, 10, 10, 0.54);
  backdrop-filter: blur(10px);
}

.app-navigation-loading[hidden] {
  display: none;
}

.app-navigation-loading-card {
  min-width: min(340px, calc(100vw - 48px));
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 28px;
  border-radius: 22px;
  border: 1px solid rgba(244, 194, 29, 0.26);
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.96) 0%, rgba(24, 24, 24, 0.98) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.app-navigation-loading-card strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.app-navigation-loading-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.app-navigation-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(244, 194, 29, 0.2);
  border-top-color: #f4c21d;
  animation: app-navigation-loading-spin 0.85s linear infinite;
}

body.is-navigation-loading {
  overflow: hidden;
}

@keyframes app-navigation-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-page .filters-card,
.dashboard-page .content-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.dashboard-page .dashboard-filters-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-page.boletim-page .boletim-filters-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.dashboard-page.boletim-page .boletim-filters-form .filter-field-company {
  grid-column: 1 / -1;
}

html.theme-dark body.dashboard-page.boletim-page .boletim-filters-form .filter-field select:hover {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #f5f7fb !important;
  -webkit-text-fill-color: #f5f7fb !important;
  box-shadow: none !important;
}

html:not(.theme-dark) body.dashboard-page.boletim-page .boletim-filters-form .filter-field select:hover {
  background: #fff !important;
  border-color: rgba(17, 17, 17, 0.18) !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  box-shadow: none !important;
}

.dashboard-page .filter-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-page .filter-field-wide {
  min-width: 0;
}

.dashboard-page .filter-field label {
  font-size: 12px;
  font-weight: 600;
  color: #111111;
}

.dashboard-page .filter-field input,
.dashboard-page .filter-field select,
.dashboard-page .company-overlay-form select,
.dashboard-page .modal-form input,
.dashboard-page .modal-form select,
.dashboard-page .modal-form textarea,
.dashboard-page .export-layout {
  width: 100%;
  max-width: none;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #fff;
}

.dashboard-page .select-search-input {
  width: 100%;
  max-width: none;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.96);
}

.dashboard-page .picker-source-select {
  display: none;
}

.dashboard-page .picker-trigger {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  box-shadow: none;
  text-align: left;
}

.dashboard-page .picker-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(248, 250, 252, 0.96);
}

.dashboard-page .picker-trigger:hover {
  background: rgba(244, 194, 29, 0.12);
}

.dashboard-page .picker-trigger:disabled:hover {
  background: rgba(248, 250, 252, 0.96);
}

.dashboard-page .picker-trigger-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.dashboard-page .picker-trigger-summary {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  color: #111111;
}

.dashboard-page .picker-trigger-compact {
  position: relative;
  min-height: 40px;
  padding: 8px 36px 8px 12px;
  flex-direction: row;
  align-items: center;
  gap: 0;
  border-radius: 12px;
}

.dashboard-page .picker-trigger-compact::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  color: #6b6b6b;
  pointer-events: none;
}

.dashboard-page .picker-trigger-compact .picker-trigger-summary {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.dashboard-page.boletim-page .picker-trigger-company .picker-trigger-summary {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.dashboard-page .picker-modal-card {
  width: min(520px, 100%);
}

.dashboard-page .picker-modal-body {
  display: grid;
  gap: 14px;
}

.dashboard-page .picker-modal-label {
  font-weight: 600;
  color: #111111;
}

.dashboard-page .picker-modal-input {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #fff;
}

.dashboard-page .picker-results-wrap {
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(248, 250, 252, 0.92);
  overflow: hidden;
}

.dashboard-page .picker-results {
  display: grid;
  max-height: 320px;
  overflow-y: auto;
}

.dashboard-page .picker-result-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 0;
  background: transparent;
  color: #111111;
  text-align: left;
  box-shadow: none;
}

.dashboard-page .picker-result-item:last-child {
  border-bottom: 0;
}

.dashboard-page .picker-result-item:hover,
.dashboard-page .picker-result-item.is-active {
  background: linear-gradient(180deg, rgba(244, 194, 29, 0.12), rgba(255, 255, 255, 0.98));
}

.dashboard-page .picker-result-label,
.dashboard-page .picker-result-value {
  display: block;
}

.dashboard-page .picker-result-label {
  font-weight: 700;
  color: #111111;
}

.dashboard-page .picker-result-value {
  color: #6b6b6b;
  font-size: 14px;
}

.dashboard-page .picker-empty-state {
  margin: 0;
  padding: 16px 18px;
  color: #6b6b6b;
}

.dashboard-page .picker-modal-hint {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.dashboard-page .filter-submit {
  display: flex;
  align-items: flex-end;
}

.dashboard-page.boletim-page .filter-submit {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-page.boletim-page .filter-submit .primary-action {
  width: 100%;
  min-height: 40px;
  white-space: nowrap;
}

/* Mantém a criação acima dos filtros e alinhada à ação de filtragem. */
.dashboard-page.boletim-page .dashboard-topbar > .boletim-topbar-actions {
  width: auto;
  flex: 0 0 auto;
  align-self: flex-end;
  margin-left: auto;
}

.dashboard-page .filter-submit .primary-action {
  width: auto;
  min-height: 40px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  border-radius: 12px;
}

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

.dashboard-page .stat-card {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-page a.stat-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dashboard-page a.stat-card:hover,
.dashboard-page a.stat-card:focus-visible {
  color: inherit;
}

.dashboard-page .stat-card-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 100%;
}

.dashboard-page .stat-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-page .stat-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fad32b;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.26), 0 8px 18px rgba(250, 211, 43, 0.16);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-page .stat-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.dashboard-page .stat-card-positive {
  --stat-accent-color: #d4a700;
}

.dashboard-page .stat-card-negative {
  --stat-accent-color: #ef4444;
}

.dashboard-page .stat-card-neutral {
  --stat-accent-color: #7a6a12;
}

.dashboard-page .stat-card-accent {
  --stat-accent-color: #f4c21d;
}

.dashboard-page .stat-card:hover,
.dashboard-page .stat-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(250, 211, 43, 0.28);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.08);
}

.dashboard-page .stat-card:hover .stat-icon,
.dashboard-page .stat-card:focus-within .stat-icon {
  transform: translateY(-1px);
  background: #fad32b;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.34), 0 10px 20px rgba(250, 211, 43, 0.22);
}

.dashboard-page.estoque-page .stat-icon,
.dashboard-page.estoque-page .stat-card:hover .stat-icon,
.dashboard-page.estoque-page .stat-card:focus-within .stat-icon {
  box-shadow: none;
}

.dashboard-page .stat-label {
  margin: 0;
  color: #6b6b6b;
}

.dashboard-page .stat-value {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.1;
  color: #111111;
}

.dashboard-page .stat-meta {
  display: inline-block;
  margin-top: 4px;
  color: #6b6b6b;
  font-size: 13px;
}

.dashboard-page .card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-page .card-heading > div {
  min-width: 0;
}

.dashboard-page .card-heading-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.dashboard-page .card-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.dashboard-page .summary-account-controls {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.dashboard-page .summary-account-search-field {
  display: inline-flex;
  align-items: center;
  width: min(220px, 34vw);
  flex: 1 1 220px;
  min-width: 0;
}

.dashboard-page .summary-account-search {
  width: 100%;
  max-width: none;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #ffffff;
  color: #111111;
}

.dashboard-page .summary-account-search::placeholder {
  color: #64748b;
}

.dashboard-page .summary-account-view-all {
  width: auto;
  min-width: 96px;
  min-height: 36px;
  padding: 0 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  background: linear-gradient(180deg, #f7d23e 0%, #f4c21d 100%);
  color: #111111;
  border: 1px solid rgba(202, 166, 43, 0.28);
  box-shadow: 0 10px 22px rgba(244, 194, 29, 0.16);
}

.dashboard-page .summary-account-view-all:hover,
.dashboard-page .summary-account-view-all:focus-visible {
  background: linear-gradient(180deg, #f8d851 0%, #e7b800 100%);
  color: #111111;
  box-shadow: 0 12px 24px rgba(244, 194, 29, 0.24);
}

.dashboard-page .summary-account-results {
  display: grid;
  gap: 12px;
}

.dashboard-page .summary-modal-toolbar {
  display: flex;
  justify-content: flex-end;
}

.dashboard-page .summary-modal-search {
  width: min(320px, 100%);
}

.dashboard-page .summary-account-empty {
  margin: 0;
}

.dashboard-page .records-count {
  color: #64748b;
  font-size: 14px;
}

.dashboard-page .table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

.dashboard-page .pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.dashboard-page .pagination-summary {
  margin: 0;
  color: #6b6b6b;
  font-size: 14px;
}

.dashboard-page .pagination-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-page .pagination-link {
  min-width: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  color: #111111;
  text-align: center;
  text-decoration: none;
}

.dashboard-page .pagination-link:hover {
  background: rgba(244, 194, 29, 0.12);
  text-decoration: none;
}

.dashboard-page .pagination-link.is-active {
  background: linear-gradient(135deg, #f4c21d 0%, #d4a700 100%);
  color: #111111;
  border-color: transparent;
}

.dashboard-page .dashboard-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0;
  table-layout: fixed;
}

.dashboard-page #contas-full-modal .dashboard-table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-page #contas-full-modal .dashboard-table th,
.dashboard-page #contas-full-modal .dashboard-table td {
  padding: 12px 10px;
}

.dashboard-page #contas-full-modal .dashboard-table .col-date {
  width: 72px;
  min-width: 72px;
}

.dashboard-page #contas-full-modal .dashboard-table .col-description {
  width: auto;
  padding-left: 4px;
}

.dashboard-page #contas-full-modal .dashboard-table .col-type {
  width: 96px;
  min-width: 96px;
  text-align: center;
}

.dashboard-page #contas-full-modal .dashboard-table .col-actions {
  width: 90px;
  min-width: 90px;
  text-align: center;
}

.dashboard-page #contas-full-modal .dashboard-table .card-chip {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.dashboard-page #contas-full-modal .cadastro-row-actions {
  gap: 6px;
}

.dashboard-page #contas-full-modal .cadastro-row-icon-action {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.dashboard-page .dashboard-table th {
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 14px 12px;
  text-align: left;
  color: #334155;
  font-size: 13px;
}

.dashboard-page .dashboard-table td {
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  background: transparent;
}

.dashboard-page .dashboard-table .col-date {
  width: 96px;
  min-width: 96px;
}

.dashboard-page .dashboard-table .col-type {
  width: 78px;
  min-width: 78px;
}

.dashboard-page .dashboard-table .col-description {
  width: 42%;
}

.dashboard-page .dashboard-table .col-account {
  width: 16%;
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-page .dashboard-table .col-holder {
  width: 13%;
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-page .dashboard-table .col-amount,
.dashboard-page .dashboard-table .col-balance {
  width: 118px;
  min-width: 118px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dashboard-page .dashboard-table .col-actions {
  width: 96px;
  min-width: 96px;
}

.dashboard-page .dashboard-table tbody tr:nth-child(even),
.dashboard-page .dashboard-table tbody tr:nth-child(odd) {
  background: transparent;
}

.dashboard-page .dashboard-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.dashboard-page .table-subtext {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.dashboard-page .transaction-actions-cell {
  width: 96px;
  min-width: 96px;
  white-space: nowrap;
}

.dashboard-page .transaction-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

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

.dashboard-page .transaction-inline-action {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(202, 166, 43, 0.26);
  background: #fad32b;
  color: #111111;
  box-shadow: none;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}

.dashboard-page .finance-toolbar-icon,
.dashboard-page .cheque-toolbar-icon,
.dashboard-page .transaction-inline-action {
  background: #fad32b;
  color: #111111;
  box-shadow: none;
}

.dashboard-page .transaction-inline-action > span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page .transaction-inline-action svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #111111;
}

.dashboard-page .transaction-inline-action:hover {
  background: #fad32b;
  border-color: rgba(202, 166, 43, 0.34);
}

.dashboard-page .transaction-inline-action:focus-visible {
  outline: 2px solid rgba(244, 194, 29, 0.45);
  outline-offset: 2px;
}

.dashboard-page .transaction-inline-action.danger {
  color: #111111;
  border-color: rgba(202, 166, 43, 0.26);
}

.dashboard-page .transaction-inline-action.danger:hover {
  background: #fad32b;
}

.dashboard-page .tipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.dashboard-page .tipo-badge-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page .tipo-badge-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.dashboard-page .tipo-badge-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dashboard-page .tipo-badge-entrada {
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
}

.dashboard-page .tipo-badge-entrada .tipo-badge-icon {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.dashboard-page .tipo-badge-saida {
  background: rgba(239, 68, 68, 0.10);
  color: #dc2626;
}

.dashboard-page .tipo-badge-saida .tipo-badge-icon {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

.dashboard-page .value-positive {
  color: #15803d;
  font-weight: 700;
}

.dashboard-page .value-negative {
  color: #dc2626;
  font-weight: 700;
}

.dashboard-page .bottom-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.35fr);
  gap: 18px;
  margin-top: 30px;
  align-items: start;
}

.dashboard-page.cadastro-page .bottom-grid.cadastro-main-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.dashboard-page .compact-card {
  min-height: 0;
  height: auto;
  align-self: start;
}

.dashboard-page.cadastro-page .bottom-grid.cadastro-main-grid .compact-card {
  min-height: 100%;
}

.dashboard-page .relatorio-table-compact {
  margin-top: 0;
}

.dashboard-page .relatorio-table-compact th,
.dashboard-page .relatorio-table-compact td {
  border-color: rgba(17, 17, 17, 0.12);
  padding: 12px 10px;
  background: transparent;
}

.dashboard-page .card-empty-copy {
  margin: 0;
  color: #6b6b6b;
}

.recent-moves-card .recent-moves-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
  min-height: 180px;
}

.dashboard-page .finance-toolbar-shell {
  display: grid;
  gap: 16px;
}

.dashboard-page .finance-table-filters {
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

html.theme-dark .dashboard-page .finance-table-filters {
  border-color: rgba(244, 194, 29, 0.16);
}

.dashboard-page .finance-toolbar-tabs,
.dashboard-page .finance-mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-page .finance-tab,
.dashboard-page .finance-mini-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-page .finance-tab:hover,
.dashboard-page .finance-mini-tab:hover {
  text-decoration: none;
  color: #102233;
}

.dashboard-page .finance-tab.is-active,
.dashboard-page .finance-mini-tab.is-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

html.theme-dark .dashboard-page .finance-tab,
html.theme-dark .dashboard-page .finance-mini-tab {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-tab:hover,
html.theme-dark .dashboard-page .finance-mini-tab:hover {
  background: rgba(244, 194, 29, 0.10);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-tab.is-active,
html.theme-dark .dashboard-page .finance-mini-tab.is-active {
  background: rgba(244, 194, 29, 0.12);
  border-color: rgba(244, 194, 29, 0.28);
  color: #ffffff;
}

.dashboard-page .finance-filter-form {
  grid-template-columns: minmax(220px, 1.4fr) minmax(280px, 1.2fr) repeat(2, minmax(150px, 0.92fr)) auto;
}

.dashboard-page .finance-baixadas-filter {
  min-width: 150px;
}

.dashboard-page .finance-period-filter {
  min-width: 280px;
}

.dashboard-page .finance-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-page .finance-date-range input {
  min-width: 0;
}

.dashboard-page .filter-field .finance-checkbox-control {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.dashboard-page .filter-field .finance-checkbox-control input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #f4c21d;
}

html.theme-dark .dashboard-page .filter-field .finance-checkbox-control {
  border-color: rgba(244, 194, 29, 0.18);
  background: #1a1a1a;
  color: #ffffff;
}

.dashboard-page .finance-date-pill {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  color: #334155;
  font-size: 14px;
}

html.theme-dark .dashboard-page .finance-date-pill {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #ffffff;
}

.dashboard-page .finance-filter-actions {
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-page .finance-ghost-action,
.dashboard-page .finance-topbar-action {
  white-space: nowrap;
}

.dashboard-page .finance-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-page .finance-kpi-card .stat-value {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dashboard-page .finance-kpi-receber {
  --stat-accent-color: #16a34a;
}

.dashboard-page .finance-kpi-pagar {
  --stat-accent-color: #ef4444;
}

.dashboard-page .finance-kpi-received {
  --stat-accent-color: #2563eb;
}

.dashboard-page .finance-kpi-paid {
  --stat-accent-color: #f97316;
}

.dashboard-page .finance-kpi-balance {
  --stat-accent-color: #8b5cf6;
}

.dashboard-page .finance-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.dashboard-page:not(.cadastro-page) .finance-dashboard-grid {
  align-items: stretch;
}

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

.dashboard-page .finance-dashboard-main,
.dashboard-page .finance-dashboard-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.dashboard-page .finance-dashboard-main {
  min-height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dashboard-page .finance-chart-card,
.dashboard-page .finance-donut-card,
.dashboard-page .finance-upcoming-card,
.dashboard-page .finance-table-card {
  overflow: hidden;
}

.dashboard-page .finance-table-card {
  margin-top: 14px;
}

.dashboard-page .finance-chart-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 232, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.16);
  box-shadow: none;
}

.dashboard-page .finance-create-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 253, 250, 0.98) 100%);
  border-color: rgba(16, 185, 129, 0.16);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.dashboard-page .finance-create-copy {
  margin: 0;
  color: #52607a;
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-page .finance-create-copy strong {
  color: #102233;
}

.dashboard-page .finance-create-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.dashboard-page .finance-create-button {
  width: 100%;
}

.dashboard-page .finance-create-hint {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

html.theme-dark .dashboard-page .finance-chart-card {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.05), transparent 28%),
    linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border-color: rgba(244, 194, 29, 0.16);
  box-shadow: none;
}

html.theme-dark .dashboard-page .finance-create-card {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.07), transparent 30%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border-color: rgba(16, 185, 129, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

html.theme-dark .dashboard-page .finance-create-copy,
html.theme-dark .dashboard-page .finance-create-hint {
  color: #aeb4c5;
}

html.theme-dark .dashboard-page .finance-create-copy strong {
  color: #ffffff;
}

.dashboard-page .finance-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 13px;
}

.dashboard-page .finance-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-page .finance-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-page .finance-legend-dot.is-predicted {
  background: #3b82f6;
}

.dashboard-page .finance-legend-dot.is-received {
  background: #16a34a;
}

.dashboard-page .finance-legend-dot.is-paid {
  background: #f97316;
}

.dashboard-page .finance-line-chart-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(255, 255, 255, 0.96));
  padding: 10px 12px 6px;
}

html.theme-dark .dashboard-page .finance-line-chart-card {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.04), transparent 34%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border-color: rgba(244, 194, 29, 0.14);
}

.dashboard-page .finance-line-chart {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  flex: 1 1 auto;
}

.dashboard-page .cash-flow-chart-shell {
  border-radius: 18px;
  border: 1px solid rgba(244, 194, 29, 0.16);
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
  padding: 18px 12px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex: 1;
  min-height: 0;
  display: flex;
}

html.theme-dark .dashboard-page .cash-flow-chart-shell {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.08), transparent 32%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border-color: rgba(244, 194, 29, 0.14);
}

.dashboard-page .cash-flow-chart-shell .finance-line-chart {
  cursor: crosshair;
  touch-action: pan-y;
  flex: 1;
  height: 100%;
}

.dashboard-page .cash-flow-chart-shell .finance-line-chart:focus-visible {
  outline: 2px solid rgba(244, 194, 29, 0.45);
  outline-offset: 6px;
  border-radius: 14px;
}

.dashboard-page .finance-donut-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.dashboard-page .finance-donut-visual {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--finance-donut-background, conic-gradient(#e2e8f0 0deg 360deg));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

html.theme-dark .dashboard-page .finance-donut-visual {
  box-shadow: inset 0 0 0 1px rgba(244, 194, 29, 0.10);
}

.dashboard-page .finance-donut-center {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

html.theme-dark .dashboard-page .finance-donut-center {
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(244, 194, 29, 0.14);
}

.dashboard-page .finance-donut-center strong {
  font-size: 26px;
  color: #102233;
  line-height: 1;
}

html.theme-dark .dashboard-page .finance-donut-center strong {
  color: #ffffff;
}

.dashboard-page .finance-donut-center span {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html.theme-dark .dashboard-page .finance-donut-center span {
  color: #aeb4c5;
}

.dashboard-page .finance-donut-summary {
  display: grid;
  gap: 14px;
}

.dashboard-page .finance-donut-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dashboard-page .finance-donut-row-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #102233;
  font-weight: 700;
}

.dashboard-page .finance-donut-row-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: currentColor;
}

.dashboard-page .finance-donut-row-meta {
  color: #64748b;
  font-size: 13px;
  text-align: right;
}

html.theme-dark .dashboard-page .finance-donut-row-meta {
  color: #aeb4c5;
}

.dashboard-page .finance-tone-open {
  color: #3b82f6;
}

.dashboard-page .finance-tone-overdue {
  color: #ef4444;
}

.dashboard-page .finance-tone-today {
  color: #f59e0b;
}

.dashboard-page .finance-tone-liquidated {
  color: #16a34a;
}

.dashboard-page .finance-upcoming-list {
  display: grid;
  gap: 12px;
}

.dashboard-page .finance-upcoming-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

html.theme-dark .dashboard-page .finance-upcoming-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-page .finance-upcoming-date {
  min-width: 68px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

html.theme-dark .dashboard-page .finance-upcoming-date {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.14);
}

.dashboard-page .finance-upcoming-date span {
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.theme-dark .dashboard-page .finance-upcoming-date span {
  color: #fca5a5;
}

.dashboard-page .finance-upcoming-date strong {
  color: #102233;
  font-size: 18px;
  line-height: 1;
}

html.theme-dark .dashboard-page .finance-upcoming-date strong {
  color: #ffffff;
}

.dashboard-page .finance-upcoming-copy {
  display: grid;
  gap: 4px;
}

.dashboard-page .finance-upcoming-copy strong {
  color: #102233;
}

html.theme-dark .dashboard-page .finance-upcoming-copy strong {
  color: #ffffff;
}

.dashboard-page .finance-upcoming-copy span {
  color: #64748b;
  font-size: 13px;
}

html.theme-dark .dashboard-page .finance-upcoming-copy span {
  color: #aeb4c5;
}

.dashboard-page .finance-upcoming-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.dashboard-page .finance-upcoming-actions {
  justify-content: flex-end;
}

.dashboard-page .finance-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page .finance-type-receber {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.dashboard-page .finance-type-pagar {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

html.theme-dark .dashboard-page .finance-type-receber {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

html.theme-dark .dashboard-page .finance-type-pagar {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.dashboard-page .card-link-action {
  color: #111111;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dashboard-page .card-link-action:hover {
  color: #d4a700;
  text-decoration: none;
}

.dashboard-page button.card-link-action {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.dashboard-page .quick-actions-list {
  display: grid;
  gap: 8px;
}

.dashboard-page .quick-action-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(248, 250, 252, 0.7);
  color: #111111;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dashboard-page .quick-action-item[href] {
  width: 100%;
}

.dashboard-page .quick-action-item:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 211, 43, 0.4);
  background: rgba(250, 211, 43, 0.08);
  text-decoration: none;
}

.dashboard-page .quick-action-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.dashboard-page .quick-action-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fad32b;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.24);
}

.dashboard-page .quick-action-item .quick-action-icon,
.dashboard-page .quick-action-item .quick-action-icon svg {
  color: #111111;
}

.dashboard-page .quick-action-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-page .quick-action-label {
  line-height: 1.15;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  text-align: center;
}

.dashboard-page .qa-entrada {
  --qa-accent-color: #fad32b;
}

.dashboard-page .qa-saida {
  --qa-accent-color: #fad32b;
}

.dashboard-page .qa-transferencia {
  --qa-accent-color: #fad32b;
}

.dashboard-page .qa-portador {
  --qa-accent-color: #fad32b;
}

.dashboard-page .qa-relatorio {
  --qa-accent-color: #fad32b;
}

.dashboard-page .quick-action-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fad32b;
}

html.theme-dark .dashboard-page .quick-action-item {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.10);
  color: #f5f7fb;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

html.theme-dark .dashboard-page .quick-action-item:hover {
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.22);
}

html.theme-dark .dashboard-page .quick-action-label {
  color: #ffffff;
}

html.theme-dark .dashboard-page .quick-action-chevron {
  color: #8f97a8;
}

html.theme-dark .dashboard-page .quick-actions-card {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-page .quick-action-chevron svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-page .dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(280px, 0.88fr) minmax(280px, 1.24fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.dashboard-page .recent-moves-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: clamp(700px, 74vh, 820px);
  max-height: clamp(700px, 74vh, 820px);
  align-self: start;
  overflow: hidden;
}

.dashboard-page .recent-moves-card .card-heading {
  min-height: 0;
}

.dashboard-page .recent-moves-card .recent-moves-full-wrap {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  margin-top: 10px;
  overflow: hidden;
}

.dashboard-page .recent-moves-card .recent-moves-full-table-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-page .recent-moves-card .cash-transaction-pagination {
  margin-top: 0;
}

.dashboard-page .recent-moves-card .recent-moves-full-table {
  min-width: 1120px;
  width: 100%;
  table-layout: fixed;
}

.dashboard-page .recent-moves-card .recent-moves-full-table th,
.dashboard-page .recent-moves-card .recent-moves-full-table td {
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-date {
  width: 86px;
  min-width: 86px;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-type {
  width: 108px;
  min-width: 108px;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-description {
  width: 24%;
  padding-left: 18px;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-account {
  width: 14%;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-holder {
  width: 12%;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-amount,
.dashboard-page .recent-moves-card .recent-moves-full-table .col-balance {
  width: 108px;
  min-width: 108px;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-actions {
  width: 76px;
  min-width: 76px;
}

.dashboard-page .recent-moves-card .recent-moves-full-table .col-account,
.dashboard-page .recent-moves-card .recent-moves-full-table .col-holder {
  overflow-wrap: anywhere;
}

.dashboard-page .category-donut-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.dashboard-page .category-donut-visual {
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  border-radius: 50%;
  background: var(--category-donut-background, conic-gradient(#e2e8f0 0deg 360deg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page .category-donut-center {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.dashboard-page .category-donut-center strong {
  font-size: 14px;
  line-height: 1.25;
  color: #102233;
  word-break: break-word;
}

.dashboard-page .category-donut-center span {
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-page .category-donut-summary {
  width: 100%;
  display: grid;
  gap: 12px;
}

.dashboard-page .category-donut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-page .category-donut-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  color: #102233;
  font-weight: 700;
  font-size: 13px;
}

.dashboard-page .category-donut-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-page .category-donut-row-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .category-donut-row-meta {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.dashboard-page .category-donut-row-pct {
  color: #94a3b8;
  font-weight: 600;
}

.dashboard-page .latest-tx-list {
  display: grid;
  gap: 10px;
}

.dashboard-page .recent-moves-list {
  display: none;
}

.dashboard-page .recent-moves-full-wrap {
  display: block;
}

.dashboard-page .recent-moves-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.dashboard-page .recent-moves-item:last-child {
  border-bottom: none;
}

.dashboard-page .recent-moves-date {
  min-width: 34px;
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .recent-moves-direction,
.dashboard-page .latest-tx-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.dashboard-page .recent-moves-direction svg,
.dashboard-page .latest-tx-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-page .recent-moves-direction.is-entrada,
.dashboard-page .latest-tx-icon.is-entrada {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.dashboard-page .recent-moves-direction.is-saida,
.dashboard-page .latest-tx-icon.is-saida {
  background: rgba(239, 68, 68, 0.16);
  color: #dc2626;
}

.dashboard-page .recent-moves-copy,
.dashboard-page .latest-tx-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-page .recent-moves-copy strong,
.dashboard-page .latest-tx-copy strong {
  color: #111111;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .recent-moves-copy span,
.dashboard-page .latest-tx-copy span {
  color: #6b6b6b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .recent-moves-amount,
.dashboard-page .latest-tx-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.dashboard-page .latest-tx-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.dashboard-page .latest-tx-item:last-child {
  border-bottom: none;
}

.dashboard-page .finance-table-heading {
  align-items: center;
}

.dashboard-page .finance-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-page .finance-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

.dashboard-page .finance-search-form input {
  width: min(340px, 48vw);
  max-width: none;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
}

html.theme-dark .dashboard-page .finance-search-form input {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #f5f7fb;
}

.dashboard-page .finance-toolbar-button,
.dashboard-page .finance-toolbar-icon {
  width: auto;
  min-width: 40px;
}

.dashboard-page a.finance-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-page a.finance-toolbar-button:hover {
  text-decoration: none;
}

.dashboard-page a.finance-toolbar-button:focus,
.dashboard-page a.finance-toolbar-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 211, 43, 0.22);
}

.dashboard-page .finance-toolbar-icon {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1;
  background: #fad32b;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.24), 0 8px 18px rgba(250, 211, 43, 0.16);
}

.dashboard-page .finance-toolbar-icon svg {
  color: #111111;
}

.dashboard-page .finance-table-modern {
  min-width: 980px;
}

.dashboard-page .finance-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.dashboard-page .finance-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: transparent;
}

.dashboard-page .finance-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(15, 23, 42, 0.03);
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.dashboard-page .finance-table tbody td {
  padding: 16px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  border-right: 1px solid rgba(226, 232, 240, 0.58);
  vertical-align: top;
  background: transparent;
  color: #111111;
}

.dashboard-page .finance-table tbody td:last-child,
.dashboard-page .finance-table thead th:last-child {
  border-right: 0;
}

.dashboard-page .finance-table tbody tr:hover td {
  background: rgba(244, 194, 29, 0.06);
}

.dashboard-page .finance-table-modern .col-type {
  width: 58px;
  min-width: 58px;
}

.dashboard-page .finance-table-modern .col-description {
  width: 24%;
}

.dashboard-page .finance-table-modern .col-holder {
  width: 18%;
}

.dashboard-page .finance-table-modern .col-category {
  width: 16%;
}

.dashboard-page .finance-table-modern .col-date {
  width: 120px;
  min-width: 120px;
}

.dashboard-page .finance-table-modern .col-amount {
  width: 160px;
  min-width: 160px;
  white-space: nowrap;
}

.dashboard-page .finance-table-modern .col-actions {
  width: 108px;
  min-width: 108px;
}

.dashboard-page .finance-row-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dashboard-page .finance-row-action-button {
  flex: 0 0 auto;
}

.dashboard-page .finance-row-action-button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

.dashboard-page .finance-row-action-button-highlight {
  background: #111111;
  color: #f4c21d;
  border-color: rgba(244, 194, 29, 0.24);
}

.dashboard-page .finance-row-action-button-highlight svg {
  color: #f4c21d;
}

.dashboard-page .finance-row-action-button-highlight:hover {
  background: #1f1f1f;
  border-color: rgba(244, 194, 29, 0.34);
}

.dashboard-page .finance-row-action-button-highlight[disabled] {
  background: #1f1f1f;
  color: rgba(244, 194, 29, 0.55);
}

.dashboard-page .finance-row-action-button-highlight[disabled] svg {
  color: rgba(244, 194, 29, 0.55);
}

.dashboard-page .finance-billing-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-page .finance-billing-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.8);
}

.dashboard-page .finance-billing-summary-card strong {
  display: block;
  margin-top: 4px;
}

html.theme-dark .dashboard-page .finance-billing-summary-card {
  border-color: rgba(244, 194, 29, 0.16);
  background: rgba(21, 21, 21, 0.88);
}

.dashboard-page .finance-billing-history {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-page .finance-billing-history-list {
  display: grid;
  gap: 10px;
}

.dashboard-page .finance-billing-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.8);
}

.dashboard-page .finance-billing-history-copy {
  display: grid;
  gap: 4px;
}

html.theme-dark .dashboard-page .finance-billing-history-item {
  border-color: rgba(244, 194, 29, 0.16);
  background: rgba(21, 21, 21, 0.88);
}

.dashboard-page .finance-direction-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-page .finance-direction-receber {
  background: rgba(244, 194, 29, 0.16);
  color: #111111;
}

.dashboard-page .finance-direction-pagar {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

html.theme-dark .dashboard-page .finance-direction-receber {
  background: rgba(244, 194, 29, 0.14);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-direction-pagar {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.dashboard-page .finance-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page .fiscal-stock-operation-note {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #e4c84c;
  border-left: 4px solid #d7ae00;
  border-radius: 9px;
  background: #fff9df;
  color: #514300;
  font-size: 12px;
  line-height: 1.5;
}
.dashboard-page .fiscal-stock-operation-note > strong,
.dashboard-page .fiscal-stock-operation-note > div > strong { display: block; }
.dashboard-page .fiscal-stock-operation-note > p { margin: 7px 0 0; }
.dashboard-page .fiscal-stock-operation-note.is-success { border-color: #9bd9b5; border-left-color: #198754; background: #effaf3; color: #185b36; }
.dashboard-page .fiscal-stock-operation-items { display: grid; gap: 8px; margin-top: 10px; }
.dashboard-page .fiscal-stock-operation-items article { padding: 9px; border: 1px solid currentColor; border-radius: 7px; }
.dashboard-page .fiscal-stock-operation-items dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin: 8px 0 0; }
.dashboard-page .fiscal-stock-operation-items dl div { min-width: 0; }
.dashboard-page .fiscal-stock-operation-items dt { font-size: 10px; opacity: .8; }
.dashboard-page .fiscal-stock-operation-items dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.dashboard-page .fiscal-stock-check-link { display: inline-flex; align-items: center; min-height: 28px; margin: 4px 0; padding: 4px 9px; border: 1px solid #d6b827; border-radius: 999px; background: #fff8d8; color: #604d00; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.dashboard-page .fiscal-stock-check-link:hover { background: #fff0a8; }
html.theme-dark .dashboard-page .fiscal-stock-operation-note { border-color: #776527; border-left-color: #fad32b; background: #292611; color: #ffe98a; }
html.theme-dark .dashboard-page .fiscal-stock-operation-note.is-success { border-color: #286d4a; border-left-color: #38bf7d; background: #14291f; color: #a4ecc1; }
html.theme-dark .dashboard-page .fiscal-stock-check-link { border-color: #766322; background: #302a12; color: #ffe365; }
html.theme-dark .dashboard-page .fiscal-stock-check-link:hover { background: #403817; }

.dashboard-page .finance-status-open {
  background: rgba(244, 194, 29, 0.16);
  color: #111111;
}

.dashboard-page .finance-status-pendente {
  background: rgba(244, 194, 29, 0.16);
  color: #111111;
}

.dashboard-page .finance-status-partial {
  background: rgba(212, 167, 0, 0.14);
  color: #111111;
}

.dashboard-page .finance-status-liquidated {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

.dashboard-page .finance-status-importado {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

.dashboard-page .finance-status-overdue {
  background: rgba(17, 17, 17, 0.12);
  color: #111111;
}

.dashboard-page .finance-status-canceled {
  background: rgba(17, 17, 17, 0.08);
  color: #525252;
}

.dashboard-page .finance-status-erro {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

html.theme-dark .dashboard-page .finance-status-open,
html.theme-dark .dashboard-page .finance-status-pendente {
  background: rgba(244, 194, 29, 0.14);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-status-partial {
  background: rgba(212, 167, 0, 0.16);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-status-liquidated,
html.theme-dark .dashboard-page .finance-status-importado,
html.theme-dark .dashboard-page .finance-status-overdue {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-status-canceled {
  background: rgba(255, 255, 255, 0.04);
  color: #aeb4c5;
}

html.theme-dark .dashboard-page .finance-status-erro {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

html.theme-dark .dashboard-page .finance-table-wrapper {
  border-color: rgba(244, 194, 29, 0.14);
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.04), transparent 34%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
}

html.theme-dark .dashboard-page .finance-table thead th {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(244, 194, 29, 0.12);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-table tbody td {
  background: rgba(20, 20, 20, 0.96);
  border-top-color: rgba(255, 255, 255, 0.06);
  border-right-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

html.theme-dark .dashboard-page .finance-table tbody tr:hover {
  background: transparent !important;
}

html.theme-dark .dashboard-page .finance-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

.dashboard-page .finance-table-footer {
  margin-top: 16px;
}

.dashboard-page .fiscal-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dashboard-page .fiscal-row-action-confirm {
  background: #111111;
  color: #f4c21d;
  border-color: rgba(244, 194, 29, 0.22);
}

.dashboard-page .fiscal-row-action-confirm svg {
  color: #f4c21d;
}

.dashboard-page .fiscal-row-action-confirm:hover {
  background: #1f1f1f;
  border-color: rgba(244, 194, 29, 0.32);
}

.dashboard-page .fiscal-doc-row {
  cursor: context-menu;
}

.dashboard-page .fiscal-emissoes-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.dashboard-page .fiscal-emissoes-row-actions > * {
  flex: 0 0 auto;
}

.dashboard-page .fiscal-emissoes-row-actions .sidebar-inline-form {
  display: inline-flex;
  align-items: center;
}

.dashboard-page .transaction-inline-action.is-disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.dashboard-page .cheque-create-grid {
  grid-template-columns: 1fr;
}

.dashboard-page.cadastro-page .cheque-filter-form {
  grid-template-columns: minmax(0, 1fr) auto minmax(130px, 0.14fr);
}

.dashboard-page .cheque-filter-actions {
  gap: 10px;
  justify-content: center;
  justify-self: stretch;
  grid-column: 2;
  grid-row: 2;
}

.dashboard-page .cheque-company-field {
  grid-column: 1 / 3;
}

.dashboard-page .cheque-type-field {
  grid-column: 3;
  grid-row: 1;
}

.dashboard-page .cheque-status-field {
  grid-column: 1;
  grid-row: 2;
}

.dashboard-page .cheque-period-field {
  grid-column: 3;
  grid-row: 2;
}

.dashboard-page .cheque-filter-form.without-company-selector .cheque-type-field {
  grid-column: 1;
}

html.theme-dark .dashboard-page .cheque-filter-actions .primary-action,
html.theme-dark .dashboard-page .cheque-filter-actions .primary-action:hover,
html.theme-dark .dashboard-page .cheque-filter-actions .primary-action:focus-visible {
  background: linear-gradient(135deg, #f4c21d 0%, #d4a700 100%) !important;
  color: #111111 !important;
  border-color: rgba(244, 194, 29, 0.45) !important;
}

.dashboard-page .cheque-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-page .cheque-kpi-card .stat-value {
  font-size: 30px;
}

.dashboard-page .cheque-kpi-warning {
  --stat-accent-color: #d4a700;
}

.dashboard-page .cheque-kpi-warning .stat-value {
  color: #111111;
}

.dashboard-page .cheque-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-page .cheque-chart-card,
.dashboard-page .cheque-donut-card {
  overflow: hidden;
}

.dashboard-page .cheque-donut-card {
  display: flex;
  flex-direction: column;
}

.dashboard-page .cheque-donut-card .cheque-donut-layout {
  flex: 1 1 auto;
}

.dashboard-page .cheque-table-card {
  overflow: visible;
  margin-top: 18px;
}

.dashboard-page .cheque-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 13px;
}

.dashboard-page .cheque-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-page .cheque-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-page .cheque-legend-dot.is-pending {
  background: #fb923c;
}

.dashboard-page .cheque-legend-dot.is-compensated {
  background: #16a34a;
}

.dashboard-page .cheque-legend-dot.is-returned {
  background: #ef4444;
}

.dashboard-page .cheque-legend-dot.is-emitted {
  background: #60a5fa;
}

.dashboard-page .cheque-line-chart-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(255, 255, 255, 0.96));
  padding: 10px 12px 6px;
}

html.theme-dark .dashboard-page .cheque-chart-legend {
  color: #aeb4c5;
}

html.theme-dark .dashboard-page .cheque-line-chart-card {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.04), transparent 34%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border-color: rgba(244, 194, 29, 0.14);
}

.dashboard-page .cheque-line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-page .cheque-donut-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.dashboard-page .cheque-donut-visual {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--cheque-donut-background, conic-gradient(#e2e8f0 0deg 360deg));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

html.theme-dark .dashboard-page .cheque-donut-visual {
  box-shadow: inset 0 0 0 1px rgba(244, 194, 29, 0.10);
}

html.theme-dark .dashboard-page .cheque-donut-visual[data-is-empty="1"] {
  background: conic-gradient(rgba(148, 163, 184, 0.24) 0deg 360deg);
}

.dashboard-page .cheque-donut-center {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

html.theme-dark .dashboard-page .cheque-donut-center {
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(244, 194, 29, 0.14);
}

.dashboard-page .cheque-donut-center strong {
  font-size: 26px;
  color: #102233;
  line-height: 1;
}

html.theme-dark .dashboard-page .cheque-donut-center strong {
  color: #ffffff;
}

.dashboard-page .cheque-donut-center span {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html.theme-dark .dashboard-page .cheque-donut-center span,
html.theme-dark .dashboard-page .cheque-donut-row-meta {
  color: #aeb4c5;
}

.dashboard-page .cheque-donut-summary {
  display: grid;
  gap: 14px;
}

.dashboard-page .cheque-donut-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dashboard-page .cheque-donut-row-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #102233;
  font-weight: 700;
}

.dashboard-page .cheque-donut-row-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: currentColor;
}

.dashboard-page .cheque-donut-row-meta {
  color: #64748b;
  font-size: 13px;
  text-align: right;
}

.dashboard-page .cheque-tone-compensated {
  color: #16a34a;
}

.dashboard-page .cheque-tone-pending {
  color: #fb923c;
}

.dashboard-page .cheque-tone-returned {
  color: #ef4444;
}

.dashboard-page .cheque-table-heading {
  align-items: center;
}

.dashboard-page .cheque-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-page .cheque-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

.dashboard-page .cheque-search-form input {
  width: min(320px, 48vw);
  max-width: none;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
}

html.theme-dark .dashboard-page .cheque-search-form input {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #f5f7fb;
}

.dashboard-page .cheque-toolbar-button,
.dashboard-page .cheque-toolbar-icon {
  width: auto;
  min-width: 40px;
}

.dashboard-page .cheque-toolbar-icon {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1;
  background: #fad32b;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(202, 166, 43, 0.24), 0 8px 18px rgba(250, 211, 43, 0.16);
}

.dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon:hover,
.dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon:focus-visible {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  box-shadow: none;
}

.dashboard-page .cheque-toolbar-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  color: currentColor;
}

.dashboard-page .cheque-table-modern {
  min-width: 980px;
}

.dashboard-page .cheque-table-modern .col-date {
  width: 110px;
  min-width: 110px;
}

.dashboard-page .cheque-table-modern .col-description {
  width: 18%;
}

.dashboard-page .cheque-table-modern .col-account {
  width: 22%;
}

.dashboard-page .cheque-table-modern .col-holder {
  width: 130px;
  min-width: 130px;
}

.dashboard-page .cheque-table-modern .col-actions {
  width: 84px;
  min-width: 84px;
}

.dashboard-page .cheque-number {
  color: #10b981;
  font-weight: 700;
}

.dashboard-page .cheque-number-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.dashboard-page .cheque-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-page .cheque-type-recebido {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.dashboard-page .cheque-type-emitido {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.dashboard-page .cheque-bank-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dashboard-page .cheque-bank-badge {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 180, 116, 0.14), rgba(96, 165, 250, 0.18));
  color: #0f4c81;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page .cheque-bank-logo-wrap {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.dashboard-page .cheque-bank-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  transform: scale(1);
  transform-origin: center;
}

.dashboard-page .cheque-bank-logo-bancodobrasil {
  transform: scale(2.9);
}

.dashboard-page .cheque-bank-logo-bradesco {
  transform: scale(2.0);
}

.dashboard-page .cheque-bank-logo-caixa {
  transform: scale(0.8);
}

.dashboard-page .cheque-bank-logo-cresol {
  transform: scale(0.72);
}

.dashboard-page .cheque-bank-logo-sicredi {
  transform: scale(2.3);
}

.dashboard-page .cheque-bank-logo-sicoob {
  transform: scale(2.6);
}

.dashboard-page .cheque-bank-fallback svg {
  width: 18px;
  height: 18px;
}

.dashboard-page .cheque-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page .cheque-status-pending {
  background: rgba(251, 146, 60, 0.15);
  color: #ea580c;
}

.dashboard-page .cheque-status-compensated {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.dashboard-page .cheque-status-returned {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.dashboard-page .cheque-status-canceled {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.dashboard-page .cheque-amount {
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page .cheque-amount-recebido {
  color: #047857;
}

.dashboard-page .cheque-amount-emitido {
  color: #dc2626;
}

.dashboard-page .cheque-table-footer {
  margin-top: 16px;
}

.dashboard-page .cheque-table-footer .pagination-link,
.dashboard-page .cheque-table-footer .pagination-link.is-active,
.dashboard-page .cheque-table-footer .pagination-link:hover {
  background: transparent !important;
  border-color: transparent !important;
}

.dashboard-page .cheque-table-footer .pagination-number,
.dashboard-page .cheque-table-footer .pagination-number:hover,
.dashboard-page .cheque-table-footer .pagination-number.is-active {
  color: #111111 !important;
}

.dashboard-page .cheque-table-footer .pagination-symbol,
.dashboard-page .cheque-table-footer .pagination-symbol:hover {
  color: #f4c21d !important;
}

.dashboard-page .cheque-table .col-actions {
  width: 140px;
  min-width: 140px;
}

.dashboard-page .cheque-action-menu {
  position: relative;
  display: inline-block;
}

.dashboard-page .cheque-action-menu summary {
  list-style: none;
}

.dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #ffffff !important;
  box-shadow: none;
}

.dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon svg {
  width: 16px;
  height: 16px;
  color: #ffffff !important;
}

.dashboard-page .cheque-action-menu summary::-webkit-details-marker {
  display: none;
}

.dashboard-page .cheque-action-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.dashboard-page .cheque-action-menu.opens-up > .cheque-action-dropdown {
  position: fixed;
  left: var(--cheque-menu-left);
  top: var(--cheque-menu-top);
  right: auto;
  bottom: auto;
}

.dashboard-page .cheque-action-inline-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-page .cheque-action-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #264257;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .cheque-action-link:hover {
  background: rgba(49, 196, 141, 0.1);
}

.dashboard-page .cheque-action-link:disabled {
  color: #94a3b8;
  background: transparent;
  cursor: not-allowed;
}

.dashboard-page .cheque-action-link.is-danger {
  color: #c24141;
}

.dashboard-page .cheque-action-link.is-danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

.dashboard-page .cheque-actions-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-page .cheque-inline-action-form {
  display: grid;
  gap: 8px;
}

.dashboard-page .cheque-inline-action-form input[type="date"],
.dashboard-page .cheque-inline-action-form input[type="text"] {
  width: 100%;
}

.dashboard-page .cheque-edit-panel {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-page .cheque-edit-panel p {
  margin-bottom: 10px;
}

.dashboard-page .cheque-inline-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-page .cadastro-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page .cadastro-forms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.dashboard-page .company-admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page.company-admin-page .cadastro-stats-grid {
  margin-top: 8px;
}

.dashboard-page .company-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.dashboard-page .company-admin-side {
  display: grid;
  gap: 18px;
}

.dashboard-page .tenant-admin-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-page .tenant-admin-form p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}

.dashboard-page .tenant-admin-form label {
  font-weight: 600;
  color: #264257;
}

.dashboard-page .tenant-admin-form input:not([type="checkbox"]):not([type="radio"]),
.dashboard-page .tenant-admin-form select,
.dashboard-page .tenant-admin-form textarea {
  width: 100%;
  max-width: none;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
}

.dashboard-page .tenant-admin-form input[type="checkbox"],
.dashboard-page .tenant-admin-form input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: #fad32b;
}

.dashboard-page .tenant-admin-form p:has(input[type="checkbox"]),
.dashboard-page .tenant-admin-form p:has(input[type="radio"]) {
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-page .tenant-admin-form p:has(input[type="checkbox"]) label,
.dashboard-page .tenant-admin-form p:has(input[type="radio"]) label {
  flex: 1 1 0;
}

.dashboard-page .tenant-admin-form .helptext {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-page .tenant-admin-form ul {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.dashboard-page .tenant-admin-form .errorlist {
  margin: 0 0 8px;
  color: #b91c1c;
  font-size: 13px;
}

.dashboard-page .tenant-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-page .tenant-admin-link {
  width: auto;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dashboard-page .tenant-admin-link:hover {
  text-decoration: none;
}

.dashboard-page .admin-info-list {
  margin: 0;
  padding: 0 0 0 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 10px;
  color: #264257;
}

.dashboard-page .admin-callout {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(233, 250, 242, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(49, 196, 141, 0.16);
}

.dashboard-page .admin-callout strong,
.dashboard-page .admin-callout p {
  display: block;
}

.dashboard-page .admin-callout p {
  margin: 8px 0 0;
  color: #64748b;
}

html.theme-dark .dashboard-page .tenant-admin-form label,
html.theme-dark .dashboard-page .admin-info-list,
html.theme-dark .dashboard-page .admin-callout strong {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .tenant-admin-form input:not([type="checkbox"]):not([type="radio"]),
html.theme-dark .dashboard-page .tenant-admin-form select,
html.theme-dark .dashboard-page .tenant-admin-form textarea {
  background-color: #1a1a1a;
  color: #f5f7fb;
  border-color: rgba(244, 194, 29, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html.theme-dark .dashboard-page .tenant-admin-form input:not([type="checkbox"]):not([type="radio"])::placeholder,
html.theme-dark .dashboard-page .tenant-admin-form textarea::placeholder {
  color: #8f98a8;
}

html.theme-dark .dashboard-page .tenant-admin-form .helptext,
html.theme-dark .dashboard-page .tenant-admin-form ul,
html.theme-dark .dashboard-page .admin-callout p {
  color: #aab3c5;
}

html.theme-dark .dashboard-page .tenant-admin-form .errorlist {
  color: #ffb4b4;
}

html.theme-dark .dashboard-page .admin-callout {
  background: linear-gradient(180deg, rgba(46, 60, 54, 0.58), rgba(22, 22, 22, 0.98));
  border-color: rgba(250, 211, 43, 0.16);
}

.dashboard-page .module-management-grid {
  margin-top: 18px;
}

.dashboard-page .module-config-form {
  display: grid;
  gap: 16px;
}

.dashboard-page .module-option-grid {
  display: grid;
  gap: 12px;
}

.dashboard-page .module-option-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.dashboard-page .module-option-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.dashboard-page .module-option-copy {
  display: grid;
  gap: 6px;
}

.dashboard-page .module-option-copy strong {
  color: #0f172a;
}

.dashboard-page .module-option-copy span {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-page .module-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-page .module-status-badge.is-custom {
  background: rgba(221, 244, 255, 0.95);
  color: #0f4c81;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.dashboard-page .module-status-badge.is-default {
  background: rgba(241, 245, 249, 0.96);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.dashboard-page .module-summary-stack {
  display: grid;
  gap: 10px;
}

.dashboard-page .module-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-page .module-summary-copy {
  display: grid;
  gap: 4px;
}

.dashboard-page .module-summary-copy span {
  color: #64748b;
  font-size: 13px;
}

.dashboard-page .module-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-page .module-summary-state {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-page .module-summary-inline-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-page .module-inline-action {
  min-width: 132px;
}

.dashboard-page .module-summary-row span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-page .module-summary-row.is-enabled {
  background: rgba(233, 250, 242, 0.92);
  border-color: rgba(49, 196, 141, 0.2);
}

.dashboard-page .module-summary-row.is-enabled .module-summary-state {
  color: #0f766e;
}

html.theme-dark .dashboard-page .module-option-card,
html.theme-dark .dashboard-page .module-summary-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}

html.theme-dark .dashboard-page .module-option-copy strong,
html.theme-dark .dashboard-page .module-summary-copy strong {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .module-option-copy span,
html.theme-dark .dashboard-page .module-summary-copy span,
html.theme-dark .dashboard-page .module-summary-row span {
  color: #aab3c5;
}

html.theme-dark .dashboard-page.cadastro-page #empresas-card small {
  color: #aab3c5;
}

html.theme-dark .dashboard-page.cadastro-page .cadastro-stats-grid .stat-card {
  background:
    radial-gradient(circle at top right, rgba(250, 211, 43, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
}

.dashboard-page .app-modal,
.dashboard-page .company-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  z-index: 2500;
}

.dashboard-page .edit-tooltip {
  position: fixed;
  inset: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 2500;
}

.dashboard-page .app-modal[hidden],
.dashboard-page .edit-tooltip[hidden],
.dashboard-page .context-menu[hidden] {
  display: none !important;
}

.dashboard-page .app-modal-card,
.dashboard-page .edit-form,
.dashboard-page .company-overlay-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.dashboard-page .app-drawer,
.dashboard-page .drawer-overlay {
  justify-content: flex-end;
}

.dashboard-page .drawer-card,
.dashboard-page .drawer-overlay .edit-form {
  width: min(560px, 100%);
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  border-radius: 28px 0 0 28px;
}

.dashboard-page .app-modal-card-narrow {
  width: min(620px, 100%);
}

.dashboard-page .fiscal-confirm-modal-card {
  width: min(1040px, 100%);
  max-height: min(calc(100vh - 32px), 920px);
}

.dashboard-page .fiscal-cfop-input-group {
  display: flex;
  gap: 6px;
}

.dashboard-page .fiscal-cfop-input-group input {
  min-width: 0;
}

.dashboard-page .fiscal-customer-input-group > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dashboard-page .fiscal-customer-catalog-trigger {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(244, 194, 29, 0.38);
  border-radius: 10px;
  background: rgba(244, 194, 29, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .fiscal-customer-catalog-trigger:hover {
  background: rgba(244, 194, 29, 0.15);
}

.dashboard-page .fiscal-customer-catalog-trigger svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #f7d75d;
}

.dashboard-page .fiscal-cfop-catalog-trigger {
  display: inline-grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(244, 194, 29, 0.42);
  border-radius: 10px;
  background: rgba(244, 194, 29, 0.10);
  color: #f7d75d;
  cursor: pointer;
}

.dashboard-page .fiscal-cfop-catalog-trigger:hover {
  background: rgba(244, 194, 29, 0.20);
}

.dashboard-page .fiscal-cfop-catalog-trigger svg {
  width: 19px;
  height: 19px;
}

.dashboard-page .fiscal-cfop-catalog-card {
  width: min(760px, 100%);
}

.dashboard-page .fiscal-customer-catalog-card {
  width: min(760px, 100%);
}

.dashboard-page .fiscal-cfop-catalog-search {
  margin: 14px 0;
}

.dashboard-page .fiscal-cfop-catalog-search label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-page .fiscal-cfop-catalog-search input {
  width: 100%;
}

.dashboard-page .fiscal-cfop-catalog-list {
  display: grid;
  max-height: min(50vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
}

.dashboard-page .fiscal-customer-catalog-list {
  display: grid;
  max-height: min(50vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
}

.dashboard-page .fiscal-cfop-catalog-option {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .fiscal-cfop-catalog-option:last-child {
  border-bottom: 0;
}

.dashboard-page .fiscal-cfop-catalog-option:hover {
  background: rgba(244, 194, 29, 0.10);
}

.dashboard-page .fiscal-cfop-catalog-option strong {
  color: #f7d75d;
}

.dashboard-page .fiscal-customer-catalog-option {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* The option layout above overrides the browser's default [hidden] rule. */
.dashboard-page .fiscal-cfop-catalog-option[hidden],
.dashboard-page .fiscal-customer-catalog-option[hidden] {
  display: none !important;
}

.dashboard-page .fiscal-customer-catalog-option:last-child {
  border-bottom: 0;
}

.dashboard-page .fiscal-customer-catalog-option:hover {
  background: rgba(244, 194, 29, 0.10);
}

.dashboard-page .fiscal-customer-catalog-option span {
  color: #aab3c5;
  font-size: 0.85rem;
}

.dashboard-page .fiscal-cfop-catalog-empty {
  margin: 14px 0 0;
  color: #aab3c5;
}

/* ── Catalog modal redesign ─────────────────────────────────────────── */

/* Kicker accent */
.dashboard-page .fiscal-customer-catalog-card .card-kicker,
.dashboard-page .fiscal-product-catalog-card .card-kicker {
  color: #d4a700;
  font-weight: 800;
  letter-spacing: 0.08em;
}
html.theme-dark .dashboard-page .fiscal-customer-catalog-card .card-kicker,
html.theme-dark .dashboard-page .fiscal-product-catalog-card .card-kicker {
  color: #fad32b;
}

/* Card background */
html.theme-dark .dashboard-page .fiscal-customer-catalog-card,
html.theme-dark .dashboard-page .fiscal-product-catalog-card {
  background: linear-gradient(160deg, #1e2125 0%, #15181a 100%);
  border-color: rgba(148, 163, 184, 0.13);
}

/* Search wrap with icon */
.dashboard-page .catalog-search-wrap {
  position: relative;
}
.dashboard-page .catalog-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}
.dashboard-page .catalog-search-wrap input {
  padding-left: 40px;
  height: 44px;
  border-radius: 10px;
  font-size: 0.93rem;
}
html.theme-dark .dashboard-page .catalog-search-icon {
  color: #6e7880;
}

/* Result lists */
.dashboard-page .fiscal-customer-catalog-list,
.dashboard-page .fiscal-product-catalog-list {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
}
html.theme-dark .dashboard-page .fiscal-customer-catalog-list,
html.theme-dark .dashboard-page .fiscal-product-catalog-list {
  border-color: rgba(148, 163, 184, 0.11);
}

/* Result option – flex with avatar */
.dashboard-page .fiscal-customer-catalog-option,
.dashboard-page .fiscal-product-catalog-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
  width: 100%;
}
.dashboard-page .fiscal-customer-catalog-option:last-child,
.dashboard-page .fiscal-product-catalog-option:last-child {
  border-bottom: 0;
}
.dashboard-page .fiscal-customer-catalog-option:hover,
.dashboard-page .fiscal-product-catalog-option:hover {
  background: rgba(244, 194, 29, 0.10);
}
html.theme-dark .dashboard-page .fiscal-customer-catalog-option:hover,
html.theme-dark .dashboard-page .fiscal-product-catalog-option:hover {
  background: rgba(250, 211, 43, 0.08);
}

/* Avatar circle */
.dashboard-page .catalog-option-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 167, 0, 0.12);
  border: 1px solid rgba(212, 167, 0, 0.26);
  color: #b38e00;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  flex-shrink: 0;
}
html.theme-dark .dashboard-page .catalog-option-avatar {
  background: rgba(250, 211, 43, 0.11);
  border-color: rgba(250, 211, 43, 0.22);
  color: #fad32b;
}

/* Text block inside option */
.dashboard-page .catalog-option-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.dashboard-page .fiscal-customer-catalog-option strong,
.dashboard-page .fiscal-product-catalog-option strong {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-page .fiscal-customer-catalog-option span.catalog-option-text,
.dashboard-page .fiscal-product-catalog-option span.catalog-option-text {
  color: inherit;
  font-size: inherit;
}
.dashboard-page .fiscal-customer-catalog-option .catalog-option-text span,
.dashboard-page .fiscal-product-catalog-option .catalog-option-text span {
  color: #7d8fa3;
  font-size: 0.77rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.theme-dark .dashboard-page .fiscal-customer-catalog-option .catalog-option-text span,
html.theme-dark .dashboard-page .fiscal-product-catalog-option .catalog-option-text span {
  color: #8a96a5;
}

/* Status / empty message */
.dashboard-page .catalog-status-msg {
  margin: 12px 0 0;
  padding: 10px 14px;
  text-align: center;
  color: #7d8fa3;
  font-size: 0.86rem;
}
html.theme-dark .dashboard-page .catalog-status-msg {
  color: #6e7880;
}

/* Footer with CTA */
.dashboard-page .catalog-modal-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
html.theme-dark .dashboard-page .catalog-modal-footer {
  border-color: rgba(148, 163, 184, 0.10);
}

/* ── end Catalog modal redesign ─────────────────────────────────────── */

.dashboard-page .movimentacoes-modal-card {
  width: min(1180px, 100%);
}

.dashboard-page .summary-modal-card {
  width: min(760px, 100%);
}

.dashboard-page #contas-full-modal .summary-modal-card {
  width: min(820px, 100%);
}

.dashboard-page .summary-modal-stack {
  display: grid;
  gap: 14px;
}

.dashboard-page .summary-modal-meta {
  display: flex;
  justify-content: flex-start;
}

.dashboard-page .summary-modal-hint {
  color: #64748b;
  font-size: 14px;
}

.dashboard-page .modal-header,
.dashboard-page .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .modal-header {
  margin-bottom: 18px;
}

.dashboard-page .modal-footer {
  margin-top: 18px;
}

.dashboard-page .modal-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-page .modal-form-grid p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  min-width: 0;
}

/* Os campos ANP são condicionais ao tratamento fiscal do produto. A regra
   explícita vence o layout em flex da grade quando o JavaScript os oculta. */
.dashboard-page .modal-form-grid .estoque-fuel-field[hidden] {
  display: none !important;
}

.dashboard-page .cheque-form-grid .estoque-treatment-field {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid rgba(244, 194, 29, .32);
  border-radius: 10px;
  background: rgba(244, 194, 29, .06);
}

.dashboard-page .estoque-treatment-field select {
  max-width: 420px;
}

.dashboard-page .modal-form-grid p strong,
.dashboard-page .modal-form-grid p span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-page .modal-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-page .cheque-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.dashboard-page .cheque-form-grid p {
  margin: 0;
  min-width: 0;
}

.dashboard-page .cheque-form-grid p:last-of-type,
.dashboard-page .cheque-form-grid .modal-footer {
  grid-column: 1 / -1;
}

.dashboard-page .cheque-form-grid .parceiro-form-section {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}

.dashboard-page .parceiro-form-section h4 {
  margin: 0 0 4px;
  font-size: .92rem;
}

.dashboard-page .parceiro-form-section-copy {
  margin: 0 0 14px;
  color: var(--muted-text);
  font-size: .82rem;
}

.dashboard-page .parceiro-form-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.dashboard-page .parceiro-form-section-grid p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.dashboard-page .cheque-form-grid .parceiro-form-section-grid p:last-of-type {
  grid-column: auto;
}

.dashboard-page .parceiro-form-section-grid small {
  color: var(--muted-text);
  font-size: .78rem;
  line-height: 1.35;
}

.dashboard-page .cheque-form-grid .parceiro-form-section-grid .parceiro-form-field-wide {
  grid-column: 1 / -1;
}

.dashboard-page .cheque-form-grid .parceiro-form-section-grid .parceiro-form-field-wide textarea {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-height: 112px;
  box-sizing: border-box;
  resize: vertical;
}

.dashboard-page .fiscal-import-summary {
  display: grid;
  gap: 14px;
}

.dashboard-page .fiscal-import-summary-section {
  padding: 16px;
  border: 1px solid rgba(244, 194, 29, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-page .fiscal-import-summary-section > header,
.dashboard-page .fiscal-import-summary-finance-grid h5 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.dashboard-page .fiscal-import-summary-section h4,
.dashboard-page .fiscal-import-summary-finance-grid h5 {
  margin: 0;
  color: inherit;
}

.dashboard-page .fiscal-import-summary-section > header > span,
.dashboard-page .fiscal-import-summary-status,
.dashboard-page .fiscal-import-summary-finance-grid h5 span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(244, 194, 29, 0.12);
  color: #f4c21d;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .fiscal-import-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-page .fiscal-import-summary-grid article,
.dashboard-page .fiscal-import-summary-list article,
.dashboard-page .fiscal-import-summary-finance-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.dashboard-page .fiscal-import-summary-grid small,
.dashboard-page .fiscal-import-summary-list span,
.dashboard-page .fiscal-import-summary-list small,
.dashboard-page .fiscal-import-summary-finance-grid article span {
  color: var(--muted-text, #9ca3af);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-page .fiscal-import-summary-grid strong,
.dashboard-page .fiscal-import-summary-grid span,
.dashboard-page .fiscal-import-summary-list strong,
.dashboard-page .fiscal-import-summary-finance-grid strong,
.dashboard-page .fiscal-import-summary-notes p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-page .fiscal-import-summary-metrics article:last-child strong {
  color: #f4c21d;
  font-size: 18px;
}

.dashboard-page .fiscal-import-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-page .fiscal-import-summary-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-page .fiscal-import-summary-finance-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.dashboard-page .fiscal-import-summary-finance-grid h5 {
  margin-bottom: 0;
  font-size: 13px;
}

.dashboard-page .fiscal-import-summary-notes p {
  margin: 0;
  line-height: 1.55;
}

.dashboard-page .fiscal-confirm-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.dashboard-page .fiscal-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(250, 211, 43, 0.16);
  border: 1px solid rgba(250, 211, 43, 0.34);
  color: #6b4f00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-page .fiscal-confirm-form {
  display: grid;
  gap: 18px;
}

.dashboard-page .fiscal-mode-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-page .fiscal-mode-switcher-button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-page .fiscal-mode-switcher-button.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-page .fiscal-mode-switcher-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.dashboard-page .fiscal-confirm-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dashboard-page .fiscal-confirm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.dashboard-page .fiscal-confirm-section-header h4 {
  margin: 2px 0 0;
  font-size: 20px;
  color: #0f172a;
}

.dashboard-page .fiscal-section-kicker {
  margin: 0;
  color: #8a6a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-page .fiscal-confirm-topgrid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.dashboard-page .fiscal-inline-create-account {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 14px;
}

.dashboard-page .fiscal-inline-create-account summary {
  cursor: pointer;
  color: #8a6a00;
  font-weight: 800;
}

.dashboard-page .fiscal-inline-create-account > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 10px;
}

.dashboard-page .fiscal-inline-create-account .secondary-action {
  grid-column: 1 / -1;
  justify-self: start;
}

.dashboard-page .fiscal-item-expense-account-notice {
  gap: 8px;
}

.dashboard-page .fiscal-confirm-switch-card,
.dashboard-page .fiscal-confirm-item-card,
.dashboard-page .fiscal-installment-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-page .fiscal-mode-panel-header {
  display: grid;
  gap: 4px;
}

.dashboard-page .fiscal-mode-panel-hint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-page .fiscal-mode-panel-hint-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .fiscal-card-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #0f172a;
}

.dashboard-page .fiscal-card-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
}

.dashboard-page .fiscal-confirm-inline-grid,
.dashboard-page .fiscal-installment-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* The cheque details are revealed only after its parcel checkbox is selected. */
.dashboard-page .fiscal-installment-card-grid[data-fiscal-cheque-fields][hidden] {
  display: none !important;
}

.dashboard-page .fiscal-confirm-inline-grid .fiscal-field:last-child,
.dashboard-page .fiscal-installment-card-grid .fiscal-field:last-child {
  grid-column: auto;
}

.dashboard-page .fiscal-confirm-items-grid,
.dashboard-page .fiscal-confirm-installments-grid {
  display: grid;
  gap: 14px;
}

.dashboard-page .fiscal-confirm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-page .fiscal-installment-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-page .fiscal-installment-remove {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .fiscal-service-item-headline {
  display: grid;
  gap: 6px;
}

.dashboard-page .fiscal-service-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .fiscal-service-item-card input[readonly] {
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
}

html.theme-dark .dashboard-page .fiscal-confirm-summary {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .fiscal-summary-chip {
  background: rgba(244, 194, 29, 0.12);
  border-color: rgba(244, 194, 29, 0.24);
  color: #f4d46a;
}

html.theme-dark .dashboard-page .fiscal-mode-switcher {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(244, 194, 29, 0.14);
}

html.theme-dark .dashboard-page .fiscal-mode-switcher-button {
  color: #aeb4c5;
}

html.theme-dark .dashboard-page .fiscal-mode-switcher-button.is-active {
  background: #1a1a1a;
  color: #f5f7fb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

html.theme-dark .dashboard-page .fiscal-confirm-section {
  background: linear-gradient(180deg, rgba(52, 52, 52, 0.96) 0%, rgba(36, 36, 36, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html.theme-dark .dashboard-page .fiscal-confirm-section-header h4,
html.theme-dark .dashboard-page .fiscal-mode-panel-header strong,
html.theme-dark .dashboard-page .fiscal-card-toggle,
html.theme-dark .dashboard-page .fiscal-service-item-headline strong,
html.theme-dark .dashboard-page .fiscal-manage-mode-header label {
  color: #f5f7fb;
}

html.theme-dark .dashboard-page .fiscal-section-kicker {
  color: #d9ae1a;
}

html.theme-dark .dashboard-page .fiscal-confirm-section .table-subtext,
html.theme-dark .dashboard-page .fiscal-mode-panel-header .table-subtext,
html.theme-dark .dashboard-page .fiscal-confirm-card-head .table-subtext,
html.theme-dark .dashboard-page .fiscal-manage-mode-copy {
  color: #aeb4c5 !important;
}

html.theme-dark .dashboard-page .fiscal-confirm-switch-card,
html.theme-dark .dashboard-page .fiscal-confirm-item-card,
html.theme-dark .dashboard-page .fiscal-installment-card,
html.theme-dark .dashboard-page .fiscal-manage-mode-block {
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.96) 0%, rgba(20, 20, 20, 0.98) 100%);
  border-color: rgba(244, 194, 29, 0.12);
}

html.theme-dark .dashboard-page .fiscal-inline-create-account {
  border-color: rgba(244, 194, 29, 0.22);
}

html.theme-dark .dashboard-page .fiscal-mode-panel-hint-list span {
  background: rgba(255, 255, 255, 0.05);
  color: #d6dbe6;
}

html.theme-dark .dashboard-page .fiscal-installment-remove {
  border-color: rgba(244, 194, 29, 0.18);
}

html.theme-dark .dashboard-page .fiscal-confirm-form input,
html.theme-dark .dashboard-page .fiscal-confirm-form select,
html.theme-dark .dashboard-page .fiscal-confirm-form textarea {
  background: #1a1a1a;
  color: #f5f7fb;
  border-color: rgba(244, 194, 29, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html.theme-dark .dashboard-page .fiscal-confirm-form input::placeholder,
html.theme-dark .dashboard-page .fiscal-confirm-form textarea::placeholder {
  color: #8f98a8;
}

html.theme-dark .dashboard-page .fiscal-service-badge {
  background: rgba(244, 194, 29, 0.14);
  color: #f3f4f6;
}

html.theme-dark .dashboard-page .fiscal-service-item-card input[readonly] {
  background: rgba(17, 17, 17, 0.82);
  color: #e5e7eb;
}

.dashboard-page .fiscal-confirm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-page .fiscal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.dashboard-page .fiscal-stock-search-results {
  display: grid;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #ffffff;
  color: #27333c;
}

.dashboard-page .fiscal-stock-search-results[hidden] {
  display: none !important;
}

.dashboard-page .fiscal-stock-search-results button {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .fiscal-stock-search-results button:hover,
.dashboard-page .fiscal-stock-search-results button:focus-visible {
  outline: 2px solid #c9a900;
  outline-offset: -2px;
  background: #fff6cb;
}

.dashboard-page .fiscal-stock-search-results p {
  margin: 0;
  padding: 8px 9px;
  color: #596775;
  font-size: 12px;
}

html.theme-dark .dashboard-page .fiscal-stock-search-results {
  border-color: #41484d;
  background: #111416;
  color: #e6eaee;
}

html.theme-dark .dashboard-page .fiscal-stock-search-results button:hover,
html.theme-dark .dashboard-page .fiscal-stock-search-results button:focus-visible {
  outline-color: #f7d331;
  background: #29250e;
}

html.theme-dark .dashboard-page .fiscal-stock-search-results p {
  color: #aeb8c2;
}

.dashboard-page .fiscal-manage-mode-block,
.dashboard-page .fiscal-manage-mode-panel {
  grid-column: 1 / -1;
}

.dashboard-page .fiscal-manage-mode-block {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-page .fiscal-manage-mode-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.dashboard-page [data-finance-mode-panel][hidden] {
  display: none !important;
}

.dashboard-page .fiscal-manage-mode-header {
  display: grid;
  gap: 4px;
}

.dashboard-page .fiscal-manage-mode-header label {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.dashboard-page .fiscal-manage-mode-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-page .fiscal-field-wide {
  grid-column: span 2;
}

.dashboard-page .fiscal-confirm-actions {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  margin: 2px -22px -22px;
  padding: 16px 22px 22px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.78) 0%, rgba(248, 251, 253, 0.98) 24%, #f8fbfd 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(10px);
}

.dashboard-page .fiscal-confirm-actions .secondary-action,
.dashboard-page .fiscal-confirm-actions .primary-action {
  min-width: 210px;
}

html.theme-dark .dashboard-page .fiscal-confirm-actions {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.6) 0%, rgba(20, 20, 20, 0.96) 24%, rgba(20, 20, 20, 0.99) 100%);
  border-top-color: rgba(244, 194, 29, 0.14);
}

.dashboard-page .form-feedback {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(254, 242, 242, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.dashboard-page .form-feedback ul {
  margin: 0;
  padding-left: 18px;
  background: transparent;
  border: 0;
}

/*
 * Overlay de Exportações no padrão dos cards do Estoque. O :not(#_) duplo supera as regras
 * globais de .app-modal-card (fundo e campos no tema escuro), que usam :not(#_) com !important.
 */
body.dashboard-page .exports-modal-card:not(#_):not(#_) {
  --exports-title: #1d2025;
  --exports-muted: #7b808a;
  --exports-row-bg: #fcfbf8;
  --exports-row-border: #ebe6da;
  --exports-icon-bg: #fff4d2;
  --exports-icon-color: #efb300;
  --exports-field-bg: #ffffff;
  --exports-field-border: #e2ddd0;
  --exports-field-focus: #9aa6b0;
  --exports-field-color: #262a31;
  --exports-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23707d89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  width: min(640px, 100%);
  padding: 22px;
  border: 1px solid var(--exports-row-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(31, 27, 16, 0.04), 0 24px 60px rgba(31, 27, 16, 0.18);
  color: var(--exports-title);
}

html.theme-dark body.dashboard-page .exports-modal-card:not(#_):not(#_) {
  --exports-title: #f4f5f7;
  --exports-muted: rgba(244, 245, 247, 0.62);
  --exports-row-bg: #202224;
  --exports-row-border: rgba(255, 255, 255, 0.08);
  --exports-icon-bg: rgba(244, 194, 29, 0.12);
  --exports-icon-color: #f4c21d;
  --exports-field-bg: #232527;
  --exports-field-border: rgba(255, 255, 255, 0.14);
  --exports-field-focus: #6b747a;
  --exports-field-color: #f1f3f5;
  --exports-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3cad0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  border-color: #303438 !important;
  background: linear-gradient(150deg, #202325, #181b1d) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-header h3 {
  display: block;
  margin: 0;
  color: var(--exports-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-header p {
  margin: 4px 0 0;
  color: var(--exports-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-header .exports-modal-button {
  flex: 0 0 auto;
  padding-inline: 14px;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--exports-row-border);
  border-radius: 14px;
  background: var(--exports-row-bg);
  box-shadow: none;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-row.is-layout {
  grid-template-columns: 40px minmax(0, 1fr) minmax(150px, 190px) auto;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-row > .exports-modal-button {
  min-width: 132px;
  padding-inline: 14px;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--exports-icon-bg);
  color: var(--exports-icon-color);
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-icon svg {
  width: 22px;
  height: 22px;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-copy {
  min-width: 0;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-copy strong {
  display: block;
  color: var(--exports-title);
  font-size: 14px;
  font-weight: 700;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-copy span {
  display: block;
  margin-top: 3px;
  color: var(--exports-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--exports-row-border);
  border-radius: 14px;
  color: var(--exports-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-period label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--exports-muted);
  font-size: 12px;
  font-weight: 600;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) :is(.exports-modal-select, .exports-modal-period input) {
  width: 100%;
  max-width: none;
  height: 36px;
  min-height: 36px;
  margin: 0;
  border: 1px solid var(--exports-field-border) !important;
  border-radius: 9px;
  background-color: var(--exports-field-bg) !important;
  color: var(--exports-field-color) !important;
  font: inherit;
  font-size: 13px;
  box-shadow: none !important;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-period input {
  padding: 0 10px;
}

body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-select {
  padding: 0 32px 0 10px !important;
  background-image: var(--exports-chevron) !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center !important;
  background-size: 16px !important;
  appearance: none;
  cursor: pointer;
}

/* Foco discreto, sem anel amarelo: só a borda escurece, como nos demais campos de modal. */
body.dashboard-page .exports-modal-card:not(#_):not(#_) :is(.exports-modal-select, .exports-modal-period input):focus {
  border-color: var(--exports-field-focus) !important;
  outline: none !important;
}

html.theme-dark body.dashboard-page .exports-modal-card:not(#_):not(#_) :is(.exports-modal-select, .exports-modal-period input) {
  color-scheme: dark;
}

html.theme-dark body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-select option {
  background: #1b1b1b;
  color: #f1f3f5;
}

@media (max-width: 620px) {
  body.dashboard-page .exports-modal-card:not(#_):not(#_) :is(.exports-modal-row, .exports-modal-row.is-layout) {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  body.dashboard-page .exports-modal-card:not(#_):not(#_) .exports-modal-row > :is(.exports-modal-button, .exports-modal-select) {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.dashboard-page .company-overlay-card {
  width: min(460px, 100%);
}

.dashboard-page .company-overlay-card p {
  margin-top: 10px;
  color: #64748b;
}

.dashboard-page .context-menu {
  z-index: 2800;
}

.dashboard-page .context-menu-hint {
  margin: 0;
}

@media (max-width: 1320px) {
  .dashboard-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .cheque-analytics-grid,
  .dashboard-page .finance-dashboard-grid,
  .dashboard-page .finance-donut-layout,
  .dashboard-page .cheque-donut-layout,
  .dashboard-page .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .recent-moves-card {
    grid-column: auto;
    height: clamp(640px, 70vh, 760px);
    max-height: clamp(640px, 70vh, 760px);
  }

  .dashboard-page .bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-filters-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .cheque-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .finance-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .finance-upcoming-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-page .finance-upcoming-meta {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .dashboard-page .finance-upcoming-actions {
    justify-content: flex-start;
  }

  .dashboard-page .cadastro-forms-grid,
  .dashboard-page .cadastro-stats-grid,
  .dashboard-page .company-admin-grid,
  .dashboard-page .company-admin-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-page.cadastro-page .cadastro-stats-grid,
  .dashboard-page.cadastro-page .cadastro-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page.estoque-page .estoque-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page.estoque-page .estoque-origin-summary {
    flex-direction: column;
  }

  .dashboard-page.estoque-page .estoque-origin-totals {
    grid-template-columns: 1fr;
  }

  .dashboard-page.estoque-page .estoque-cadastro-copy-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-page.estoque-page .dashboard-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page.estoque-page .dashboard-main > .dashboard-topbar,
  .dashboard-page.estoque-page .dashboard-main > .flash-stack,
  .dashboard-page.estoque-page .dashboard-main > .filters-card,
  .dashboard-page.estoque-page .dashboard-main > .content-card {
    grid-column: 1 / -1;
  }

  .dashboard-page.estoque-page .estoque-donut-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-page.associados-page .cadastro-company-form,
  .dashboard-page.associados-page .associados-cta-card {
    grid-template-columns: 1fr;
  }

  .dashboard-page.associados-page .cadastro-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-page .cadastro-edit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .fiscal-confirm-topgrid,
  .dashboard-page .fiscal-confirm-card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .fiscal-field-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .dashboard-page.cadastro-page .cadastro-stats-grid,
  .dashboard-page.cadastro-page .cadastro-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .recent-moves-card {
    height: clamp(520px, 66vh, 680px);
    max-height: clamp(520px, 66vh, 680px);
  }

  .dashboard-page .recent-moves-card .recent-moves-full-table-wrap {
    height: 100%;
    max-height: 100%;
  }
}

@media (max-width: 1024px) {
  .dashboard-page.mobile-sidebar-open {
    overflow: hidden;
  }

  .dashboard-page .dashboard-shell {
    display: block;
    min-height: auto;
  }

  .dashboard-page .dashboard-sidebar,
  .dashboard-page.sidebar-collapsed .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2600;
    width: min(320px, 88vw);
    max-width: min(320px, 88vw);
    min-height: 100vh;
    max-height: 100vh;
    padding: 18px 14px 20px;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 0;
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
    transform: translateX(-112%);
    opacity: 0;
    pointer-events: none;
  }

  .dashboard-page.mobile-sidebar-open .dashboard-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-page .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2550;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .dashboard-page.mobile-sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-page .sidebar-toggle-floating {
    display: inline-flex;
  }

  .dashboard-page .dashboard-main {
    min-height: 0;
    margin-left: 0;
    padding: 18px 18px 24px;
  }

  .dashboard-page .dashboard-topbar {
    padding-top: 56px;
  }

  .dashboard-page .cheque-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .finance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .cheque-table-toolbar {
    justify-content: flex-start;
  }

  .dashboard-page .finance-table-toolbar {
    justify-content: flex-start;
  }

  .dashboard-page.sidebar-collapsed .dashboard-topbar {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .dashboard-page .dashboard-main {
    padding: 14px;
  }

  .dashboard-page .mobile-filter-trigger {
    display: inline-flex;
  }

  .dashboard-page .filters-card {
    display: none;
  }

  .dashboard-page.boletim-page .filters-card {
    display: block;
  }

  .dashboard-page .dashboard-topbar,
  .dashboard-page .card-heading,
  .dashboard-page .topbar-actions,
  .dashboard-page .pagination-bar,
  .dashboard-page .modal-header,
  .dashboard-page .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-page .dashboard-topbar {
    padding-top: 60px;
    gap: 12px;
  }

  .dashboard-page .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-page .topbar-actions .company-pill {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .dashboard-page.boletim-page .dashboard-topbar > .boletim-topbar-actions {
    width: 100%;
    align-self: stretch;
    margin-left: 0;
  }

  .dashboard-page.boletim-page .boletim-topbar-actions .primary-cta {
    grid-column: 2;
  }

  .dashboard-page .topbar-actions .primary-cta,
  .dashboard-page .topbar-actions .secondary-action,
  .dashboard-page .mobile-filter-trigger {
    width: 100%;
    min-height: 44px;
  }

  .dashboard-page .sidebar-toggle-floating {
    top: 12px;
    left: 12px;
  }

  .dashboard-page .dashboard-filters-form,
  .dashboard-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page.boletim-page .boletim-filters-form {
    grid-template-columns: 1fr;
  }

  .dashboard-page .cheque-filter-form,
  .dashboard-page .finance-filter-form,
  .dashboard-page .cheque-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .finance-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .cheque-search-form,
  .dashboard-page .cheque-search-form input,
  .dashboard-page .finance-search-form,
  .dashboard-page .finance-search-form input {
    width: 100%;
  }

  .dashboard-page .cheque-form-grid,
  .dashboard-page .cheque-inline-action-row {
    grid-template-columns: 1fr;
  }

  .dashboard-page .parceiro-form-section-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .fiscal-confirm-section,
  .dashboard-page .fiscal-confirm-switch-card,
  .dashboard-page .fiscal-confirm-item-card,
  .dashboard-page .fiscal-installment-card {
    padding: 14px;
    border-radius: 16px;
  }

  .dashboard-page .fiscal-confirm-summary,
  .dashboard-page .fiscal-import-summary-grid,
  .dashboard-page .fiscal-import-summary-list,
  .dashboard-page .fiscal-import-summary-finance-grid,
  .dashboard-page .fiscal-confirm-section-header,
  .dashboard-page .fiscal-confirm-card-head,
  .dashboard-page .fiscal-confirm-inline-grid,
  .dashboard-page .fiscal-installment-card-grid,
  .dashboard-page .fiscal-manage-mode-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .dashboard-page .fiscal-inline-create-account > div {
    grid-template-columns: 1fr;
  }

  .dashboard-page .fiscal-confirm-modal-card {
    width: min(100%, 100%);
  }

  .dashboard-page .fiscal-confirm-actions {
    position: static;
    margin: 4px 0 0;
    padding: 0;
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
  }

  .dashboard-page .fiscal-confirm-actions .secondary-action,
  .dashboard-page .fiscal-confirm-actions .primary-action {
    width: 100%;
    min-width: 0;
  }

  .dashboard-page .filters-card,
  .dashboard-page .content-card {
    padding: 14px 14px 16px;
    border-radius: 18px;
  }

  .dashboard-page .stat-card {
    padding: 16px;
    border-radius: 18px;
  }

  .dashboard-page .stat-card-layout {
    align-items: flex-start;
  }

  .dashboard-page .stat-value {
    font-size: 24px;
  }

  .dashboard-page .stat-meta {
    font-size: 13px;
  }

  .dashboard-page .tenant-admin-actions {
    display: grid;
  }

  .dashboard-page .cadastro-item-card,
  .dashboard-page .cadastro-edit-row {
    grid-template-columns: 1fr;
  }

  .dashboard-page.cadastro-page .cadastro-create-grid,
  .dashboard-page.cadastro-page .cadastro-secondary-grid,
  .dashboard-page.cadastro-page .cadastro-lists-grid,
  .dashboard-page.cadastro-page .cadastro-company-form {
    grid-template-columns: 1fr;
  }

  .dashboard-page.cadastro-page .cheque-filter-form .cheque-company-field,
  .dashboard-page.cadastro-page .cheque-filter-form .cheque-type-field,
  .dashboard-page.cadastro-page .cheque-filter-form .cheque-status-field,
  .dashboard-page.cadastro-page .cheque-filter-form .cheque-period-field,
  .dashboard-page.cadastro-page .cheque-filter-form .cheque-filter-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-page.cadastro-page .cadastro-create-secondary {
    grid-template-rows: auto auto;
    height: auto;
  }

  .dashboard-page.cadastro-page .cadastro-create-secondary > .cadastro-form-card:last-child .cadastro-create-form {
    height: auto;
  }

  .dashboard-page.cadastro-page .cadastro-conta-fields,
  .dashboard-page.cadastro-page .cadastro-type-export-row {
    grid-template-columns: 1fr;
  }

  .dashboard-page.cadastro-page .cadastro-export-button {
    width: 100%;
  }

  .dashboard-page.cadastro-page .cadastro-table-wrap {
    border-radius: 16px;
  }

  .dashboard-page .app-modal,
  .dashboard-page .company-overlay {
    padding: 12px;
  }
}

html.theme-dark .dashboard-page .finance-toolbar-tabs .finance-tab,
html.theme-dark .dashboard-page .finance-toolbar-tabs .finance-mini-tab,
html.theme-dark .dashboard-page .finance-table-heading .finance-mini-tab {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-toolbar-tabs .finance-tab:hover,
html.theme-dark .dashboard-page .finance-toolbar-tabs .finance-mini-tab:hover,
html.theme-dark .dashboard-page .finance-table-heading .finance-mini-tab:hover {
  background: rgba(244, 194, 29, 0.10);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-toolbar-tabs .finance-tab.is-active,
html.theme-dark .dashboard-page .finance-toolbar-tabs .finance-mini-tab.is-active,
html.theme-dark .dashboard-page .finance-table-heading .finance-mini-tab.is-active {
  background: rgba(244, 194, 29, 0.12);
  border-color: rgba(244, 194, 29, 0.28);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-date-pill,
html.theme-dark .dashboard-page .finance-search-form input,
html.theme-dark .dashboard-page .cheque-search-form input {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.18);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-line-chart-card {
  background:
    radial-gradient(circle at top right, rgba(244, 194, 29, 0.04), transparent 34%),
    linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border-color: rgba(244, 194, 29, 0.14);
}

html.theme-dark .dashboard-page .finance-donut-visual {
  box-shadow: inset 0 0 0 1px rgba(244, 194, 29, 0.10);
}

html.theme-dark .dashboard-page .finance-donut-center {
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(244, 194, 29, 0.14);
}

html.theme-dark .dashboard-page .finance-donut-center strong,
html.theme-dark .dashboard-page .finance-upcoming-date strong,
html.theme-dark .dashboard-page .finance-upcoming-copy strong,
html.theme-dark .dashboard-page .finance-direction-badge,
html.theme-dark .dashboard-page .finance-status-pill {
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-donut-center span,
html.theme-dark .dashboard-page .finance-donut-row-meta,
html.theme-dark .dashboard-page .finance-upcoming-date span,
html.theme-dark .dashboard-page .finance-upcoming-copy span {
  color: #aeb4c5 !important;
}

html.theme-dark .dashboard-page .finance-upcoming-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page .finance-upcoming-date {
  background: #1a1a1a;
  border-color: rgba(244, 194, 29, 0.14);
}

html.theme-dark .dashboard-page .finance-type-receber {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac !important;
}

html.theme-dark .dashboard-page .finance-type-pagar {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5 !important;
}

html.theme-dark .dashboard-page .finance-direction-receber {
  background: rgba(244, 194, 29, 0.14);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-direction-pagar {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5 !important;
}

html.theme-dark .dashboard-page .finance-status-open,
html.theme-dark .dashboard-page .finance-status-pendente {
  background: rgba(244, 194, 29, 0.14);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-status-partial {
  background: rgba(212, 167, 0, 0.16);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-status-liquidated,
html.theme-dark .dashboard-page .finance-status-importado,
html.theme-dark .dashboard-page .finance-status-overdue {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .finance-status-canceled {
  background: rgba(255, 255, 255, 0.04);
  color: #aeb4c5 !important;
}

html.theme-dark .dashboard-page .finance-status-erro {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5 !important;
}

@media (max-width: 760px) {
  .dashboard-page .table-wrap {
    overflow: visible;
  }

  .dashboard-page .dashboard-table {
    min-width: 0;
    table-layout: auto;
  }

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

  .dashboard-page .dashboard-table tbody {
    display: grid;
    gap: 12px;
  }

  .dashboard-page .dashboard-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  }

  .dashboard-page .dashboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.98);
  }

  .dashboard-page .dashboard-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    border: 0;
    align-items: start;
  }

  .dashboard-page .dashboard-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
  }

  .dashboard-page .dashboard-table .col-description,
  .dashboard-page .dashboard-table .col-type,
  .dashboard-page .dashboard-table .col-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-table .col-date,
  .dashboard-page .dashboard-table .col-type,
  .dashboard-page .dashboard-table .col-account,
  .dashboard-page .dashboard-table .col-holder,
  .dashboard-page .dashboard-table .col-amount,
  .dashboard-page .dashboard-table .col-balance,
  .dashboard-page .dashboard-table .col-actions {
    width: auto;
    min-width: 0;
  }

  .dashboard-page .dashboard-table .col-amount,
  .dashboard-page .dashboard-table .col-balance {
    white-space: nowrap;
  }

  .dashboard-page .transaction-actions-cell {
    width: auto;
    min-width: 0;
  }

  .dashboard-page .transaction-actions {
    justify-content: flex-start;
  }

  .dashboard-page .table-subtext {
    margin-top: 4px;
    font-size: 12px;
  }

  .dashboard-page .edit-tooltip {
    padding: 12px;
  }

  .dashboard-page .app-modal-card,
  .dashboard-page .edit-form,
  .dashboard-page .company-overlay-card {
    padding: 18px;
  }

  .dashboard-page .drawer-card,
  .dashboard-page .drawer-overlay .edit-form {
    width: 100%;
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  .dashboard-page .pagination-controls {
    justify-content: stretch;
  }

  .dashboard-page .pagination-link {
    flex: 1 1 auto;
  }

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

  .dashboard-page.associados-page .topbar-actions .secondary-action,
  .dashboard-page.associados-page .topbar-actions .primary-cta,
  .dashboard-page.associados-page .topbar-actions .associados-icon-action {
    min-height: 44px;
  }
}

/* Regra final: nenhum botao do painel usa sombra, inclusive no hover. */
.dashboard-page :is(
  button,
  input[type="submit"],
  input[type="button"],
  .primary-action,
  .primary-cta,
  .secondary-action,
  .danger-action,
  .modal-close,
  .pagination-link,
  .picker-trigger,
  .transaction-inline-action,
  .finance-ghost-action,
  .finance-topbar-action,
  .summary-account-view-all,
  .associados-icon-action
) {
  box-shadow: none !important;
}

html.theme-dark .dashboard-page :is(
  .sidebar-eyebrow,
  .sidebar-nav-title,
  .sidebar-link-label,
  .dashboard-topbar .page-subtitle,
  .dashboard-topbar .page-kicker,
  .records-count,
  .stat-label,
  .stat-meta,
  .table-subtext,
  .picker-trigger-label,
  .picker-trigger-summary,
  .picker-empty-state,
  .picker-modal-hint,
  .card-empty-copy,
  .company-pill.is-muted,
  .company-empty-state p,
  .company-empty-state h3,
  .content-card h3,
  .card-kicker,
  .finance-chart-legend,
  .recent-moves-date,
  .recent-moves-copy strong,
  .recent-moves-copy span,
  .latest-tx-copy strong,
  .latest-tx-copy span,
  .finance-tab,
  .finance-mini-tab,
  .finance-tab:hover,
  .finance-mini-tab:hover,
  .finance-tab.is-active,
  .finance-mini-tab.is-active,
  .finance-date-pill,
  .finance-ghost-action,
  .finance-topbar-action,
  .finance-period-option,
  .flash-message,
  .filter-field label,
  .filter-field input,
  .filter-field select,
  .company-overlay-form select,
  .modal-form label,
  .modal-form input,
  .modal-form select,
  .modal-form textarea,
  .export-layout,
  .select-search-input,
  .cadastro-field label,
  .dashboard-table th,
  .dashboard-table td,
  .relatorio-table th,
  .relatorio-table td,
  .cadastro-table th,
  .cadastro-table td
) {
  color: #ffffff !important;
}
/* Final theme overrides for cheque pagination. */
 .dashboard-page .cheque-table-footer .pagination-link,
 .dashboard-page .cheque-table-footer .pagination-link:hover,
 .dashboard-page .cheque-table-footer .pagination-link.is-active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

 .dashboard-page .cheque-table-footer .pagination-number,
 .dashboard-page .cheque-table-footer .pagination-number:hover,
 .dashboard-page .cheque-table-footer .pagination-number.is-active {
  color: #111111 !important;
}

 .dashboard-page .cheque-table-footer .pagination-symbol,
 .dashboard-page .cheque-table-footer .pagination-symbol:hover {
  color: #f4c21d !important;
}

html.theme-dark .dashboard-page .cheque-table-footer .pagination-number,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-number:hover,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-number.is-active {
  color: #ffffff !important;
}

html.theme-dark .dashboard-page .cheque-table-footer .pagination-symbol,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-symbol:hover {
  color: #f4c21d !important;
}

/* Contraste final da engrenagem da carteira de Cheques. */
html:not(.theme-dark) .dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon {
  color: #111111 !important;
  border-color: rgba(17, 17, 17, 0.22) !important;
}

html:not(.theme-dark) .dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon svg {
  color: #111111 !important;
}

html.theme-dark .dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.theme-dark .dashboard-page .cheque-action-menu > summary.cheque-toolbar-icon svg {
  color: #ffffff !important;
}

/* Mantém números e setas visíveis em todos os estados da paginação. */
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-number,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-number:hover,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-number:focus,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-number:active,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-number.is-active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-symbol,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-symbol:hover,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-symbol:focus,
html.theme-dark .dashboard-page .cheque-table-footer .pagination-link.pagination-symbol:active {
  color: #f4c21d !important;
  -webkit-text-fill-color: #f4c21d !important;
}

/* Menu de ações de Cheques no tema escuro. */
html.theme-dark .dashboard-page .cheque-action-dropdown {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42) !important;
}

html.theme-dark .dashboard-page .cheque-action-link,
html.theme-dark .dashboard-page .cheque-action-link:hover,
html.theme-dark .dashboard-page .cheque-action-link:focus,
html.theme-dark .dashboard-page .cheque-action-link:active {
  color: #ffffff !important;
  background: transparent !important;
}

html.theme-dark .dashboard-page .cheque-action-link:hover,
html.theme-dark .dashboard-page .cheque-action-link:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .dashboard-page .cheque-action-link:disabled {
  color: #9ca3af !important;
}

html.theme-dark .dashboard-page .cheque-action-link.is-danger,
html.theme-dark .dashboard-page .cheque-action-link.is-danger:hover,
html.theme-dark .dashboard-page .cheque-action-link.is-danger:focus,
html.theme-dark .dashboard-page .cheque-action-link.is-danger:active {
  color: #ef4444 !important;
}

/* Mensagens globais aparecem como notificações discretas no canto inferior. */
.dashboard-page .flash-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4700;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
  margin: 0 !important;
  pointer-events: none;
}

.dashboard-page .flash-stack .flash-message {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(22, 163, 74, 0.34);
  border-left: 4px solid #16a34a;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  animation: flash-toast-dismiss 4.5s ease forwards;
}

.dashboard-page .flash-stack .flash-message.is-copyable-error {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  animation: none;
  opacity: 1;
  transform: none;
  visibility: visible;
}

.dashboard-page .flash-message-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

.dashboard-page .flash-message-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-page .flash-message-copy,
.dashboard-page .flash-message-close {
  min-height: 32px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.dashboard-page .flash-message-copy {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page .flash-message-close {
  width: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.dashboard-page .flash-message-copy:focus-visible,
.dashboard-page .flash-message-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.dashboard-page .flash-message-copy:disabled {
  cursor: wait;
  opacity: 0.75;
}

@keyframes flash-toast-dismiss {
  0%, 78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    pointer-events: none;
  }
}

.dashboard-page .flash-stack .flash-message.error,
.dashboard-page .flash-stack .flash-message.warning,
.dashboard-page .flash-stack .flash-message.info {
  border-color: rgba(220, 38, 38, 0.38);
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}

.dashboard-page .flash-stack .flash-message.success {
  border-color: rgba(22, 163, 74, 0.38);
  border-left-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}

html.theme-dark .dashboard-page .flash-stack .flash-message,
html.theme-dark .dashboard-page .flash-stack .flash-message.success {
  border-color: rgba(74, 222, 128, 0.42) !important;
  border-left-color: #22c55e !important;
  background: #111111 !important;
  color: #86efac !important;
}

html.theme-dark .dashboard-page .flash-stack .flash-message.error,
html.theme-dark .dashboard-page .flash-stack .flash-message.warning,
html.theme-dark .dashboard-page .flash-stack .flash-message.info {
  border-color: rgba(248, 113, 113, 0.46) !important;
  border-left-color: #ef4444 !important;
  background: #111111 !important;
  color: #fca5a5 !important;
}

@media (max-width: 600px) {
  .dashboard-page .flash-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

/* Exportacao de Cheques conserva o tamanho compacto da barra original. */
.dashboard-page .cheque-table-toolbar .cheque-toolbar-button {
  width: auto;
  min-width: 40px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 14px;
  justify-content: center;
  text-align: center;
}

/* A tabela de itens fiscais não deve herdar o zebrado claro global no tema escuro. */
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table tbody tr:nth-child(odd),
html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table tbody tr:nth-child(even) {
  background-color: #1a1a1a !important;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table tbody tr:nth-child(even) {
  background-color: #202020 !important;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table tbody td {
  background: transparent !important;
  color: #f5f7fb;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table tbody tr:hover td {
  background: rgba(244, 194, 29, 0.07) !important;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table :is(input, select) {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #f5f7fb !important;
}

html.theme-dark .dashboard-page.fiscal-emissoes-page .fiscal-item-table input::placeholder {
  color: #9aa3b2 !important;
}

/* Listagem administrativa de empresas da conta SPEDY. */
.dashboard-page.fiscal-settings-page .spedy-listing-result {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-radius: 14px;
  background: rgba(250, 211, 43, 0.12);
  color: #805d00;
}

.dashboard-page.fiscal-settings-page .spedy-companies-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
}

.dashboard-page.fiscal-settings-page .spedy-companies-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.dashboard-page.fiscal-settings-page .spedy-companies-table th,
.dashboard-page.fiscal-settings-page .spedy-companies-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
}

.dashboard-page.fiscal-settings-page .spedy-companies-table th {
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
  font-size: 0.78rem;
}

.dashboard-page.fiscal-settings-page .spedy-companies-table td { color: #1e293b; }
.dashboard-page.fiscal-settings-page .spedy-companies-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-page.fiscal-settings-page .spedy-companies-table tbody tr:hover td { background: rgba(250, 211, 43, 0.08); }

html.theme-dark .dashboard-page.fiscal-settings-page .spedy-listing-result {
  border-color: rgba(250, 211, 43, 0.30);
  background: rgba(250, 211, 43, 0.10);
  color: #fde68a;
}

html.theme-dark .dashboard-page.fiscal-settings-page .spedy-companies-table-wrap {
  background: #151515;
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .dashboard-page.fiscal-settings-page .spedy-companies-table th {
  background: #242424;
  border-bottom-color: rgba(250, 211, 43, 0.18);
  color: #f8fafc;
}

html.theme-dark .dashboard-page.fiscal-settings-page .spedy-companies-table td {
  background: #1a1a1a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #e7ebf2;
}

html.theme-dark .dashboard-page.fiscal-settings-page .spedy-companies-table tbody tr:nth-child(even) td { background: #202020; }
html.theme-dark .dashboard-page.fiscal-settings-page .spedy-companies-table tbody tr:hover {
  background-color: #302f25 !important;
}

html.theme-dark .dashboard-page.fiscal-settings-page .spedy-companies-table tbody tr:hover td {
  background: #302f25 !important;
  color: #ffffff !important;
}

/* Catálogo de produtos na emissão fiscal. */
.dashboard-page .fiscal-product-input-group > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dashboard-page .fiscal-product-catalog-trigger {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(244, 194, 29, 0.38);
  border-radius: 10px;
  background: rgba(244, 194, 29, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .fiscal-product-catalog-trigger:hover,
.dashboard-page .fiscal-product-catalog-option:hover {
  background: rgba(244, 194, 29, 0.15);
}

.dashboard-page .fiscal-product-catalog-trigger svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #f7d75d;
}

.dashboard-page .fiscal-product-catalog-card {
  width: min(760px, 100%);
}

.dashboard-page .fiscal-product-catalog-list {
  display: grid;
  max-height: min(50vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
}

.dashboard-page .fiscal-product-catalog-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.dashboard-page .fiscal-product-catalog-option[hidden] {
  display: none !important;
}

.dashboard-page .fiscal-product-catalog-option:last-child {
  border-bottom: 0;
}

.dashboard-page .fiscal-product-catalog-option .catalog-option-text > span {
  color: #aab3c5;
  font-size: 0.83rem;
}

.dashboard-page.fiscal-hub-page .fiscal-inline-form {
  display: inline;
  margin: 0;
}

.dashboard-page.fiscal-hub-page .fiscal-inline-form .fiscal-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dashboard-page.fiscal-hub-page .fiscal-pending-table :is(th, td):last-child {
  min-width: 190px;
  white-space: nowrap;
}

.dashboard-page.fiscal-hub-page .fiscal-inline-form .fiscal-inline-link {
  white-space: nowrap;
}

.dashboard-page.fiscal-hub-page .fiscal-hub-bottom-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* Padrão visual da navegação lateral em todos os módulos. */
.fd-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.dashboard-page .dashboard-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.dashboard-page .dashboard-sidebar {
  gap: 16px;
  padding: 14px 8px 18px;
  background: linear-gradient(120deg, #171717, #111111);
  border-right-color: #433b20;
}

.dashboard-page .sidebar-head {
  padding: 0 6px;
}

.dashboard-page .sidebar-brand-mark {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}

.dashboard-page .sidebar-eyebrow {
  color: #dedede;
  font-size: 11px;
}

.dashboard-page .sidebar-brand h1 {
  margin-top: 3px;
  font-size: 22px;
}

.dashboard-page .sidebar-toggle-inline {
  margin-top: 4px;
  padding: 4px;
}

.dashboard-page .sidebar-toggle-inline .sidebar-toggle-label {
  display: none;
}

.dashboard-page .sidebar-toggle-inline svg {
  width: 19px;
  height: 19px;
}

.dashboard-page .sidebar-nav {
  display: block;
  gap: 0;
}

/* Empresa ativa no menu e seletor global acionado por F8. */
.active-company-context {
  margin: 0 6px 2px;
  padding: 10px 12px;
  border: 1px solid rgba(250, 211, 43, 0.35);
  border-radius: 10px;
  background: rgba(250, 211, 43, 0.08);
  color: #f5f6f7;
}

button.active-company-context {
  width: calc(100% - 12px);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.active-company-context:hover,
button.active-company-context:focus-visible {
  border-color: #fad32b;
  background: rgba(250, 211, 43, 0.14);
  outline: none;
}

.active-company-context-label {
  display: block;
  margin-bottom: 3px;
  color: #c4c9cf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.active-company-context-name {
  display: block;
  overflow: hidden;
  color: #fad32b;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-company-context-hint {
  display: block;
  margin-top: 5px;
  color: #b9c0c8;
  font-size: 11px;
}

.company-selection-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 6, .72);
}

.company-selection-overlay[hidden] {
  display: none !important;
}

.company-selection-dialog {
  width: min(560px, 100%);
  max-height: min(680px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid #4a4f54;
  border-radius: 14px;
  background: #191c1f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  color: #f5f6f7;
}

.company-selection-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid #33383c;
}

.company-selection-dialog-header h2 { margin: 0; font-size: 19px; }
.company-selection-dialog-header p { margin: 5px 0 0; color: #b9c0c8; font-size: 12px; }
.company-selection-close { border: 0; background: transparent; color: #e7eaed; font-size: 25px; line-height: 1; }
.company-selection-search { width: calc(100% - 40px); height: 39px; margin: 16px 20px 10px; padding: 0 12px; border: 1px solid #464c51; border-radius: 8px; background: #111315; color: #f5f6f7; outline: 0; }
.company-selection-search:focus { border-color: #fad32b; }
.company-selection-list { display: grid; gap: 6px; max-height: 440px; overflow: auto; padding: 8px 20px 20px; }
.company-selection-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #353a3e; border-radius: 9px; background: #222629; color: #f4f5f6; font: inherit; text-align: left; }
.company-selection-option[hidden] { display: none !important; }
.company-selection-option:hover, .company-selection-option:focus-visible, .company-selection-option.is-current { border-color: #b79520; background: #393116; }
.company-selection-option small { flex: 0 0 auto; color: #c8ced4; font-size: 11px; }
.company-selection-empty { padding: 20px 0; color: #b9c0c8; text-align: center; }

html:not(.theme-dark) .active-company-context,
html:not(.theme-dark) .company-selection-dialog { color: #f5f6f7; }

.dashboard-page .dashboard-sidebar > .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-page .dashboard-sidebar > .sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* O perfil e as ações da conta devem permanecer acessíveis mesmo com menus longos. */
.dashboard-page .dashboard-sidebar > .sidebar-footer {
  flex: 0 0 auto;
  margin-top: 0;
}

/* Telas com .cadastro-page (Financeiro, Cheques, Estoque, Associados, Clientes e bancos,
   Estrutura contábil, OFX) usam o mesmo espaço do Boletim entre a marca e o menu. O antigo
   margin-top:-36px puxava a navegação para baixo da marca e sobrepunha o card "Empresa atual". */
.dashboard-page.cadastro-page .dashboard-sidebar {
  gap: 8px;
}

.dashboard-page.company-admin-page .dashboard-sidebar {
  gap: 6px;
}

.dashboard-page.company-admin-page .active-company-context {
  margin-bottom: 0;
}

.dashboard-page .sidebar-nav-group {
  display: block;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.dashboard-page .sidebar-nav-group-sort-locked > :is(.sidebar-link.is-locked, .sidebar-fiscal-menu.is-locked) {
  order: 1;
}

.dashboard-page .sidebar-nav-title {
  margin: 0 4px 6px;
  color: #f2f2f2;
  font-size: 12px;
}

.dashboard-page .sidebar-link {
  min-height: 31px;
  margin: 1px 0;
  padding: 6px 15px;
  border-radius: 11px;
  font-size: 14px;
}

.dashboard-page .sidebar-link.is-active {
  background: linear-gradient(135deg, #50441c, #2a2414);
  color: #ffffff;
  font-weight: 700;
}

.dashboard-page .sidebar-link.is-active .sidebar-link-icon {
  color: #fad32b;
}

.dashboard-page .sidebar-fiscal-menu {
  margin: 2px 0;
}

.dashboard-page .sidebar-fiscal-menu > summary {
  cursor: pointer;
  list-style: none;
}

.dashboard-page .sidebar-fiscal-menu > summary::-webkit-details-marker {
  display: none;
}

.dashboard-page .sidebar-fiscal-menu-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dashboard-page .sidebar-fiscal-caret {
  margin-left: 8px;
  color: #fad32b;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 14px;
  transition: transform 0.18s ease;
}

.dashboard-page .sidebar-fiscal-menu[open] > summary .sidebar-fiscal-caret {
  transform: rotate(180deg);
}

html:not(.theme-dark) .dashboard-page .sidebar-fiscal-caret {
  color: #fad32b;
}

html:not(.theme-dark) .dashboard-page .dashboard-sidebar {
  background: linear-gradient(180deg, #111111 0%, #050505 100%);
  border-right-color: rgba(244, 194, 29, 0.18);
  box-shadow: 8px 0 22px rgba(0, 0, 0, 0.18);
}

html:not(.theme-dark) .dashboard-page .sidebar-eyebrow,
html:not(.theme-dark) .dashboard-page .sidebar-brand h1,
html:not(.theme-dark) .dashboard-page .sidebar-nav-title,
html:not(.theme-dark) .dashboard-page .sidebar-link {
  color: #f2f2f2;
}

html:not(.theme-dark) .dashboard-page .sidebar-link:hover {
  background: #2a2414;
  color: #ffffff;
}

html:not(.theme-dark) .dashboard-page .sidebar-link.is-active {
  background: linear-gradient(135deg, #50441c, #2a2414);
  color: #ffffff;
}

html:not(.theme-dark) .dashboard-page .sidebar-footer {
  background: #111111;
  border-color: #363636;
}

.dashboard-page .fd-subnav {
  margin: 4px 0 9px 15px;
  padding: 0 0 4px;
}

.dashboard-page .fd-subnav a,
.dashboard-page .fd-subnav button,
.dashboard-page .fd-subnav summary {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 31px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e7e8ea;
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}

.dashboard-page .fd-subnav summary {
  cursor: pointer;
  list-style: none;
}

.dashboard-page .fd-subnav summary::-webkit-details-marker {
  display: none;
}

.dashboard-page .fd-subnav .fd-icon {
  width: 17px;
  height: 17px;
  color: #fad32b;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 17px;
}

.dashboard-page .fd-subnav > a::before,
.dashboard-page .fd-subnav > details > summary::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #9299a6;
}

.dashboard-page .fd-subnav.cadastros-erp-subnav > a::before {
  content: none;
  display: none;
}

.dashboard-page .fd-subnav.cadastros-erp-subnav .fd-nav-bullet {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #9299a6;
}

.dashboard-page .fd-subnav.cadastros-erp-subnav .fd-nav-label {
  min-width: 0;
}

.dashboard-page .fd-subnav details > div a,
.dashboard-page .fd-subnav details > div button {
  padding-left: 28px;
  font-size: 12px;
}

.dashboard-page .fd-subnav details > div a::before,
.dashboard-page .fd-subnav details > div button::before {
  content: "•";
  margin-right: 1px;
  color: #9299a6;
}

.dashboard-page .fd-subnav .is-current {
  background: #4a4018;
  color: #ffe05a;
  font-weight: 700;
}

.dashboard-page .fd-subnav .fd-caret {
  margin-left: auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 14px;
  transition: transform 0.18s ease;
}

.dashboard-page .fd-subnav details[open] > summary .fd-caret {
  transform: rotate(180deg);
}

/* Shared, minimal chevron for native selectors across dashboard modules. */
.dashboard-page select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23707d89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px;
  padding-right: 36px !important;
}

.dashboard-page .fd-subnav .fd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 17px;
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 20px;
  background: #fad32b;
  color: #111111;
  font-size: 10px;
  font-weight: 700;
}

html:not(.theme-dark) .dashboard-page .fd-subnav a,
html:not(.theme-dark) .dashboard-page .fd-subnav button,
html:not(.theme-dark) .dashboard-page .fd-subnav summary {
  color: #e7e8ea;
}

html:not(.theme-dark) .dashboard-page .fd-subnav .is-current {
  background: #4a4018;
  color: #ffe05a;
}

@media (max-width: 1024px) {
  .dashboard-page .dashboard-sidebar,
  .dashboard-page.sidebar-collapsed .dashboard-sidebar {
    padding: 14px 8px 18px;
  }
}

/* O Boletim de Caixa mantém a navegação compacta original. */
.dashboard-page.boletim-page .dashboard-shell {
  grid-template-columns: 272px minmax(0, 1fr);
}

.dashboard-page.boletim-page .dashboard-sidebar {
  gap: 8px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #111111 0%, #050505 100%);
  border-right-color: rgba(244, 194, 29, 0.18);
}

.dashboard-page.boletim-page .sidebar-head {
  padding: 0;
}

.dashboard-page.boletim-page .sidebar-brand-mark {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

.dashboard-page.boletim-page .sidebar-eyebrow {
  color: #c9c9c9;
  font-size: 12px;
}

.dashboard-page.boletim-page .sidebar-brand h1 {
  margin-top: 4px;
}

.dashboard-page.boletim-page .sidebar-toggle-inline {
  margin-top: 0;
  padding: 0;
}

.dashboard-page.boletim-page .sidebar-nav {
  display: block;
  gap: 0;
}

.dashboard-page.boletim-page .sidebar-nav-group {
  display: block;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.dashboard-page .sidebar-nav-group.sidebar-nav-group-sort-locked {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dashboard-page.boletim-page .sidebar-nav-title {
  margin: 0 4px 6px;
  color: #c9c9c9;
  font-size: 12px;
}

.dashboard-page.boletim-page .sidebar-link {
  min-height: 31px;
  margin: 1px 0;
  padding: 6px 15px;
  border-radius: 12px;
  font-size: 14px;
}

.dashboard-page.boletim-page .sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(244, 194, 29, 0.18), rgba(244, 194, 29, 0.08));
  font-weight: 600;
}

@media (max-width: 1024px) {
  .dashboard-page.boletim-page .dashboard-sidebar,
  .dashboard-page.boletim-page.sidebar-collapsed .dashboard-sidebar {
    padding: 18px 14px 20px;
  }
}

/* Reforço do tema Fiscal sobre ajustes legados do modo escuro. */
html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.content-card, .filters-card) {
  background: linear-gradient(115deg, #1b1e20, #17191b) !important;
  border-color: #303438 !important;
  box-shadow: none !important;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .stat-card {
  background: linear-gradient(150deg, #202325, #181b1d) !important;
  border-color: #303438 !important;
  box-shadow: none !important;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.primary-action, .primary-cta) {
  background: linear-gradient(115deg, #ffde39, #fad021) !important;
  border-color: #eccd29 !important;
  color: #0c0d0d !important;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.secondary-action, .cadastro-import-button, .cadastro-export-button) {
  background: #1c2022 !important;
  border-color: #3a3e41 !important;
  color: #f1f3f5 !important;
  box-shadow: none !important;
}

/* Mantém as ações de cadastro de Associados legíveis no tema operacional. */
.dashboard-page.associados-page .associados-cta-actions .secondary-action,
html.theme-dark .dashboard-page.associados-page .associados-cta-actions .secondary-action {
  color: #fad32b !important;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) :is(.dashboard-table th, .dashboard-table td) {
  border-color: #34383b !important;
}

html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .dashboard-table th {
  background: #202325 !important;
  color: #f5f5f6 !important;
}

/* Ícones operacionais dos cadastros no mesmo traço limpo do módulo Fiscal. */
.dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon,
html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #fad32b !important;
  box-shadow: none !important;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-import-button-icon,
html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-import-button-icon {
  color: #fad32b !important;
}

.dashboard-page.associados-page .company-overlay-card {
  position: relative;
}

.dashboard-page.associados-page .company-overlay-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fad32b;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.dashboard-page.associados-page .company-overlay-close:hover,
.dashboard-page.associados-page .company-overlay-close:focus-visible {
  background: rgba(250, 211, 43, 0.12);
  color: #ffde39;
  outline: none;
}

.dashboard-page.associados-page .company-overlay-card > .modal-footer .secondary-action,
html.theme-dark .dashboard-page.associados-page .company-overlay-card > .modal-footer .secondary-action {
  color: #fad32b !important;
}

/* Perfil acompanha a navegação: uma única rolagem até o fim da sidebar. */
.dashboard-page .dashboard-sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-page .dashboard-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dashboard-page .dashboard-sidebar > .sidebar-nav {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.dashboard-page .dashboard-sidebar > .sidebar-footer {
  flex: 0 0 auto;
  margin-top: 0;
}

/* Indicadores superiores com o ícone limpo das ações rápidas do Fiscal. */
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-icon,
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-card:hover .stat-icon,
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-card:focus-within .stat-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #fad32b !important;
  box-shadow: none !important;
  transform: none;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}

/* Ações compactas para preservar espaço útil nos filtros de estoque. */
.dashboard-page.estoque-page .estoque-filter-form > .secondary-action,
.dashboard-page.estoque-page #estoque-bulk-tax-rule-form > .secondary-action {
  width: auto;
  min-width: 0;
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

html.theme-dark .dashboard-page.estoque-page .estoque-filter-form > .secondary-action,
html.theme-dark .dashboard-page.estoque-page #estoque-bulk-tax-rule-form > .secondary-action {
  color: #ffffff !important;
}

.dashboard-page.estoque-page .estoque-filter-form > .secondary-action {
  flex: 0 0 auto;
}

.dashboard-page.estoque-page #estoque-bulk-tax-rule-form > .secondary-action {
  flex: 0 0 auto;
}

.dashboard-page.estoque-page #estoque-bulk-tax-rule-form {
  width: 100%;
}

.dashboard-page.estoque-page #estoque-bulk-tax-rule-form .estoque-search-input {
  flex: 0 1 280px;
}

.dashboard-page.estoque-page #estoque-bulk-tax-rule-form > .secondary-action {
  min-height: 28px;
  margin-left: auto;
  padding-inline: 10px;
  font-size: 11px;
}

/* Cada filtro passa a ser uma unidade visual independente. */
.dashboard-page.estoque-page .estoque-filter-form,
html.theme-dark .dashboard-page.estoque-page .estoque-filter-form {
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page.estoque-page .estoque-filter-control {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #35393c;
  border-radius: 9px;
  background: #171a1c;
}

.dashboard-page.estoque-page .estoque-filter-control:focus-within {
  border-color: rgba(250, 211, 43, 0.62);
}

.dashboard-page.estoque-page .estoque-filter-control .estoque-search-input {
  min-height: 36px;
}

.dashboard-page.estoque-page .estoque-filter-form > .secondary-action {
  min-height: 38px;
  border-color: #35393c;
  border-radius: 9px;
  background: #1c2022;
}

/* Maior presença para os ícones principais dos módulos padronizados. */
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-icon,
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-card:hover .stat-icon,
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-card:focus-within .stat-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-icon svg {
  width: 32px;
  height: 32px;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon,
html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon {
  width: 50px;
  height: 50px;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon svg {
  width: 34px;
  height: 34px;
}

/* Download do modelo de parceiros: atalho compacto no canto do card. */
.dashboard-page.cadastros-erp-page .cadastro-partners-card {
  position: relative;
}

.dashboard-page.cadastros-erp-page .cadastro-model-download-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fad32b !important;
  text-decoration: none;
}

.dashboard-page.cadastros-erp-page .cadastro-model-download-icon svg {
  width: 25px;
  height: 25px;
}

.dashboard-page.cadastros-erp-page .cadastro-model-download-icon:hover,
.dashboard-page.cadastros-erp-page .cadastro-model-download-icon:focus-visible {
  background: rgba(250, 211, 43, 0.13);
  outline: none;
}

/* Ícones maiores nos resumos e cards dos módulos operacionais. */
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-icon,
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-card:hover .stat-icon,
.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-card:focus-within .stat-icon {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page, .associados-page) .cadastro-stats-grid .stat-icon svg {
  width: 42px;
  height: 42px;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon,
html.theme-dark .dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon {
  width: 64px;
  height: 64px;
}

.dashboard-page:is(.estoque-page, .cadastros-erp-page) .cadastro-module-icon svg {
  width: 46px;
  height: 46px;
}

/* Campos do Estoque com largura suficiente para rótulos e placeholders completos. */
.dashboard-page.estoque-page .estoque-filter-form {
  flex-basis: 700px;
}

.dashboard-page.estoque-page .estoque-filter-busca {
  flex: 1 0 270px;
}

.dashboard-page.estoque-page .estoque-filter-situacao {
  flex: 0 0 158px;
}

.dashboard-page.estoque-page .estoque-filter-cfop {
  flex: 0 0 142px;
}

.dashboard-page.estoque-page #estoque-bulk-tax-rule-form .estoque-search-input {
  flex: 0 0 340px;
}

/* Conteúdo verticalmente centralizado nos indicadores do Estoque. */
.dashboard-page.estoque-page .cadastro-stats-grid .stat-card-layout {
  align-items: center;
}

.dashboard-page.estoque-page .cadastro-stats-grid .stat-icon {
  margin-top: 0;
}

/* Ações de listagem legíveis nos cards de Clientes e bancos. */
.dashboard-page.cadastros-erp-page .cadastro-view-list-button,
.dashboard-page.cadastros-erp-page .cadastro-view-list-button:disabled,
html.theme-dark .dashboard-page.cadastros-erp-page .cadastro-view-list-button,
html.theme-dark .dashboard-page.cadastros-erp-page .cadastro-view-list-button:disabled {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1;
}

/* As listagens do ERP ocupam somente o conteúdo, preservando a sidebar. */
.dashboard-page.cadastros-erp-page .cadastro-list-modal {
  inset: 0 0 0 264px;
}

@media (max-width: 1024px) {
  .dashboard-page.cadastros-erp-page .cadastro-list-modal {
    inset: 0;
  }
}

/* Botões das ações em linha nas listagens do ERP. */
html.theme-dark .dashboard-page.cadastros-erp-page .cadastro-list-modal .cheque-actions-summary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Ícone de limpar filtros destacado no amarelo operacional. */
html.theme-dark .dashboard-page.cadastros-erp-page .cadastro-toolbar-icon-button,
html.theme-dark .dashboard-page.cadastros-erp-page .cadastro-toolbar-icon-button svg {
  color: #fad32b !important;
}

/* Importação sem sublinhado, mantendo somente ícone e rótulo. */
.dashboard-page.cadastros-erp-page .cadastro-import-button,
.dashboard-page.cadastros-erp-page .cadastro-import-button:hover,
.dashboard-page.cadastros-erp-page .cadastro-import-button:focus-visible {
  text-decoration: none;
}

/* Evita corte dos rótulos longos nos controles do Estoque. */
.dashboard-page.estoque-page .estoque-filter-busca {
  flex: 0 0 460px;
  min-width: 460px;
}

.dashboard-page.estoque-page #estoque-card > .card-heading > div:first-child {
  flex: 0 0 auto;
}

.dashboard-page.estoque-page #estoque-card > .card-heading h3 {
  white-space: nowrap;
}

.dashboard-page.estoque-page #estoque-bulk-tax-rule-form .estoque-search-input {
  flex: 0 0 360px;
  width: 360px;
  min-width: 360px;
}

@media (max-width: 640px) {
  .dashboard-page.estoque-page .estoque-filter-busca,
  .dashboard-page.estoque-page #estoque-bulk-tax-rule-form .estoque-search-input {
    width: 100%;
    min-width: 0;
  }
}

/* Setas próprias dos selects do Estoque, com giro ao abrir o controle. */
.dashboard-page.estoque-page :is(.estoque-filter-control:has(select), .modal-form p:has(select)) {
  position: relative;
}

.dashboard-page.estoque-page :is(.estoque-filter-control:has(select) select, .modal-form p:has(select) > select) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px !important;
}

.dashboard-page.estoque-page :is(.estoque-filter-control:has(select), .modal-form p:has(select))::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  color: #f5f7fb;
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.18s ease;
}

.dashboard-page.estoque-page :is(.estoque-filter-control:has(select), .modal-form p:has(select)):focus-within::after {
  transform: translateY(-50%) rotate(225deg);
}

/* A regra tributária em lote ocupa apenas o espaço do texto selecionado. */
.dashboard-page.estoque-page #estoque-bulk-tax-rule-form #estoque-fiscal-tax-rule {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  field-sizing: content;
}

/* Padroniza os cantos suaves nos cabeçalhos dos módulos. */
.dashboard-page .dashboard-topbar {
  border-radius: 16px;
}

/* Cadastros mestre: títulos, indicadores e cards próximos, sem faixas vazias entre os blocos. */
.dashboard-page.cadastros-erp-page .cadastro-section-block {
  gap: 10px;
}

.dashboard-page.cadastros-erp-page :is(.dashboard-topbar, .cadastro-selector-card) + .cadastro-section-block {
  margin-top: 12px;
}

.dashboard-page.cadastros-erp-page .cadastro-section-block + .cadastro-section-block {
  margin-top: 28px;
}

.dashboard-page.cadastros-erp-page .cadastro-section-heading {
  align-items: center;
}

.dashboard-page.cadastros-erp-page .cadastro-stats-grid {
  margin: 0;
}

.dashboard-page.cadastros-erp-page .cadastro-module-card {
  gap: 14px;
  padding: 18px 18px 16px;
}

.dashboard-page.cadastros-erp-page .cadastro-module-top {
  gap: 10px;
}

.dashboard-page.cadastros-erp-page .cadastro-module-copy {
  gap: 6px;
}

/* Controles específicos do Estoque também acompanham o tema claro. */
html:not(.theme-dark) .dashboard-page.estoque-page .estoque-search-form,
html:not(.theme-dark) .dashboard-page.estoque-page .estoque-filter-control {
  border-color: #d6dce1;
  background: #ffffff;
  box-shadow: none;
}

html:not(.theme-dark) .dashboard-page.estoque-page .estoque-search-input {
  color: #1f2933;
}

html:not(.theme-dark) .dashboard-page.estoque-page .estoque-search-input::placeholder {
  color: #687786;
}

html:not(.theme-dark) .dashboard-page.estoque-page .estoque-filter-form > .secondary-action,
html:not(.theme-dark) .dashboard-page.estoque-page #estoque-bulk-tax-rule-form > .secondary-action {
  border-color: #d6dce1;
  background: #ffffff;
  color: #14202a;
  font-weight: 750;
}

.dashboard-page.estoque-page .estoque-filter-control > span {
  font-weight: 800;
}

html:not(.theme-dark) .dashboard-page.estoque-page .estoque-filter-control > span {
  color: #1b2934;
}

/* Listagens operacionais no tema claro: linhas alternadas para leitura contínua. */
html:not(.theme-dark) .dashboard-page :is(.dashboard-table, .finance-table, .fiscal-item-table) tbody tr:nth-child(odd) > td {
  background: #ffffff !important;
}

html:not(.theme-dark) .dashboard-page :is(.dashboard-table, .finance-table, .fiscal-item-table) tbody tr:nth-child(even) > td {
  background: #e7e7e7 !important;
}

html:not(.theme-dark) .dashboard-page :is(.dashboard-table, .finance-table, .fiscal-item-table) tbody tr:hover > td {
  background: #fff4c9 !important;
}

/* Configurações fiscais: superfícies e textos coerentes com o tema claro. */
html:not(.theme-dark) .dashboard-page.fiscal-settings-page .fs-tabs a {
  background: #ffffff !important;
  border-color: #cfd8de !important;
  color: #26333e !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-settings-page .fs-tabs a.is-active {
  background: #fff8dc !important;
  border-color: #d9b61d !important;
  color: #725900 !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-settings-page :is(.fs-ready-card, .fs-step, .fs-support article) {
  background: #ffffff !important;
  border-color: #d4dde3 !important;
  color: #1d2a34 !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-settings-page :is(.fs-ready-card, .fs-step, .fs-support article) :is(h2, h3, strong, summary) {
  color: #1d2a34 !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-settings-page :is(.fs-ready-card, .fs-step, .fs-support article) :is(p, span, small, em, .helptext) {
  color: #526170 !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-settings-page .fs-progress strong {
  color: #334250 !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-settings-page .fs-support article > button:not(.fd-primary) {
  background: #26333e !important;
  border-color: #26333e !important;
  color: #ffffff !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-settings-page .fs-step.is-done .fs-status {
  background: #dff7ea !important;
  border-color: #9bdab8 !important;
  color: #087442 !important;
}

/* Cabeçalhos das etapas fiscais seguem o mesmo eixo do texto descritivo. */
.dashboard-page.fiscal-settings-page .fs-ready-card {
  text-align: left !important;
}

.dashboard-page.fiscal-settings-page .fs-ready-card :is(h2, h3) {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-table-card .card-heading h3 {
  color: #1d2a34 !important;
}

html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-table-card .table-shell,
html:not(.theme-dark) .dashboard-page.fiscal-hub-page .fiscal-table-card .fiscal-dashboard-table {
  border-color: #d4dde3 !important;
}

html.theme-dark .dashboard-page.fiscal-settings-page .fs-step.is-optional .fs-status {
  background: #3b4249 !important;
  color: #dce4ec !important;
}

html:not(.theme-dark) .dashboard-page.estoque-page :is(.estoque-filter-control:has(select), .modal-form p:has(select))::after {
  color: #44515c;
}

/* Campos não recebem moldura extra ao ganhar foco. */
.dashboard-page :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{outline:0!important;box-shadow:none!important}

/* Vencimentos individuais no cadastro de títulos parcelados. */
.dashboard-page .finance-installment-schedule{grid-column:1/-1;display:grid;gap:12px;padding:14px;border:1px solid rgba(244,194,29,.28);border-radius:12px;background:rgba(244,194,29,.055)}
.dashboard-page .finance-installment-schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dashboard-page .finance-installment-schedule-heading>div{display:grid;gap:3px}
.dashboard-page .finance-installment-schedule-heading strong{font-size:.9rem}
.dashboard-page .finance-installment-schedule-heading span{color:#aeb8c5;font-size:.78rem}
.dashboard-page .finance-installment-schedule-heading .secondary-action{min-height:34px;padding:7px 10px;font-size:.78rem;white-space:nowrap}
.dashboard-page .finance-installment-schedule-controls{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:12px}
.dashboard-page .finance-installment-schedule-controls label,.dashboard-page .finance-installment-due-date{display:grid;gap:6px;color:#dce3ea;font-size:.8rem;font-weight:700}
.dashboard-page .finance-installment-due-dates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html:not(.theme-dark) .dashboard-page .finance-installment-schedule{background:#fff8d9;border-color:#ead189}
html:not(.theme-dark) .dashboard-page .finance-installment-schedule :is(strong,.finance-installment-schedule-controls label,.finance-installment-due-date){color:#27323d}
html:not(.theme-dark) .dashboard-page .finance-installment-schedule-heading span{color:#596775}
@media(max-width:700px){.dashboard-page .finance-installment-schedule-heading{align-items:flex-start;flex-direction:column}.dashboard-page .finance-installment-schedule-controls,.dashboard-page .finance-installment-due-dates{grid-template-columns:1fr}}

/* Tema claro com o mesmo contraste suave dos controles do tema escuro. */
html:not(.theme-dark) .dashboard-page.cadastros-erp-page .cadastro-module-actions .primary-action{background:#f6ca2c;border-color:#e1b91d;color:#252018;box-shadow:none}
html:not(.theme-dark) .dashboard-page.cadastros-erp-page .cadastro-module-actions .primary-action:hover,html:not(.theme-dark) .dashboard-page.cadastros-erp-page .cadastro-module-actions .primary-action:focus-visible{background:#f9d650;border-color:#d8b01a}
html:not(.theme-dark) .dashboard-page.cadastros-erp-page .cadastro-module-actions :is(.cadastro-import-button,.cadastro-view-list-button){background:#f7f8f9;border-color:#d4dbe0;color:#35424c!important;-webkit-text-fill-color:#35424c!important;box-shadow:none}
html:not(.theme-dark) .dashboard-page.cadastros-erp-page .cadastro-module-actions :is(.cadastro-import-button,.cadastro-view-list-button):hover,html:not(.theme-dark) .dashboard-page.cadastros-erp-page .cadastro-module-actions :is(.cadastro-import-button,.cadastro-view-list-button):focus-visible{background:#eef1f3;border-color:#bec9d1;color:#26333e!important;-webkit-text-fill-color:#26333e!important}

/* Ação de filtro da Estrutura contábil no amarelo operacional. */
.dashboard-page.cadastro-page .cadastro-toolbar-icon-button{background:#fad32b!important;border-color:#e4bd16!important;color:#1b1d1f!important;box-shadow:none!important}
.dashboard-page.cadastro-page .cadastro-toolbar-icon-button:hover,.dashboard-page.cadastro-page .cadastro-toolbar-icon-button:focus-visible{background:#ffe05a!important;border-color:#d8b01a!important;color:#1b1d1f!important}

/* Regra tributária em lote: seletor delimitado e com seta interna. */
.dashboard-page.estoque-page #estoque-bulk-tax-rule-form #estoque-fiscal-tax-rule{height:40px!important;min-height:40px;padding:0 38px 0 12px!important;line-height:40px!important;border:0!important;border-radius:0!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23576570' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px!important;color:#1f2933!important;appearance:none!important;-webkit-appearance:none!important}
html.theme-dark .dashboard-page.estoque-page #estoque-bulk-tax-rule-form #estoque-fiscal-tax-rule{border-color:transparent!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23f1f3f5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E")!important;color:#f1f3f5!important}

/* Selo de produto ativo com contraste suficiente sobre as linhas alternadas. */
.dashboard-page.estoque-page .estoque-status-ativo{background:#16a34a!important;border-color:#15803d!important;color:#fff!important;font-weight:750!important;box-shadow:0 1px 2px rgba(8,116,67,.2)}
html.theme-dark .dashboard-page.estoque-page .estoque-status-ativo{background:#1e9b50!important;border-color:#48d783!important;color:#fff!important;box-shadow:none}

/* A lista principal de associados acompanha as faixas alternadas das demais tabelas. */
.dashboard-page.associados-page .associados-list-table tbody tr:nth-child(odd) td{background:#ffffff}
.dashboard-page.associados-page .associados-list-table tbody tr:nth-child(even) td{background:#f5f7f8}
.dashboard-page.associados-page .associados-list-table tbody tr:hover td{background:#fff8df}
html.theme-dark .dashboard-page.associados-page .associados-list-table tbody tr:nth-child(odd) td{background:#17191b!important}
html.theme-dark .dashboard-page.associados-page .associados-list-table tbody tr:nth-child(even) td{background:#202325!important}
html.theme-dark .dashboard-page.associados-page .associados-list-table tbody tr:hover td{background:#2a2d21!important}

/* Status do Estoque no padrão de ponto colorido e rótulo. */
.dashboard-page.estoque-page .estoque-status-indicator{display:inline-flex;align-items:center;gap:8px;color:#059669;font-size:12px;font-weight:700;white-space:nowrap}
.dashboard-page.estoque-page .estoque-status-indicator::before{content:"";width:10px;height:10px;border-radius:50%;background:currentColor;flex:0 0 10px}
.dashboard-page.estoque-page .estoque-status-indicator.estoque-status-inativo{color:#dc2626}
html.theme-dark .dashboard-page.estoque-page .estoque-status-indicator{color:#34d399}
html.theme-dark .dashboard-page.estoque-page .estoque-status-indicator.estoque-status-inativo{color:#f87171}

/* Tema claro unificado para todas as áreas administrativas. */
html:not(.theme-dark) .dashboard-page.company-hub-page{--ch-bg:#f4f6f8;--ch-panel:#fff;--ch-panel-2:#f8fafb;--ch-line:#d9e0e5;--ch-text:#1e2933;--ch-muted:#607080;background:#f4f6f8!important;color:#1e2933!important}
html:not(.theme-dark) .company-hub-main{background:linear-gradient(145deg,#fafbfc,#edf2f5)!important}
html:not(.theme-dark) .company-hub-topbar,html:not(.theme-dark) .company-metrics article,html:not(.theme-dark) :is(.company-filter-card,.company-list-card){background:#fff!important;border-color:#d8e0e5!important;box-shadow:0 6px 18px rgba(24,34,43,.06)!important}
html:not(.theme-dark) .company-hub-global-search,html:not(.theme-dark) .company-filters :is(input,select),html:not(.theme-dark) .company-pagination select{background:#fff!important;border-color:#cfd9e0!important;color:#25313b!important}
html:not(.theme-dark) .company-hub-heading h1,html:not(.theme-dark) :is(.company-filter-card,.company-list-card) h2,html:not(.theme-dark) .company-metrics small{color:#17212b!important}
html:not(.theme-dark) :is(.company-hub-heading p,.company-filter-card p,.company-list-header p,.company-metrics p,.company-list-header>span){color:#607080!important}
html:not(.theme-dark) .company-filters label{color:#354452!important}
html:not(.theme-dark) .company-table th{background:#ecefee!important;color:#303634!important}
html:not(.theme-dark) .company-table tbody tr:nth-child(odd),html:not(.theme-dark) .company-table tbody tr:nth-child(odd) td{background:#fff!important}
html:not(.theme-dark) .company-table tbody tr:nth-child(even),html:not(.theme-dark) .company-table tbody tr:nth-child(even) td{background:#f6f8fa!important}
html:not(.theme-dark) .company-table tbody tr:hover,html:not(.theme-dark) .company-table tbody tr:hover td{background:#fff8df!important}
html:not(.theme-dark) .company-table tbody td,html:not(.theme-dark) .company-table tbody td :is(strong,b),html:not(.theme-dark) .company-table .company-more{color:#26333e!important;border-color:#dde4e8!important}
html:not(.theme-dark) .company-table tbody td small{color:#647485!important}
html:not(.theme-dark) .company-modal{background:rgba(20,29,37,.38)!important}html:not(.theme-dark) .company-modal-card{background:#fff!important;border-color:#d6dfe5!important;color:#25313b!important}html:not(.theme-dark) .company-edit-form p{color:#344351!important}html:not(.theme-dark) .company-edit-form :is(input,select){background:#fff!important;border-color:#ccd7df!important;color:#202b35!important}

html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main{background:linear-gradient(145deg,#f8fafb,#edf2f5)!important;color:#26333e!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .dashboard-topbar{background:#fff!important;border-color:#d9e1e6!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.dashboard-topbar h2,.card-heading h3,.company-user-hero strong,.form-section-title strong,.access-profile strong){color:#1b2731!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.page-kicker,.page-subtitle,.card-description,.company-user-hero span,.form-section-title small,.form-field small,.access-profile p,.access-scope-note){color:#647485!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.content-card,.module-selected-hero){background:#fff!important;border-color:#d8e0e5!important;box-shadow:0 6px 18px rgba(24,34,43,.06)!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.card-heading,.form-section,.tenant-admin-actions){border-color:#e0e6ea!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .company-user-hero,html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .fiscal-emission-options{background:#fff9e7!important;border-color:#ead18a!important;box-shadow:none!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .tenant-admin-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#fff!important;border-color:#ccd7df!important;color:#202b35!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.module-option-card,.module-summary-row,.fiscal-emission-option){background:#f8fafb!important;border-color:#d6dfe5!important;color:#27333d!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.module-option-copy strong,.fiscal-emission-option strong,.module-selected-hero h3){color:#26333e!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.module-option-copy span,.fiscal-emission-option small,.module-selected-hero small,.module-selected-hero dd){color:#637384!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main :is(.module-stat-icon,.module-option-icon,.fiscal-emission-option-icon){background:#fff1b9!important;color:#9a7100!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .module-summary-inline-form .module-inline-action{background:#fff!important;border:1px solid #ccd7df!important;color:#26333e!important;border-radius:10px!important;box-shadow:none!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .module-summary-inline-form .module-inline-action:hover,html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .module-summary-inline-form .module-inline-action:focus-visible{background:#fff7d6!important;border-color:#e4bc20!important;color:#17191a!important;box-shadow:0 6px 16px rgba(245,199,26,.16)!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .tenant-admin-actions .secondary-action{background:#fff!important;border:1px solid #ccd7df!important;color:#26333e!important;border-radius:10px!important;box-shadow:none!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .tenant-admin-actions .secondary-action:hover,html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .tenant-admin-actions .secondary-action:focus-visible{background:#fff7d6!important;border-color:#e4bc20!important;color:#17191a!important;box-shadow:0 6px 16px rgba(245,199,26,.16)!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .form-section-title>span{background:#fff1b9!important;color:#9a7100!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .access-profile{border-color:#e0e6ea!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .access-profile-icon{background:#eef2f5!important;color:#4d6070!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .access-profile-icon-edit{background:#fff1b9!important;color:#9a7100!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .password-guidelines{background:#fff9e7!important;border-left-color:#e4bc20!important;color:#5d6d7c!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .password-guidelines li::marker{color:#c9a300!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .card-step{background:#fff1b9!important;color:#9a7100!important;border-color:#ead18a!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .company-user-breadcrumb strong{color:#26333e!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .company-user-hero span b{color:#1b2731!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .company-user-callout p{font-size:12px;line-height:1.5}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .password-guidelines ul{margin:6px 0 0!important;padding:0 0 0 17px!important;border:0!important;background:none!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .admin-callout{background:#fff9e7!important;border-color:#ead18a!important;border-left:3px solid #e4bc20!important;color:#5d6d7c!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .company-user-callout strong{color:#1b2731!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .company-user-callout p{color:#5d6d7c!important}html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .company-user-callout>span{background:#f5c71a!important;color:#29230f!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .admin-workflow-main .tenant-admin-actions :is(.primary-action,.secondary-action){min-height:42px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}


html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main{background:linear-gradient(145deg,#f8fafb,#edf2f5)!important;color:#26333e!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .dashboard-topbar{background:#fff!important;border-color:#d9e1e6!important}html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(.dashboard-topbar h2,.company-onboarding-main h3,.onboarding-steps strong){color:#1b2731!important}html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(.page-kicker,.page-subtitle,.onboarding-steps small,.company-breadcrumb){color:#647485!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(.onboarding-steps,.company-onboarding-card,.company-onboarding-side, .company-onboarding-main .content-card){background:#fff!important;border-color:#d8e0e5!important;box-shadow:0 6px 18px rgba(24,34,43,.06)!important}html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#fff!important;border-color:#ccd7df!important;color:#202b35!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(.onboarding-card,.onboarding-info,.onboarding-tip,.onboarding-operation){background:#fff!important;border-color:#d8e0e5!important;color:#26333e!important;box-shadow:0 6px 18px rgba(24,34,43,.06)!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(.onboarding-card header,.onboarding-operation){border-color:#e0e6ea!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-card header>span{background:#fff1b9!important;color:#9a7100!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(.onboarding-card h3,.onboarding-info h3,.onboarding-operation h4,.onboarding-check strong){color:#1b2731!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main :is(.onboarding-card header p,.onboarding-operation>p,.onboarding-check small,.onboarding-info ol,.onboarding-tip p,.onboarding-fields label,.onboarding-fields label small){color:#5d6d7c!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-tip{background:#fff9e7!important;border-color:#ead18a!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-tip strong{color:#8a6500!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-tip a{background:#fff!important;border-color:#c9a300!important;color:#17191a!important}html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .company-breadcrumb strong{color:#26333e!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-actions .secondary-action{background:#fff!important;border:1px solid #ccd7df!important;color:#26333e!important;box-shadow:0 6px 18px rgba(24,34,43,.06)!important;text-decoration:none!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-actions .secondary-action:hover,html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-actions .secondary-action:focus-visible{background:#f6f8fa!important;border-color:#9baab6!important;color:#1b2731!important}
html:not(.theme-dark) .dashboard-page.company-admin-page .company-onboarding-main .onboarding-actions .primary-action{background:linear-gradient(120deg,#ffe04a,#f5c71a)!important;color:#17191a!important;box-shadow:0 10px 20px rgba(245,199,26,.18)!important}


html:not(.theme-dark) .company-hub-page .company-pagination nav :is(a,strong){border-color:#9baab6!important;color:#26333e!important;background:#fff!important;font-weight:700}html:not(.theme-dark) .company-hub-page .company-pagination nav a:hover{background:#edf1f4!important;border-color:#647485!important}html:not(.theme-dark) .company-hub-page .company-pagination nav strong{background:#5b4600!important;border-color:#5b4600!important;color:#fff!important}

.company-hub-page .company-filter-card header>div,.company-hub-page .company-list-header>div>div{text-align:left!important}.company-hub-page .company-filter-card header>div :is(h2,p),.company-hub-page .company-list-header>div>div :is(h2,p){text-align:left!important;justify-self:start!important}

.company-hub-page .company-metrics article{border-color:color-mix(in srgb,var(--company-metric-tone,#d8e0e5) 32%,#d8e0e5)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--company-metric-tone,#fff) 7%,#fff),#fff)!important}.company-hub-page .company-metrics article.is-blue{--company-metric-tone:#49a8f5}.company-hub-page .company-metrics article.is-green{--company-metric-tone:#17bf82}.company-hub-page .company-metrics article.is-yellow{--company-metric-tone:#f2c424}.company-hub-page .company-metrics article.is-red{--company-metric-tone:#ff6864}.company-hub-page .metric-icon{width:58px;height:58px;flex:0 0 58px;background:color-mix(in srgb,var(--company-metric-tone,#f2c424) 24%,#fff)!important;color:var(--company-metric-tone,#b98d00)!important}.company-hub-page .metric-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.company-hub-page .metric-icon.is-blue{--company-metric-tone:#369cf0}.company-hub-page .metric-icon.is-green{--company-metric-tone:#08ae70}.company-hub-page .metric-icon.is-yellow{--company-metric-tone:#b98d00}.company-hub-page .metric-icon.is-red{--company-metric-tone:#ef5753}

html:not(.theme-dark) .company-hub-page .company-more,html:not(.theme-dark) .company-hub-page .company-more:hover,html:not(.theme-dark) .company-hub-page .company-more:focus-visible{background:transparent!important;color:#26333e!important;box-shadow:none!important}html:not(.theme-dark) .company-hub-page .company-more:hover,html:not(.theme-dark) .company-hub-page .company-more:focus-visible{background:#fff3c4!important;border-radius:8px!important}

.company-hub-page .company-filters label{min-width:0}.company-hub-page .company-filters :is(input,select){width:100%!important;min-width:0!important;max-width:none!important}

.dashboard-page.estoque-page .estoque-status-indicator{min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.dashboard-page.estoque-page .estoque-status-indicator.estoque-status-ativo{color:#059669!important}.dashboard-page.estoque-page .estoque-status-indicator.estoque-status-inativo{color:#dc2626!important}

/* Importação incremental do estoque: totais visíveis a cada linha confirmada. */
.dashboard-page.estoque-page .estoque-import-progress{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;padding:12px;border:1px solid #c5a51a;border-radius:9px;background:#fff9e6;color:#26323b}
.dashboard-page.estoque-page .estoque-import-progress strong,.dashboard-page.estoque-page .estoque-import-progress span{font-size:12px}
.dashboard-page.estoque-page .estoque-import-progress span{color:#46545e}
.dashboard-page.estoque-page .estoque-import-progress b{color:#765900}
.dashboard-page.estoque-page .estoque-import-progress small{grid-column:1/-1;color:#3d4b56;overflow-wrap:anywhere;line-height:1.45}
.dashboard-page.estoque-page .estoque-import-errors{grid-column:1/-1;min-width:0;padding-top:10px;border-top:1px solid #c5a51a}
.dashboard-page.estoque-page .estoque-import-errors h4{margin:0 0 6px;font-size:.95rem}
.dashboard-page.estoque-page .estoque-import-errors p{margin:0 0 8px;line-height:1.45;overflow-wrap:anywhere}
.dashboard-page.estoque-page .estoque-import-errors ol{display:grid;gap:7px;margin:0;padding-left:1.4rem}
.dashboard-page.estoque-page .estoque-import-errors li{padding:8px;border:1px solid #d4dbe0;border-radius:7px;background:#fff;color:#26323b;overflow-wrap:anywhere}
.dashboard-page.estoque-page .estoque-import-errors li p{margin:4px 0 0}
.dashboard-page.estoque-page .estoque-import-error-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:10px}
.dashboard-page.estoque-page .estoque-import-progress button:focus-visible{outline:3px solid #765900;outline-offset:2px}
html.theme-dark .dashboard-page.estoque-page .estoque-import-progress{border-color:#8d781d;background:#272518;color:#f4f6f8}
html.theme-dark .dashboard-page.estoque-page .estoque-import-progress span{color:#d8e0e7}
html.theme-dark .dashboard-page.estoque-page .estoque-import-progress b{color:#fad32b}
html.theme-dark .dashboard-page.estoque-page .estoque-import-progress small{color:#e4e9ed}
html.theme-dark .dashboard-page.estoque-page .estoque-import-errors{border-color:#8d781d}
html.theme-dark .dashboard-page.estoque-page .estoque-import-errors li{border-color:#484d50;background:#1d2123;color:#f4f6f8}
html.theme-dark .dashboard-page.estoque-page .estoque-import-progress button:focus-visible{outline-color:#fad32b}
@media(max-width:640px){.dashboard-page.estoque-page .estoque-import-progress{grid-template-columns:1fr 1fr}.dashboard-page.estoque-page .estoque-import-error-pagination{justify-content:flex-start}}

html:not(.theme-dark) .company-hub-page .company-config-badge{background:#f8fafb!important;border-color:#71808c!important;color:#43525f!important;font-weight:750!important}html:not(.theme-dark) .company-hub-page .company-config-badge.is-custom{background:#fff7dc!important;border-color:#bb8d00!important;color:#8a6500!important}html:not(.theme-dark) .company-hub-page .company-config-badge+small{color:#3f5160!important;font-weight:700!important}

/* Ação de filtro da Central de empresas mantém o destaque institucional no tema claro. */
html:not(.theme-dark) .company-hub-page .company-filters .company-hub-primary{background:linear-gradient(120deg,#ffe04a,#f5c71a)!important;border-color:#e1b91d!important;color:#17191a!important;box-shadow:none!important}
html:not(.theme-dark) .company-hub-page .company-filters .company-hub-primary:hover,html:not(.theme-dark) .company-hub-page .company-filters .company-hub-primary:focus-visible{background:linear-gradient(120deg,#ffea72,#f8d23b)!important;border-color:#d8b01a!important;color:#17191a!important}

.company-hub-page .metric-icon.is-red svg path:nth-child(2){display:none}
/* Botões dos módulos do administrador: mesmo padrão suave de Clientes e bancos.
   :not(#_) garante precedência sobre os overrides antigos de cada tela. */
body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) :is(:is(.primary-action,.primary-cta,.company-hub-primary):not(#_),:is(.secondary-action):not(.cheque-toolbar-icon):not(.finance-toolbar-icon):not(#_)){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px;min-height:40px!important;padding:0 18px!important;border:1px solid transparent!important;border-radius:9px!important;box-shadow:none!important;filter:none!important;font-size:14px!important;font-weight:700!important;line-height:1!important;text-decoration:none!important;cursor:pointer;white-space:nowrap;transition:background-color .15s,border-color .15s}
body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) :is(:is(.primary-action,.primary-cta,.company-hub-primary):not(#_),:is(.secondary-action):not(.cheque-toolbar-icon):not(.finance-toolbar-icon):not(#_)):disabled{opacity:.55;cursor:not-allowed}
html.theme-dark body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) :is(.primary-action,.primary-cta,.company-hub-primary):not(#_){background:linear-gradient(115deg,#ffde39,#fad021)!important;border-color:#eccd29!important;color:#0c0d0d!important}
html.theme-dark body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) :is(.secondary-action):not(.cheque-toolbar-icon):not(.finance-toolbar-icon):not(#_){background:#1c2022!important;border-color:#3a3e41!important;color:#f1f3f5!important;-webkit-text-fill-color:#f1f3f5!important}
html.theme-dark body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) :is(:is(.primary-action,.primary-cta,.company-hub-primary):not(#_),:is(.secondary-action):not(.cheque-toolbar-icon):not(.finance-toolbar-icon):not(#_)):is(:hover,:focus-visible){border-color:#d7b51c!important}
html:not(.theme-dark) body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) :is(.primary-action,.primary-cta,.company-hub-primary):not(#_){background:#f6ca2c!important;border-color:#e1b91d!important;color:#252018!important}
html:not(.theme-dark) body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) (:hover,:focus-visible){background:#f9d650!important;border-color:#d8b01a!important}
html:not(.theme-dark) body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) :is(.secondary-action):not(.cheque-toolbar-icon):not(.finance-toolbar-icon):not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#35424c!important;-webkit-text-fill-color:#35424c!important}
html:not(.theme-dark) body.dashboard-page :is(.admin-workflow-main,.company-onboarding-main,.company-hub-main,.module-soft-ui) (:hover,:focus-visible){background:#eef1f3!important;border-color:#bec9d1!important;color:#26333e!important;-webkit-text-fill-color:#26333e!important}
/* Cheques e Financeiro: ícones e botões de ícone no mesmo padrão suave dos módulos do administrador. */
body.dashboard-page .module-soft-ui :is(.stat-icon,.stat-card:is(:hover,:focus-within) .stat-icon):not(#_){border:0!important;border-radius:12px!important;box-shadow:none!important;transform:none!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui :is(.stat-icon,.stat-card:is(:hover,:focus-within) .stat-icon):not(#_){background:#fff1b9!important;color:#7a5d00!important}
html.theme-dark body.dashboard-page .module-soft-ui :is(.stat-icon,.stat-card:is(:hover,:focus-within) .stat-icon):not(#_){background:rgba(250,211,43,.12)!important;color:#fad32b!important}
body.dashboard-page .module-soft-ui :is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_){border:1px solid transparent!important;border-radius:9px!important;box-shadow:none!important;filter:none!important;transition:background-color .15s,border-color .15s}
body.dashboard-page .module-soft-ui :is(:is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_),.finance-row-action-button-highlight:not(#_)) svg{color:currentColor!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui :is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#35424c!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui :is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_):is(:hover,:focus-visible){background:#eef1f3!important;border-color:#bec9d1!important;color:#26333e!important}
html.theme-dark body.dashboard-page .module-soft-ui :is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_){background:#1c2022!important;border-color:#3a3e41!important;color:#f1f3f5!important}
html.theme-dark body.dashboard-page .module-soft-ui :is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_):is(:hover,:focus-visible){border-color:#d7b51c!important}
body.dashboard-page .module-soft-ui .finance-row-action-button-highlight:not(#_){border:1px solid transparent!important;border-radius:9px!important;box-shadow:none!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui .finance-row-action-button-highlight:not(#_){background:#fff1b9!important;border-color:#ead18a!important;color:#7a5d00!important}
html.theme-dark body.dashboard-page .module-soft-ui .finance-row-action-button-highlight:not(#_){background:rgba(250,211,43,.12)!important;border-color:#5a4b16!important;color:#fad32b!important}
body.dashboard-page .module-soft-ui .finance-row-action-button-highlight:not(#_):is(:hover,:focus-visible){border-color:#d7b51c!important}

/* Financeiro: título da carteira acima das abas Todas / A receber / A pagar. */
.dashboard-page .finance-table-heading h3 + .finance-mini-tabs{margin-top:12px}
/* Botões de linha: o ícone é um span de texto que regras antigas pintavam de preto; no escuro, mais contraste. */
body.dashboard-page .module-soft-ui :is(:is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_),.finance-row-action-button-highlight:not(#_)) > span[aria-hidden="true"]{color:currentColor!important}
html.theme-dark body.dashboard-page .module-soft-ui :is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_){background:#262b2e!important;border-color:#4a5155!important;color:#f5f7f8!important}
html.theme-dark body.dashboard-page .module-soft-ui :is(.cheque-toolbar-icon,.finance-toolbar-icon,.transaction-inline-action):not(.finance-row-action-button-highlight):not(#_):is(:hover,:focus-visible){background:#2e3437!important;border-color:#d7b51c!important}
html.theme-dark body.dashboard-page .module-soft-ui .finance-row-action-button-highlight:not(#_){background:rgba(250,211,43,.2)!important;border-color:#8a741d!important;color:#ffdf4d!important}
html.theme-dark body.dashboard-page .module-soft-ui .finance-row-action-button-highlight:not(#_):is(:hover,:focus-visible){background:rgba(250,211,43,.28)!important;border-color:#d7b51c!important}
/* Cheques e Financeiro: linhas intercaladas no tema escuro, como as demais listas (o claro já intercala). */
html.theme-dark body.dashboard-page .module-soft-ui :is(.cheque-table,.finance-table) tbody tr:nth-child(odd):not(#_) > td{background:#171a1c!important}
html.theme-dark body.dashboard-page .module-soft-ui :is(.cheque-table,.finance-table) tbody tr:nth-child(even):not(#_) > td{background:#1f2326!important}
html.theme-dark body.dashboard-page .module-soft-ui :is(.cheque-table,.finance-table) tbody tr:hover:not(#_) > td{background:#272b1f!important}
/* Boletim de Caixa: ações rápidas e excluir da linha no mesmo padrão suave. */
body.dashboard-page .module-soft-ui .quick-action-icon:not(#_){border:0!important;border-radius:12px!important;box-shadow:none!important}
body.dashboard-page .module-soft-ui .quick-action-icon:not(#_) svg{color:currentColor!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui .quick-action-icon:not(#_){background:#fff1b9!important;color:#7a5d00!important}
html.theme-dark body.dashboard-page .module-soft-ui .quick-action-icon:not(#_){background:rgba(250,211,43,.12)!important;color:#fad32b!important}
body.dashboard-page .module-soft-ui .quick-action-item:not(#_){box-shadow:none!important;transform:none!important}
html.theme-dark body.dashboard-page .module-soft-ui .quick-action-item:not(#_){background:#1c2022!important;border-color:#3a3e41!important}
html.theme-dark body.dashboard-page .module-soft-ui .quick-action-item:not(#_):is(:hover,:focus-visible){background:#22272a!important;border-color:#d7b51c!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui .quick-action-item:not(#_):is(:hover,:focus-visible){background:#fffaf0!important;border-color:#e1b91d!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui .transaction-inline-action.danger:not(#_){background:#fdecec!important;border-color:#f3c4c4!important;color:#b42318!important}
html.theme-dark body.dashboard-page .module-soft-ui .transaction-inline-action.danger:not(#_){background:rgba(239,68,68,.14)!important;border-color:#6f3337!important;color:#ffabb2!important}
body.dashboard-page .module-soft-ui .transaction-inline-action.danger:not(#_):is(:hover,:focus-visible){border-color:#e05252!important}
html:not(.theme-dark) body.dashboard-page .module-soft-ui .transaction-inline-action.danger:not(#_):is(:hover,:focus-visible){background:#fbd9d9!important;border-color:#e05252!important;color:#b42318!important}
html.theme-dark body.dashboard-page .module-soft-ui .transaction-inline-action.danger:not(#_):is(:hover,:focus-visible){background:rgba(239,68,68,.22)!important;border-color:#e05252!important;color:#ffc4c8!important}
/* Estoque: só a lista de itens no padrão suave (linhas intercaladas e botões neutros); o topo da tela segue como está. */
body.dashboard-page.estoque-page .estoque-items-table .estoque-row-icon-button:not(#_){border:1px solid transparent!important;border-radius:9px!important;box-shadow:none!important;filter:none!important;transition:background-color .15s,border-color .15s}
body.dashboard-page.estoque-page .estoque-items-table .estoque-row-icon-button:not(#_) :is(span[aria-hidden="true"],svg){color:currentColor!important}
html:not(.theme-dark) body.dashboard-page.estoque-page .estoque-items-table .estoque-row-icon-button:not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#35424c!important}
html:not(.theme-dark) body.dashboard-page.estoque-page .estoque-items-table .estoque-row-icon-button:not(#_):is(:hover,:focus-visible){background:#eef1f3!important;border-color:#bec9d1!important;color:#26333e!important}
html.theme-dark body.dashboard-page.estoque-page .estoque-items-table .estoque-row-icon-button:not(#_){background:#262b2e!important;border-color:#4a5155!important;color:#f5f7f8!important}
html.theme-dark body.dashboard-page.estoque-page .estoque-items-table .estoque-row-icon-button:not(#_):is(:hover,:focus-visible){background:#2e3437!important;border-color:#d7b51c!important}
html.theme-dark body.dashboard-page.estoque-page .estoque-items-table tbody tr:nth-child(odd):not(#_) > td{background:#171a1c!important}
html.theme-dark body.dashboard-page.estoque-page .estoque-items-table tbody tr:nth-child(even):not(#_) > td{background:#1f2326!important}
html.theme-dark body.dashboard-page.estoque-page .estoque-items-table tbody tr:hover:not(#_) > td{background:#272b1f!important}
/* Status: ponto colorido e rótulo, sem o selo verde sólido que o tema escuro impunha. */
body.dashboard-page.estoque-page .estoque-items-table .estoque-status-indicator:not(#_){min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-weight:700!important}
html:not(.theme-dark) body.dashboard-page.estoque-page .estoque-items-table .estoque-status-indicator.estoque-status-ativo:not(#_){color:#059669!important}
html:not(.theme-dark) body.dashboard-page.estoque-page .estoque-items-table .estoque-status-indicator.estoque-status-inativo:not(#_){color:#dc2626!important}
html.theme-dark body.dashboard-page.estoque-page .estoque-items-table .estoque-status-indicator.estoque-status-ativo:not(#_){color:#34d399!important}
html.theme-dark body.dashboard-page.estoque-page .estoque-items-table .estoque-status-indicator.estoque-status-inativo:not(#_){color:#f87171!important}
/* Modais de cadastro de todos os módulos: fundo neutro e botões no padrão suave.
   Só cores e bordas; tamanho, espaçamento e posição ficam como estão. */
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form):not(#_){background:#1a1d1f!important;border-color:#34383b!important;box-shadow:0 24px 60px rgba(0,0,0,.45)!important}
html.theme-dark body.dashboard-page .app-modal-card .cheque-actions-panel:not(#_){background:#202427!important;border-color:#34383b!important}
html.theme-dark body.dashboard-page .app-modal-card .cheque-edit-panel:not(#_){border-bottom-color:#34383b!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),select,textarea):not(#_){background-color:#15181a!important;border-color:#3a3e41!important;color:#f1f3f5!important;box-shadow:none!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),select,textarea):not(#_):focus{border-color:#6b747a!important;outline:none!important}
/* Avisos informativos dos modais (ex.: "Ajuste de saldo") ficam neutros; os de erro seguem vermelhos, legíveis no escuro. */
body.dashboard-page .app-modal-card .form-feedback:not(.modal-errors):not([role=alert]):not(#_) :is(p,span,li,strong){color:inherit!important}
html:not(.theme-dark) body.dashboard-page .app-modal-card .form-feedback:not(.modal-errors):not([role=alert]):not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#4a5863!important}
html:not(.theme-dark) body.dashboard-page .app-modal-card .form-feedback:not(.modal-errors):not([role=alert]):not(#_) strong{color:#26333e!important}
html.theme-dark body.dashboard-page .app-modal-card .form-feedback:not(.modal-errors):not([role=alert]):not(#_){background:#202427!important;border-color:#34383b!important;color:#c3cad0!important}
html.theme-dark body.dashboard-page .app-modal-card .form-feedback:not(.modal-errors):not([role=alert]):not(#_) strong{color:#f1f3f5!important}
html.theme-dark body.dashboard-page .app-modal-card .form-feedback:is(.modal-errors,[role=alert]):not(#_){background:rgba(239,68,68,.12)!important;border-color:#6f3337!important;color:#ffabb2!important}
html.theme-dark body.dashboard-page .app-modal-card .form-feedback:is(.modal-errors,[role=alert]):not(#_) :is(p,span,li,strong){color:inherit!important}
/* Estoque (modais): a seta ::after ficava no meio do <p> (rótulo + campo), encostada no topo do select.
   Nos modais ela dá lugar à seta compartilhada dos selects, centrada no próprio campo. */
.dashboard-page.estoque-page .app-modal-card .modal-form p:has(select)::after{content:none!important;display:none!important}
body.dashboard-page.estoque-page .app-modal-card .modal-form p:has(select) > select:not([multiple]):not(#_){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23707d89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 11px center!important;background-size:16px!important}
html.theme-dark body.dashboard-page.estoque-page .app-modal-card .modal-form p:has(select) > select:not([multiple]):not(#_){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3cad0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}
html.theme-dark body.dashboard-page .app-modal-card .estoque-form-field-error > :is(input,select,textarea):not(#_){background-color:rgba(110,26,26,.32)!important;border-color:#ff6b6b!important}
html.theme-dark body.dashboard-page .summary-modal-card .relatorio-table-compact thead th:not(#_){background:#202325!important}
html.theme-dark body.dashboard-page .summary-modal-card .relatorio-table-compact tbody tr:hover:not(#_) td{background:#272b1f!important}
html.theme-dark body.dashboard-page .summary-modal-card .card-chip:not(#_){border-color:#3a3e41!important}
body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.modal-close,.secondary-action,.primary-action,.primary-cta,.danger-action,.transaction-inline-action):not(#_){box-shadow:none!important;filter:none!important;transition:background-color .15s,border-color .15s}
body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .transaction-inline-action:not(#_) :is(span[aria-hidden="true"],svg){color:currentColor!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.modal-close,.secondary-action):not(#_){background:#1c2022!important;border-color:#3a3e41!important;color:#f1f3f5!important;-webkit-text-fill-color:#f1f3f5!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.modal-close,.secondary-action):not(#_):is(:hover,:focus-visible){background:#262b2e!important;border-color:#d7b51c!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.primary-action,.primary-cta):not(#_){background:linear-gradient(115deg,#ffde39,#fad021)!important;border-color:#eccd29!important;color:#0c0d0d!important;-webkit-text-fill-color:#0c0d0d!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.primary-action,.primary-cta):not(#_):is(:hover,:focus-visible){border-color:#d7b51c!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .danger-action:not(#_){background:rgba(239,68,68,.14)!important;border-color:#6f3337!important;color:#ffabb2!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .danger-action:not(#_):is(:hover,:focus-visible){background:rgba(239,68,68,.22)!important;border-color:#e05252!important;color:#ffc4c8!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .transaction-inline-action:not(.danger):not(#_){background:#262b2e!important;border-color:#4a5155!important;color:#f5f7f8!important}
html.theme-dark body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .transaction-inline-action:not(.danger):not(#_):is(:hover,:focus-visible){background:#2e3437!important;border-color:#d7b51c!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.modal-close,.secondary-action):not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#35424c!important;-webkit-text-fill-color:#35424c!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.modal-close,.secondary-action):not(#_):is(:hover,:focus-visible){background:#eef1f3!important;border-color:#bec9d1!important;color:#26333e!important;-webkit-text-fill-color:#26333e!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.primary-action,.primary-cta):not(#_){background:#f6ca2c!important;border-color:#e1b91d!important;color:#252018!important;-webkit-text-fill-color:#252018!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) :is(.primary-action,.primary-cta):not(#_):is(:hover,:focus-visible){background:#f9d650!important;border-color:#d8b01a!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .danger-action:not(#_){background:#fdecec!important;border-color:#f3c4c4!important;color:#b42318!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .danger-action:not(#_):is(:hover,:focus-visible){background:#fbd9d9!important;border-color:#e05252!important}
/* Ação positiva (ex.: "Ativar item" no Estoque): mesma forma do danger-action, em verde suave. */
.dashboard-page .success-action{width:100%;border:1px solid transparent;box-shadow:none!important;filter:none!important;font-weight:700;transition:background-color .15s,border-color .15s}
html:not(.theme-dark) body.dashboard-page .success-action:not(#_){background:#e8f7ee!important;border-color:#b7e2c6!important;color:#157040!important}
html:not(.theme-dark) body.dashboard-page .success-action:not(#_):is(:hover,:focus-visible){background:#d6f1e0!important;border-color:#34a869!important}
html.theme-dark body.dashboard-page .success-action:not(#_){background:rgba(34,197,94,.14)!important;border-color:#2f6b45!important;color:#86efac!important}
html.theme-dark body.dashboard-page .success-action:not(#_):is(:hover,:focus-visible){background:rgba(34,197,94,.22)!important;border-color:#34c46e!important;color:#a7f3c4!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .transaction-inline-action:not(.danger):not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#35424c!important}
html:not(.theme-dark) body.dashboard-page :is(.app-modal-card,.edit-tooltip .edit-form) .transaction-inline-action:not(.danger):not(#_):is(:hover,:focus-visible){background:#eef1f3!important;border-color:#bec9d1!important;color:#26333e!important}
/* Estrutura contábil (cadastro.html, único <main> com .cadastro-main): ícones e botões no padrão suave.
   Só cores, bordas e sombras; tamanho e posição ficam como estão. */
body.dashboard-page .cadastro-main :is(.cadastro-stats-grid .stat-icon,.cadastro-stats-grid .stat-card:is(:hover,:focus-within) .stat-icon,.cadastro-card-icon):not(#_){border:0!important;border-radius:12px!important;box-shadow:none!important;transform:none!important}
body.dashboard-page .cadastro-main :is(.cadastro-stats-grid .stat-icon,.cadastro-card-icon):not(#_) svg{color:currentColor!important}
html:not(.theme-dark) body.dashboard-page .cadastro-main :is(.cadastro-stats-grid .stat-icon,.cadastro-stats-grid .stat-card:is(:hover,:focus-within) .stat-icon,.cadastro-card-icon):not(#_){background:#fff1b9!important;color:#7a5d00!important}
html.theme-dark body.dashboard-page .cadastro-main :is(.cadastro-stats-grid .stat-icon,.cadastro-stats-grid .stat-card:is(:hover,:focus-within) .stat-icon,.cadastro-card-icon):not(#_){background:rgba(250,211,43,.12)!important;color:#fad32b!important}
body.dashboard-page .cadastro-main :is(.primary-action,.primary-cta,.cadastro-export-button):not(#_){box-shadow:none!important;filter:none!important;transition:background-color .15s,border-color .15s}
html:not(.theme-dark) body.dashboard-page .cadastro-main :is(.primary-action,.primary-cta):not(.cadastro-export-button):not(#_){background:#f6ca2c!important;border-color:#e1b91d!important;color:#252018!important;-webkit-text-fill-color:#252018!important}
html:not(.theme-dark) body.dashboard-page .cadastro-main :is(.primary-action,.primary-cta):not(.cadastro-export-button):not(#_):is(:hover,:focus-visible){background:#f9d650!important;border-color:#d8b01a!important}
html.theme-dark body.dashboard-page .cadastro-main :is(.primary-action,.primary-cta):not(.cadastro-export-button):not(#_){background:linear-gradient(115deg,#ffde39,#fad021)!important;border-color:#eccd29!important;color:#0c0d0d!important;-webkit-text-fill-color:#0c0d0d!important}
html.theme-dark body.dashboard-page .cadastro-main :is(.primary-action,.primary-cta):not(.cadastro-export-button):not(#_):is(:hover,:focus-visible){border-color:#d7b51c!important}
html:not(.theme-dark) body.dashboard-page .cadastro-main .cadastro-export-button:not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#35424c!important;-webkit-text-fill-color:#35424c!important}
html:not(.theme-dark) body.dashboard-page .cadastro-main .cadastro-export-button:not(#_):is(:hover,:focus-visible){background:#eef1f3!important;border-color:#bec9d1!important;color:#26333e!important;-webkit-text-fill-color:#26333e!important}
html.theme-dark body.dashboard-page .cadastro-main .cadastro-export-button:not(#_){background:#1c2022!important;border-color:#3a3e41!important;color:#f1f3f5!important;-webkit-text-fill-color:#f1f3f5!important}
html.theme-dark body.dashboard-page .cadastro-main .cadastro-export-button:not(#_):is(:hover,:focus-visible){background:#262b2e!important;border-color:#d7b51c!important}
body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) :is(.cadastro-toolbar-icon-button,.cadastro-row-icon-action):not(#_){border:1px solid transparent!important;border-radius:9px!important;box-shadow:none!important;filter:none!important;transition:background-color .15s,border-color .15s}
body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) :is(.cadastro-toolbar-icon-button,.cadastro-row-icon-action):not(#_) svg{color:currentColor!important}
html:not(.theme-dark) body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) :is(.cadastro-toolbar-icon-button,.cadastro-row-icon-action):not(#_){background:#f7f8f9!important;border-color:#d4dbe0!important;color:#35424c!important;-webkit-text-fill-color:#35424c!important}
html:not(.theme-dark) body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) :is(.cadastro-toolbar-icon-button,.cadastro-row-icon-action):not(#_):is(:hover,:focus-visible){background:#eef1f3!important;border-color:#bec9d1!important;color:#26333e!important;-webkit-text-fill-color:#26333e!important}
html.theme-dark body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) :is(.cadastro-toolbar-icon-button,.cadastro-row-icon-action):not(#_){background:#262b2e!important;border-color:#4a5155!important;color:#f5f7f8!important;-webkit-text-fill-color:#f5f7f8!important}
html.theme-dark body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) :is(.cadastro-toolbar-icon-button,.cadastro-row-icon-action):not(#_):is(:hover,:focus-visible){background:#2e3437!important;border-color:#d7b51c!important}
html.theme-dark body.dashboard-page .cadastro-main .cadastro-create-form :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),select,textarea):not(#_){background-color:#15181a!important;border-color:#3a3e41!important;color:#f1f3f5!important;box-shadow:none!important}
html.theme-dark body.dashboard-page .cadastro-main .cadastro-create-form :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),select,textarea):not(#_):focus{border-color:#6b747a!important;outline:none!important}
html.theme-dark body.dashboard-page .cadastro-main .cadastro-recent-hint:not(#_){border-color:#34383b!important}
html.theme-dark body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) .dashboard-table tbody tr:nth-child(odd):not(#_) > td{background:#171a1c!important}
html.theme-dark body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) .dashboard-table tbody tr:nth-child(even):not(#_) > td{background:#1f2326!important}
html.theme-dark body.dashboard-page:has(main.cadastro-main) :is(.cadastro-main,.app-modal-card) .dashboard-table tbody tr:hover:not(#_) > td{background:#272b1f!important}
/* Tipo da conta: Receita em verde e Despesas em vermelho, em tom suave. */
html:not(.theme-dark) body.dashboard-page:has(main.cadastro-main) .card-chip.is-receita:not(#_){background:#e8f7ee!important;border-color:#b7e2c6!important;color:#157040!important}
html:not(.theme-dark) body.dashboard-page:has(main.cadastro-main) .card-chip.is-despesa:not(#_){background:#fdecec!important;border-color:#f3c4c4!important;color:#b42318!important}
html.theme-dark body.dashboard-page:has(main.cadastro-main) .card-chip.is-receita:not(#_){background:rgba(34,197,94,.12)!important;border-color:#2f6b45!important;color:#86efac!important}
html.theme-dark body.dashboard-page:has(main.cadastro-main) .card-chip.is-despesa:not(#_){background:rgba(239,68,68,.12)!important;border-color:#6f3337!important;color:#ffabb2!important}

/* O seletor rápido de empresa foi removido da interface global. A empresa
   ativa continua sendo resolvida pelo contexto da sessão e pelas rotas. */
body.dashboard-page .company-switcher,
body.dashboard-page .sidebar-company-switcher{display:none!important}

/* Card "Precisa de ajuda?" (includes/support_card.html), usado em vários módulos.
   Os seletores começam em `body` para vencer os resets locais de cada tela
   (`.ponte-overview a`, `.fiscal-dashboard a` etc.). Base clara; escuro em html.theme-dark. */
body .support-card{box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px 14px;min-width:0;margin:0;padding:18px;border:1px solid #ecd67a;border-radius:14px;background:linear-gradient(135deg,#fffaf0,#ffffff 70%);color:#1d2935;text-align:left;box-shadow:none}
body .support-card *{box-sizing:border-box}
body .support-card .support-card-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#fff1b8;color:#8a6a00}
body .support-card svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .support-card .support-card-icon svg{width:21px;height:21px}
body .support-card .support-card-copy{min-width:0}
body .support-card .support-card-title{display:block;margin:2px 0 0;color:#8a6a00;font-size:16px;font-weight:750;line-height:1.3}
body .support-card .support-card-copy p{margin:6px 0 0;padding:0;color:#4a5866;font-size:12.5px;line-height:1.55}
body .support-card .support-card-action{grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:2px 0 0;padding:9px 16px;border:1px solid #d8b100;border-radius:10px;background:transparent;color:#1d2935;font-size:13px;font-weight:700;line-height:1.2;text-decoration:none;transition:background-color .15s,border-color .15s}
body .support-card .support-card-action svg{width:16px;height:16px;stroke-width:2;transition:transform .15s}
body .support-card .support-card-action:hover{background:#fff3b0;border-color:#c79f00;text-decoration:none}
body .support-card .support-card-action:hover svg{transform:translateX(2px)}
body .support-card .support-card-action:focus-visible{outline:2px solid #b99500;outline-offset:2px}
body .support-card.support-card-wide{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;margin-top:18px;padding:16px 20px}
body .ov-content>.support-card.support-card-wide{margin-top:0}
body .support-card.support-card-wide .support-card-title{margin:0}
body .support-card.support-card-wide .support-card-copy p{margin-top:3px}
body .support-card.support-card-wide .support-card-action{grid-column:auto;justify-self:end;margin:0;white-space:nowrap}
html.theme-dark body .support-card{border-color:#5c4c15;background:linear-gradient(135deg,#201d11,#191a1b);color:#f4f6f7}
html.theme-dark body .support-card .support-card-icon{background:#3f3512;color:#fad32b}
html.theme-dark body .support-card .support-card-title{color:#ffdc38}
html.theme-dark body .support-card .support-card-copy p{color:#c9d0d6}
html.theme-dark body .support-card .support-card-action{border-color:#f5ce22;color:#ffffff}
html.theme-dark body .support-card .support-card-action:hover{background:#2e2811;border-color:#ffe047}
html.theme-dark body .support-card .support-card-action:focus-visible{outline-color:#fad32b}
@media(max-width:720px){body .support-card.support-card-wide{grid-template-columns:auto minmax(0,1fr)}body .support-card.support-card-wide .support-card-action{grid-column:1/-1;justify-self:stretch;justify-content:center}}
@media(prefers-reduced-motion:reduce){body .support-card .support-card-action svg{transition:none}}


/* As buscas dos catálogos ocupam toda a largura interna do modal. */
.dashboard-page .fiscal-customer-catalog-card .catalog-search-wrap,
.dashboard-page .fiscal-product-catalog-card .catalog-search-wrap {
  width: 100%;
}

.dashboard-page .fiscal-customer-catalog-card .catalog-search-wrap input,
.dashboard-page .fiscal-product-catalog-card .catalog-search-wrap input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
}

/* Paginação alinhada ao tema atual do painel: destaque apenas na página ativa. */
.dashboard-page .pagination-controls {
  align-items: center;
  gap: 6px;
}
.dashboard-page .pagination-link,
.dashboard-page .pagination-link:hover,
.dashboard-page .pagination-link:focus-visible {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid #cfd7de !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #3c4955 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
html:not(.theme-dark) .dashboard-page a.pagination-link:hover,
html:not(.theme-dark) .dashboard-page a.pagination-link:focus-visible {
  border-color: #aebbc5 !important;
  background: #f1f4f6 !important;
  color: #25313b !important;
}
html:not(.theme-dark) .dashboard-page .pagination-link.is-active,
html:not(.theme-dark) .dashboard-page .pagination-link.is-active:hover {
  border-color: #d7b51c !important;
  background: #fff8dd !important;
  color: #6e5500 !important;
  font-weight: 700 !important;
}
html.theme-dark .dashboard-page .pagination-link,
html.theme-dark .dashboard-page .pagination-link:hover,
html.theme-dark .dashboard-page .pagination-link:focus-visible {
  border-color: #373c40 !important;
  background: #15181a !important;
  color: #d6dce2 !important;
}
html.theme-dark .dashboard-page a.pagination-link:hover,
html.theme-dark .dashboard-page a.pagination-link:focus-visible {
  border-color: #8b741f !important;
  background: #202326 !important;
  color: #f7d331 !important;
}
html.theme-dark .dashboard-page .pagination-link.is-active,
html.theme-dark .dashboard-page .pagination-link.is-active:hover {
  border-color: #8b741f !important;
  background: #2a2712 !important;
  color: #f7d331 !important;
  font-weight: 700 !important;
}
.dashboard-page .pagination-link[aria-disabled="true"] {
  cursor: default !important;
  opacity: .45;
}

/* Contraste reforçado da paginação no tema escuro, inclusive em estados herdados de módulos. */
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-number,
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-number:hover,
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-number:focus-visible {
  border-color: #4b565e !important;
  background: #202529 !important;
  color: #f3f6f8 !important;
  opacity: 1 !important;
}
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-symbol,
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-symbol:hover,
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-symbol:focus-visible {
  border-color: #4b565e !important;
  background: #202529 !important;
  color: #f7d331 !important;
  opacity: 1 !important;
}
html.theme-dark body.dashboard-page .pagination-controls a.pagination-link.pagination-number:hover,
html.theme-dark body.dashboard-page .pagination-controls a.pagination-link.pagination-number:focus-visible,
html.theme-dark body.dashboard-page .pagination-controls a.pagination-link.pagination-symbol:hover,
html.theme-dark body.dashboard-page .pagination-controls a.pagination-link.pagination-symbol:focus-visible {
  border-color: #c5a51b !important;
  background: #2a3033 !important;
}
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-number.is-active,
html.theme-dark body.dashboard-page .pagination-controls .pagination-link.pagination-number.is-active:hover {
  border-color: #c5a51b !important;
  background: #393212 !important;
  color: #ffe05a !important;
  font-weight: 700 !important;
}
html.theme-dark body.dashboard-page .pagination-controls .pagination-link[aria-disabled="true"] {
  border-color: #3d474d !important;
  background: #1a1e21 !important;
  color: #98a3ab !important;
  opacity: 1 !important;
}

/* Associados: busca, status, categoria e filtro em uma linha compacta. */
@media (min-width: 761px) {
  .dashboard-page.associados-page .associados-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, .75fr) minmax(0, .85fr) auto;
    align-items: end;
    gap: 10px;
  }

  .dashboard-page.associados-page .associados-filter-form .filter-field {
    min-width: 0;
  }

  .dashboard-page.associados-page .associados-filter-form :is(input, select) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  .dashboard-page.associados-page .associados-filter-form .filter-submit .primary-action {
    min-width: 96px;
    white-space: nowrap;
  }

  .dashboard-page.associados-page .associados-filter-form-with-company {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 2.2fr) minmax(0, .75fr) minmax(0, .85fr) auto;
  }
}

/* Associados: neutraliza o fundo creme herdado no tema claro. */
html:not(.theme-dark) body.dashboard-page.associados-page {
  background: #f4f6f8 !important;
  color: #1e2933;
}

html:not(.theme-dark) body.dashboard-page.associados-page .dashboard-main {
  background: transparent !important;
}

html:not(.theme-dark) body.dashboard-page.associados-page .cadastro-stats-grid .stat-card {
  background: #ffffff !important;
  border-color: #d8e0e5 !important;
  box-shadow: 0 5px 18px rgba(24, 34, 43, .06) !important;
}

@media (min-width: 900px) {
  .dashboard-page.associados-page .dashboard-topbar .page-subtitle {
    width: max-content;
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 899px) {
  .dashboard-page.associados-page .dashboard-topbar .page-subtitle {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
}

/* Etapa 7E — mantém a disponibilidade legível sem alargar a página inteira. */
.dashboard-page.estoque-page .dashboard-main,
.dashboard-page.estoque-page #estoque-card,
.dashboard-page.estoque-page #estoque-card .card-heading,
.dashboard-page.estoque-page #estoque-card .card-heading-actions,
.dashboard-page.estoque-page #estoque-card .table-wrap {
  min-width: 0;
  max-width: 100%;
}

.dashboard-page.estoque-page #estoque-card {
  width: 100%;
}

.dashboard-page.estoque-page #estoque-card .table-wrap {
  width: 100%;
}

.dashboard-page.estoque-page .estoque-availability {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-page.estoque-page .estoque-availability span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}

.dashboard-page.estoque-page .estoque-availability b {
  min-width: 0;
  overflow-wrap: normal;
}

.dashboard-page.estoque-page .estoque-availability strong {
  min-width: 0;
  white-space: nowrap;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.dashboard-page.estoque-page .estoque-availability-note {
  color: #475569;
}

html.theme-dark .dashboard-page.estoque-page .estoque-availability-note {
  color: #cbd5e1;
}

@media (min-width: 761px) {
  .dashboard-page.estoque-page #estoque-card .table-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    contain: paint;
  }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory {
    width: 100%;
    min-width: 1120px;
    table-layout: fixed;
  }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td) {
    box-sizing: border-box;
    min-width: 0;
  }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-description { width: 18%; }
  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-type { width: 10%; }
  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-account { width: 9%; }
  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-availability { width: 20%; }
  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-cost { width: 10%; }
  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-total { width: 10%; }
  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-status { width: 10%; }
  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(th, td).col-actions { width: 13%; }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory .col-description,
  .dashboard-page.estoque-page .estoque-items-table.has-inventory .col-account {
    overflow-wrap: anywhere;
  }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory .col-type .estoque-status-indicator {
    max-width: 100%;
    white-space: normal;
  }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory :is(.col-cost, .col-total) {
    padding-inline: 8px;
    white-space: normal;
    overflow-wrap: normal;
    font-size: 0.8rem;
  }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory .col-availability {
    padding-inline: 8px;
  }

  .dashboard-page.estoque-page .estoque-items-table.has-inventory .col-actions {
    padding-inline: 8px;
  }
}

/* Em desktop, notebook e tablet, os filtros ocupam uma linha própria. */
@media (min-width: 761px) {
  .dashboard-page.estoque-page #estoque-card .card-heading {
    flex-wrap: wrap;
  }

  .dashboard-page.estoque-page #estoque-card .card-heading-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
  }

  .dashboard-page.estoque-page #estoque-card .estoque-filter-form {
    display: grid;
    grid-template-columns:
      minmax(170px, 1.35fr)
      minmax(130px, 0.9fr)
      minmax(120px, 0.8fr)
      minmax(155px, 1fr)
      auto;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .dashboard-page.estoque-page #estoque-card .estoque-filter-control {
    width: 100%;
    min-width: 0;
  }

  .dashboard-page.estoque-page #estoque-card .estoque-filter-form > .secondary-action {
    width: auto;
  }

  .dashboard-page.estoque-page #estoque-card .records-count {
    justify-self: end;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .dashboard-page.estoque-page #estoque-card .estoque-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page.estoque-page #estoque-card .estoque-filter-busca {
    grid-column: span 2;
  }

  .dashboard-page.estoque-page #estoque-card .estoque-filter-form > .secondary-action {
    width: 100%;
  }
}

/* Mantém os cartões móveis da lista e dá espaço para o filtro Tipo. */
@media (max-width: 760px) {
  .dashboard-page.estoque-page .estoque-items-table.has-inventory {
    width: 100%;
    min-width: 0;
  }

  .dashboard-page.estoque-page .estoque-availability span {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 640px) {
  .dashboard-page.estoque-page #estoque-card .estoque-filter-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .dashboard-page.estoque-page #estoque-card .estoque-filter-tratamento {
    grid-column: 1 / -1;
  }
}

/* EST-041/043 — nomes e medidas completos no seletor fiscal móvel. */
body.dashboard-page .fiscal-product-catalog-card .page-subtitle,
body.dashboard-page .fiscal-product-catalog-card .catalog-status-msg {
  color: #475569;
}

html.theme-dark body.dashboard-page .fiscal-product-catalog-card .page-subtitle,
html.theme-dark body.dashboard-page .fiscal-product-catalog-card .catalog-status-msg {
  color: #cbd5e1;
}

.dashboard-page .fiscal-product-catalog-option:focus-visible {
  outline: 2px solid #8a6b00;
  outline-offset: -2px;
}

html.theme-dark .dashboard-page .fiscal-product-catalog-option:focus-visible {
  outline-color: #fad32b;
}

@media (max-width: 640px) {
  .dashboard-page.fiscal-dashboard .fiscal-emitted-bulk-download-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .dashboard-page.fiscal-dashboard .fiscal-emitted-bulk-download-bar .fiscal-emitted-bulk-download-count {
    min-width: 0;
    margin-right: 0;
  }

  .dashboard-page.fiscal-dashboard .fiscal-emitted-bulk-download-bar .fd-secondary-action {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .dashboard-page .fiscal-product-catalog-card {
    box-sizing: border-box;
    width: min(760px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .dashboard-page .fiscal-product-catalog-list {
    max-width: 100%;
  }

  .dashboard-page .fiscal-product-catalog-option {
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 10px;
  }

  .dashboard-page .fiscal-product-catalog-option .catalog-option-avatar {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .dashboard-page .fiscal-product-catalog-option .catalog-option-text {
    flex: 1 1 0%;
    width: 0;
    max-width: 100%;
  }

  .dashboard-page .fiscal-product-catalog-option .catalog-option-text > strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .dashboard-page .fiscal-product-catalog-option .catalog-option-text > span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.45;
  }
}

/* EST-042 — preserva cada quantidade com sua unidade nos detalhes móveis. */
.dashboard-page .fiscal-stock-operation-items dd {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .dashboard-page .fiscal-stock-operation-items dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page.fiscal-dashboard .fiscal-emitted-preview .fiscal-stock-operation-items dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
