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

* {
  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: underline;
}

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;
}


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;
  
}

.permission-denied-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(244, 194, 29, 0.10), transparent 28%),
    linear-gradient(180deg, #151515 0%, #101010 100%);
}

.permission-denied-shell {
  width: 100%;
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.permission-denied-card {
  width: min(560px, 100%);
  max-width: none;
  margin: 0;
  padding: 28px 30px;
  border-radius: 20px;
  border: 1px solid rgba(244, 194, 29, 0.22);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  color: #fff;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.permission-denied-card h2 {
  margin-bottom: 0;
}

.permission-denied-card p {
  margin: 0;
  color: #d6d6d6;
  max-width: 42ch;
}

.permission-denied-card form {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

.permission-denied-card button {
  min-width: 220px;
}

.permission-denied-card button:hover,
.permission-denied-card button:focus-visible {
  filter: brightness(1.05);
}

html.theme-dark .permission-denied-card {
  background: rgba(17, 17, 17, 0.92);
}

.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: 1;
  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;
}

.dashboard-page.cadastro-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-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: 122px;
  height: 122px;
  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 {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 22px;
}

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;
}

.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(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.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-overview-section {
  grid-column: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  align-self: stretch;
}

.dashboard-page.estoque-page .estoque-stats-section {
  grid-column: 2;
  display: grid;
  gap: 10px;
  align-content: start;
  justify-self: center;
  width: 100%;
  max-width: 980px;
  margin-top: 20px;
}

.dashboard-page.estoque-page .estoque-cadastro-top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: -10px;
}

.dashboard-page.estoque-page .estoque-cadastro-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 0;
  width: 100%;
}

.dashboard-page.estoque-page .estoque-cadastro-main-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.dashboard-page.estoque-page .estoque-cadastro-main-actions > * {
  width: 100%;
  min-width: 0;
}

.dashboard-page.estoque-page .estoque-cadastro-main-actions .primary-action {
  max-width: none;
  width: 100%;
}

.dashboard-page.estoque-page .estoque-cadastro-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: auto;
  max-width: 100%;
  justify-self: end;
}

.dashboard-page.estoque-page .estoque-cadastro-action-row > * {
  width: 100%;
  min-width: 0;
}

.dashboard-page.estoque-page .estoque-cadastro-action-row .cadastro-import-button {
  min-height: 30px;
  min-width: 0;
  width: auto;
  padding: 0 14px;
  font-size: 12px;
  justify-content: center;
}

.dashboard-page.estoque-page .estoque-cadastro-action-row .cadastro-import-button .cadastro-import-button-icon {
  width: 16px;
  height: 16px;
}

.dashboard-page.estoque-page .estoque-cadastro-action-row .cadastro-import-button .cadastro-import-button-icon svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .dashboard-page.estoque-page .estoque-cadastro-main-actions {
    grid-template-columns: 1fr;
  }
}

html.theme-dark .dashboard-page.estoque-page .estoque-cadastro-action-row .cadastro-import-button,
html.theme-dark .dashboard-page.estoque-page .estoque-cadastro-action-row .cadastro-import-button:hover,
html.theme-dark .dashboard-page.estoque-page .estoque-cadastro-action-row .cadastro-import-button:focus-visible {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  text-decoration-color: currentColor;
  box-shadow: none;
}

html.theme-dark .dashboard-page.estoque-page .estoque-cadastro-action-row .cadastro-import-button .cadastro-import-button-icon svg {
  color: currentColor;
}

.dashboard-page.estoque-page .estoque-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
  width: 100%;
  max-width: 980px;
  justify-content: center;
  justify-self: center;
}

.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-cadastro-card {
  height: auto;
  align-self: start;
}

.dashboard-page.estoque-page .cadastro-module-card {
  padding: 10px 20px 10px;
  gap: 10px;
}

.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 .estoque-bulk-delete-button {
  width: auto;
  min-height: 34px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.11);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

.dashboard-page.estoque-page .estoque-bulk-delete-button:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(220, 38, 38, 0.46);
  color: #991b1b;
}

