/**
 * Pro Agendamentos — Painel do criador.
 * Responsabilidade: Tema e ajustes visuais do painel administrativo do criador.
 */
/* Creator-only design tokens and shared components. */
:root {
  color-scheme: light;
  --background: #fafafc;
  --surface: #fff;
  --primary: #0f64a7;
  --primary-dark: #0d5b99;
  --accent: #2b80ff;
  --text: #171923;
  --muted: #64748b;
  --border: #e5e7eb;
  --system-card-shadow: 0 4px 18px #17233c08;
}
body {
  background: #fafafc !important;
  color: #171923 !important;
  font-family: Inter, Arial, sans-serif;
}
html body :is(.admin-shell, .admin-login, dialog) {
  color: #171923;
  --gold: #0f64a7;
  --border: #e5e7eb;
}
html body .admin-shell :is(.main-shell, .content) {
  background: #fafafc !important;
}
html body .admin-shell .sidebar {
  background: #0f64a7 !important;
  border-color: #0d5b99 !important;
  color: #fff !important;
}
html
  body
  .admin-shell
  .sidebar
  :is(
    .brand,
    .brand small,
    .workspace strong,
    .workspace small,
    .sidebar-footer strong,
    .sidebar-footer small
  ) {
  color: #fff !important;
}
html body .admin-shell .sidebar .brand-mark {
  background: #fff !important;
  color: #0f64a7 !important;
  box-shadow: none;
}
html body .admin-shell .sidebar :is(.workspace, .sidebar-footer) {
  background: transparent !important;
  border-color: #ffffff30 !important;
}
html body .admin-shell .sidebar :is(.nav-link, .admin-nav-group summary, .admin-nav-pending) {
  color: #e9f3ff !important;
}
html body .admin-shell .sidebar :is(.nav-link.active, .admin-nav-group[open] > summary) {
  background: #2b80ff !important;
  color: #fff !important;
}
html body .admin-shell .sidebar .nav-link:hover {
  background: #ffffff18 !important;
}
html body .admin-shell .admin-nav-group > div {
  border-color: #ffffff40;
}
html body .admin-shell .admin-nav-pending small {
  border-color: #ffffff40;
  color: #d4e6fc;
}
html body .admin-shell .topbar {
  background: #fff !important;
  border-color: #e5e7eb !important;
  color: #64748b !important;
}
html body .admin-shell :is(.breadcrumbs, .connection-status, .page-heading p, .eyebrow, .footer) {
  color: #64748b !important;
}
html body .admin-shell :is(h1, h2, h3, h4) {
  color: #171923 !important;
}
html
  body
  .admin-shell
  :is(.card, .stat, .admin-finance-filters, .state-cities, .support-message, .legal-index-preview) {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px;
  color: #171923 !important;
  box-shadow: 0 4px 18px #17233c08 !important;
}
html
  body
  .admin-shell
  :is(
    .card-head,
    .card-body,
    .finance-due,
    .admin-profile > div,
    .metric-list > div
  ) {
  border-color: #e5e7eb !important;
}
html
  body
  :is(.admin-shell, dialog, .admin-login)
  :is(
    p,
    small,
    .label,
    .muted,
    .finance-note,
    .admin-cash-note,
    .admin-profile span
  ) {
  color: #64748b !important;
}
html
  body
  :is(.admin-shell, dialog, .admin-login)
  :is(
    input:not([type='checkbox']):not([type='radio']),
    select,
    textarea,
    .password,
    .calendar-trigger,
    .themed-select-trigger,
    .state-trigger
  ) {
  background: #fff !important;
  border-color: #dce1e8 !important;
  color: #171923 !important;
  border-radius: 9px;
  box-shadow: none;
}
html body :is(.admin-shell, dialog, .admin-login) :is(input, select, textarea):focus {
  outline: 2px solid #2b80ff30;
  border-color: #2b80ff !important;
}
html body :is(.admin-shell, dialog, .admin-login) :is(button, .button) {
  background: #fff;
  border: 1px solid #dce1e8;
  color: #334155;
  border-radius: 9px;
  box-shadow: none;
}
html body :is(.admin-shell, dialog, .admin-login) :is(button, .button).primary {
  background: #0f64a7 !important;
  border-color: #0f64a7 !important;
  color: #fff !important;
}
html body :is(.admin-shell, dialog, .admin-login) :is(button, .button).primary:hover {
  background: #0d5b99 !important;
}
html
  body
  :is(.admin-shell, dialog)
  a:not(.button):not(.nav-link):not(.brand):not(.stat):not(.admin-attention) {
  color: #0f64a7;
}
html body :is(.admin-shell, dialog) .danger {
  color: #dc2626 !important;
  border-color: #fecaca !important;
  background: #fff5f5 !important;
}
html body .admin-shell table {
  background: #fff;
  color: #171923;
}
html body .admin-shell th {
  background: #eaf3ff !important;
  color: #0d5b99 !important;
  border-color: #d5e5f5 !important;
}
html body .admin-shell td {
  border-color: #e5e7eb !important;
  color: #334155 !important;
  background: transparent;
}
html body .admin-shell tbody tr:hover {
  background: #f5f9ff !important;
}
html body .admin-shell .badge {
  background: #eff6ff;
  color: #0f64a7;
  border: 0;
  border-radius: 8px;
}
html body .admin-shell .badge.success {
  background: #ddf8eb !important;
  color: #047857 !important;
}
html body .admin-shell .badge.cancel {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}
html body .admin-shell .badge.payment-pending {
  background: #fff3d6 !important;
  color: #b45309 !important;
}
html body dialog {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px;
  color: #171923 !important;
  box-shadow: 0 24px 80px #17233c30 !important;
}
html body dialog :is(.modal-head, .actions) {
  border-color: #e5e7eb !important;
}
html body dialog::backdrop {
  background: #17233c66;
  backdrop-filter: blur(3px);
}
html
  body
  .admin-shell
  :is(.themed-select-options, .state-options, .calendar-popover, .notification-dropdown) {
  background: #fff !important;
  border-color: #e5e7eb !important;
  color: #171923 !important;
  box-shadow: 0 8px 28px #17233c18;
}
html body .admin-shell :is(.themed-select-options, .state-options, .calendar-popover) button {
  color: #334155 !important;
  background: #fff !important;
}
html body .admin-shell :is(.themed-select-options, .state-options) button[aria-selected='true'] {
  background: #eaf3ff !important;
  color: #0f64a7 !important;
}
html body .admin-shell .admin-attention {
  background: #fff !important;
  border-color: #e5e7eb;
  color: #171923;
}
html body .admin-shell .admin-attention.has-alert {
  background: #fffbeb !important;
  border-color: #fde68a;
}
html body .admin-shell .admin-attention > strong {
  background: #eaf3ff;
  color: #0f64a7;
}
html body .admin-shell .admin-attention p {
  color: #64748b;
}
html body .admin-shell .admin-finance-stats .stat {
  color: #171923 !important;
}

