/* EvoluiQ v6.9.212 — ajustes restritos à legibilidade e ao histórico. */
/* Biblioteca: forçar contraste também no texto interno de botões e no Safari. */
html body #eq211ModelOverlay .eq211-modal-card,
html body #eq211ModelOverlay .eq211-model-list,
html body #eq211ModelOverlay .eq211-model-form{background:#fff!important;color:#173e37!important;opacity:1!important}
html body #eq211ModelOverlay .eq211-model-list{background:#f5faf7!important}
html body #eq211ModelOverlay #eq211ModelItems button.eq211-model-option,
html body #eq211ModelOverlay #eq211ModelItems button.eq211-model-option span{color:#123b34!important;-webkit-text-fill-color:#123b34!important;opacity:1!important;text-shadow:none!important;font-size:14px!important;font-weight:750!important}
html body #eq211ModelOverlay #eq211ModelItems button.eq211-model-option{background:#fff!important;border:1px solid #9ecab7!important}
html body #eq211ModelOverlay #eq211ModelItems button.eq211-model-option.is-active{background:#dff4e9!important;border-color:#077d60!important}
html body #eq211ModelOverlay .eq211-model-option small{color:#084e3d!important;-webkit-text-fill-color:#084e3d!important;background:#bcebd5!important;opacity:1!important}
html body #eq211ModelOverlay .eq211-model-form label,
html body #eq211ModelOverlay .eq211-model-toolbar strong{color:#14533d!important;-webkit-text-fill-color:#14533d!important;opacity:1!important}
html body #eq211ModelOverlay #eq211ModelName,
html body #eq211ModelOverlay #eq211ModelText{color:#173c36!important;-webkit-text-fill-color:#173c36!important;background:#fff!important;opacity:1!important}
html body #eq211ModelOverlay #eq211ModelName::placeholder,
html body #eq211ModelOverlay #eq211ModelText::placeholder{color:#647b75!important;-webkit-text-fill-color:#647b75!important;opacity:1!important}
/* Ambos os menus em verde próximo do prontuário, claros e com alto contraste. */
html body #eqProfileMenu.eq-profile-menu,
html body #eq208NoticePanel,
html body #eq208NoticePanel>header,
html body #eq208NoticePanel>footer,
html body #eq208NoticePanel .eq208-notice.read,
html body #eq208NoticePanel .eq208-empty{background:#087b69!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body #eq208NoticePanel .eq208-notice{background:#0b896f!important;color:#fff!important}
html body #eqProfileMenu.eq-profile-menu .eq-menu-name,
html body #eq208NoticePanel .eq208-notice small{color:#d8fff3!important;-webkit-text-fill-color:#d8fff3!important}
/* Diagnóstico preciso em eventual erro nas metas. */
#eq211Productivity #eq211GoalMessage[data-state="error"]{color:#a52d32!important;font-weight:650!important;line-height:1.4;margin-top:8px;white-space:normal;overflow-wrap:anywhere}
#eq211Productivity #eq211GoalMessage[data-state="ok"]{color:#086e53!important;font-weight:700!important;margin-top:8px}
#eq211Productivity #eq211GoalMessage[data-state="working"]{color:#386a5c!important;margin-top:8px}
/* Agendamento anterior: apenas histórico. Só controles de gravação são ocultados. */
#eq212HistoryBanner{background:#e9f7f0;color:#145643;border:1px solid #a8d7c2;border-radius:10px;padding:13px 15px;line-height:1.5;font-size:13px;font-weight:700;margin:10px 0 16px}
body.eq212-history-only #patientNav [data-ptab]:not([data-ptab="historico"]),
body.eq212-history-only #patientIdentityHeader .patient-header-edit,
body.eq212-history-only #editPatientBtn,
body.eq212-history-only #tab-historico .eq193-finish-row,
body.eq212-history-only #eq193FinishEncounter,
body.eq212-history-only #tab-historico .eq184-edit-pencil,
body.eq212-history-only #tab-historico button[onclick*="continueElaboration"]{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}

/* v6.9.218: leitura histórica desde o primeiro quadro, incluindo controles
   laterais de edição. Consultar e imprimir permanecem acessíveis. */
body.eq212-history-only #eq204PatientSummary .eq206-pencil,
body.eq212-history-only #eq208VitalsToggle,
body.eq212-history-only #vitalsSideCard #svEditBtn,
body.eq212-history-only #vitalsSideCard #svSave,
body.eq212-history-only #eq204QuickActions {
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
