@charset "UTF-8";
/* ElosClin • Interface 2026
 * Camada visual isolada. Não altera estado, permissões, rotas ou dados.
 * !important é intencional: uma camada explícita vence os estilos legados
 * não estratificados, sem aumentar a especificidade a cada nova versão.
 * Não adicionar regras de display/position a controles de estado aqui.
 */
@layer elos-refresh {
  .theme-elos-refresh, .elos-portal-refresh {
    --ui-bg: #f5f7fa; --ui-surface: #fff; --ui-subtle: #f8fafb;
    --ui-text: #1c2939; --ui-muted: #607084; --ui-line: #e4e9ef;
    --ui-brand: #087f6c; --ui-brand-hover: #066653; --ui-tint: #eaf6f2;
    --ui-danger: #b42335; --ui-danger-bg: #fff0f2;
    --ui-warning: #946000; --ui-warning-bg: #fff5df;
    --ui-blue: #2563a0; --ui-blue-bg: #edf4ff;
    --ui-radius: 12px; --ui-shadow: 0 2px 5px rgb(23 42 62 / 3%);
    --elos-sidebar-width: 232px !important;
    --ui-control: 40px; --ui-row-y: 14px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px !important; line-height: 1.5 !important;
    color: var(--ui-text) !important; background: var(--ui-bg) !important;
    -webkit-font-smoothing: antialiased;
  }
  .theme-elos-refresh.tema-escuro {
    --ui-bg: #101820; --ui-surface: #18232e; --ui-subtle: #202d39;
    --ui-text: #edf2f7; --ui-muted: #a6b6c6; --ui-line: #33424f;
    --ui-brand: #65d6b7; --ui-brand-hover: #87e6cb; --ui-tint: #203d37;
    --ui-danger: #ffacb8; --ui-danger-bg: #432b35;
    --ui-warning: #f3ce80; --ui-warning-bg: #3d3528;
    --ui-blue: #9ec7ff; --ui-blue-bg: #273a50; --ui-shadow: none;
  }
  .theme-elos-refresh.densidade-compacta { --ui-control: 34px; --ui-row-y: 10px; }
  .theme-elos-refresh :is(button,input,select,textarea) { font-family: inherit !important; }
  .theme-elos-refresh :is(h1,h2,h3,h4,.section-title,.neuro-page-header__title,.neuro-card__title) {
    color: var(--ui-text) !important; font-family: inherit !important; font-weight: 650 !important;
    letter-spacing: -.025em !important; line-height: 1.3 !important;
  }
  .theme-elos-refresh :is(h1,.neuro-page-header__title) { font-size: clamp(23px,2vw,28px) !important; }
  .theme-elos-refresh :is(h2,.section-title,.neuro-card__title) { font-size: 18px !important; }
  .theme-elos-refresh h3 { font-size: 16px !important; }
  .theme-elos-refresh :is(.text-slate-500,.text-slate-600,.text-muted,.neuro-muted,.title-subtle,.neuro-page-header__description) { color: var(--ui-muted) !important; }
  .theme-elos-refresh :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
    outline: 3px solid var(--ui-brand) !important; outline-offset: 3px !important;
  }
  .theme-elos-refresh :is(button,input,select,textarea):disabled { opacity: .6 !important; cursor: not-allowed !important; }
  .theme-elos-refresh .elos-skip-link { position: fixed; top: -100px; left: 16px; z-index: 10001; padding: 12px 18px; background: var(--ui-surface); color: var(--ui-brand); border-radius: 8px; }
  .theme-elos-refresh .elos-skip-link:focus { top: 12px; }

  /* Estrutura e navegação — preserva a preferência lateral/superior. */
  .theme-elos-refresh :is(.modernize-page-wrapper,.modernize-body-wrapper,.neuro-page) { background: var(--ui-bg) !important; color: var(--ui-text) !important; }
  .theme-elos-refresh .neuro-page { padding: 28px 32px 40px !important; max-width: 1680px !important; margin-inline: auto !important; }
  .theme-elos-refresh .elos-sidebar { background: var(--ui-surface) !important; border-right: 1px solid var(--ui-line) !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-sidebar-brand { min-height: 80px !important; padding: 22px 20px !important; background: var(--ui-surface) !important; }
  .theme-elos-refresh .elos-brand-symbol { width: 33px !important; height: 33px !important; }
  .theme-elos-refresh .elos-brand-copy strong { font-size: 23px !important; letter-spacing: -.8px !important; }
  .theme-elos-refresh .elos-brand-copy small { font-size: 9px !important; font-weight: 450 !important; color: var(--ui-muted) !important; }
  .theme-elos-refresh .elos-nav-label { font-size: 10px !important; font-weight: 600 !important; letter-spacing: .1em !important; color: var(--ui-muted) !important; padding: 14px 12px 10px !important; }
  .theme-elos-refresh .elos-sidebar .sidebar-nav { padding-inline: 12px !important; margin-inline: 0 !important; width: 100% !important; }
  .theme-elos-refresh .elos-sidebar .sidebar-item { margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important; }
  .theme-elos-refresh .elos-sidebar .modernize-vertical-nav { display: flex !important; flex-direction: column !important; gap: 3px !important; }
  .theme-elos-refresh .elos-sidebar .sidebar-link {
    min-height: 40px !important; padding: 9px 12px !important; margin: 2px 0 !important;
    border: 0 !important; border-radius: 7px !important; background: transparent !important;
    color: var(--ui-muted) !important; box-shadow: none !important; font-size: 13px !important; font-weight: 500 !important;
  }
  .theme-elos-refresh .elos-sidebar .sidebar-link:hover { background: var(--ui-subtle) !important; color: var(--ui-text) !important; transform: none !important; }
  .theme-elos-refresh .elos-sidebar .sidebar-link.active { background: var(--ui-tint) !important; color: var(--ui-brand) !important; font-weight: 650 !important; }
  .theme-elos-refresh .elos-sidebar .menu-icon { width: 20px !important; height: 20px !important; background: transparent !important; color: inherit !important; border: 0 !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-sidebar .menu-icon :is(i,svg) { font-size: 19px !important; width: 19px !important; height: 19px !important; }
  .theme-elos-refresh .modernize-vertical-submenu { margin: 4px 0 6px 22px !important; padding-left: 8px !important; border-left: 1px solid var(--ui-line) !important; }
  .theme-elos-refresh .modernize-vertical-submenu .sidebar-link { min-height: 34px !important; font-size: 12px !important; }
  .theme-elos-refresh .elos-sidebar-footer { padding: 12px !important; border-top: 1px solid var(--ui-line) !important; background: var(--ui-surface) !important; }
  .theme-elos-refresh .modernize-logout { color: var(--ui-muted) !important; }
  .theme-elos-refresh .modernize-logout:hover { color: var(--ui-danger) !important; background: var(--ui-danger-bg) !important; }
  .theme-elos-refresh :is(.elos-topbar,.elos-topbar .app-header) { background: var(--ui-surface) !important; border-bottom: 1px solid var(--ui-line) !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-topbar .app-header { display: block !important; border: 0 !important; }
  .theme-elos-refresh .elos-topbar-clean-v111 { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(260px,540px) auto !important; min-height: 68px !important; padding: 10px 28px !important; gap: 20px !important; }
  .theme-elos-refresh .elos-global-search-v130 { min-height: 38px !important; height: 38px !important; border: 1px solid var(--ui-line) !important; border-radius: 8px !important; background: var(--ui-subtle) !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-global-search-input-v130 { color: var(--ui-text) !important; font-size: 12px !important; font-weight: 400 !important; }
  .theme-elos-refresh .modernize-global-search { max-width: 540px !important; }
  .theme-elos-refresh .modernize-user-trigger { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 2px 0 !important; }
  .theme-elos-refresh .modernize-user-avatar { width: 34px !important; height: 34px !important; border-radius: 50% !important; background: var(--ui-tint) !important; color: var(--ui-brand) !important; box-shadow: none !important; font-size: 13px !important; }
  .theme-elos-refresh .modernize-user-copy strong { font-size: 12px !important; font-weight: 600 !important; color: var(--ui-text) !important; }
  .theme-elos-refresh .modernize-user-copy small { font-size: 11px !important; color: var(--ui-muted) !important; }
  .theme-elos-refresh .modernize-icon-button { width: 36px !important; height: 36px !important; border-radius: 8px !important; background: var(--ui-subtle) !important; color: var(--ui-muted) !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-mobile-menu-refresh { display: none !important; }
  .theme-elos-refresh :is(.modernize-user-dropdown,.neuro-search-results,.modernize-horizontal-dropdown,.agenda-advanced-popover-v114) { border: 1px solid var(--ui-line) !important; border-radius: 12px !important; background: var(--ui-surface) !important; color: var(--ui-text) !important; box-shadow: 0 12px 40px rgb(15 23 42 / 12%) !important; }
  .theme-elos-refresh .modernize-horizontal-sidebar { background: var(--ui-surface) !important; border: 0 !important; border-bottom: 1px solid var(--ui-line) !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; width: 100% !important; }
  .theme-elos-refresh .modernize-horizontal-sidebar .sidebar-nav { padding: 6px 24px !important; }
  .theme-elos-refresh :is(.modernize-horizontal-item > .sidebar-link,.modernize-horizontal-group > summary.sidebar-link) { min-height: 36px !important; border-radius: 7px !important; font-size: 13px !important; font-weight: 500 !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-workspace-refresh { color: var(--ui-muted); font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .theme-elos-refresh.menu-superior .elos-workspace-refresh { display: none; }
  .theme-elos-refresh.menu-lateral .elos-topbar-brand-v129 { display: none !important; }

  /* Componentes compartilhados. */
  .theme-elos-refresh :is(.neuro-card,.elos-surface-v128,.fornecedor-form-section,.details-card,.summary-card,.p360-card,.fin67-card,.finance-v16-card,.report-result-card,.settings-list-card,.group-card-v139,.patient-step-panel-v162,.session-view-card) {
    border: 1px solid var(--ui-line) !important; border-radius: var(--ui-radius) !important;
    background: var(--ui-surface) !important; color: var(--ui-text) !important; box-shadow: var(--ui-shadow) !important;
  }
  .theme-elos-refresh :is(.neuro-card,.elos-surface-v128) { padding: 22px !important; }
  .theme-elos-refresh :is(.neuro-card,.elos-surface-v128):hover { box-shadow: var(--ui-shadow) !important; }
  .theme-elos-refresh :is(.module-toolbar,.neuro-page-header,.premium-page-head,.patient-page-head-v47,.patient-page-head-v73,.care-compact-head-v139,.patient-create-head-v162,.finance-page-head-v144) {
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    padding: 0 0 20px !important; margin-bottom: 0 !important; gap: 16px !important;
  }
  .theme-elos-refresh :is(.neuro-card-header,.patient-panel-heading-v162) { border-bottom-color: var(--ui-line) !important; }
  .theme-elos-refresh :is(.neuro-section-label,.elos-section-kicker-v128) { color: var(--ui-muted) !important; font-size: 10px !important; font-weight: 600 !important; letter-spacing: .08em !important; }
  .theme-elos-refresh :is(.neuro-btn,.elos-btn-v128,.elos-mini-btn-v90,.table-action-btn) {
    min-height: var(--ui-control) !important; padding: 8px 14px !important; border-radius: 7px !important;
    font-size: 13px !important; font-weight: 550 !important; line-height: 1.3 !important;
    box-shadow: none !important; letter-spacing: 0 !important; transform: none !important;
  }
  .theme-elos-refresh :is(.btn-accent-dark,.btn-primary,.modernize-save-action,.elos-mini-btn-v90.is-primary,.elos-btn-v128.is-primary) { background: var(--ui-brand) !important; border: 1px solid var(--ui-brand) !important; color: #fff !important; }
  .theme-elos-refresh.tema-escuro :is(.btn-accent-dark,.btn-primary,.modernize-save-action,.elos-mini-btn-v90.is-primary,.elos-btn-v128.is-primary) { color: #102b24 !important; }
  .theme-elos-refresh :is(.btn-accent-dark,.btn-primary,.modernize-save-action):hover { background: var(--ui-brand-hover) !important; border-color: var(--ui-brand-hover) !important; }
  .theme-elos-refresh :is(.btn-accent-soft,.btn-outline-primary,.modernize-secondary-action,.elos-btn-v128.is-secondary,.elos-btn-v128.is-soft) { background: var(--ui-surface) !important; border: 1px solid var(--ui-line) !important; color: var(--ui-text) !important; }
  .theme-elos-refresh :is(.btn-accent-soft,.modernize-secondary-action):hover { background: var(--ui-subtle) !important; border-color: var(--ui-muted) !important; }
  .theme-elos-refresh :is(.btn-danger-soft,.modernize-danger-action) { background: var(--ui-danger-bg) !important; color: var(--ui-danger) !important; border: 1px solid transparent !important; }
  .theme-elos-refresh :is(.neuro-field,.form-control,.form-select) {
    min-height: var(--ui-control) !important; border: 1px solid var(--ui-line) !important; border-radius: 7px !important;
    background-color: var(--ui-surface) !important; color: var(--ui-text) !important; box-shadow: none !important;
    font-size: 13px !important; font-weight: 400 !important; line-height: 1.5 !important; padding: 9px 12px !important;
  }
  .theme-elos-refresh select.neuro-field { padding-right: 30px !important; }
  .theme-elos-refresh textarea.neuro-field { min-height: 112px !important; resize: vertical; }
  .theme-elos-refresh .neuro-field:focus { border-color: var(--ui-brand) !important; }
  .theme-elos-refresh :is(.neuro-form-label,.patient-field-v162 > span,.patient-field-v162 > label) { color: var(--ui-text) !important; font-size: 12px !important; font-weight: 550 !important; }
  .theme-elos-refresh :is(input,textarea)::placeholder { color: var(--ui-muted) !important; opacity: 1 !important; font-weight: 400 !important; }
  .theme-elos-refresh :is(.soft-table,.patients-table,.care-table-v139,.finance-table-v144,.professional-table-v74) { font-size: 13px !important; border-collapse: separate !important; border-spacing: 0 !important; }
  .theme-elos-refresh :is(.soft-table,.patients-table,.care-table-v139,.finance-table-v144,.professional-table-v74) th {
    padding: 11px 16px !important; background: var(--ui-subtle) !important; color: var(--ui-muted) !important;
    font-size: 11px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: .01em !important;
    border: 0 !important; border-bottom: 1px solid var(--ui-line) !important;
  }
  .theme-elos-refresh :is(.soft-table,.patients-table,.care-table-v139,.finance-table-v144,.professional-table-v74) td { padding: var(--ui-row-y) 16px !important; border: 0 !important; border-bottom: 1px solid var(--ui-line) !important; background: var(--ui-surface) !important; color: var(--ui-text) !important; vertical-align: middle !important; }
  .theme-elos-refresh :is(.soft-table,.patients-table,.care-table-v139,.finance-table-v144) tr:hover td { background: var(--ui-subtle) !important; }
  .theme-elos-refresh :is(.patient-directory-table-v133,.care-table-shell-v139,.finance-table-shell-v144) { border: 1px solid var(--ui-line) !important; border-radius: 12px !important; box-shadow: none !important; background: var(--ui-surface) !important; }
  .theme-elos-refresh :is(.patient-name-link-v133,.care-patient-link-v139,.finance-patient-link-v144) { color: var(--ui-text) !important; font-weight: 600 !important; font-size: 13px !important; }
  .theme-elos-refresh :is(.patient-meta-v133,.patient-muted-v133,.care-status-note-v139) { color: var(--ui-muted) !important; font-size: 12px !important; }
  .theme-elos-refresh :is(.patient-avatar-v133,.patient-empty-icon-v133) { background: var(--ui-tint) !important; color: var(--ui-brand) !important; border: 0 !important; box-shadow: none !important; }
  .theme-elos-refresh .patient-avatar-v133 { width: 36px !important; height: 36px !important; border-radius: 50% !important; font-size: 12px !important; }
  .theme-elos-refresh :is(.status-badge,.patient-badge-v133) { border-radius: 5px !important; border: 0 !important; font-size: 11px !important; font-weight: 550 !important; padding: 4px 8px !important; box-shadow: none !important; }
  .theme-elos-refresh .status-badge:is(.status-realizado,.status-concluido,.status-registrado,.status-pago) { background: var(--ui-tint) !important; color: var(--ui-brand) !important; }
  .theme-elos-refresh .status-badge:is(.status-agendado,.status-confirmado) { background: var(--ui-blue-bg) !important; color: var(--ui-blue) !important; }
  .theme-elos-refresh .status-badge:is(.status-em_atendimento,.status-pendente,.status-aguardando) { background: var(--ui-warning-bg) !important; color: var(--ui-warning) !important; }
  .theme-elos-refresh .status-badge:is(.status-falta,.status-vencido,.status-atrasado) { background: var(--ui-danger-bg) !important; color: var(--ui-danger) !important; }
  .theme-elos-refresh .status-badge.status-cancelado { background: var(--ui-subtle) !important; color: var(--ui-muted) !important; }
  .theme-elos-refresh :is(.patient-filter-panel-v133,.care-filter-panel-v139,.care-quick-row-v139,.finance-filter-bar-v144,.patient-quick-toolbar-v135) { padding: 16px !important; gap: 12px !important; background: var(--ui-surface) !important; border: 1px solid var(--ui-line) !important; border-radius: 12px !important; box-shadow: none !important; }
  .theme-elos-refresh :is(.finance-section-nav-v145,.agenda-view-tabs-v114,.agenda-mode-toggle-v114) { background: var(--ui-subtle) !important; border-color: var(--ui-line) !important; border-radius: 8px !important; box-shadow: none !important; }
  .theme-elos-refresh :is(.finance-section-nav-v145,.agenda-view-tabs-v114,.agenda-mode-toggle-v114) a { font-size: 12px !important; font-weight: 550 !important; border-radius: 6px !important; color: var(--ui-muted) !important; }
  .theme-elos-refresh :is(.finance-section-nav-v145,.agenda-view-tabs-v114,.agenda-mode-toggle-v114) :is(a.active,a.is-active) { color: var(--ui-brand) !important; background: var(--ui-surface) !important; box-shadow: var(--ui-shadow) !important; }
  .theme-elos-refresh :is(.finance-dialog-v144,.neuro-absence-dialog,.modal-content,.agenda-event-drawer-v114) { border-radius: 14px !important; border-color: var(--ui-line) !important; background: var(--ui-surface) !important; color: var(--ui-text) !important; }
  .theme-elos-refresh :is(.patient-form-footer-v162,.finance-form-footer-v162) { background: var(--ui-surface) !important; border-color: var(--ui-line) !important; box-shadow: 0 -4px 16px rgb(15 23 42 / 4%) !important; }

  /* Visão geral: acolhimento discreto, números claros e agenda prioritária. */
  .theme-elos-refresh .elos-home-v128 { gap: 22px !important; }
  .theme-elos-refresh .elos-command-hero-v90 { padding: 0 !important; grid-template-columns: minmax(0,1fr) 300px !important; gap: 28px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
  .theme-elos-refresh .elos-command-hero-bg-v90 { display: none !important; }
  .theme-elos-refresh .elos-home-eyebrow-v128 { color: var(--ui-muted) !important; font-size: 12px !important; font-weight: 450 !important; margin-bottom: 8px !important; }
  .theme-elos-refresh .elos-command-title-v93 { font-size: clamp(25px,2.1vw,31px) !important; font-weight: 650 !important; line-height: 1.25 !important; letter-spacing: -.035em !important; }
  .theme-elos-refresh .elos-command-lead-v92 { font-size: 13px !important; font-weight: 400 !important; color: var(--ui-muted) !important; margin-top: 7px !important; }
  .theme-elos-refresh .elos-command-hero-panel-v90 { padding: 16px 18px !important; border-radius: 10px !important; border: 1px solid var(--ui-line) !important; border-left: 3px solid var(--ui-brand) !important; background: var(--ui-surface) !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-command-hero-panel-v90 > span { font-size: 10px !important; font-weight: 600 !important; color: var(--ui-muted) !important; letter-spacing: .05em !important; }
  .theme-elos-refresh .elos-command-hero-panel-v90 > strong { font-size: 18px !important; font-weight: 650 !important; color: var(--ui-text) !important; }
  .theme-elos-refresh .elos-command-hero-panel-v90 > small { font-size: 12px !important; color: var(--ui-muted) !important; font-weight: 400 !important; }
  .theme-elos-refresh .elos-command-hero-panel-v90 > a { padding: 0 !important; background: transparent !important; border: 0 !important; color: var(--ui-brand) !important; font-size: 12px !important; font-weight: 600 !important; }
  .theme-elos-refresh .elos-kpi-grid-v90 { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)) !important; gap: 14px !important; }
  .theme-elos-refresh .elos-kpi-card-v128.is-v90 { display: block !important; position: relative; min-height: 132px !important; padding: 18px !important; border: 1px solid var(--ui-line) !important; border-radius: 12px !important; box-shadow: var(--ui-shadow) !important; background: var(--ui-surface) !important; transform: none !important; }
  .theme-elos-refresh .elos-kpi-card-v128:before,.theme-elos-refresh .elos-kpi-card-v128:after { background: none !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-kpi-card-v128:hover { border-color: var(--ui-brand) !important; }
  .theme-elos-refresh .elos-kpi-body-v128 { display: flex !important; flex-direction: column !important; width: 100% !important; max-width: none !important; min-width: 0 !important; padding: 0 !important; gap: 9px !important; }
  .theme-elos-refresh .elos-kpi-icon-v128 { position: absolute !important; right: 16px !important; top: 17px !important; width: 26px !important; height: 26px !important; background: transparent !important; color: var(--ui-muted) !important; border: 0 !important; box-shadow: none !important; font-size: 18px !important; }
  .theme-elos-refresh .elos-kpi-label-v128 { color: var(--ui-muted) !important; font-size: 11px !important; font-weight: 500 !important; padding-right: 24px !important; }
  .theme-elos-refresh .elos-kpi-value-v128 { font-family: inherit !important; font-size: 29px !important; font-weight: 650 !important; color: var(--ui-text) !important; letter-spacing: -.04em !important; line-height: 1.1 !important; font-variant-numeric: tabular-nums; }
  .theme-elos-refresh .elos-kpi-meta-v128 { font-size: 11px !important; font-weight: 400 !important; color: var(--ui-muted) !important; }
  .theme-elos-refresh .elos-kpi-card-v128.is-warning .elos-kpi-meta-v128 { color: var(--ui-warning) !important; }
  .theme-elos-refresh .elos-kpi-card-v128.is-success .elos-kpi-meta-v128 { color: var(--ui-brand) !important; }
  .theme-elos-refresh .elos-quick-actions-v90 { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-quick-actions-v90 a { min-height: 38px !important; padding: 8px 12px !important; gap: 8px !important; border-radius: 7px !important; border: 1px solid var(--ui-line) !important; background: var(--ui-surface) !important; box-shadow: none !important; color: var(--ui-text) !important; transform: none !important; }
  .theme-elos-refresh .elos-quick-actions-v90 a:hover { border-color: var(--ui-brand) !important; color: var(--ui-brand) !important; }
  .theme-elos-refresh .elos-quick-actions-v90 i { width: 18px !important; height: 18px !important; border-radius: 0 !important; background: transparent !important; color: inherit !important; font-size: 17px !important; }
  .theme-elos-refresh .elos-quick-actions-v90 span { font-size: 12px !important; font-weight: 550 !important; }
  .theme-elos-refresh .elos-quick-actions-v90 a:nth-child(2) { background: var(--ui-brand) !important; border-color: var(--ui-brand) !important; color: #fff !important; }
  .theme-elos-refresh.tema-escuro .elos-quick-actions-v90 a:nth-child(2) { color: #102b24 !important; }
  .theme-elos-refresh :is(.elos-home-main-grid-v90,.elos-command-grid-v90,.elos-home-secondary-grid-v128) { grid-template-columns: minmax(0,1.6fr) minmax(300px,1fr) !important; gap: 20px !important; }
  .theme-elos-refresh .elos-section-head-v128 { margin-bottom: 18px !important; padding: 0 !important; gap: 12px !important; }
  .theme-elos-refresh .elos-section-head-v128 h2 { margin: 5px 0 !important; font-size: 17px !important; }
  .theme-elos-refresh .elos-section-head-v128 p { font-size: 12px !important; font-weight: 400 !important; color: var(--ui-muted) !important; }
  .theme-elos-refresh .elos-link-v128 { font-size: 12px !important; font-weight: 550 !important; color: var(--ui-brand) !important; white-space: nowrap; }
  .theme-elos-refresh :is(.elos-timeline-v90,.elos-attention-priority-v90,.elos-next-days-v90,.elos-finance-mini-v90,.elos-month-indicators-v90,.elos-patient-watch-v90,.elos-activity-card-v128,.elos-health-card-v128,.elos-setup-v128) { background: var(--ui-surface) !important; border-color: var(--ui-line) !important; border-radius: 12px !important; box-shadow: var(--ui-shadow) !important; }
  .theme-elos-refresh .elos-timeline-list-v90::before { background: var(--ui-line) !important; }
  .theme-elos-refresh .elos-timeline-list-v90 { margin-top: 0 !important; gap: 0 !important; }
  .theme-elos-refresh .elos-timeline-row-v90 { padding: 10px 0 !important; background: transparent !important; color: var(--ui-text) !important; }
  .theme-elos-refresh .elos-timeline-row-v90::before,.theme-elos-refresh .elos-timeline-row-v90::after { background: none !important; }
  .theme-elos-refresh .elos-timeline-row-v90 time { color: var(--ui-muted) !important; font-size: 12px !important; font-weight: 550 !important; }
  .theme-elos-refresh .elos-timeline-content-v90 { padding: 10px 0 14px 8px !important; border: 0 !important; border-bottom: 1px solid var(--ui-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; grid-template-columns: minmax(0,1fr) !important; gap: 10px !important; }
  .theme-elos-refresh .elos-timeline-content-v90 strong { color: var(--ui-text) !important; font-size: 13px !important; font-weight: 600 !important; }
  .theme-elos-refresh .elos-timeline-content-v90 small { color: var(--ui-muted) !important; font-size: 12px !important; font-weight: 400 !important; }
  .theme-elos-refresh .elos-timeline-actions-v90 { justify-content: flex-start !important; flex-wrap: wrap !important; gap: 6px !important; }
  .theme-elos-refresh .elos-mini-btn-v90 { color: var(--ui-text) !important; min-height: 30px !important; padding: 5px 9px !important; font-size: 11px !important; color: var(--ui-text) !important; background: var(--ui-surface) !important; border-color: var(--ui-line) !important; }
  .theme-elos-refresh :is(.elos-attention-row-v128,.elos-activity-row-v128,.elos-patient-watch-list-v90 a) { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--ui-line) !important; border-radius: 0 !important; padding: 13px 0 !important; box-shadow: none !important; }
  .theme-elos-refresh :is(.elos-attention-copy-v128 strong,.elos-patient-watch-list-v90 strong,.elos-activity-title-line-v128 strong) { color: var(--ui-text) !important; font-size: 13px !important; font-weight: 600 !important; }
  .theme-elos-refresh :is(.elos-attention-copy-v128 small,.elos-patient-watch-list-v90 small,.elos-activity-copy-v128 > span) { color: var(--ui-muted) !important; font-size: 12px !important; font-weight: 400 !important; line-height: 1.5 !important; }
  .theme-elos-refresh .elos-attention-group-v91 { font-size: 10px !important; font-weight: 600 !important; color: var(--ui-muted) !important; }
  .theme-elos-refresh :is(.elos-attention-icon-v128,.elos-activity-icon-v128) { width: 32px !important; height: 32px !important; border-radius: 8px !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-attention-row-v128.is-warning .elos-attention-icon-v128 { background: var(--ui-warning-bg) !important; color: var(--ui-warning) !important; }
  .theme-elos-refresh .elos-attention-row-v128.is-danger .elos-attention-icon-v128 { background: var(--ui-danger-bg) !important; color: var(--ui-danger) !important; }
  .theme-elos-refresh .elos-days-strip-v90 { grid-template-columns: repeat(auto-fit,minmax(64px,1fr)) !important; gap: 8px !important; }
  .theme-elos-refresh .elos-days-strip-v90 a { min-height: 88px !important; padding: 12px 6px !important; border-radius: 8px !important; border: 1px solid var(--ui-line) !important; background: var(--ui-subtle) !important; box-shadow: none !important; transform: none !important; }
  .theme-elos-refresh .elos-days-strip-v90 a.is-today { background: var(--ui-tint) !important; border-color: var(--ui-brand) !important; }
  .theme-elos-refresh .elos-days-strip-v90 :is(strong,span) { color: var(--ui-text) !important; font-weight: 600 !important; }
  .theme-elos-refresh .elos-days-strip-v90 em { color: var(--ui-muted) !important; font-weight: 400 !important; }
  .theme-elos-refresh :is(.elos-finance-mini-grid-v90 a,.elos-month-grid-v90 a,.elos-health-grid-v128 a) { border-radius: 8px !important; border: 0 !important; padding: 14px !important; background: var(--ui-subtle) !important; box-shadow: none !important; }
  .theme-elos-refresh :is(.elos-finance-mini-grid-v90,.elos-month-grid-v90,.elos-health-grid-v128) strong { font-size: 21px !important; font-weight: 650 !important; color: var(--ui-text) !important; }
  .theme-elos-refresh :is(.elos-finance-mini-grid-v90,.elos-month-grid-v90,.elos-health-grid-v128) :is(span,small) { font-size: 11px !important; font-weight: 500 !important; color: var(--ui-muted) !important; text-transform: none !important; letter-spacing: 0 !important; }
  .theme-elos-refresh :is(.elos-empty-state-v91,.elos-agenda-empty-v128,.elos-attention-ok-v128) { border-color: var(--ui-line) !important; border-radius: 9px !important; background: var(--ui-subtle) !important; color: var(--ui-muted) !important; box-shadow: none !important; }

  .theme-elos-refresh .fornecedor-form-section { padding: 22px !important; }
  .theme-elos-refresh .fornecedor-completo-header { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .theme-elos-refresh .fornecedor-completo-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea) {
    border: 1px solid var(--ui-line) !important; border-radius: 7px !important; background: var(--ui-surface) !important; color: var(--ui-text) !important; min-height: 40px !important; font-size: 13px !important; padding: 9px 12px !important; box-shadow: none !important;
  }

  /* Agenda: mesma geometria, cores dos eventos e posições preservadas. */
  .theme-elos-refresh .agenda-ops-v114 { background: var(--ui-surface) !important; border: 1px solid var(--ui-line) !important; border-radius: 12px !important; box-shadow: none !important; padding: 20px !important; }
  .theme-elos-refresh .agenda-period-nav-v114 h1 { font-size: 23px !important; }
  .theme-elos-refresh :is(.agenda-search-v122,.agenda-filter-select-v122) { border: 1px solid var(--ui-line) !important; background: var(--ui-surface) !important; border-radius: 7px !important; box-shadow: none !important; min-height: 40px !important; }
  .theme-elos-refresh :is(.agenda-search-v122 input,.agenda-filter-select-v122 select) { color: var(--ui-text) !important; font-size: 12px !important; font-weight: 400 !important; background-color: transparent !important; }
  .theme-elos-refresh .agenda-filters-v122 { gap: 10px !important; border-top-color: var(--ui-line) !important; }

  /* Acesso — mantém os formulários, recuperação e validações existentes. */
  .theme-elos-refresh.elos-login-page { background: var(--ui-bg) !important; }
  .theme-elos-refresh .elos-login-shell { border-radius: 18px !important; border: 1px solid var(--ui-line) !important; box-shadow: 0 16px 64px rgb(24 42 58 / 7%) !important; }
  .theme-elos-refresh .elos-login-brand-panel { background: #123e39 !important; padding: 44px !important; }
  .theme-elos-refresh .elos-login-message h1 { color: #fff !important; font-size: clamp(27px,3vw,38px) !important; font-weight: 600 !important; }
  .theme-elos-refresh .elos-login-message p { color: #bfd5d1 !important; font-weight: 400 !important; }
  .theme-elos-refresh .elos-login-card { background: var(--ui-surface) !important; padding: 44px !important; }
  .theme-elos-refresh .elos-login-heading h2 { font-size: 27px !important; }
  .theme-elos-refresh .elos-login-field > div { border-radius: 8px !important; background: var(--ui-surface) !important; border: 1px solid var(--ui-line) !important; box-shadow: none !important; }
  .theme-elos-refresh .elos-login-field input { font-size: 14px !important; font-weight: 400 !important; }
  .theme-elos-refresh .elos-login-submit { border-radius: 8px !important; min-height: 44px !important; background: var(--ui-brand) !important; box-shadow: none !important; font-weight: 600 !important; }
  .theme-elos-refresh .elos-login-assurance-v195 { border-radius: 8px !important; box-shadow: none !important; }

  /* Portal independente: não depende do CSS do ambiente profissional. */
  .elos-portal-refresh { margin: 0; }
  .elos-portal-refresh * { box-sizing: border-box; }
  .elos-portal-refresh :is(.card,.neuro-card) { background: var(--ui-surface) !important; border: 1px solid var(--ui-line) !important; border-radius: 12px !important; box-shadow: var(--ui-shadow) !important; color: var(--ui-text) !important; }
  .elos-portal-refresh .portal-top { background: var(--ui-surface) !important; border-bottom: 1px solid var(--ui-line) !important; box-shadow: none !important; }
  .elos-portal-refresh :is(h1,h2,h3) { color: var(--ui-text) !important; letter-spacing: -.025em; font-weight: 650 !important; }
  .elos-portal-refresh .nav a { border-radius: 7px !important; font-size: 13px !important; font-weight: 500 !important; }
  .elos-portal-refresh .nav a.active { background: var(--ui-tint) !important; color: var(--ui-brand) !important; }
  .elos-portal-refresh :is(.btn,.field) { border-radius: 8px !important; font-size: 14px !important; }
  .elos-portal-refresh .field { box-sizing: border-box; border-color: var(--ui-line) !important; }
  .elos-portal-refresh .btn { background: var(--ui-brand) !important; color: #fff !important; font-weight: 600 !important; }

  @media (min-width: 1200px) {
    .theme-elos-refresh.menu-lateral .modernize-page-wrapper { margin-left: 232px !important; width: calc(100% - 232px) !important; }
    .theme-elos-refresh.menu-lateral .elos-sidebar { width: 232px !important; min-width: 232px !important; max-width: 232px !important; }
    .theme-elos-refresh .modernize-sidebar-close { display: none !important; }
  }
  @media (max-width: 1199px) {
    .theme-elos-refresh .neuro-page { padding: 22px 20px 90px !important; }
    .theme-elos-refresh .elos-mobile-menu-refresh { display: inline-flex !important; align-items: center; justify-content: center; flex-shrink: 0; }
    .theme-elos-refresh.menu-lateral .elos-topbar-brand-v129,.theme-elos-refresh.menu-superior .elos-topbar-brand-v129 { display: inline-flex !important; }
    .theme-elos-refresh .elos-workspace-refresh { display: none; }
    .theme-elos-refresh :is(.elos-home-main-grid-v90,.elos-command-grid-v90,.elos-home-secondary-grid-v128) { grid-template-columns: minmax(0,1fr) !important; }
    .theme-elos-refresh .elos-command-hero-v90 { grid-template-columns: minmax(0,1fr) 280px !important; }
  }
  @media (max-width: 1199px) {
    .theme-elos-refresh .elos-topbar-clean-v111 { grid-template-columns: auto minmax(0,1fr) auto !important; }
    .theme-elos-refresh .modernize-global-search { grid-column: 1 / -1 !important; grid-row: 2 !important; width: 100% !important; max-width: none !important; }
    .theme-elos-refresh .elos-topbar-spacer-v111 { grid-column: 2; }
    .theme-elos-refresh .modernize-topbar-actions { grid-column: 3; grid-row: 1; }
    .theme-elos-refresh .elos-topbar { height: auto !important; min-height: 0 !important; }
    .theme-elos-refresh .elos-global-search-input-v130 { font-size: 16px !important; }
    .theme-elos-refresh [data-modernize-theme-toggle] { display: inline-grid !important; }
  }
  @media (max-width: 720px) {
    .theme-elos-refresh .neuro-page { padding: 20px 14px 100px !important; }
    .theme-elos-refresh .elos-topbar-clean-v111 { padding: 10px 14px !important; gap: 10px !important; }
    .theme-elos-refresh .elos-command-hero-v90 { grid-template-columns: minmax(0,1fr) !important; gap: 18px !important; }
    .theme-elos-refresh .elos-home-v128 { gap: 18px !important; }
    .theme-elos-refresh .elos-kpi-grid-v90 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
    .theme-elos-refresh .elos-kpi-card-v128.is-v90 { padding: 14px !important; min-height: 130px !important; }
    .theme-elos-refresh .elos-kpi-value-v128 { font-size: 26px !important; }
    .theme-elos-refresh .elos-kpi-icon-v128 { right: 10px !important; top: 12px !important; width: 20px !important; }
    .theme-elos-refresh .elos-kpi-grid-v90 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .theme-elos-refresh .elos-quick-actions-v90 { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .theme-elos-refresh .elos-quick-actions-v90 a { min-width: 0 !important; width: auto !important; min-height: 44px !important; padding: 10px !important; }
    .theme-elos-refresh .elos-quick-actions-v90 span { white-space: normal !important; line-height: 1.4 !important; }
    .theme-elos-refresh :is(.neuro-card,.elos-surface-v128,.agenda-ops-v114) { padding: 16px !important; }
    .theme-elos-refresh .elos-section-head-v128 { flex-wrap: wrap !important; }
    .theme-elos-refresh :is(.neuro-btn,.neuro-field) { min-height: 44px !important; }
    .theme-elos-refresh .elos-month-grid-v90 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .theme-elos-refresh .elos-login-shell { grid-template-columns: minmax(0,1fr) !important; width: 100% !important; max-width: 480px !important; margin-inline: auto !important; }
    .theme-elos-refresh .elos-login-card { padding: 28px 22px !important; width: 100% !important; min-width: 0 !important; }
    .theme-elos-refresh .elos-login-heading h2 { font-size: 25px !important; }
    .theme-elos-refresh .elos-login-brand-panel { padding: 28px !important; }
    .elos-portal-refresh .portal-top-inner { flex-wrap: wrap; gap: 14px; }
    .elos-portal-refresh .nav { flex-wrap: wrap; }
  }
  /* Refinamento cromático: três níveis de ação na mesma família de verdes. */
  .theme-elos-refresh, .elos-portal-refresh {
    --ui-brand: #07765f; --ui-brand-hover: #066551;
    --ui-tint: #e4f5ed; --ui-tint-strong: #cbeadd; --ui-tint-soft: #f1faf6;
    --ui-action-start: #0b8069; --ui-action-end: #08725e; --ui-on-action: #fff;
    --ui-action-shadow: 0 4px 10px rgb(8 114 94 / 18%), 0 1px 2px rgb(8 114 94 / 10%);
    --ui-action-shadow-hover: 0 8px 18px rgb(8 114 94 / 25%), 0 2px 4px rgb(8 114 94 / 10%);
    --ui-soft-shadow: 0 3px 8px rgb(25 92 72 / 7%);
    --ui-ease: cubic-bezier(.2,.75,.25,1);
  }
  .theme-elos-refresh.tema-escuro {
    --ui-brand: #80dfbf; --ui-brand-hover: #a2ebd1;
    --ui-tint: #203d35; --ui-tint-strong: #2c5547; --ui-tint-soft: #1b302b;
    --ui-action-start: #a1ebcf; --ui-action-end: #69cda9; --ui-on-action: #123c2e;
    --ui-action-shadow: 0 4px 12px rgb(0 0 0 / 22%);
    --ui-action-shadow-hover: 0 8px 20px rgb(0 0 0 / 32%);
    --ui-soft-shadow: 0 3px 8px rgb(0 0 0 / 13%);
  }
  .theme-elos-refresh :is(.neuro-btn,.elos-btn-v128,.elos-mini-btn-v90,.table-action-btn,.elos-login-submit),
  .theme-elos-refresh .elos-quick-actions-v90 a,
  .elos-portal-refresh .btn {
    border-radius: 10px !important;
    transition: transform 180ms var(--ui-ease), box-shadow 180ms var(--ui-ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease !important;
  }
  /* Principal: verde intenso, brilho superior discreto e elevação. */
  .theme-elos-refresh :is(.btn-accent-dark,.btn-primary,.modernize-save-action,.elos-mini-btn-v90.is-primary,.elos-btn-v128.is-primary),
  .theme-elos-refresh .elos-quick-actions-v90 a:nth-child(2),
  .theme-elos-refresh .elos-login-submit,
  .elos-portal-refresh .btn {
    background: linear-gradient(145deg,var(--ui-action-start),var(--ui-action-end)) !important;
    border: 1px solid transparent !important; color: var(--ui-on-action) !important;
    box-shadow: var(--ui-action-shadow), inset 0 1px 0 rgb(255 255 255 / 16%) !important;
  }
  .theme-elos-refresh.tema-escuro :is(.btn-accent-dark,.btn-primary,.modernize-save-action,.elos-mini-btn-v90.is-primary,.elos-btn-v128.is-primary),
  .theme-elos-refresh.tema-escuro .elos-quick-actions-v90 a:nth-child(2) { color: var(--ui-on-action) !important; }
  /* Secundária: fundo menta e texto verde; ações de saída continuam neutras. */
  .theme-elos-refresh :is(.btn-accent-soft,.btn-outline-primary,.elos-btn-v128.is-secondary,.elos-btn-v128.is-soft),
  .theme-elos-refresh .elos-quick-actions-v90 a,
  .theme-elos-refresh .elos-mini-btn-v90:not(.is-primary) {
    background: var(--ui-tint) !important; color: var(--ui-brand) !important;
    border: 1px solid var(--ui-tint-strong) !important; box-shadow: var(--ui-soft-shadow) !important;
  }
  .theme-elos-refresh .elos-quick-actions-v90 a:nth-child(2) {
    background: linear-gradient(145deg,var(--ui-action-start),var(--ui-action-end)) !important;
    color: var(--ui-on-action) !important; border-color: transparent !important; box-shadow: var(--ui-action-shadow) !important;
  }
  .theme-elos-refresh .modernize-secondary-action,
  .theme-elos-refresh .modernize-secondary-action.btn-accent-soft {
    background: var(--ui-surface) !important; color: var(--ui-muted) !important;
    border-color: var(--ui-line) !important; box-shadow: none !important;
  }
  /* Alertas e ações destrutivas mantêm significado próprio. */
  .theme-elos-refresh :is(.neuro-btn,.btn,.table-action-btn,.modernize-danger-action):is(.btn-danger-soft,.modernize-danger-action) {
    background: var(--ui-danger-bg) !important; color: var(--ui-danger) !important;
    border-color: transparent !important; box-shadow: none !important;
  }
  .theme-elos-refresh .elos-link-v128 { text-underline-offset: 4px; transition: color 180ms ease !important; }
  .theme-elos-refresh .elos-link-v128:hover { text-decoration: underline !important; color: var(--ui-brand-hover) !important; }
  /* Cor também organiza a leitura dos indicadores e das seções. */
  .theme-elos-refresh .elos-kpi-card-v128.is-v90 {
    background: linear-gradient(155deg,var(--ui-surface) 48%,var(--ui-tint-soft)) !important;
    border-color: var(--ui-tint-strong) !important;
    box-shadow: 0 3px 10px rgb(23 70 54 / 5%) !important;
    transition: transform 200ms var(--ui-ease), box-shadow 200ms var(--ui-ease), border-color 200ms ease !important;
  }
  .theme-elos-refresh .elos-kpi-icon-v128 {
    background: var(--ui-tint) !important; color: var(--ui-brand) !important;
    width: 28px !important; height: 28px !important; border-radius: 9px !important;
  }
  .theme-elos-refresh .elos-kpi-label-v128 { padding-right: 32px !important; }
  .theme-elos-refresh .elos-kpi-card-v128.is-success {
    background: linear-gradient(145deg,var(--ui-tint-soft),var(--ui-tint)) !important;
  }
  .theme-elos-refresh .elos-kpi-card-v128.is-success .elos-kpi-value-v128 { color: var(--ui-brand) !important; }
  .theme-elos-refresh .elos-kpi-card-v128.is-warning .elos-kpi-icon-v128 { color: var(--ui-warning) !important; background: var(--ui-warning-bg) !important; }
  .theme-elos-refresh .elos-kpi-card-v128.is-danger .elos-kpi-icon-v128 { color: var(--ui-danger) !important; background: var(--ui-danger-bg) !important; }
  .theme-elos-refresh .elos-command-hero-panel-v90 {
    background: linear-gradient(120deg,var(--ui-tint-soft),var(--ui-surface)) !important;
    border-color: var(--ui-tint-strong) !important; border-left-color: var(--ui-brand) !important;
    box-shadow: var(--ui-soft-shadow) !important;
  }
  .theme-elos-refresh .elos-section-kicker-v128 { color: var(--ui-brand) !important; }
  .theme-elos-refresh :is(.elos-finance-mini-grid-v90 a,.elos-month-grid-v90 a,.elos-health-grid-v128 a) {
    background: var(--ui-tint-soft) !important; border: 1px solid var(--ui-tint) !important;
    transition: background-color 180ms ease, border-color 180ms ease !important;
  }
  .theme-elos-refresh .elos-finance-mini-grid-v90 a:first-child { background: var(--ui-tint) !important; }
  .theme-elos-refresh .elos-finance-mini-grid-v90 a:first-child strong { color: var(--ui-brand) !important; }
  .theme-elos-refresh .elos-days-strip-v90 a { background: var(--ui-tint-soft) !important; border-color: var(--ui-tint-strong) !important; }
  .theme-elos-refresh .elos-days-strip-v90 a.is-today { background: var(--ui-tint) !important; border-color: var(--ui-brand) !important; }
  .theme-elos-refresh .elos-sidebar .sidebar-link {
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease !important;
  }
  .theme-elos-refresh .elos-sidebar .sidebar-link.active {
    background: linear-gradient(100deg,var(--ui-tint-strong),var(--ui-tint)) !important;
    box-shadow: inset 3px 0 0 var(--ui-brand) !important;
  }
  .theme-elos-refresh :is(.finance-section-nav-v145,.agenda-view-tabs-v114,.agenda-mode-toggle-v114) :is(a.active,a.is-active) {
    background: var(--ui-tint) !important; color: var(--ui-brand) !important; box-shadow: var(--ui-soft-shadow) !important;
  }
  .theme-elos-refresh .neuro-field {
    transition: border-color 180ms ease, box-shadow 180ms ease !important;
  }
  .theme-elos-refresh .neuro-field:focus { box-shadow: 0 0 0 3px var(--ui-tint) !important; }
  @keyframes elos-surface-enter { from { opacity: .35; } to { opacity: 1; } }
  .theme-elos-refresh :is(.elos-home-v128,.care-page-v139) { animation: elos-surface-enter 260ms ease-out; }
  .theme-elos-refresh .modernize-user-menu[open] .modernize-user-dropdown,
  .theme-elos-refresh .modernize-vertical-group[open] > .modernize-vertical-submenu,
  .theme-elos-refresh .neuro-search-results.is-open { animation: elos-surface-enter 180ms ease-out; }
  @media (hover: hover) and (pointer: fine) {
    .theme-elos-refresh :is(.neuro-btn,.elos-btn-v128,.elos-mini-btn-v90,.table-action-btn,.elos-login-submit):not(:disabled):not([aria-disabled="true"]):hover,
    .theme-elos-refresh .elos-quick-actions-v90 a:hover,
    .elos-portal-refresh .btn:not(:disabled):hover {
      transform: translateY(-2px) !important; box-shadow: var(--ui-action-shadow-hover) !important;
    }
    .theme-elos-refresh .elos-kpi-card-v128.is-v90:hover { transform: translateY(-3px) !important; box-shadow: 0 10px 22px rgb(23 70 54 / 11%) !important; border-color: var(--ui-brand) !important; }
    .theme-elos-refresh :is(.elos-finance-mini-grid-v90 a,.elos-month-grid-v90 a,.elos-health-grid-v128 a):hover { background: var(--ui-tint) !important; border-color: var(--ui-tint-strong) !important; }
  }
  .theme-elos-refresh :is(.neuro-btn,.elos-btn-v128,.elos-mini-btn-v90,.table-action-btn,.elos-login-submit):not(:disabled):active,
  .theme-elos-refresh .elos-quick-actions-v90 a:active,
  .elos-portal-refresh .btn:not(:disabled):active {
    transform: translateY(0) !important; box-shadow: var(--ui-soft-shadow) !important; transition-duration: 80ms !important;
  }
  @media (prefers-reduced-motion: reduce) {
    .theme-elos-refresh :is(.neuro-btn,.elos-btn-v128,.elos-mini-btn-v90,.table-action-btn,.elos-login-submit,.elos-kpi-card-v128):hover,
    .theme-elos-refresh .elos-quick-actions-v90 a:hover,
    .elos-portal-refresh .btn:hover { transform: none !important; }
    .theme-elos-refresh :is(.neuro-btn,.elos-btn-v128,.elos-mini-btn-v90,.table-action-btn,.elos-login-submit):not(:disabled):not([aria-disabled="true"]):hover,
    .theme-elos-refresh .elos-kpi-card-v128.is-v90:hover { transform: none !important; }
    .elos-portal-refresh * { animation: none !important; transition: none !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    .theme-elos-refresh *, .theme-elos-refresh *::before, .theme-elos-refresh *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }
  @media print {
    .theme-elos-refresh { --ui-bg: #fff; --ui-text: #000; --ui-muted: #333; --ui-surface: #fff; }
    .theme-elos-refresh :is(.elos-sidebar,.elos-topbar,.modernize-horizontal-sidebar,.elos-mobile-bottom-v131,.elos-skip-link) { display: none !important; }
    .theme-elos-refresh .modernize-page-wrapper { width: 100% !important; margin: 0 !important; }
    .theme-elos-refresh .neuro-page { padding: 0 !important; }
    .theme-elos-refresh :is(.neuro-card,.elos-surface-v128) { box-shadow: none !important; }
  }
}

@layer elos-refresh{.theme-elos-refresh .prontuario-auth{max-width:480px;margin:7vh auto;padding:32px}.prontuario-lock{display:grid;place-items:center;width:48px;height:48px;background:#e0f5ec;color:#08735a;border-radius:14px;font-size:24px;margin-bottom:20px}.theme-elos-refresh .prontuario-auth .neuro-field{margin-top:8px}.tema-escuro .prontuario-subnav{background:#152e27}.tema-escuro .prontuario-subnav a{color:#b7d4c8}.tema-escuro .prontuario-subnav a[aria-current]{background:#25473a;color:#c3f6dd}.tema-escuro .prontuario-table th{background:#15372b;color:#bddaca}.tema-escuro .prontuario-table td{border-color:#244437}.tema-escuro .prontuario-table tbody tr:hover{background:#173c2e}}

/* V196 — patient workspace and current clinical summary */
@layer elos-refresh {
.theme-elos-refresh .rc-header-compact{padding:16px 20px!important;margin-bottom:14px!important;box-shadow:none!important;background:var(--elos-surface,#fff)!important}
.theme-elos-refresh .rc-header-compact .p360-avatar{width:44px!important;height:44px!important;font-size:17px!important}
.theme-elos-refresh .rc-header-compact .p360-identity-eyebrow{display:none!important}
.theme-elos-refresh .rc-header-compact .p360-title{font-size:20px!important}
.theme-elos-refresh .rc-context-two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.theme-elos-refresh .rc-context-line{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px;color:#5d726b;font-size:12px}
.theme-elos-refresh .rc-access{display:inline-flex;gap:6px;align-items:center}
.theme-elos-refresh .rc-overview{display:flex;align-items:center;justify-content:space-between;gap:20px}
.theme-elos-refresh .rc-overview strong,.theme-elos-refresh .rc-overview small{display:block}
.theme-elos-refresh .rc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.theme-elos-refresh .rc-info{min-width:0;padding:12px 0;border-bottom:1px solid #e9efed;overflow-wrap:anywhere}
.theme-elos-refresh .rc-info h4{font-size:13px!important;font-weight:600!important;color:#52675e;margin:0 0 6px!important}
.theme-elos-refresh .rc-info p{font-size:14px!important;line-height:1.6;margin:0 0 6px!important}
.theme-elos-refresh .rc-info .p360-link{font-size:12px}
.theme-elos-refresh .rc-field{display:grid;gap:7px;min-width:0;font-size:13px;margin:12px 0}
.theme-elos-refresh .rc-field :is(input,textarea,select){width:100%;min-width:0}
.theme-elos-refresh .rc-form{display:grid;gap:16px;max-width:1100px;margin-inline:auto}
.theme-elos-refresh .rc-alert{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:10px;margin-top:10px;background:#f0f7f4;color:#28594a;text-decoration:none;font-size:14px}
.theme-elos-refresh .rc-alert span:first-of-type{flex:1}
.theme-elos-refresh .rc-alert.warn{background:#fff6e5;color:#81520d}
.theme-elos-refresh a.rc-alert:hover{background:#e2f0e9}
.theme-elos-refresh .rc-excerpt{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.theme-elos-refresh .rc-pagination{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.theme-elos-refresh .p360-filter-pills{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:6px!important}
.theme-elos-refresh .p360-filter-pill{appearance:none!important;border:1px solid #dbe7e1!important;background:#fff!important;color:#50665c!important;padding:9px 15px!important;min-height:40px!important;border-radius:9px!important;font:inherit!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important;cursor:pointer;transition:background .18s,color .18s}
.theme-elos-refresh .p360-filter-pill.active{background:#dff3e9!important;border-color:#b8ddcd!important;color:#09664e!important}
.theme-elos-refresh .p360-filter-pill:focus-visible,.theme-elos-refresh .rc-alert:focus-visible{outline:2px solid #128367!important;outline-offset:3px!important}
.theme-elos-refresh .rc-overdue{background:#fff9ef!important;border-color:#f1ddb9!important}
.theme-elos-refresh .rc-overdue .p360-kpi-value{color:#895511!important}
.theme-elos-refresh .elos-fin-table-v113 tr.is-overdue-monthly td:first-child{border-left:3px solid #d2973b!important}
.theme-elos-refresh .p360-hero{margin-bottom:16px!important}
.theme-elos-refresh .p360-tabs{margin-bottom:14px!important}
.theme-elos-refresh .prontuario-subnav{margin-bottom:16px!important}
.theme-elos-refresh .p360-badge.neutral{background:#eef2f1!important;color:#53675e!important}
.theme-elos-refresh.tema-escuro .rc-header-compact,.theme-elos-refresh.tema-escuro .p360-filter-pill{background:#142b24!important;color:#d1e6dc!important;border-color:#345046!important}
.theme-elos-refresh.tema-escuro .p360-filter-pill.active{background:#254d3d!important;color:#c7f3de!important}
.theme-elos-refresh.tema-escuro .rc-context-line,.theme-elos-refresh.tema-escuro .rc-info h4{color:#b6ccbf!important}
.theme-elos-refresh.tema-escuro .rc-info{border-color:#2c473b}
.theme-elos-refresh.tema-escuro .rc-alert{background:#203e30;color:#d2eddf}
.theme-elos-refresh.tema-escuro .rc-alert.warn,.theme-elos-refresh.tema-escuro .rc-overdue{background:#3e3320!important;color:#f7d9a2!important;border-color:#675133!important}
.theme-elos-refresh.tema-escuro .rc-overdue .p360-kpi-value{color:#f7d9a2!important}
@media(max-width:700px){.theme-elos-refresh .rc-grid,.theme-elos-refresh .rc-context-two{grid-template-columns:minmax(0,1fr)!important}.theme-elos-refresh .rc-header-compact{padding:14px!important}.theme-elos-refresh .rc-header-compact .p360-title{font-size:18px!important}.theme-elos-refresh .rc-context-line{gap:10px}.theme-elos-refresh .rc-field{margin:5px 0}.theme-elos-refresh .rc-overview{gap:12px}.theme-elos-refresh .prontuario-filters label{min-width:0;max-width:100%}}
@media(prefers-reduced-motion:reduce){.theme-elos-refresh .p360-filter-pill,.theme-elos-refresh .rc-alert{transition:none!important;transform:none!important}}
}
@layer elos-refresh {
.theme-elos-refresh .rc-extra{margin-top:16px;padding-top:14px;border-top:1px solid var(--ui-line)}
.theme-elos-refresh .rc-extra summary{cursor:pointer;font-weight:600;color:var(--ui-text)}
.theme-elos-refresh .rc-info .p360-link{font-weight:500!important;color:var(--ui-brand)!important}
.theme-elos-refresh .rc-info p{margin-bottom:8px!important}
.theme-elos-refresh .p360-card>.p360-actions{display:flex!important;gap:18px!important;flex-wrap:wrap!important}
.theme-elos-refresh.tema-escuro :is(.modernize-body-wrapper,#elosMainContent){background:var(--ui-bg)!important}
.theme-elos-refresh.tema-escuro :is(.p360-kpi-value,.p360-table b,.p360-table strong,.p360-link,.rc-info p,.rc-excerpt){color:var(--ui-text)!important}
.theme-elos-refresh.tema-escuro .p360-btn.soft{background:#203d35!important;color:#c7f3de!important;border-color:#345046!important;box-shadow:none!important}
.theme-elos-refresh.tema-escuro .rc-overdue .p360-kpi-value{color:#f7d9a2!important}
}
@layer elos-refresh {
.tema-escuro .prontuario-subnav{background:#152e27!important}
.tema-escuro .prontuario-subnav a{color:#b7d4c8!important}
.tema-escuro .prontuario-subnav a[aria-current],.tema-escuro .prontuario-subnav a:hover{background:#25473a!important;color:#c3f6dd!important}
.tema-escuro .prontuario-table th{background:#15372b!important;color:#bddaca!important}
.tema-escuro .prontuario-table td{border-color:#244437!important}
.tema-escuro .prontuario-table tbody tr:hover{background:#173c2e!important}
}
/* V197 — níveis de navegação distintos: sistema, paciente e seção. */
@layer elos-refresh {
.theme-elos-refresh .modernize-horizontal-sidebar,.theme-elos-refresh .elos-sidebar,.theme-elos-refresh .elos-sidebar-brand,.theme-elos-refresh .elos-sidebar-footer{background:#17364b!important;border-color:#305368!important}
.theme-elos-refresh .modernize-horizontal-nav>.modernize-horizontal-item>.sidebar-link,.theme-elos-refresh .modernize-horizontal-nav>.modernize-horizontal-item>.modernize-horizontal-group>summary.sidebar-link,.theme-elos-refresh .elos-sidebar .sidebar-link,.theme-elos-refresh .elos-sidebar .elos-brand-copy strong{color:#edf5fc!important;background:transparent!important}
.theme-elos-refresh .modernize-horizontal-nav>.modernize-horizontal-item>.sidebar-link.active,.theme-elos-refresh .modernize-horizontal-nav>.modernize-horizontal-item>.modernize-horizontal-group>summary.sidebar-link.active,.theme-elos-refresh .elos-sidebar .sidebar-link.active{background:#315a75!important;color:#fff!important;box-shadow:inset 3px 0 #96caff!important}
.theme-elos-refresh .modernize-horizontal-nav>.modernize-horizontal-item>.sidebar-link:hover,.theme-elos-refresh .modernize-horizontal-nav>.modernize-horizontal-item>.modernize-horizontal-group>summary.sidebar-link:hover,.theme-elos-refresh .elos-sidebar .sidebar-link:hover{background:#294d66!important;color:#fff!important}
.theme-elos-refresh .elos-sidebar .elos-nav-label,.theme-elos-refresh .elos-sidebar .elos-brand-copy small{color:#bbcfde!important}
.theme-elos-refresh .p360-tabs{background:#fff!important;padding:0 10px!important;gap:8px!important;border-radius:10px!important;margin-bottom:8px!important}
.theme-elos-refresh .p360-tabs .p360-tab{background:transparent!important;color:#526378!important;border-radius:0!important;border:0!important;border-bottom:3px solid transparent!important;padding:13px 12px!important;box-shadow:none!important}
.theme-elos-refresh .p360-tabs .p360-tab.active{color:#174f8c!important;border-bottom-color:#286cba!important;font-weight:750!important}
.theme-elos-refresh .prontuario-subnav{background:#edf3fc!important;border:1px solid #dce6f5!important;border-radius:10px!important;gap:4px!important;padding:5px!important;margin-bottom:18px!important}
.theme-elos-refresh .prontuario-subnav a{color:#3f536f!important;padding:9px 12px!important;font-size:13px!important}
.theme-elos-refresh .prontuario-subnav a[aria-current],.theme-elos-refresh .prontuario-subnav a:hover{background:#d8e8fc!important;color:#174f8c!important;box-shadow:none!important}
.theme-elos-refresh .p360-hero{margin-bottom:18px!important;gap:12px!important}
.theme-elos-refresh .p360-hero .neuro-section-label{display:none!important}
.theme-elos-refresh .p360-card{padding:20px!important}
.theme-elos-refresh .rc-info{padding:12px 0!important}
.theme-elos-refresh .rc-grid{gap:14px!important}
.theme-elos-refresh .p360-patient-header.rc-header-compact{padding:16px 20px!important}
.dc-count{display:block;margin-top:5px;font-size:12px;float:right}
.dc-record{padding:16px 0;border-top:1px solid #dce4ef}
.dc-record-head{display:flex;justify-content:space-between;gap:18px;align-items:center}
.dc-record h4{margin:4px 0;font-size:16px}.dc-record p{margin:5px 0}.dc-record-head>div{min-width:0}.dc-record h4{overflow-wrap:anywhere}
.dc-publish{border:1px solid #d6e3f3;border-radius:12px;padding:18px;background:#f3f7fd;display:grid;gap:12px}.dc-publish label{display:flex;gap:9px;align-items:center}.dc-publish small{color:#526378}.dc-publish legend{font-weight:700;padding:0 6px}
.dc-export{margin:0 0 18px}.dc-export>summary{display:inline-flex!important;cursor:pointer;list-style:none}.dc-export>summary::after{content:' ▾';padding-left:8px}.dc-export[open]>summary::after{content:' ▴'}
.dc-plan-note{background:#fff5e2;color:#725015;padding:10px;border-radius:8px;font-size:13px}
.theme-elos-refresh .p360-table [data-v113-baixa],.theme-elos-refresh button.p360-btn.soft[data-v113-baixa]{background:#edf3fa!important;color:#25537d!important;border:1px solid #d7e4f1!important;box-shadow:none!important;transform:none!important}
.theme-elos-refresh :is(.p360-tabs,.prontuario-subnav,.dc-record,.dc-publish,.dc-export) :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #578bd2!important;outline-offset:3px!important}
.tema-escuro.theme-elos-refresh .p360-tabs{background:#182632!important}
.tema-escuro.theme-elos-refresh .p360-tabs .p360-tab{color:#c1cfde!important}.tema-escuro.theme-elos-refresh .p360-tabs .p360-tab.active{color:#aed5ff!important;border-bottom-color:#86bdff!important}
.tema-escuro.theme-elos-refresh .prontuario-subnav{background:#203249!important;border-color:#3c506c!important}
.tema-escuro.theme-elos-refresh .prontuario-subnav a{color:#cad9ed!important}.tema-escuro.theme-elos-refresh .prontuario-subnav a[aria-current],.tema-escuro.theme-elos-refresh .prontuario-subnav a:hover{background:#345474!important;color:#edf6ff!important}
.tema-escuro .dc-record{border-color:#3c506c}.tema-escuro .dc-publish{background:#203249;border-color:#3c506c}.tema-escuro .dc-publish small{color:#cad9ed}.tema-escuro .dc-plan-note{background:#453921;color:#ffe2a8}
.tema-escuro.theme-elos-refresh button.p360-btn.soft[data-v113-baixa]{background:#243e57!important;color:#d1e7ff!important;border-color:#42617e!important}
@media(max-width:767px){.dc-record-head{flex-direction:column;align-items:stretch}.dc-count{float:none}.theme-elos-refresh .p360-card{padding:16px!important}.dc-publish{padding:14px}.theme-elos-refresh .prontuario-subnav a{padding:10px!important}.theme-elos-refresh .p360-tabs .p360-tab{padding:12px 10px!important}}
}
@layer elos-refresh {
.theme-elos-refresh .modernize-horizontal-sidebar .sidebar-nav,.theme-elos-refresh .modernize-horizontal-sidebar .modernize-horizontal-nav{background:transparent!important;border-color:#305368!important}
.theme-elos-refresh .p360-hero{min-height:0!important;padding:0!important}
.theme-elos-refresh .p360-patient-header.rc-header-compact{padding-block:12px!important}
.theme-elos-refresh .rc-header-compact .rc-context-line{margin-top:10px!important;padding-top:0!important}
}

@layer elos-refresh {
.theme-elos-refresh .dc-publish legend{font-size:15px!important;font-weight:700!important;width:auto!important;margin:0!important}
.theme-elos-refresh .dc-publish{background:#f3f7fd!important;padding:16px!important}
.tema-escuro.theme-elos-refresh .dc-publish{background:#203249!important}
.theme-elos-refresh .neuro-alert.danger{background:#fff1f1!important;color:#9b2525!important;border:1px solid #efc6c6!important}
.tema-escuro.theme-elos-refresh .neuro-alert.danger{background:#44282c!important;color:#ffd7dc!important;border-color:#804d54!important}
}
@layer elos-refresh {
.theme-elos-refresh .elos-sidebar .elos-brand-copy strong span{color:#edf5fc!important}
.theme-elos-refresh .elos-sidebar .elos-brand-copy strong em{color:#72dec5!important}
}

/* V241.1 — correção pontual do submenu vertical e primeiro estado de clínica vazia. */
@layer elos-refresh {
.theme-elos-refresh .elos-sidebar,.theme-elos-refresh .elos-sidebar .sidebar-nav,.theme-elos-refresh .elos-sidebar .modernize-vertical-nav{overflow-x:hidden!important}
.theme-elos-refresh .elos-sidebar .modernize-vertical-group,.theme-elos-refresh .elos-sidebar .modernize-vertical-submenu{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.theme-elos-refresh .elos-sidebar .modernize-vertical-submenu{position:static!important;inset:auto!important;transform:none!important;width:calc(100% - 20px)!important;margin:4px 0 7px 20px!important;padding:3px 0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
.theme-elos-refresh .elos-sidebar .modernize-vertical-submenu>li,.theme-elos-refresh .elos-sidebar .modernize-vertical-submenu .sidebar-item{width:100%!important;min-width:0!important}
.theme-elos-refresh .elos-sidebar .modernize-vertical-submenu .sidebar-link{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;background:transparent!important;color:#c8d9e5!important;border-radius:10px!important;padding:9px 10px!important;white-space:normal!important}
.theme-elos-refresh .elos-sidebar .modernize-vertical-submenu .sidebar-link:hover,.theme-elos-refresh .elos-sidebar .modernize-vertical-submenu .sidebar-link.active{background:rgba(255,255,255,.08)!important;color:#fff!important}
.theme-elos-refresh .elos-first-steps-v2411{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:0 0 22px;padding:20px 22px;border:1px solid #cfe9e1;border-radius:18px;background:linear-gradient(135deg,#f4fcf9,#f7fbff);box-shadow:0 8px 24px rgba(27,67,54,.05)}
.theme-elos-refresh .elos-first-steps-v2411 h3{margin:4px 0 6px;font-size:18px;color:#173a31}.theme-elos-refresh .elos-first-steps-v2411 p{margin:0;color:#64796f;font-size:13px}.theme-elos-refresh .elos-first-steps-v2411 .steps{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.theme-elos-refresh .elos-first-steps-v2411 .steps a{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 12px;border:1px solid #d2e7df;border-radius:10px;background:#fff;color:#275d4e;font-size:12px;font-weight:700}.theme-elos-refresh .elos-first-steps-v2411 .steps a.primary{background:#138b70;border-color:#138b70;color:#fff}
@media(max-width:767px){.theme-elos-refresh .elos-first-steps-v2411{align-items:stretch;flex-direction:column}.theme-elos-refresh .elos-first-steps-v2411 .steps{justify-content:stretch}.theme-elos-refresh .elos-first-steps-v2411 .steps a{flex:1 1 100%;justify-content:center}}
}
