/* Danxis — ajuste visual 13.2
   Referência: tipografia original do construtor do Questionário do Fornecedor.
   Mantém hierarquia de tamanhos, texto preto em superfícies claras e cores originais em blocos escuros. */

/* Mesma família visual utilizada originalmente pela plataforma e pelo construtor. */
#view-settings,
#view-settings button,
#view-settings input,
#view-settings select,
#view-settings textarea,
#view-settings [contenteditable="true"],
#view-reports,
#view-reports button,
#view-reports input,
#view-reports select,
#view-reports textarea {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* O construtor do questionário já possui exatamente o padrão usado como referência.
   Por isso, ele não recebe tamanhos artificiais e mantém sua composição original. */
#settings-supplier-questionnaire,
#settings-supplier-questionnaire * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Cabeçalho e menu de Configurações. */
#view-settings > .section-toolbar .section-title h2 {
  color: #000000 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
}

#view-settings > .section-toolbar .section-title p {
  color: #000000 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

#view-settings .settings-nav button {
  color: #000000 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

#view-settings .settings-nav button.active,
#view-settings .settings-nav button:hover {
  color: #000000 !important;
}

/* Conteúdo das demais opções de Configurações.
   Não altera o Questionário do Fornecedor nem os textos dentro dos blocos escuros. */
#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
:is(p, span, li, a, td, th)
:not(.provision-hero *)
:not(.wf-hero *)
:not(.client-screen-hero *)
:not(.email-template-hero *)
:not(.users-hero *) {
  color: #000000 !important;
  font-size: 13px !important;
}

#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
:is(label, small)
:not(.provision-hero *)
:not(.wf-hero *)
:not(.client-screen-hero *)
:not(.email-template-hero *)
:not(.users-hero *) {
  color: #000000 !important;
  font-size: 12px !important;
}

#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
:is(h1, h2)
:not(.provision-hero *)
:not(.wf-hero *)
:not(.client-screen-hero *)
:not(.email-template-hero *)
:not(.users-hero *) {
  color: #000000 !important;
}

#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
:is(h3)
:not(.provision-hero *)
:not(.wf-hero *)
:not(.client-screen-hero *)
:not(.email-template-hero *)
:not(.users-hero *) {
  color: #000000 !important;
  font-size: 18px !important;
}

#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
:is(h4)
:not(.provision-hero *)
:not(.wf-hero *)
:not(.client-screen-hero *)
:not(.email-template-hero *)
:not(.users-hero *) {
  color: #000000 !important;
  font-size: 15px !important;
}

#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
:is(input, select, textarea, [contenteditable="true"]) {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  caret-color: #000000 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
:is(input, textarea)::placeholder {
  color: #000000 !important;
  opacity: .72 !important;
}

#view-settings .settings-panel-content:not(#settings-supplier-questionnaire)
button:not(.btn-primary):not(.primary):not(.client-config-save):not(.email-template-button):not(.wf-count-button) {
  color: #000000 !important;
  font-size: 13px !important;
}

/* Botões e elementos com fundo azul-escuro/gradiente mantêm a tipografia clara anterior. */
#view-settings .btn-primary,
#view-settings .btn-primary *,
#view-settings button.primary,
#view-settings button.primary *,
#view-settings .client-config-save,
#view-settings .client-config-save *,
#view-settings .email-template-button.primary,
#view-settings .email-template-button.primary *,
#view-settings .wf-count-button.active,
#view-settings .wf-count-button.active *,
#view-settings .wf-saved-logo,
#view-settings .client-profile-code,
#view-settings .user-avatar,
#view-settings .direct-avatar {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Os grandes blocos escuros mantêm integralmente a composição de cores anterior. */
#view-settings .provision-hero,
#view-settings .wf-hero,
#view-settings .client-screen-hero,
#view-settings .email-template-hero,
#view-settings .users-hero {
  color: #ffffff !important;
}

/* Relatórios: hierarquia legível semelhante à referência, sem uniformizar tudo em 13px. */
#view-reports,
#view-reports .r13-shell {
  color: #000000 !important;
  font-size: 13px !important;
}

#view-reports .r13-heading h2 {
  color: #000000 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
}

#view-reports .r13-heading p,
#view-reports .r13-eyebrow {
  color: #000000 !important;
  font-size: 13px !important;
}

#view-reports .r13-panel h3 {
  color: #000000 !important;
  font-size: 16px !important;
}

#view-reports .r13-panel header p,
#view-reports .r13-kpi-top span,
#view-reports .r13-kpi small,
#view-reports .r13-workflow-row span,
#view-reports .r13-mini span,
#view-reports .r13-decision p,
#view-reports .r13-decision time,
#view-reports .r13-foot,
#view-reports .r13-empty,
#view-reports .r13-inline-legend,
#view-reports .r13-month-label,
#view-reports .r13-donut small {
  color: #000000 !important;
  font-size: 12px !important;
}

#view-reports .r13-filter-card label span {
  color: #000000 !important;
  font-size: 12px !important;
}

#view-reports .r13-filter-card input,
#view-reports .r13-filter-card select {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  font-size: 13px !important;
}

#view-reports .r13-filter-card input::placeholder {
  color: #000000 !important;
  opacity: .72 !important;
}

#view-reports .r13-export-actions button,
#view-reports .r13-filter-actions button {
  color: #000000 !important;
  font-size: 13px !important;
}

#view-reports .r13-export-actions button.primary,
#view-reports .r13-export-actions button.primary *,
#view-reports .r13-filter-actions button.primary,
#view-reports .r13-filter-actions button.primary * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#view-reports .r13-kpi strong,
#view-reports .r13-panel header > strong,
#view-reports .r13-bar-row strong,
#view-reports .r13-legend-row strong,
#view-reports .r13-workflow-row strong,
#view-reports .r13-workflow-count b,
#view-reports .r13-mini strong,
#view-reports .r13-decision strong,
#view-reports .r13-donut span {
  color: #000000 !important;
}

#view-reports .r13-bar-row,
#view-reports .r13-legend-row,
#view-reports .r13-workflow-row,
#view-reports .r13-decision {
  color: #000000 !important;
  font-size: 13px !important;
}

#view-reports .r13-table-wrap th,
#view-reports .r13-table-wrap td,
#view-reports .r13-table-wrap td strong,
#view-reports .r13-pill,
#view-reports .r13-count-chip {
  color: #000000 !important;
  font-size: 12px !important;
}

#view-reports .r13-loading,
#view-reports .r13-error {
  font-size: 13px !important;
}

/* Mantém o Questionário do Fornecedor somente dentro de Configurações. */
#questionnaireNavItem {
  display: none !important;
}
