/* APN v167 — repaginacao visual solicitada em 29/09/2026 */

/* Minhas refeicoes: suplementacao pronta pertence a Minhas prescricoes. */
.template-supplement-card{display:none!important}

/* Gasto energetico — hierarquia tipografica mais legivel. */
.hf-workspace-patient .energy-source-grid>label,
.hf-workspace-patient .energy-exercise-row>label{
  font-size:13.5px!important;
  font-weight:750!important;
  line-height:1.25!important;
  color:inherit!important;
}
.hf-workspace-patient .energy-source-grid>label{gap:7px!important}
.hf-workspace-patient .energy-exercise-row>label{gap:6px!important}
.hf-workspace-patient .energy-subhead h4{font-size:20px!important;line-height:1.15!important}
.hf-workspace-patient .energy-subhead p{font-size:12.5px!important;line-height:1.45!important}
.hf-workspace-patient .energy-summary-five small{
  font-size:13.5px!important;
  font-weight:750!important;
  line-height:1.25!important;
}
.hf-workspace-patient .energy-summary-five b,
.hf-workspace-patient .energy-summary-five select{
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.2!important;
}
.hf-workspace-patient .energy-summary-five>:is(span,label){min-height:58px!important;padding:9px 11px!important}

/* Prescricao de exames — labels pretos/fortes no claro e fonte normal nos campos. */
.lab-exam-prescription-body>label,
.lab-exam-prescription-body .rx-instructions,
.lab-exam-prescription-body .lab-exam-preparation{
  gap:5px!important;
  color:inherit!important;
  font-size:15px!important;
  font-weight:750!important;
}
.lab-exam-prescription-body :is(textarea,select,input){
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:15.5px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
.lab-exam-prescription-body textarea{padding:10px 12px!important}
.lab-exam-prescription-body .rx-instructions textarea{min-height:96px!important}
.lab-exam-prescription-body .lab-exam-preparation textarea{min-height:72px!important}
html[data-theme="light"] .lab-exam-prescription-body>label,
html[data-theme="light"] .lab-exam-prescription-body .rx-instructions,
html[data-theme="light"] .lab-exam-prescription-body .lab-exam-preparation{color:#111318!important}

/* Antropometria — dobras e demais labels no mesmo padrao das circunferencias. */
body:has(main.admin) .anthro-workspace .anthro-fields:is(.fixed,.variables,.circumference-fields) label,
.anthro-admin .anthro-fields:is(.fixed,.variables,.circumference-fields) label{
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.25!important;
}

/* Gestao financeira no prontuario — compacto, 3 colunas de servicos e item avulso discreto. */
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-grid2{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
  gap:6px!important;
  margin-bottom:4px!important;
}
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-grid2>label{
  font-weight:750!important;
  font-size:13.5px!important;
}
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-items{padding-top:7px!important;margin-top:0!important}
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-section-head{margin-bottom:4px!important}
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-section-head small{display:none!important}
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-section-head h3{font-size:16px!important;margin:0!important}
.apn-patient-finance-card .apn-fin-embedded-compact [data-item-list]{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px 9px!important;
}
.apn-patient-finance-card .apn-fin-embedded-compact [data-item-list]>.apn-fin-service-row{
  grid-template-columns:minmax(0,1fr)!important;
  gap:5px!important;
  min-width:0!important;
  padding:8px 9px!important;
  border:1px solid rgba(128,128,128,.16)!important;
  border-radius:10px!important;
}
.apn-patient-finance-card .apn-fin-embedded-compact [data-item-list] .apn-fin-money{width:100%!important}
.apn-patient-finance-card .apn-fin-embedded-compact [data-item-list] .apn-fin-money input{min-width:0!important}
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-add-custom{
  justify-self:end!important;
  width:auto!important;
  min-height:32px!important;
  margin:7px 0 2px!important;
  padding:6px 11px!important;
  border-radius:9px!important;
  font-size:11.5px!important;
  font-weight:750!important;
}
.apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-total{margin-top:2px!important}
@media(max-width:850px){
  .apn-patient-finance-card .apn-fin-embedded-compact [data-item-list]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .apn-patient-finance-card .apn-fin-embedded-compact .apn-fin-grid2,
  .apn-patient-finance-card .apn-fin-embedded-compact [data-item-list]{grid-template-columns:1fr!important}
}

/* Meus dados — botoes menores e todos os controles visiveis sem rolagem interna no desktop. */
@media(min-width:901px){
  .apn-pro-dashboard.is-module-open .saas-profile-content{padding:10px 16px!important}
  .apn-pro-dashboard.is-module-open .saas-profile-grid{gap:6px 10px!important;margin:7px 0!important}
  .apn-pro-dashboard.is-module-open .saas-profile-card :is(.saas-profile-grid,.saas-doc-controls) label{gap:3px!important;font-size:11.5px!important}
  .apn-pro-dashboard.is-module-open .saas-profile-card :is(.saas-profile-grid,.saas-doc-controls) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){min-height:31px!important;padding:5px 7px!important;font-size:12.5px!important}
  .apn-pro-dashboard.is-module-open .saas-profile-card fieldset{padding:6px 8px!important;margin:5px 0!important}
  .apn-pro-dashboard.is-module-open .saas-profile-card footer{padding-top:5px!important;gap:8px!important}
  .apn-pro-dashboard.is-module-open .saas-profile-card footer .primary{min-height:34px!important;width:auto!important;padding:7px 14px!important;font-size:11.5px!important}
  .apn-pro-dashboard.is-module-open>.saas-profile-overlay{overflow:hidden!important}
  .apn-pro-dashboard.is-module-open .saas-profile-card{max-height:none!important;overflow:hidden!important}
}

/* Inicio do painel profissional — ganhar altura util sem rolagem desnecessaria em desktop. */
@media(min-width:1180px) and (min-height:650px){
  .apn-pro-home:not([data-view="buttons"]){min-height:0!important;padding-top:12px!important;padding-bottom:10px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-titlebar{margin-bottom:9px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-dashboard{gap:9px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-kpis{gap:9px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-kpis article{min-height:88px!important;padding:12px 14px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-kpis article>span{width:39px!important;height:39px!important;flex-basis:39px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-kpis strong{font-size:22px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-middle{gap:9px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-card>header{padding:11px 13px 8px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-bars{height:105px!important;margin:9px 13px 9px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-empty{min-height:120px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-pending-total{padding:3px 14px 8px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-pending-total>strong{width:56px!important;height:56px!important;flex-basis:56px!important;font-size:23px!important}
  .apn-pro-home:not([data-view="buttons"]) .apn-pro-attendance-grid{padding:2px 14px 10px!important}
}

/* LANDING PAGE — somente refinamentos mobile; desktop preservado. */
@media(max-width:640px){
  /* cabecalho: menu + criar conta + entrar, com Entrar no extremo direito */
  .apn-lp-nav{gap:4px!important;padding:0 8px!important}
  .apn-lp-brand{gap:7px!important;min-width:0!important;flex:1 1 auto!important}
  .apn-lp-brand img{width:33px!important;height:33px!important;flex:0 0 33px!important}
  .apn-lp-brand b{font-size:14px!important}
  .apn-lp-brand small{font-size:7.5px!important;margin-top:3px!important;white-space:nowrap!important}
  .apn-lp-nav-actions{gap:4px!important;flex:0 0 auto!important}
  .apn-lp-nav .apn-lp-menu{display:grid!important;place-items:center!important;order:1;width:34px;height:38px;padding:0!important;font-size:20px!important}
  .apn-lp-nav .apn-lp-btn-small{display:inline-flex!important;order:2;min-height:38px!important;max-width:86px!important;padding:0 8px!important;border-radius:10px!important;font-size:9.5px!important;line-height:1.08!important;text-align:center!important;white-space:normal!important;box-shadow:none!important}
  .apn-lp-nav .apn-lp-login{order:3;min-height:38px!important;padding:0 9px!important;border-radius:10px!important;font-size:11px!important;white-space:nowrap!important}
  .apn-lp-nav .apn-lp-login span{display:none!important}

  /* 12 modulos: duas colunas de seis, mais compactas. */
  .apn-lp-menu-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:15px!important}
  .apn-lp-menu-list span{min-height:42px!important;padding:8px 9px!important;border-radius:9px!important;font-size:10.5px!important;line-height:1.2!important;display:flex!important;align-items:center!important}

  /* Agenda: beneficios em duas colunas compactas. */
  .apn-lp-agenda .apn-lp-feature-chips{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:18px!important}
  .apn-lp-agenda .apn-lp-feature-chips span{min-height:48px!important;padding:8px!important;font-size:10.5px!important;line-height:1.2!important;display:flex!important;align-items:center!important}
  .apn-lp-agenda .apn-lp-feature-chips span:before{margin-right:5px!important}

  /* White-label: seis beneficios em 2x3. */
  .apn-lp-checks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:18px!important}
  .apn-lp-checks span{display:flex!important;align-items:center!important;min-width:0!important;font-size:10.5px!important;line-height:1.2!important;white-space:normal!important}
  .apn-lp-checks span:before{width:18px!important;height:18px!important;flex:0 0 18px!important;margin-right:5px!important}

  /* Agente IA: tres titulos na mesma linha; descricoes ocultas no mobile. */
  .apn-lp-ai-bottom{gap:20px!important;margin-top:24px!important}
  .apn-lp-ai-points{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .apn-lp-ai-points div{min-height:58px!important;padding:8px 6px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
  .apn-lp-ai-points b{font-size:10px!important;line-height:1.15!important}
  .apn-lp-ai-points span{display:none!important}

  /* Migracao: no mobile fica discursiva, sem caixas/logotipos gigantes. */
  .apn-lp-migrate-cards,.apn-lp-migrate-visual{display:none!important}
  .apn-lp-migrate-copy>p{margin-bottom:14px!important}
  .apn-lp-migrate-copy>small{display:block!important;font-size:10.5px!important;line-height:1.5!important}
}
@media(max-width:640px){
  /* leitura vertical: 01-06 na coluna esquerda, 07-12 na direita. */
  .apn-lp-menu-list span:nth-child(-n+6){grid-column:1}
  .apn-lp-menu-list span:nth-child(n+7){grid-column:2}
  .apn-lp-menu-list span:nth-child(1),.apn-lp-menu-list span:nth-child(7){grid-row:1}
  .apn-lp-menu-list span:nth-child(2),.apn-lp-menu-list span:nth-child(8){grid-row:2}
  .apn-lp-menu-list span:nth-child(3),.apn-lp-menu-list span:nth-child(9){grid-row:3}
  .apn-lp-menu-list span:nth-child(4),.apn-lp-menu-list span:nth-child(10){grid-row:4}
  .apn-lp-menu-list span:nth-child(5),.apn-lp-menu-list span:nth-child(11){grid-row:5}
  .apn-lp-menu-list span:nth-child(6),.apn-lp-menu-list span:nth-child(12){grid-row:6}
}

/* V168 — Meus dados: manter rolagem vertical exclusivamente na aba PDFs. */
@media(min-width:901px){
  .apn-pro-dashboard.is-module-open:has(.saas-profile-pane[data-profile-pane="documents"].active) > .saas-profile-overlay{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-gutter:stable;
  }
  .apn-pro-dashboard.is-module-open:has(.saas-profile-pane[data-profile-pane="documents"].active) .saas-profile-card{
    overflow:visible!important;
    max-height:none!important;
  }
  .apn-pro-dashboard.is-module-open:has(.saas-profile-pane[data-profile-pane="documents"].active) .saas-profile-content{
    overflow:visible!important;
  }
}
