/* VM TAXES V6.0 — Etapa 7 · acabamento de interface — homologação, 27/11/2026.
   Somente estilos de apresentação. Não modifica o conteúdo de mensagens,
   transições, validações, dados, eventos, RLS, Storage ou integrações.
   Mantém os tokens do Design System e a semântica dos status existentes. */
:root {
  --vm-finish-surface: #F7FAFE;
  --vm-finish-border: #CFDEED;
  --vm-finish-ink: #1D405A;
  --vm-finish-secondary: #49677C;
  --vm-finish-radius: 12px;
}

/* Estados vazios que já existem no código: mais legíveis e coerentes. */
.shell #page-content :is(.empty-state,.v60-simple-empty,.v60-mun-prod-empty,.vm-hub-empty) {
  background: var(--vm-finish-surface);
  border: 1px dashed #B8CEE3;
  border-radius: var(--vm-finish-radius);
  color: var(--vm-finish-secondary);
  font-size: 12.5px;
  line-height: 1.7;
  padding: 25px 22px;
  text-align: center;
  overflow-wrap: anywhere;
}
.shell #page-content :is(.empty-state,.v60-mun-prod-empty) strong {
  color: var(--vm-navy, #102A43);
  font-size: 14px;
  font-weight: 800;
  display: block;
  margin-bottom: 5px;
}
.shell #page-content .v60-mun-prod-empty p {
  color: var(--vm-finish-secondary);
  font-size: 12.5px;
  line-height: 1.65;
}
.shell #page-content :is(.empty-state,.v60-mun-prod-empty) button {
  margin-top: 9px;
  min-height: 40px;
}
/* Mensagens de apoio em cartões e formulários: sem inventar tipos de alerta. */
.shell #page-content :is(.section-note,.v60-muted,.v60-simple-list-top,.field-help,.vm-contract-muted) {
  color: var(--vm-finish-secondary);
  font-size: 12px;
  line-height: 1.6;
}
.shell #page-content .v60-simple-list-top {gap: 10px;flex-wrap: wrap;}

/* Retorno de operações: apenas contêiner neutro. Alertas explícitos mantêm vermelho. */
.notice:not(:empty) {
  background: #EEF6FC;
  border: 1px solid #C9E1F0;
  border-left: 3px solid var(--vm-cyan, #0891B2);
  border-radius: 9px;
  color: #244A64;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.notice[role="alert"]:not(:empty) {
  border-color: #F0C5C5;
  border-left-color: var(--vm-red, #DC2626);
  color: #8A2424;
  background: #FFF6F6;
}
.toast:not(.hidden) {
  color: #FFFFFF;
  background: var(--vm-navy, #102A43);
  border: 1px solid #4383B0;
  box-shadow: 0 12px 30px rgba(16,42,67,.24);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  max-width: min(440px, calc(100vw - 28px));
  overflow-wrap: anywhere;
}

/* Formulários administrativos: alvos adequados, instruções claras e foco visível. */
.shell ~ dialog .modal-top .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  color: #37576F;
}
.shell ~ dialog .modal-top .close:hover {background: #EAF1F9;color: #102A43;}
.shell ~ dialog .form-fields :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.shell ~ dialog .vm-admin-label textarea {
  min-height: 43px;
  border-color: #BFCEDE;
  border-radius: 10px;
  color: #183B55;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
}
.shell ~ dialog .form-fields :is(input,textarea)::placeholder {color: #6B8396;opacity: 1;}
.shell ~ dialog :is(.field-help,.section-note,.password-guidance,.password-match-note,.muted) {
  color: #47657A;
  line-height: 1.62;
}
.shell ~ dialog .form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.shell ~ dialog .form-actions > button {
  min-height: 42px;
  padding-inline: 15px;
  line-height: 1.35;
}
/* Sem alterar o atributo disabled ou o comportamento do clique. */
:is(.shell button,.shell ~ dialog button):disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}
.shell #page-content :is(button,a,[role="button"]):focus-visible,
.shell ~ dialog :is(button,a,[role="button"]):focus-visible {
  outline: 3px solid var(--vm-royal,#2563EB);
  outline-offset: 2px;
}

/* Tabelas e linhas longas: leitura e quebras sem tocar nos dados. */
.shell #page-content .table-wrap {max-width: 100%;overflow-x: auto;overscroll-behavior-x: contain;}
.shell #page-content .data-table tbody td {overflow-wrap: anywhere;}

@media (max-width: 740px) {
  .shell #page-content :is(.empty-state,.v60-simple-empty,.v60-mun-prod-empty,.vm-hub-empty) {padding: 19px 14px;}
  .notice:not(:empty) {font-size: 12px;}
  .toast:not(.hidden) {right: 14px;left: 14px;bottom: 14px;max-width: none;}
  .shell ~ dialog .form-actions > button {flex: 1 1 130px;}
}
@media (prefers-reduced-motion: reduce) {
  .shell ~ dialog .modal-top .close {transition: none;}
}