html body .admin-shell .admin-finance-stats .stat.expense > strong {
  color: #ef4444;
}
html body .admin-shell .admin-finance-amount {
  color: #0f64a7;
}
html body .admin-shell .admin-home-intro {
  background: #0f64a7;
  border-radius: 16px;
  padding: 26px;
  color: #fff;
}
html body .admin-shell .admin-home-intro :is(h2, p, span) {
  color: #fff !important;
}
html body .admin-shell .admin-home-intro .button {
  background: #fff !important;
  color: #0f64a7 !important;
  border-color: #fff !important;
}
html body .admin-shell .support-message.staff {
  background: #eff6ff !important;
}
html body .admin-shell .support-message.internal {
  background: #f7fbfb !important;
}
html body .admin-login {
  background: #f3f6fc !important;
}
html body .admin-login .auth-card {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 12px 40px #17233c12;
}
html body .admin-login :is(h1, .brand) {
  color: #171923 !important;
}
html body .admin-login .brand-mark {
  background: #0f64a7 !important;
  color: #fff !important;
}
html body #toast:not(:empty) {
  background: #fff;
  color: #171923;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 28px #17233c18;
}
html body .admin-shell .sidebar button {
  background: #ffffff16;
  color: #fff;
  border-color: #ffffff40;
}
html body .admin-shell .admin-finance-pagination {
  border-color: #e5e7eb;
  color: #64748b;
}
html body .admin-shell .admin-home-columns p {
  color: #64748b;
}
html body .admin-shell .admin-nav-icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke-width: 1.8;
}
html body .admin-shell .admin-nav-group summary {
  justify-content: flex-start;
}
html body .admin-shell .admin-nav-group summary > span:last-child {
  margin-left: auto;
}
html body .admin-shell .admin-nav-group summary .admin-nav-label {
  margin-left: 0;
}
@media print {
  html body .admin-shell :is(.card, .stat) {
    box-shadow: none !important;
  }
}

html
  body
  .admin-shell
  :is(
    .stat > strong,
    .admin-profile strong,
    .metric-list strong,
    td strong
  ) {
  color: #171923;
}
html body .admin-shell .admin-finance-stats .stat.income > strong {
  color: #059669 !important;
}
html body .admin-shell .admin-finance-stats .stat.expense > strong {
  color: #ef4444 !important;
}
html body .admin-shell .sidebar .brand > span:last-child {
  color: #fff !important;
}
html body .admin-shell .sidebar nav > .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
html body .admin-shell .topbar button {
  color: #64748b !important;
}
html body .admin-shell .admin-attention > span {
  color: #0f64a7;
}
html body dialog :is(h1, h2, h3, strong, label, .field) {
  color: #171923 !important;
}
html
  body
  .admin-shell
  :is(
    .system-editor,
    .document-editor,
    .document-editor-toolbar,
    .ql-container,
    .ql-editor,
    .rich-color-popup
  ) {
  background: #fff !important;
  border-color: #e5e7eb !important;
  color: #171923;
}
html body .admin-shell .notification-dropdown :is(p, strong, span, a) {
  color: #334155;
}

/* Authentication follows the same neutral/blue components as the workspace. */
html body .admin-login .eyebrow {
  color: #0f64a7 !important;
  font-weight: 700;
}
html body .admin-login :is(label, .field, .field-label) {
  color: #475569 !important;
  font-weight: 600;
}
html body .admin-login :is(.auth-foot a, a) {
  color: #0f64a7 !important;
}
html body .admin-login .auth-foot a:hover {
  color: #0d5b99 !important;
  text-decoration: underline;
}
html body .admin-login :is(.actions, hr) {
  border-color: #e5e7eb !important;
}
html body .admin-login .brand small {
  color: #64748b !important;
}
html body .admin-login .password {
  position: relative;
  background: #fff !important;
}
html body .admin-login .password input {
  background: transparent !important;
}
html body .admin-login .password button {
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .admin-login input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #171923 !important;
}
html body .admin-login :is(.notice, .form-error) {
  border-radius: 10px;
  line-height: 1.6;
}
html body .admin-login .notice {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #0d5b99 !important;
}
html body .admin-login .form-error {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}
html body .admin-login .auth-card {
  border-radius: 16px !important;
}

html body :is(.admin-shell, dialog) :is(label, .field, .field-label, legend) {
  color: #475569 !important;
}
html
  body
  :is(.admin-shell, dialog)
  :is(
    .actions,
    hr,
    .admin-profile > div,
    .finance-due,
    .payment-detail > div,
    .document-editor-toolbar,
    .document-editor-workspace
  ) {
  border-color: #e5e7eb !important;
}
html
  body
  :is(.admin-shell, dialog)
  :is(
    .notice,
    .empty,
    .state-cities,
    .support-avatar-settings,
    .payment-reference,
    .payment-id,
    .legal-index-preview
  ) {
  background: #f3f4f6 !important;
  color: #475569 !important;
  border-color: #e5e7eb !important;
}
html body :is(.admin-shell, dialog) .form-error {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
html
  body
  .admin-shell
  :is(.plan-limit-help, .rich-color-actions button, .document-editor-toolbar button) {
  background: #fff !important;
  color: #475569 !important;
  border-color: #dce1e8 !important;
}
html body .admin-shell .map-state {
  fill: #dbeafe;
  stroke: #fff;
}
html body .admin-shell .map-state.has-customers {
  fill: #0f64a7;
}
html body .admin-shell .map-state.selected {
  fill: #2b80ff;
}
html body .admin-shell .city-counts strong {
  background: #eff6ff;
  color: #0f64a7;
}
html body :is(.admin-shell, dialog) .calendar-popover {
  background: #fff !important;
  color: #171923 !important;
  border-color: #e5e7eb !important;
}
html body :is(.admin-shell, dialog) .calendar-popover :is(button, span, strong) {
  color: #334155;
}
html body :is(.admin-shell, dialog) :is(.themed-select-options, .state-options) {
  background: #fff !important;
  border-color: #e5e7eb !important;
}
html body :is(.admin-shell, dialog) :is(.themed-select-options, .state-options) button {
  background: #fff !important;
  color: #334155 !important;
}
html body :is(.admin-shell, dialog) :is(.themed-select-options, .state-options) button:hover {
  background: #eff6ff !important;
}

html body .admin-shell .admin-nav-group[open] > summary > .admin-nav-label {
  transform: none !important;
}

/* Unified creator ledger */
.admin-finance-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
}
.ledger-income {
  color: #047857;
}
.ledger-expense {
  color: #b91c1c;
}
#saas-finance .admin-finance-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
#saas-finance .admin-finance-filters > .field {
  flex: 1 1 155px;
}
#saas-finance .toolbar {
  flex-wrap: wrap;
}
#saas-finance .card {
  margin-top: 20px;
}
#saas-finance .notice {
  margin: 16px 0;
}
#saas-finance td {
  vertical-align: middle;
}
@media (max-width: 600px) {
  #saas-finance .admin-finance-heading {
    align-items: stretch;
    flex-direction: column;
  }
  #saas-finance .admin-finance-filters > .field {
    min-width: 0;
    flex-basis: 45%;
  }
  #saas-finance .admin-finance-filters > button,
  #saas-finance .admin-finance-filters > a {
    flex: 1;
  }
}