.dashboard-page.estoque-page .estoque-bulk-delete-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dashboard-page.estoque-page .card-heading-actions {
  flex-wrap: nowrap;
  width: 100%;
}

.dashboard-page.estoque-page .estoque-search-form {
  display: flex;
  align-items: center;
  width: min(100%, 250px);
  min-width: 0;
  flex: 0 0 250px;
  min-height: 34px;
  padding: 0 14px;
  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-search-input {
  width: 100%;
  min-width: 0;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f7fb;
  box-shadow: none;
  outline: none;
  font-size: 13px;
}

.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 .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-bulk-delete-button {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

html.theme-dark .dashboard-page.estoque-page .estoque-bulk-delete-button:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fee2e2;
}

.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-cadastro-card .cadastro-module-top {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-height: 0;
  margin-top: -14px;
}

.dashboard-page.estoque-page .estoque-cadastro-card .cadastro-module-icon {
  margin-top: 0;
}

.dashboard-page.estoque-page .estoque-cadastro-card .cadastro-module-copy {
  align-content: start;
}

.dashboard-page.estoque-page .estoque-cadastro-card .cadastro-module-copy h3 {
  margin-top: 0;
}

.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;
}

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

.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;
}

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;
}

.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 .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: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.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 .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;
}

.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 {
    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: underline;
}

.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;
}

.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);
}

.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: 18px;
  padding: 16px;
}

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

.dashboard-page .sidebar-user-avatar {
  width: 42px;
  height: 42px;
  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;
}

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

.dashboard-page .sidebar-user strong {
  color: #ffffff;
}

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

.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 .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.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: underline;
}

.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;
}

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 .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;
}

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: #f4c21d;
  color: #111111;
  border-color: rgba(202, 166, 43, 0.32);
}

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;
}

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: #f4c21d;
  color: #111111;
  border-color: rgba(202, 166, 43, 0.32);
}

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 .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 .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 .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;
}

.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: underline;
}

.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;
  min-height: 0;
  margin-top: 10px;
  overflow: hidden;
}

.dashboard-page .recent-moves-card .recent-moves-full-table-wrap {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.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 .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.1);
}

.dashboard-page .cheque-bank-logo-bradesco {
  transform: scale(1.8);
}

.dashboard-page .cheque-bank-logo-caixa {
  transform: scale(0.8);
}

.dashboard-page .cheque-bank-logo-cresol {
  transform: scale(0.65);
}

.dashboard-page .cheque-bank-logo-sicredi {
  transform: scale(1.8);
}

.dashboard-page .cheque-bank-logo-sicoob {
  transform: scale(2.5);
}

.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: #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: start;
  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-top: 2px;
}

.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;
}

.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;
}

.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 .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-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-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-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;
}

.dashboard-page .export-actions-stack {
  display: grid;
  gap: 12px;
}

.dashboard-page .modal-export-form {
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-page .modal-export-form strong,
.dashboard-page .modal-export-form span {
  display: block;
}

.dashboard-page .modal-export-form span {
  margin-top: 4px;
  color: #64748b;
}

.dashboard-page .modal-export-form-layout {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
}

html.theme-dark .dashboard-page .modal-export-form {
  background: linear-gradient(180deg, #1f1f1f 0%, #181818 100%);
  border-color: rgba(250, 211, 43, 0.16);
}

html.theme-dark .dashboard-page .modal-export-form strong {
  color: #ffffff;
}

html.theme-dark .dashboard-page .modal-export-form span {
  color: rgba(245, 247, 251, 0.72);
}

.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: 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 .estoque-overview-section,
  .dashboard-page.estoque-page .estoque-stats-section,
  .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 .dashboard-topbar,
  .dashboard-page .card-heading,
  .dashboard-page .topbar-actions,
  .dashboard-page .pagination-bar,
  .dashboard-page .modal-export-form,
  .dashboard-page .modal-export-form-layout,
  .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 .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 .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 .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-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-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;
}

@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;
}
