/* ==========================================================================
   Health View — Compact UI Global v121.3.32
   Objetivo: tornar TODA a área autenticada mais compacta em 100% de zoom,
   usando as variáveis globais já adotadas pelo app.css e reforços por módulo.
   ========================================================================== */

/* A maior parte do sistema já usa estas variáveis. Redefini-las no body
   autenticado faz Clima, Pesquisas, Consultas, NR-01 e formulários seguirem
   a mesma escala sem depender de zoom do navegador. */
body.is-authenticated {
  --ui-font-page-title: 18px;
  --ui-font-section-title: 15px;
  --ui-font-card-title: 15px;
  --ui-font-body: 12px;
  --ui-font-label: 11px;
  --ui-font-small: 10px;
  --ui-font-kicker: 9px;
  --ui-font-table: 12px;

  --ui-control-height: 34px;
  --ui-button-height: 32px;
  --ui-button-compact-height: 30px;
  --ui-icon-button-size: 28px;

  --ui-radius-control: 8px;
  --ui-radius-card: 13px;
  --ui-card-padding: 13px;
  --ui-section-gap: 10px;

  font-size: var(--ui-font-body);
  line-height: 1.4;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ===== Estrutura principal ===== */
@media (min-width: 861px) {
  body.is-authenticated .sidebar {
    width: 232px !important;
    padding: 11px 8px !important;
  }

  body.is-authenticated .sidebar__brand {
    padding: 5px 6px 11px !important;
    margin-bottom: 8px !important;
  }

  body.is-authenticated .sidebar__brand-logo {
    width: min(185px, 100%) !important;
    max-height: 64px !important;
    margin-bottom: 2px !important;
  }

  body.is-authenticated .sidebar__menu {
    gap: 5px !important;
  }

  body.is-authenticated .menu__grupo {
    border-radius: 11px !important;
  }

  body.is-authenticated .menu__titulo {
    padding: 8px 9px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  body.is-authenticated .menu__itens {
    padding: 4px 5px !important;
    gap: 2px !important;
  }

  body.is-authenticated .menu__link {
    min-height: 27px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1.18 !important;
  }

  body.is-authenticated .menu__link::before {
    width: 4px !important;
    height: 4px !important;
    flex-basis: 4px !important;
  }
}

/* ===== Topbar ===== */
body.is-authenticated .topbar {
  min-height: 50px !important;
  padding: 6px 14px !important;
  gap: 10px !important;
}

body.is-authenticated .topbar__title {
  min-width: 0;
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 800;
}

body.is-authenticated .topbar-user-menu {
  min-width: 0;
  max-width: min(360px, 42vw);
}

body.is-authenticated .topbar-user-menu__summary {
  min-width: 0;
  max-width: 100%;
  gap: 7px !important;
  padding: 3px 5px !important;
}

body.is-authenticated .topbar-user-menu__meta {
  min-width: 0;
  max-width: 295px;
}

body.is-authenticated .topbar-user-menu__meta strong,
body.is-authenticated .topbar-user-menu__meta small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-authenticated .topbar-user-menu__meta strong {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

body.is-authenticated .topbar-user-menu__meta small {
  font-size: 9px !important;
  line-height: 1.15 !important;
}

body.is-authenticated .topbar-user-menu__avatar {
  width: 29px !important;
  height: 29px !important;
  flex: 0 0 29px !important;
  font-size: 10px !important;
}

/* ===== Conteúdo / elementos compartilhados ===== */
body.is-authenticated .content-area {
  padding: 11px 13px 16px !important;
  font-size: var(--ui-font-body) !important;
}

body.is-authenticated .card {
  border-radius: var(--ui-radius-card) !important;
}

body.is-authenticated .card__body {
  padding: var(--ui-card-padding) !important;
}

body.is-authenticated .card h3 {
  font-size: var(--ui-font-card-title) !important;
}

body.is-authenticated .breadcrumb-pulsar,
body.is-authenticated .breadcrumb-pulsar a,
body.is-authenticated .breadcrumb-pulsar strong,
body.is-authenticated .breadcrumb-pulsar span:not([aria-hidden="true"]) {
  font-size: var(--ui-font-label) !important;
}

body.is-authenticated .consulta-padrao-toolbar {
  min-height: 32px !important;
  margin-bottom: 7px !important;
}

body.is-authenticated .botao,
body.is-authenticated .botao--padrao-topo,
body.is-authenticated .botao--padrao-filtro {
  min-height: var(--ui-button-height) !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font-size: var(--ui-font-label) !important;
}

body.is-authenticated input:not([type="checkbox"]):not([type="radio"]),
body.is-authenticated select {
  min-height: var(--ui-control-height) !important;
  font-size: var(--ui-font-body) !important;
}

body.is-authenticated textarea {
  font-size: var(--ui-font-body) !important;
}

/* ===== Dashboard ===== */
body.is-authenticated .dashboard-hero {
  padding: 13px 15px !important;
  gap: 11px !important;
  border-radius: 14px !important;
  margin-bottom: 9px !important;
  box-shadow: 0 6px 16px rgba(15,23,42,.04) !important;
}

body.is-authenticated .dashboard-hero h2 {
  margin-bottom: 4px !important;
  font-size: 1.18rem !important;
}

body.is-authenticated .dashboard-hero p {
  font-size: .78rem !important;
  line-height: 1.38 !important;
}

body.is-authenticated .pulsar-hub-kicker {
  margin-bottom: 5px !important;
  padding: 3px 8px !important;
  font-size: 9px !important;
}

body.is-authenticated .dashboard-hero__summary {
  min-width: 142px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
}

body.is-authenticated .dashboard-hero__summary strong {
  font-size: 26px !important;
}

body.is-authenticated .dashboard-hero__summary span {
  margin-top: 3px !important;
  font-size: 10.5px !important;
}

body.is-authenticated .dashboard-visual-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, .85fr) !important;
  gap: 9px !important;
}

body.is-authenticated .dashboard-panel {
  padding: 13px !important;
  border-radius: 13px !important;
  box-shadow: 0 6px 16px rgba(15,23,42,.035) !important;
}

body.is-authenticated .dashboard-panel--metric {
  min-height: 90px !important;
  gap: 3px !important;
}

body.is-authenticated .dashboard-panel--metric span {
  font-size: 9px !important;
}

body.is-authenticated .dashboard-panel--metric strong {
  font-size: 27px !important;
}

body.is-authenticated .dashboard-panel--metric small {
  font-size: 9.5px !important;
}

/* ===== Hubs / Pesquisas Customizadas / cadastros guiados ===== */
body.is-authenticated .pulsar-hub-hero {
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  border-radius: 13px !important;
}

body.is-authenticated .pulsar-hub-hero h2 {
  margin-bottom: 4px !important;
  font-size: var(--ui-font-page-title) !important;
}

body.is-authenticated .pulsar-hub-hero p {
  font-size: var(--ui-font-body) !important;
  line-height: 1.4 !important;
}

body.is-authenticated .pulsar-flow-grid {
  gap: 9px !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

body.is-authenticated .pulsar-flow-card {
  min-height: 145px !important;
  padding: 13px !important;
  gap: 8px !important;
  border-radius: 13px !important;
}

body.is-authenticated .pulsar-flow-card__tag {
  min-height: 27px !important;
  padding: 5px 9px !important;
  font-size: 9px !important;
}

body.is-authenticated .pulsar-flow-card p {
  font-size: 11px !important;
  line-height: 1.4 !important;
}

body.is-authenticated .pulsar-flow-steps {
  margin-top: 10px !important;
  padding: 11px 13px !important;
  border-radius: 12px !important;
}

/* ===== Clima Organizacional ===== */
body.is-authenticated .clima-page-header--hero,
body.is-authenticated .clima-section-card,
body.is-authenticated .clima-empresa-ciclos,
body.is-authenticated .clima-overview-empty,
body.is-authenticated .clima-next-action,
body.is-authenticated .clima-filter-card,
body.is-authenticated .clima-relatorios-contexto {
  margin-bottom: 9px !important;
}

body.is-authenticated .clima-section-card h2,
body.is-authenticated .clima-empresa-ciclos h2,
body.is-authenticated .clima-overview-empty h2,
body.is-authenticated .clima-next-action h2,
body.is-authenticated .clima-chart-card h2,
body.is-authenticated .clima-entregavel-card h2 {
  margin-bottom: 4px !important;
  font-size: var(--ui-font-section-title) !important;
}

body.is-authenticated .clima-section-card p,
body.is-authenticated .clima-empresa-ciclos p,
body.is-authenticated .clima-overview-empty p,
body.is-authenticated .clima-next-action p,
body.is-authenticated .clima-entregavel-card p {
  font-size: var(--ui-font-body) !important;
  line-height: 1.38 !important;
}

body.is-authenticated .clima-relatorios-contexto .card__body,
body.is-authenticated .clima-section-card .card__body,
body.is-authenticated .clima-entregavel-card .card__body {
  padding: 12px !important;
}

body.is-authenticated .clima-relatorios-contexto input,
body.is-authenticated .clima-relatorios-contexto select,
body.is-authenticated .form-grupo > input,
body.is-authenticated .form-grupo > select {
  min-height: 34px !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
}

body.is-authenticated .clima-entregavel-card {
  border-radius: 13px !important;
}

/* ===== Acompanhamento DRPS ===== */
body.is-authenticated .nr1-drps-header {
  padding: 13px 15px !important;
  margin-bottom: 10px !important;
  border-radius: 13px !important;
}

body.is-authenticated .nr1-drps-identidade h2 {
  font-size: 1.13rem !important;
}

body.is-authenticated .nr1-drps-header__estabelecimento {
  font-size: .82rem !important;
}

body.is-authenticated .nr1-drps-header__meta {
  margin-top: 5px !important;
  font-size: .74rem !important;
}

body.is-authenticated .nr1-eyebrow {
  font-size: .61rem !important;
}

body.is-authenticated .nr1-kpis {
  gap: 7px !important;
  margin-top: 10px !important;
}

body.is-authenticated .nr1-kpi {
  padding: 8px 10px !important;
  border-radius: 9px !important;
}

body.is-authenticated .nr1-kpi strong {
  font-size: 1rem !important;
}

body.is-authenticated .nr1-kpi span {
  font-size: .68rem !important;
}

body.is-authenticated .nr1-alerta {
  padding: 9px 11px !important;
  margin-bottom: 10px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}

body.is-authenticated .nr1-section {
  margin-top: 13px !important;
}

body.is-authenticated .nr1-section__header h3,
body.is-authenticated .nr1-docs-cabecalho h3 {
  font-size: .95rem !important;
}

body.is-authenticated .nr1-central-bloco--fluxo {
  padding: 12px !important;
  border-radius: 13px !important;
}

body.is-authenticated .hv-jornada {
  gap: 7px !important;
}

body.is-authenticated .hv-jornada__etapa {
  min-width: 104px !important;
  min-height: 60px !important;
  padding: 8px !important;
  border-radius: 10px !important;
}

body.is-authenticated .hv-jornada__numero {
  width: 25px !important;
  height: 25px !important;
  flex-basis: 25px !important;
  font-size: 11px !important;
}

body.is-authenticated .hv-jornada__etapa strong {
  font-size: 11px !important;
}

body.is-authenticated .hv-jornada__etapa small {
  margin-top: 2px !important;
  font-size: 9px !important;
}

/* ===== Gestão Contínua ===== */
body.is-authenticated .gc-page {
  font-size: 11.5px !important;
}

body.is-authenticated .gc-intro h2 {
  font-size: 1.05rem !important;
}

body.is-authenticated .gc-section {
  margin-top: 8px !important;
}

body.is-authenticated .gc-section-head {
  padding: 9px 13px 6px !important;
}

body.is-authenticated .gc-section-head h3,
body.is-authenticated .gc-chart-head h3,
body.is-authenticated .gc-feature h3 {
  font-size: .9rem !important;
}

body.is-authenticated .gc-table-wrap {
  padding: 0 13px 10px !important;
}

body.is-authenticated .gc-table th {
  padding: 7px 8px !important;
  font-size: 9px !important;
}

body.is-authenticated .gc-table td {
  padding: 7px 8px !important;
  font-size: 10.5px !important;
}

/* ===== Consultas / tabelas / formulários gerais ===== */
body.is-authenticated .consulta-padrao-intro {
  margin-bottom: 8px !important;
}

body.is-authenticated .consulta-padrao-intro .card__body {
  padding: 11px 13px !important;
}

body.is-authenticated .consulta-padrao-intro h2 {
  font-size: 16px !important;
}

body.is-authenticated .consulta-padrao-intro p {
  margin-top: 3px !important;
  font-size: 11px !important;
}

body.is-authenticated .consulta-padrao-filtros .card__body {
  padding: 10px 12px !important;
}

body.is-authenticated .consulta-padrao-filtros .consulta-filtro label {
  margin-bottom: 3px !important;
  font-size: 10px !important;
}

body.is-authenticated .consulta-padrao-filtros .consulta-filtro input,
body.is-authenticated .consulta-padrao-filtros .consulta-filtro select {
  min-height: 34px !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
}

body.is-authenticated .tabela th,
body.is-authenticated .tabela td {
  padding: 8px 8px !important;
  font-size: var(--ui-font-table) !important;
}

/* ===== Relatório técnico DRPS em tela ===== */
@media screen {
  body.is-authenticated .rel-cover {
    padding: 27px 27px 23px !important;
    min-height: 235px !important;
  }

  body.is-authenticated .rel-cover h1 {
    margin: 9px 0 8px !important;
    font-size: 1.45rem !important;
  }

  body.is-authenticated .rel-content {
    padding: 18px 27px 24px !important;
  }

  body.is-authenticated .rel-section {
    margin-top: 16px !important;
  }

  body.is-authenticated .rel-section h2 {
    font-size: .95rem !important;
  }

  body.is-authenticated .rel-section p,
  body.is-authenticated .rel-card p,
  body.is-authenticated .rel-table td {
    font-size: .75rem !important;
    line-height: 1.4 !important;
  }

  body.is-authenticated .rel-card {
    padding: 10px !important;
    border-radius: 10px !important;
  }

  body.is-authenticated .rel-card h3 {
    font-size: .84rem !important;
  }
}

/* ===== Responsividade ===== */
@media (max-width: 1000px) {
  body.is-authenticated .topbar-user-menu {
    max-width: 42vw;
  }

  body.is-authenticated .topbar-user-menu__meta {
    max-width: 210px;
  }
}

@media (max-width: 860px) {
  body.is-authenticated {
    --ui-font-body: 14px;
    --ui-font-label: 13px;
    --ui-font-small: 12px;
    --ui-control-height: 40px;
    --ui-button-height: 36px;
    font-size: 14px;
  }

  body.is-authenticated .content-area {
    padding: 14px !important;
  }

  body.is-authenticated .dashboard-panel--metric {
    min-height: 112px !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated .topbar {
    padding: 9px 12px !important;
    align-items: flex-start;
  }

  body.is-authenticated .topbar-user-menu {
    max-width: 52vw;
  }

  body.is-authenticated .topbar-user-menu__meta {
    max-width: 145px;
  }

  body.is-authenticated .rel-cover,
  body.is-authenticated .rel-content {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