/* Complete financial entry form */
#modal.finance-entry-dialog {
  width: min(760px, calc(100vw - 28px));
  max-width: 760px;
  border-radius: 18px;
}
#modal.finance-entry-dialog .modal-body {
  max-height: calc(92dvh - 90px);
}
.finance-entry-form .finance-kind-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 11px;
  margin-bottom: 24px;
}
.finance-kind-tabs button {
  border: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 700;
  min-height: 40px;
}
.finance-kind-tabs button[aria-pressed='true'] {
  background: #fff !important;
  color: #0f64a7 !important;
  box-shadow: 0 2px 6px #1e3a5f12 !important;
  border-radius: 8px;
}
.finance-entry-three {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1fr;
  gap: 16px;
}
.finance-paid-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  margin-top: 8px;
}
.finance-paid-toggle input {
  appearance: none;
  width: 40px !important;
  height: 23px !important;
  min-height: 0 !important;
  border-radius: 20px !important;
  background: #cbd5e1 !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  cursor: pointer;
  flex: none;
}
.finance-paid-toggle input:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.finance-paid-toggle input:checked {
  background: #0f64a7 !important;
}
.finance-paid-toggle input:checked:before {
  transform: translateX(17px);
}
.finance-text-button {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #0f64a7 !important;
  font-size: 13px !important;
  min-height: 28px !important;
}
.finance-entry-form [data-category-host] .field {
  margin-bottom: 2px;
}
.finance-inline-category {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.finance-inline-category[hidden],
.finance-entry-form [hidden] {
  display: none !important;
}
.finance-inline-category p {
  color: #b91c1c;
}
.finance-condition {
  border: 0;
  margin: 6px 0 24px;
  padding: 0;
  display: flex;
  gap: 22px;
}
.finance-condition legend {
  margin-bottom: 14px;
  font-size: 14px;
  color: #64748b;
}
.finance-condition label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.finance-condition input {
  width: 16px;
  min-height: 0;
  accent-color: #0f64a7;
  margin: 0;
}
.finance-preview {
  padding: 18px;
  background: #f0f7ff;
  border: 1px solid #cfdef3;
  border-left: 3px solid #0f64a7;
  border-radius: 12px;
  margin: 18px 0 24px;
}
.finance-preview > strong {
  font-size: 21px;
  color: #171923;
}
.finance-preview h3 {
  margin: 0 0 15px;
  font-size: 18px;
}
.finance-preview-list {
  max-height: 240px;
  overflow: auto;
}
.finance-preview-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #dce7f3;
  padding: 10px 0;
  font-size: 13px;
}
.finance-preview-list small {
  color: #64748b;
}
.finance-preview-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #dce7f3;
  margin-top: 14px;
  padding-top: 14px;
  font-size: 13px;
}
.finance-preview > small {
  display: block;
  margin-top: 12px;
  color: #64748b;
}
.finance-proofs {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.finance-upload-button {
  justify-self: start;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
}
.finance-proofs small {
  color: #64748b;
}
.finance-proofs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.finance-proofs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.finance-proofs li a {
  overflow-wrap: anywhere;
}
.finance-proofs li button {
  flex: none;
  padding: 4px 10px;
}
.finance-entry-details {
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}
.finance-entry-details summary {
  color: #0f64a7;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
}
.finance-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -10px;
  margin-bottom: 20px;
}
.finance-tag-list span {
  background: #eff6ff;
  border: 1px solid #d3e2f4;
  color: #0f64a7;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 12px;
}
.finance-entry-actions {
  flex-wrap: wrap;
  gap: 10px;
}
.finance-entry-actions button {
  min-height: 40px;
}
@media (max-width: 620px) {
  .finance-entry-three {
    grid-template-columns: 1fr 1fr;
  }
  .finance-entry-three > .field:last-child {
    grid-column: 1/-1;
  }
  .finance-preview-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .finance-preview-list small {
    grid-column: 1/-1;
  }
  .finance-preview-total {
    flex-direction: column;
  }
  .finance-entry-actions button {
    flex: 1;
  }
  .finance-entry-form > .grid.two {
    grid-template-columns: 1fr;
  }
  #modal.finance-entry-dialog .modal-body {
    padding: 20px;
  }
}

body:has(#modal.finance-entry-dialog[open]) {
  overflow: hidden;
}
#modal.finance-entry-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100dvh - 40px);
}
#modal.finance-entry-dialog .modal-head {
  flex: none;
}
#modal.finance-entry-dialog .modal-body {
  min-height: 0;
  max-height: none !important;
  overflow: auto;
  flex: 1;
}
.finance-entry-form .finance-paid-toggle {
  margin: 6px 0 0 !important;
}

