/* EvoluiQ 6.9.281 — somente navegação, preservando a paleta do 6.9.279. */
.eq280-overlay{position:fixed;inset:0;z-index:100050;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(7,30,29,.62);backdrop-filter:blur(4px)}
.eq280-overlay.hidden{display:none!important}
.eq280-action-card{width:min(560px,100%);max-height:94dvh;overflow-y:auto;background:#fff;color:#173d34;border-radius:18px;box-shadow:0 24px 72px rgba(0,28,20,.28)}
.eq280-action-head{padding:22px 24px;background:#075b49;color:#fff;display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.eq280-action-head small{display:block;letter-spacing:.08em;color:#bce6d8;font-size:11px;font-weight:750}
.eq280-action-head h2{margin:7px 0 0;color:#fff;font-size:21px}
.eq280-action-close{width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.35)!important;color:#fff!important;border-radius:10px!important;font-size:24px!important}
.eq280-action-body{padding:22px 24px 24px}.eq280-action-label{color:#59766e;font-size:13px;margin:0 0 15px;font-weight:700}
.eq280-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.eq280-action-choice{display:flex!important;flex-direction:column!important;gap:8px!important;align-items:center!important;justify-content:center!important;min-height:160px!important;padding:18px 12px!important;border:1px solid #d4e7df!important;border-radius:14px!important;background:#fff!important;color:#123f33!important;text-align:center!important;box-shadow:none!important}
.eq280-action-choice:first-child{border-color:#6bbfa2!important;background:#f2fbf7!important}
.eq280-action-choice:hover:not(:disabled){border-color:#0b8d67!important;background:#e9f8f1!important}
.eq280-action-choice:disabled{opacity:.45;cursor:not-allowed!important}
.eq280-action-icon{display:flex;width:48px;height:48px;align-items:center;justify-content:center;background:#e1f5ec;color:#087954;border-radius:12px;font-size:28px}
.eq280-action-choice strong{font-size:15px}.eq280-action-choice small{font-size:12px;line-height:1.35;color:#5a786e;font-weight:450}
.eq280-action-hint{font-size:12px;color:#657970;line-height:1.5;margin:16px 0 0}
body.eq280-patient-focus>.stage1-header{display:none!important}
body.eq280-patient-focus main{width:100%!important;max-width:100%!important;margin:0 auto!important;padding:12px clamp(10px,2.2vw,38px)!important}
body.eq280-patient-focus #clinicalGrid.patient-open{display:block!important;max-width:1500px!important;margin:0 auto!important;grid-template-columns:minmax(0,1fr)!important}
body.eq280-patient-focus #patientWorkspace{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;border-radius:15px!important}
body.eq280-patient-focus #patientWorkspace .patient-topbar{position:sticky;top:0;z-index:80;background:#fff;gap:10px;min-height:58px}
body.eq280-patient-focus #patientWorkspace .patient-back{margin:0!important}
.eq280-top-status{margin-left:auto;padding:6px 11px;background:#eaf7f0;color:#137256;border-radius:20px;font-weight:750;font-size:12px}
.eq280-mini-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 0;padding-top:12px;border-top:1px solid #dbe8e3}
.eq280-mini-actions button{width:auto!important;min-width:0!important;font-size:12px!important;padding:9px 12px!important;background:#f3faf6!important;color:#096748!important;border:1px solid #badfd0!important;border-radius:9px!important;box-shadow:none!important}
.eq280-mini-actions button:disabled{opacity:.52!important}
/* Corrige o destaque de Administração recortado sem modificar o cabeçalho aprovado. */
.stage1-header .hero-nav-real,.stage1-header .hero-nav-real.eq192-admin-nav{min-width:0!important;box-sizing:border-box!important;overflow:visible!important}
.stage1-header .hero-nav-btn[data-hnav="administracao"]{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;outline-offset:-3px!important}
.stage1-header .hero-nav-btn[data-hnav="administracao"].active{border:1px solid rgba(255,255,255,.32)!important;border-radius:12px!important;box-shadow:none!important;clip-path:none!important}
.eq280-version-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;max-width:1500px;margin:22px auto 0;padding:10px 22px 16px;color:#7c958f;font-size:10px;line-height:1.4;font-weight:450}
@media(max-width:600px){.eq280-action-grid{grid-template-columns:1fr 1fr}.eq280-action-body{padding:17px}.eq280-action-choice{min-height:145px!important}.eq280-action-head{padding:18px}.eq280-top-status{font-size:10px}.eq280-version-footer{padding-inline:13px}}
@media print{.eq280-overlay,.eq280-version-footer,.eq280-top-status,.eq280-mini-actions{display:none!important}}
.eq280-recovery{padding:13px 15px;margin:8px 0 17px;background:#edf9f3;color:#145a44;border:1px solid #a9d9c3;border-radius:12px;font-size:13px;font-weight:650}
.eq280-recovery-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:11px}
.eq280-recovery-actions button{width:auto!important;padding:8px 12px!important;font-size:12px!important}

/* v6.9.281 — contraste do diálogo protegido contra estilos gerais do prontuário. */
#eq280PatientActions .eq280-action-card{color:#173d34!important;background:#fff!important}
#eq280PatientActions .eq280-action-head h2{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
#eq280PatientActions .eq280-action-body .eq280-action-label{color:#335c53!important;opacity:1!important;-webkit-text-fill-color:#335c53!important}
#eq280PatientActions .eq280-action-choice:not(:disabled){opacity:1!important}
#eq280PatientActions .eq280-action-choice:disabled{opacity:.7!important}
#eq280PatientActions .eq280-action-choice strong,
#eq280PatientActions .eq280-action-choice span:not(.eq280-action-icon){color:#133d33!important;-webkit-text-fill-color:#133d33!important;opacity:1!important;font-weight:800!important;font-size:16px!important;line-height:1.25!important}
#eq280PatientActions .eq280-action-choice small{color:#46695e!important;-webkit-text-fill-color:#46695e!important;opacity:1!important;font-weight:550!important;font-size:12px!important;line-height:1.45!important}
#eq280PatientActions .eq280-action-icon{color:#06724d!important;-webkit-text-fill-color:#06724d!important;opacity:1!important}
#eq280PatientActions .eq280-action-hint{color:#4a675d!important;-webkit-text-fill-color:#4a675d!important;opacity:1!important}
/* iPad horizontal: quatro menus recebem espaço suficiente, sem cortar Administração. */
@media (min-width:961px) and (max-width:1400px){
 .stage1-header{grid-template-columns:236px minmax(0,1fr) 250px!important}
 .stage1-brand{width:236px!important;min-width:0!important;flex-basis:auto!important;padding-left:12px!important}
 .stage1-brand img{width:215px!important;max-width:100%!important}
 .stage1-header .hero-nav-real{min-width:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;padding:0 3px!important;overflow:visible!important}
 .stage1-header .hero-nav-btn{min-width:0!important;padding:0 4px!important;gap:5px!important;overflow:visible!important;font-size:12.5px!important;white-space:nowrap!important}
 .stage1-header .hero-nav-btn span:last-child{font-size:12.5px!important;letter-spacing:-.1px!important;white-space:nowrap!important}
 .stage1-header .hero-nav-btn .hicon{width:19px!important;height:19px!important;flex:0 0 19px!important}
 .stage1-header .hero-nav-btn .hicon svg{width:19px!important;height:19px!important}
 .v6917-account{width:250px!important;min-width:0!important;grid-template-columns:22px 1px 42px minmax(0,1fr) 14px!important;column-gap:6px!important;padding-right:6px!important}
 .v6917-avatar{width:42px!important;height:42px!important}
}
/* Tablets mais estreitos: navegação em linha própria sem sobreposição. */
@media (min-width:761px) and (max-width:960px){
 .stage1-header{grid-template-columns:minmax(0,1fr) 260px!important;grid-template-rows:82px 58px!important;min-height:140px!important}
 .stage1-brand{grid-column:1!important;grid-row:1!important;width:250px!important;height:80px!important}
 .stage1-brand img{width:230px!important}
 .v6917-account{grid-column:2!important;grid-row:1!important;width:260px!important;height:80px!important}
 .stage1-header .hero-nav-real{grid-column:1/-1!important;grid-row:2!important;width:100%!important;height:58px!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;padding:0 12px!important;overflow:visible!important}
 .stage1-header .hero-nav-btn{height:50px!important;min-height:50px!important;padding:0 6px!important;gap:6px!important;overflow:visible!important}
 .stage1-header .hero-nav-btn span:last-child{font-size:13px!important;white-space:nowrap!important}
}
/* Substitui a antiga regra da v6.9.280 que impunha overflow:hidden no botão. */
.stage1-header .hero-nav-btn[data-hnav="administracao"]{overflow:visible!important;max-width:none!important;min-width:0!important}
.stage1-header .hero-nav-btn[data-hnav="administracao"] span:last-child{overflow:visible!important;text-overflow:clip!important}

/* v7.0.3: opções de prescrição semanticamente independentes e legíveis no Windows. */
.rx-grid .rx-quantity-field{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:0}
.rx-grid .rx-quantity-field>label:first-child{display:block;min-width:0}
.rx-grid .rx-quantity-field #rxQuantity{width:100%;min-width:0;box-sizing:border-box}
.rx-grid .rx-quantity-field>label.rx-continuous{display:inline-flex!important;align-items:center!important;align-self:flex-start;gap:8px!important;min-height:28px;cursor:pointer;white-space:nowrap;max-width:100%;font-size:13px!important;color:#075d4e!important;opacity:1!important;visibility:visible!important;-webkit-text-fill-color:#075d4e!important}
.rx-grid .rx-quantity-field>label.rx-continuous input[type=checkbox]{display:inline-block!important;flex:0 0 17px;width:17px!important;height:17px!important;margin:0!important;accent-color:#07866c}
.rx-grid .rx-quantity-field>label.rx-continuous span{display:inline!important;color:inherit!important;-webkit-text-fill-color:inherit!important;visibility:visible!important;opacity:1!important}
/* Exibe um sinal discreto enquanto o prontuário é carregado, sem manter o modal aberto. */
#eq703PatientProgress{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:100052;background:#075b49;color:#fff;padding:10px 17px;border-radius:12px;font-size:13px;font-weight:650;box-shadow:0 8px 28px rgba(0,42,28,.2);pointer-events:none;max-width:calc(100vw - 32px);text-align:center}
@media print{#eq703PatientProgress{display:none!important}}