/* Registries share the creator's white/blue design system. */
.registry-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.registry-heading h2 {
  font-size: 26px;
  margin: 0 0 8px;
}
.registry-heading p {
  margin: 0;
  color: #64748b;
}
.registry-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.registry-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.registry-category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.registry-category-row strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.registry-category-row strong small {
  display: block;
  color: #64748b;
  font-weight: 400;
  margin-top: 5px;
}
.registry-category-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0f64a7;
  display: grid;
  place-items: center;
  flex: none;
}
.registry-category-row button {
  flex: none;
}
.registry-pagination {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
}
.registry-pagination > label,
.registry-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.registry-pagination select {
  width: 75px;
}
.registry-disabled {
  opacity: 0.45;
  cursor: default;
}
.registry-account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}
.registry-account-toolbar > div > span {
  display: block;
  color: #64748b;
  font-size: 13px;
}
.registry-account-toolbar > div > strong {
  font-size: 32px;
}
.registry-account-toolbar .field {
  margin: 0;
}
.registry-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.registry-account-card {
  overflow: hidden;
  margin: 0;
}
.registry-account-card > header {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
.registry-account-card h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}
.registry-bank-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #e5e7eb;
  flex: none;
  overflow: hidden;
}
.registry-bank-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.registry-bank-fallback {
  background: #eff6ff;
  color: #0f64a7;
}
.registry-icon-button {
  display: grid;
  place-items: center;
  padding: 8px !important;
  min-height: 34px;
  flex: none;
}
.registry-balance {
  font-size: 29px;
  font-weight: 750;
  margin: 8px 0;
}
.registry-balance.negative {
  color: #dc2626;
}
.registry-account-card .toolbar {
  flex-wrap: wrap;
  margin-top: 18px;
  gap: 8px;
}
.registry-account-card p {
  color: #64748b;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.registry-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
}
.registry-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 24px !important;
  background: #eff6ff !important;
  border-color: #cfe0f4 !important;
  color: #0f64a7 !important;
}
.registry-tag small {
  color: #64748b;
}
.registry-bank-picker {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
}
.registry-bank-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  gap: 16px;
  cursor: pointer;
  color: #0f64a7;
}
.registry-bank-picker summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #171923;
}
.registry-bank-choices {
  padding: 18px;
  border-top: 1px solid #e5e7eb;
}
.registry-bank-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 10px;
  max-height: 290px;
  overflow: auto;
  padding: 4px;
}
.registry-bank-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0 !important;
  background: transparent !important;
  padding: 6px !important;
  min-width: 0;
  font-size: 12px !important;
  line-height: 1.4;
  text-align: center;
}
.registry-bank-grid button[hidden] {
  display: none !important;
}
.registry-bank-grid button:hover {
  background: #eff6ff !important;
  border-radius: 10px;
}
.registry-bank-grid .registry-bank-logo {
  width: 48px;
  height: 48px;
}
.registry-usage {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  max-height: 380px;
  overflow: auto;
}
.registry-usage article {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}
.registry-usage article > p {
  font-size: 13px;
  color: #64748b;
}
.registry-usage-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}
.registry-usage-actions .field {
  flex: 1;
  margin: 0;
}
.registry-statement-total {
  background: #eff6ff;
  border: 1px solid #d8e5f4;
  padding: 18px;
  border-radius: 10px;
  margin: 16px 0 22px;
  display: grid;
  gap: 10px;
}
.registry-statement-total strong {
  font-size: 23px;
}
.registry-adjust-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.registry-adjust-checkbox input {
  width: 18px !important;
  min-height: 18px !important;
  accent-color: #0f64a7;
}
.registry-security {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}
.registry-security summary {
  font-weight: 700;
  color: #0f64a7;
  cursor: pointer;
  margin-bottom: 12px;
}
.company-search-filters {
  flex-wrap: wrap !important;
}
.company-search-filters > .field {
  min-width: 150px;
}
.registry-usage[hidden] {
  display: none;
}
@media (max-width: 1100px) {
  .registry-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .registry-account-grid,
  .registry-category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .registry-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .registry-account-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .registry-account-toolbar .toolbar {
    flex-wrap: wrap;
  }
  .registry-category-row {
    padding: 16px;
  }
  .registry-bank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .registry-pagination {
    gap: 14px;
  }
  .registry-usage-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .registry-pagination > div {
    flex-wrap: wrap;
  }
  .registry-tag {
    flex-wrap: wrap;
  }
  .company-search-filters {
    width: 100%;
  }
  .company-search-filters > .field {
    flex: 1;
    min-width: 120px;
  }
}

.creator-finance-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.creator-month-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: #fff;
  color: #171923;
  min-height: 42px;
}
.creator-month-picker > button {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  background: #f3f4f6 !important;
  color: #0f64a7 !important;
  border-radius: 8px !important;
  font-size: 24px !important;
}
.creator-month-picker > label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 165px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
}
.creator-month-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  min-height: 0 !important;
}
.creator-month-picker input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.creator-month-picker:focus-within {
  outline: 2px solid #2b80ff55;
  outline-offset: 2px;
}
.creator-month-picker[aria-busy='true'] {
  opacity: 0.65;
}
@media (max-width: 600px) {
  .creator-finance-heading-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .creator-month-picker > label {
    min-width: 145px;
  }
}

.landing-testimonial-photo {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 18px;
}
.landing-testimonial-photo [data-testimonial-image-preview] {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  color: #64748b;
  font-size: 11px;
}
.landing-testimonial-photo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.landing-testimonial-photo small {
  grid-column: 1/-1;
  color: #64748b;
}
.landing-testimonial-photo button {
  justify-self: start;
}
.landing-testimonial-photo label {
  min-width: 0;
}
.landing-testimonial-photo input[type='file'] {
  max-width: 100%;
  font-size: 12px;
}
@media (max-width: 500px) {
  .landing-testimonial-photo {
    grid-template-columns: 1fr;
  }
  .landing-testimonial-photo [data-testimonial-image-preview] {
    grid-row: auto;
  }
}

.landing-testimonial-photo[data-testimonial-dropzone] {
  padding: 18px;
  border: 1px dashed #c5d6e7;
  border-radius: 12px;
  background: #fafbfc;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.landing-testimonial-photo.is-dragging {
  background: #edf5ff;
  border-color: #0f64a7;
  box-shadow: 0 0 0 3px #0f64a712;
}
.landing-testimonial-photo button[data-testimonial-image-preview] {
  padding: 0;
  border: 0;
  cursor: pointer;
  justify-self: start;
}
.landing-testimonial-photo button[data-testimonial-image-preview]:focus-visible {
  outline: 2px solid #0f64a7;
  outline-offset: 4px;
}

.plan-pricing-fields {
  display: grid;
  gap: 16px;
  margin: 16px 0 24px;
}
.plan-pricing-fields [hidden] {
  display: none !important;
}
.plan-pricing-fields [data-annual-pricing] {
  padding: 16px;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  background: #f8fbfe;
}
.plan-pricing-fields [data-annual-source] {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.plan-pricing-fields small {
  color: #64748b;
  line-height: 1.6;
}
.plan-discount-kind {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.plan-discount-kind button {
  flex: 1;
  background: transparent;
  border-color: transparent;
  color: #64748b;
}
.plan-discount-kind button[aria-pressed='true'] {
  background: #0f64a7;
  color: #fff;
  border-color: #0f64a7;
}
.plan-price-summary {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #f3f7fb;
  border: 1px solid #dce6ef;
  border-radius: 12px;
}
.plan-price-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #64748b;
}
.plan-price-summary strong {
  color: #171923;
  white-space: nowrap;
}
.plan-price-summary .plan-price-final {
  border-top: 1px solid #dce6ef;
  padding-top: 12px;
  align-items: center;
}
.plan-price-final strong {
  font-size: 23px;
  color: #0f64a7;
}
.plan-price-summary [data-price-error] {
  margin: 0;
  color: #b42318;
  font-size: 12px;
}
.plan-discount-toggle {
  margin: 0;
}
.plan-pricing-fields input[readonly] {
  background: #f3f4f6 !important;
}
@media (max-width: 450px) {
  .plan-price-summary .plan-price-final {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Distribuição geográfica das empresas no Dashboard. */
.geography .map-state {
  fill: #e8eef7;
  stroke: #fff;
  stroke-width: 1.5;
}
.geography .map-state.has-customers {
  fill: #126bb2;
}
.geography .map-state:hover,
.geography .map-state:focus-visible {
  fill: #75b5e6;
  stroke: #0f64a7;
  stroke-width: 2;
}
.geography .map-state.selected {
  fill: #064774;
  stroke: #0f64a7;
  stroke-width: 2.5;
}
.geography .city-counts strong {
  background: #e8f2ff;
  color: #0f64a7;
}
.geography .state-shortcuts button {
  min-width: 0;
}

/* Shared compact actions in creator tables, including modal tables. */
body td.creator-table-actions {
  white-space: nowrap;
  vertical-align: middle;
}
body td.creator-table-actions .toolbar,
body td.creator-table-actions .plan-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
body td .creator-table-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px;
  min-height: 34px;
  padding: 7px !important;
  margin: 0 2px;
  border: 1px solid transparent !important;
  border-radius: 8px;
  background: transparent !important;
  color: #52647c !important;
  box-shadow: none !important;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
body td .creator-table-action .admin-nav-icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  stroke-width: 1.8;
}
body td .creator-table-action:hover {
  background: #eaf3fc !important;
  color: #0f64a7 !important;
}
body td .creator-table-action.danger {
  color: #b42318 !important;
}
body td .creator-table-action.danger:hover {
  background: #fff0ee !important;
  color: #b42318 !important;
}
body td .creator-table-action:focus-visible {
  outline: 2px solid #0f64a7;
  outline-offset: 2px;
}
body td .creator-table-action:disabled {
  opacity: 0.4;
  cursor: wait;
}
@media (max-width: 760px) {
  body td .creator-table-action {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px;
    min-height: 40px;
  }
  body td.creator-table-actions .toolbar,
  body td.creator-table-actions .plan-actions {
    gap: 0;
  }
}

html body #company-list .company-table :is(th, td):nth-child(n + 3) {
  text-align: center !important;
  vertical-align: middle;
}
html body #company-list .company-table td:nth-child(n + 3) {
  white-space: nowrap;
}
html body #company-list .company-table .creator-table-action {
  vertical-align: middle;
}

html body .admin-attention-grid button.admin-attention {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  white-space: normal;
  justify-content: initial;
}
html body :is(#modal, .company-picker).dashboard-alert-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}
html body :is(#modal, .company-picker).dashboard-alert-dialog .modal-body {
  max-height: 70dvh;
  overflow: auto;
}
html body :is(#modal, .company-picker).dashboard-alert-dialog th,
html body :is(#modal, .company-picker).dashboard-alert-dialog td {
  vertical-align: middle;
}
.dashboard-alert-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
}
@media (max-width: 600px) {
  html body :is(#modal, .company-picker).dashboard-alert-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  .dashboard-alert-pagination {
    justify-content: center;
    gap: 8px;
  }
}

.dashboard-alert-record-action {
  text-align: center !important;
  white-space: nowrap;
}
.dashboard-alert-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.dashboard-alert-details > div {
  border-bottom: 1px solid #e4e8ef;
  padding-bottom: 12px;
}
.dashboard-alert-details dt {
  font-size: 12px;
  color: #73819a;
  margin-bottom: 6px;
}
.dashboard-alert-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .dashboard-alert-details {
    grid-template-columns: 1fr;
  }
}

/* Shared creator dialogs use the same neutral/blue visual language as the panel. */
html body :is(#modal, .company-picker) {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: #171923;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
}
html body :is(#modal, .company-picker) .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
html body :is(#modal, .company-picker) .modal-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  font-weight: 700;
}
html body :is(#modal, .company-picker) .modal-head > button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #dce1e8;
  border-radius: 9px;
  background: #fff;
  color: #64748b;
  font-size: 20px;
}
html body :is(#modal, .company-picker) .modal-body {
  padding: 24px;
  overflow: auto;
  max-height: calc(100dvh - 140px);
}
html body :is(#modal, .company-picker) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
html body :is(#modal, .company-picker) th {
  background: #eaf3ff !important;
  color: #0d5b99 !important;
  border-color: #d5e5f5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 13px;
  font-weight: 650;
  padding: 13px 16px;
  white-space: nowrap;
}
html body :is(#modal, .company-picker) td {
  background: #fff;
  color: #334155 !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 15px 16px;
  font-size: 13px;
  line-height: 1.5;
}
html body :is(#modal, .company-picker) .table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  overflow: auto;
  margin-top: 16px;
}
html body :is(#modal, .company-picker) tr:last-child td {
  border-bottom: 0 !important;
}
html body :is(#modal, .company-picker) :is(input, select, textarea) {
  font-size: 14px;
  line-height: 1.5;
}
html body :is(#modal, .company-picker) .field {
  font-size: 13px;
  gap: 8px;
}
html body :is(#modal, .company-picker) .actions {
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid #e5e7eb;
  gap: 10px;
}
html body :is(#modal, .company-picker) .creator-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 7px;
  color: #0f64a7 !important;
  background: transparent !important;
  border-color: transparent !important;
}
html body :is(#modal, .company-picker) .creator-table-action:hover {
  background: #eaf3ff !important;
}
html body :is(#modal, .company-picker) .creator-table-action svg {
  width: 18px;
  height: 18px;
}
html body :is(#modal, .company-picker) .dashboard-alert-pagination {
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  margin-top: 20px;
  color: #64748b;
}
@media (max-width: 600px) {
  html body :is(#modal, .company-picker) {
    max-width: calc(100vw - 20px);
  }
  html body :is(#modal, .company-picker) .modal-head {
    padding: 18px;
  }
  html body :is(#modal, .company-picker) .modal-head h2 {
    font-size: 18px;
  }
  html body :is(#modal, .company-picker) .modal-body {
    padding: 18px;
  }
  html body :is(#modal, .company-picker) :is(th, td) {
    padding: 12px;
  }
  html body :is(#modal, .company-picker) .creator-table-action {
    width: 40px;
    height: 40px;
  }
}

html body :is(#modal, .company-picker) :is(th, td).modal-action-column,
html body :is(#modal, .company-picker) .dashboard-alert-record-action,
html body :is(#modal, .company-picker).dashboard-alert-dialog th:last-child {
  text-align: center !important;
  vertical-align: middle !important;
}
html body :is(#modal, .company-picker) .modal-action-column :is(button, a),
html body :is(#modal, .company-picker) .dashboard-alert-record-action :is(button, a) {
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
}
html body :is(#modal, .company-picker) .modal-action-column .table-actions {
  justify-content: center !important;
}

.creator-site-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e5e7eb;
  margin: 0 0 24px;
  overflow-x: auto;
}
.creator-site-tabs a {
  padding: 13px 2px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  color: #64748b !important;
  font-weight: 600;
}
.creator-site-tabs a[aria-current='page'] {
  color: #0f64a7 !important;
  border-bottom-color: #0f64a7;
}
@media (max-width: 600px) {
  .creator-site-tabs {
    gap: 18px;
  }
  .creator-site-tabs a {
    font-size: 13px;
  }
}

html body .admin-shell #platform-messages-form .platform-reminder-message {
  min-height: 440px;
  height: auto;
  line-height: 1.65;
  resize: vertical;
}
@media (max-width: 600px) {
  html body .admin-shell #platform-messages-form .platform-reminder-message {
    min-height: 360px;
  }
}

.state-shortcuts button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
}
.state-registration-count {
  font-size: 11px;
  font-weight: 700;
  color: #0f64a7;
  background: #e4f1ff;
  border-radius: 12px;
  padding: 3px 7px;
}

html body .state-registration-count {
  background: #f0f3f6;
  color: #7b8997;
}
html body .geography .state-shortcuts button .state-registration-count.has-registrations {
  background: #0f64a7 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 750;
}
html body .state-shortcuts button:has(.has-registrations) {
  border-color: #0f64a7;
  background: #eef6ff;
  box-shadow: 0 0 0 1px #0f64a71a;
}

/* Dashboard: contraste de ações e gráficos responsivos. */
html body .admin-shell .admin-home-intro a.button.primary {
  background: #0a4d87 !important;
  border-color: #fff !important;
}
html body .admin-shell .admin-home-intro a.button.primary:is(:hover, :focus-visible) {
  background: #fff !important;

  text-decoration: none !important;
}
.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0;
}
.dashboard-chart-card {
  min-width: 0;
  margin: 0 !important;
}
.dashboard-chart-card .card-head {
  align-items: start;
  min-height: 86px;
}
.dashboard-chart-card h2 {
  font-size: 17px !important;
}
.dashboard-chart-card .card-head p,
.chart-definition {
  font-size: 12px !important;
  line-height: 1.5;
  margin: 7px 0 0;
  color: #64748b;
}
.dashboard-chart-card .card-body {
  padding: 18px;
}
.dashboard-month-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-guide {
  stroke: #e2e8f0;
  stroke-width: 1;
}
.chart-tick {
  fill: #64748b;
  font-size: 9px;
  font-family: inherit;
}
.chart-registration-bar {
  fill: #1673b9;
}
.chart-revenue-line {
  stroke: #079475;
  stroke-width: 3;
  fill: none;
  stroke-linejoin: round;
}
.chart-revenue-dot {
  fill: #079475;
  stroke: #fff;
  stroke-width: 1;
}
.chart-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 190px;
}
.chart-donut {
  width: 145px;
  max-width: 50%;
  flex: none;
}
.chart-donut-track {
  stroke: #e9eef5;
}
.chart-trial {
  stroke: #e8a524;
  background: #e8a524;
}
.chart-active {
  stroke: #079475;
  background: #079475;
}
.chart-inactive {
  stroke: #94a3b8;
  background: #94a3b8;
}
.chart-other {
  stroke: #e06c42;
  background: #e06c42;
}
.chart-donut-total {
  font-size: 6px;
  fill: #102b36;
  font-weight: 750;
}
.chart-donut-caption {
  font-size: 2.4px;
  fill: #64748b;
}
.chart-status-legend {
  padding: 0;
  list-style: none;
  min-width: 100px;
  margin: 0;
}
.chart-status-legend li {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 12px 0;
  font-size: 12px;
}
.chart-status-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.chart-status-legend strong {
  margin-left: auto;
}
.chart-data {
  font-size: 12px;
  margin-top: 8px;
}
.chart-data summary {
  cursor: pointer;
  color: #1263a0;
}
.chart-data ul {
  list-style: none;
  padding: 0;
}
.chart-data li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #edf1f5;
}
.chart-definition {
  margin-top: 12px;
}
.state-shortcuts button .state-registration-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  font-weight: 700;
}
@media (max-width: 1200px) {
  .dashboard-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-chart-card:last-child {
    grid-column: 1/-1;
  }
  .dashboard-chart-card:last-child .dashboard-month-chart {
    max-height: 250px;
  }
}
@media (max-width: 650px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
  .dashboard-chart-card:last-child {
    grid-column: auto;
  }
  .chart-donut-wrap {
    min-height: 170px;
  }
}

.archive-plan-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.dashboard-finance-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.dashboard-finance-tabs button {
  padding: 7px 12px;
  border-radius: 8px;
}
.dashboard-finance-tabs button[aria-pressed='true'] {
  background: #1263a0 !important;
  color: #fff !important;
}
.dashboard-chart-card [hidden] {
  display: none !important;
}
.chart-expense-line {
  fill: none;
  stroke: #dc4747;
  stroke-width: 3;
  stroke-linejoin: round;
}
.chart-expense-line-dot {
  fill: #dc4747;
  stroke: #fff;
  stroke-width: 1;
}
.chart-revenue-line-dot {
  fill: #079475;
  stroke: #fff;
  stroke-width: 1;
}
.chart-finance-legend {
  display: flex;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 8px;
}
.chart-finance-legend span:first-child {
  color: #078367;
}
.chart-finance-legend span:last-child {
  color: #c73737;
}
.chart-finance-period {
  font-size: 12px;
  color: #64748b;
}

/* Mapa lateral e gráficos na ordem de leitura solicitada. */
.dashboard-analysis-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: start;
  margin: 22px 0;
}
.dashboard-analysis-layout > .geography {
  margin: 0 !important;
  min-width: 0;
}
.dashboard-analysis-layout .geography > .card-head {
  flex-wrap: wrap;
  gap: 12px;
}
.dashboard-analysis-layout .geography-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px;
  padding: 20px !important;
}
.dashboard-analysis-layout .brazil-map {
  display: block;
  width: 100% !important;
  max-width: 430px !important;
  height: auto !important;
  margin: auto;
}
.dashboard-analysis-layout .state-cities {
  min-width: 0;
  padding: 18px !important;
}
.dashboard-analysis-layout .state-shortcuts {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 7px;
}
.dashboard-analysis-layout > .dashboard-charts {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  min-width: 0;
}
.dashboard-analysis-layout .dashboard-chart-card {
  width: 100%;
  grid-column: auto !important;
}
.dashboard-analysis-layout .dashboard-chart-card:nth-child(3) {
  order: -1;
}
.dashboard-analysis-layout .dashboard-chart-card:nth-child(2) {
  order: 0;
}
.dashboard-analysis-layout .dashboard-chart-card:nth-child(1) {
  order: 1;
}
.dashboard-analysis-layout .dashboard-month-chart {
  max-height: 285px !important;
}
@media (max-width: 850px) {
  .dashboard-analysis-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-analysis-layout > .dashboard-charts {
    order: -1;
  }
  .dashboard-analysis-layout .brazil-map {
    max-width: 380px !important;
  }
}

.dashboard-month-filter {
  display: flex;
  align-items: center;

  font-size: 13px;
  margin: 12px 0;
}
.dashboard-month-filter input {
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  padding: 8px 10px;
}

html body .archived-plans-card th:last-child,
html body .archived-plans-card td:last-child {
  text-align: center !important;
}
.archived-plans-card .archive-plan-actions {
  justify-content: center;
}

/* Central de gerenciamento das empresas. */
.company-management {
  display: grid;
  gap: 20px;
  min-width: 0;
  color: #0f172a;
}
.company-management > .button {
  justify-self: start;
}
.company-management .card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px #0f172a04;
  margin: 0 !important;
  min-width: 0;
  overflow: hidden;
}
.company-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}
.company-hero h2 {
  font-size: 26px !important;
  margin: 5px 0 10px;
}
.company-hero p,
.company-hero small {
  color: #64748b;
  overflow-wrap: anywhere;
}
.company-hero-actions {
  display: grid;
  justify-items: end;
  gap: 18px;
}
.company-hero-actions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.company-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.company-metrics article {
  padding: 20px;
  display: grid;
  gap: 8px;
}
.company-metrics span,
.company-metrics small {
  color: #64748b;
}
.company-metrics strong {
  font-size: 24px;
}
.company-detail-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.company-detail-tabs [aria-selected='true'] {
  background: #1263a0 !important;
  color: #fff !important;
}
.company-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.company-facts > div {
  min-width: 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.company-facts dt {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 7px;
}
.company-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.company-section-actions,
.company-row-actions,
.company-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.company-row-actions {
  margin: 0;
}
.company-pagination {
  justify-content: flex-end;
}
.company-payment-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.company-payment-filters > .field {
  flex: 1 1 160px;
}
.company-money {
  text-align: right !important;
  white-space: nowrap;
}
.company-consent-docs > details {
  margin: 18px 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.company-consent-docs small {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
#company-management-form {
  max-width: none;
  width: 100%;
}
#company-management-form .grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
#company-management-form .field {
  min-width: 0;
}
#company-management-form textarea {
  min-height: 80px;
}
@media (max-width: 1050px) {
  .company-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .company-hero {
    display: block;
    padding: 18px;
  }
  .company-hero-actions {
    justify-items: start;
    margin-top: 18px;
  }
  .company-hero-actions > div {
    justify-content: flex-start;
  }
  .company-facts,
  #company-management-form .grid.two {
    grid-template-columns: 1fr;
  }
  .company-detail-tabs button {
    flex: 1 1 130px;
  }
  .company-metrics {
    gap: 10px;
  }
  .company-metrics article {
    padding: 15px;
  }
  .company-metrics strong {
    font-size: 20px;
  }
  .company-tab-panel .card-body {
    padding: 16px;
  }
  .company-payment-filters > .field {
    flex-basis: 100%;
  }
  .company-tab-panel .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .company-hero h2 {
    font-size: 23px !important;
  }
}

.company-metrics article > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-metrics article > span svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.company-management .company-hero .badge {
  background: #eff6ff !important;
  color: #0f64a7 !important;
  opacity: 1 !important;
}
.company-management .company-hero .badge.success {
  background: #ddf8eb !important;
  color: #047857 !important;
}
.company-management .company-hero .badge.cancel {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

/* Gráficos à esquerda e mapa na lateral direita. */
@media (min-width: 851px) {
  .dashboard-analysis-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
  }

  .dashboard-analysis-layout > .geography {
    grid-column: 2;
    grid-row: 1;
  }
}

/* A escala do SVG acompanha toda a largura disponível, sem limite de altura que crie margens internas. */
html body .dashboard-analysis-layout .dashboard-month-chart {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
}

.dashboard-finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dashboard-finance-toolbar .dashboard-finance-tabs,
.dashboard-finance-toolbar .dashboard-month-filter {
  margin: 0;
}
.dashboard-finance-toolbar .dashboard-month-filter {
  margin-left: auto;
}

.dashboard-chart-card {
  position: relative;
}
.chart-hover-zone {
  fill: transparent;
  stroke: none;
  cursor: crosshair;
}
.chart-hover-zone:focus {
  outline: none;
  fill: #1263a012;
}
.dashboard-chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  max-width: calc(100% - 16px);
  padding: 10px 12px;
  background: #102b36;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 14px #102b3622;
}
.dashboard-chart-tooltip[hidden] {
  display: none !important;
}

.dashboard-map-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.dashboard-map-column > .card {
  margin: 0 !important;
}

.dashboard-analysis-layout .dashboard-charts > .dashboard-chart-card:first-child {
  order: 1;
}
.dashboard-analysis-layout .dashboard-charts > .dashboard-chart-card:last-child {
  order: 0;
}
@media (min-width: 851px) {
  .dashboard-analysis-layout > .dashboard-map-column {
    grid-column: 2;
    grid-row: 1;
  }
  .dashboard-analysis-layout > .dashboard-charts {
    grid-column: 1;
    grid-row: 1;
  }
}
html body .admin-shell .admin-home-intro a.button.primary {
  background: #fff !important;
  color: #0f64a7 !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  padding: 11px 18px !important;
  box-shadow: 0 2px 6px #0f172a12;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}
html body .admin-shell .admin-home-intro a.button.primary:is(:hover, :focus-visible) {
  background: #eff6ff !important;

  border-color: transparent !important;
  box-shadow: 0 3px 9px #0f172a1a;
}

/* Ordem explícita na coluna lateral, independente das regras antigas dos cards. */
html body .dashboard-map-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
html body .dashboard-map-column > [data-dashboard-status] {
  order: 0 !important;
  width: 100%;
  grid-row: auto !important;
  grid-column: auto !important;
}
html body .dashboard-map-column > .geography {
  order: 1 !important;
  width: 100%;
  grid-row: auto !important;
  grid-column: auto !important;
}

html body .admin-shell .admin-home-intro a.button.primary {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
html body .admin-shell .admin-home-intro a.button.primary:is(:hover, :focus-visible) {
  background: #dbeafe !important;
  color: #084d83 !important;
  box-shadow: 0 5px 13px #062e5933;
  transform: translateY(-2px);
}
html body .admin-shell .admin-home-intro a.button.primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px #062e5922;
}
.admin-shell .page-heading p:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  html body .admin-shell .admin-home-intro a.button.primary {
    transition: none;
    transform: none;
  }
}

.dashboard-map-column .chart-donut {
  width: 180px;
  max-width: 55%;
}
.dashboard-map-column .chart-donut-wrap {
  min-height: 205px;
}

.creator-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.creator-permission-grid fieldset {
  border: 1px solid #d4e5e8;
  background: #f7fbfc;
  border-radius: 12px;
  padding: 14px;
}
.creator-permission-grid legend {
  font-weight: 700;
  padding: 0 6px;
}
.creator-permission-toggle {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  font-size: 13px;
  cursor: pointer;
}
.creator-permission-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.creator-permission-toggle i {
  width: 32px;
  height: 18px;
  border-radius: 12px;
  background: #afcdd2;
  flex: none;
  position: relative;
}
.creator-permission-toggle i:before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
}
.creator-permission-toggle input:checked + i {
  background: #1263a0;
}
.creator-permission-toggle input:checked + i:before {
  left: 17px;
}
.creator-permission-toggle input:focus-visible + i {
  outline: 2px solid #1263a0;
  outline-offset: 3px;
}
.creator-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}
.creator-profile-row > div:last-child {
  display: flex;
  gap: 8px;
}
.creator-profile-row p {
  margin: 6px 0;
  color: #64748b;
}
@media (max-width: 900px) {
  .creator-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .creator-permission-grid {
    grid-template-columns: 1fr;
  }
  .creator-profile-row {
    flex-wrap: wrap;
  }
}

html body dialog#modal.creator-profile-dialog {
  width: 1160px;
  max-width: calc(100vw - 32px);
}
.creator-profile-dialog .creator-permission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-month-filter {
  gap: 6px;
}
.dashboard-month-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 38px;
  padding: 0;
  border: 1px solid #d4e5e8;
  border-radius: 9px;
  background: #fff;
  color: #1263a0;
  font-size: 23px;
  line-height: 1;
}
.dashboard-month-filter button:hover:not(:disabled) {
  background: #eaf3fc;
}
.dashboard-month-filter button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 760px) {
  .creator-profile-dialog .creator-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .creator-profile-dialog .creator-permission-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact outline actions, with readable hover and keyboard focus. */
html body .outline-row-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 7px !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #607d8b !important;
  box-shadow: none !important;
  vertical-align: middle;
}
html body .outline-row-action svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}
html body .outline-row-action:hover {
  background: #eaf3f5 !important;
  color: #087f87 !important;
}
html body .outline-row-action[data-outline-action='remove']:hover {
  background: #fff0ee !important;
  color: #b42318 !important;
}
html body .outline-row-action:focus-visible {
  outline: 2px solid #087f87;
  outline-offset: 2px;
}

html body td .creator-status-action {
  border: 0 !important;
  background: transparent !important;
  color: #607d8b !important;
  box-shadow: none !important;
}
html body td .creator-status-action:hover {
  background: #eaf3fc !important;
  color: #0f64a7 !important;
}

.privacy-request-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.privacy-request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.privacy-lookup {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #d4e5e8;
  border-radius: 14px;
  background: #f8fbfc;
}
.privacy-lookup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.privacy-lookup details {
  margin: 16px 0;
}
.privacy-lookup summary {
  cursor: pointer;
}
.privacy-company-search {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}
.privacy-company-search .field {
  flex: 1;
}
.privacy-match {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #d4e5e8;
  border-radius: 12px;
  background: white;
  overflow-wrap: anywhere;
}
.privacy-match header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.privacy-match small {
  font-size: 12px;
}
.privacy-match ul {
  padding-left: 20px;
}
.privacy-match p {
  margin: 8px 0;
}
@media (max-width: 600px) {
  .privacy-lookup-grid {
    grid-template-columns: 1fr;
  }
  .privacy-company-search {
    flex-direction: column;
    align-items: stretch;
  }
  .privacy-lookup {
    padding: 14px;
  }
}

.communication-filters {
  padding: 20px 22px;
}
.communication-filters .field {
  margin: 0;
  max-width: 380px;
}
@media (max-width: 600px) {
  .communication-filters {
    padding: 16px;
  }
  .communication-filters .field {
    max-width: none;
  }
}

html body :is(.admin-shell, dialog) .themed-select-options button {
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  border-radius: 7px !important;
}
html body :is(.admin-shell, dialog) .themed-select-options button[aria-selected='true'] {
  background: #eaf4f5 !important;
  color: #087f87 !important;
}
