#mf-prescricoes *{box-sizing:border-box}
#mf-prescricoes{
  --teal:#08a9b8;--teal-dark:#0791a0;--teal-darker:#04708a;--teal-light:#e0f7fa;--teal-mid:#b2ebf2;
  --navy:#162033;--navy-mid:#243047;--muted:#657084;--border:#e2eaf4;--bg:#f7f9fc;--card:#fff;
  --red:#dc2626;--red-dark:#b91c1c;--red-bg:#fef2f1;--green:#10b981;--green-dark:#059669;--green-bg:#ecfdf5;
  --orange:#f59e0b;--orange-dark:#d97706;--orange-bg:#fffbeb;--blue:#3b82f6;--blue-dark:#2563eb;--blue-bg:#eff6ff;
  --purple:#8b5cf6;--purple-dark:#6d28d9;--purple-bg:#f5f3ff;
  --mono:'DM Mono','Courier New',monospace;--font:'Plus Jakarta Sans',system-ui,sans-serif;--font-head:'Sora',system-ui,sans-serif;
  --accent:var(--blue);--accent-dark:var(--blue-dark);--accent-light:var(--blue-bg);--accent-border:#bfdbfe;
  max-width:1240px;margin:30px auto;padding:0 16px 32px;font-family:var(--font);color:var(--navy);line-height:1.55;
}
#mf-prescricoes[data-population="pediatric"]{--accent:var(--teal);--accent-dark:var(--teal-darker);--accent-light:var(--teal-light);--accent-border:var(--teal-mid)}
#mf-prescricoes[data-population="breastfeeding"]{--accent:var(--green);--accent-dark:var(--green-dark);--accent-light:var(--green-bg);--accent-border:#bbf7d0}
#mf-prescricoes[data-population="pregnant"]{--accent:var(--purple);--accent-dark:var(--purple-dark);--accent-light:var(--purple-bg);--accent-border:#ddd6fe}
#mf-prescricoes button,#mf-prescricoes input,#mf-prescricoes select,#mf-prescricoes textarea{font:inherit}
#mf-prescricoes button{cursor:pointer}
#mf-prescricoes a{text-decoration:none;color:inherit}

/* HERO — alinhado ao Guia de Pediatria */
#mf-prescricoes .mf-rx-hero{background:linear-gradient(135deg,#0f2540,#0d1b2e);border-radius:24px;padding:34px 28px;margin-bottom:18px;color:#fff;overflow:hidden;position:relative}
#mf-prescricoes .mf-rx-hero::before{content:'';position:absolute;right:-80px;top:-90px;width:310px;height:310px;border-radius:50%;background:radial-gradient(circle,rgba(8,169,184,.32),transparent 70%)}
#mf-prescricoes .mf-rx-hero-content{position:relative;z-index:1;max-width:820px}
#mf-prescricoes .mf-rx-block-label{display:inline-flex;align-items:center;gap:8px;background:rgba(8,169,184,.12);border:1px solid rgba(178,235,242,.25);color:#d6fbff;padding:6px 13px;border-radius:8px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:14px}
#mf-prescricoes .mf-rx-block-label .dot,#mf-prescricoes .mf-rx-patient-title .dot{width:6px;height:6px;border-radius:50%;background:var(--teal);display:inline-block}
#mf-prescricoes .mf-rx-hero h1{font-family:var(--font-head);font-size:clamp(30px,5vw,48px);line-height:1.06;font-weight:900;color:#fff;letter-spacing:-.04em;margin:0 0 10px}
#mf-prescricoes .mf-rx-hero p{font-size:15.5px;color:rgba(255,255,255,.78);max-width:760px;margin:0 0 20px}
#mf-prescricoes .mf-rx-hero-pills{display:flex;flex-wrap:wrap;gap:8px}
#mf-prescricoes .mf-rx-hero-pills span{display:inline-flex;align-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;color:#fff}

/* USO PROFISSIONAL */
#mf-prescricoes .mf-rx-professional-note{display:flex;align-items:flex-start;gap:11px;margin:0 0 18px;padding:12px 15px;background:var(--orange-bg);border:1px solid #fde68a;border-radius:13px;color:#7a5a10;font-size:12.5px;font-weight:600;line-height:1.5}
#mf-prescricoes .mf-rx-professional-note strong{font-weight:900;color:var(--orange-dark);white-space:nowrap}
#mf-prescricoes .mf-rx-note-icon{width:28px;height:28px;border-radius:9px;background:#fff4c8;border:1px solid #fde68a;display:flex;align-items:center;justify-content:center;color:var(--orange-dark);font-weight:900;flex:0 0 auto}

/* LAYOUT */
#mf-prescricoes .mf-rx-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
#mf-prescricoes .mf-rx-sidebar{position:sticky;top:18px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:16px;box-shadow:0 10px 40px rgba(22,32,51,.07);max-height:calc(100vh - 36px);overflow:auto;scrollbar-width:thin}
#mf-prescricoes .mf-rx-side-title{font-family:var(--font-head);font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:2px 2px 9px}
#mf-prescricoes .mf-rx-search-wrap{display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--border);border-radius:11px;padding:0 11px;margin-bottom:15px;transition:.15s}
#mf-prescricoes .mf-rx-search-wrap:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px rgba(8,169,184,.1)}
#mf-prescricoes .mf-rx-search-icon{font-size:15px;color:var(--muted)}
#mf-prescricoes .mf-rx-search{width:100%;padding:10px 0;border:0;outline:0;background:transparent;color:var(--navy);font-size:13px;font-weight:650}
#mf-prescricoes .mf-rx-tree-category{margin:5px 0}
#mf-prescricoes .mf-rx-tree-category>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:9px 8px;border-radius:10px;color:var(--navy);font-size:13px;font-weight:900;cursor:pointer}
#mf-prescricoes .mf-rx-tree-category>summary::-webkit-details-marker{display:none}
#mf-prescricoes .mf-rx-tree-category>summary::before{content:'›';display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;border-radius:6px;background:var(--teal-light);color:var(--teal-darker);transition:.15s}
#mf-prescricoes .mf-rx-tree-category[open]>summary::before{transform:rotate(90deg)}
#mf-prescricoes .mf-rx-folder-label{margin:7px 8px 5px 26px;font-size:9.5px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
#mf-prescricoes .mf-rx-disease-btn{width:calc(100% - 22px);margin:2px 0 2px 22px;padding:8px 10px;border:0;border-radius:9px;background:transparent;text-align:left;color:#4b5a6d;font-size:12.5px;font-weight:650;line-height:1.35;transition:.15s}
#mf-prescricoes .mf-rx-disease-btn:hover{background:var(--teal-light);color:var(--teal-darker)}
#mf-prescricoes .mf-rx-disease-btn.is-active{background:var(--accent-light);color:var(--accent-dark);font-weight:900}
#mf-prescricoes .mf-rx-search-result{width:100%;padding:10px 11px;margin-bottom:7px;border:1px solid var(--border);border-radius:10px;background:#fff;text-align:left;color:var(--navy)}
#mf-prescricoes .mf-rx-search-result:hover{border-color:var(--teal-mid);background:var(--teal-light)}
#mf-prescricoes .mf-rx-search-result strong{display:block;font-size:12.5px}
#mf-prescricoes .mf-rx-search-result span{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
#mf-prescricoes .mf-rx-side-empty{padding:20px 8px;text-align:center;color:var(--muted);font-size:12px}
#mf-prescricoes .mf-rx-main{min-width:0}
#mf-prescricoes .mf-rx-breadcrumbs{display:flex;align-items:center;gap:8px;margin:2px 0 14px;font-size:12px;font-weight:600;color:#7b8794;flex-wrap:wrap}
#mf-prescricoes .mf-rx-breadcrumbs button{border:0;background:transparent;padding:0;color:#7b8794;font-weight:600}
#mf-prescricoes .mf-rx-breadcrumbs button:hover{color:var(--teal-dark)}
#mf-prescricoes .mf-rx-breadcrumbs .current{color:#0f172a;font-weight:800}

/* WELCOME / STATES */
#mf-prescricoes .mf-rx-welcome,#mf-prescricoes .mf-rx-loading,#mf-prescricoes .mf-rx-error,#mf-prescricoes .mf-rx-empty{background:#fff;border:1px solid var(--border);border-radius:18px;padding:32px;box-shadow:0 10px 40px rgba(22,32,51,.06)}
#mf-prescricoes .mf-rx-welcome-icon{width:48px;height:48px;border-radius:13px;background:linear-gradient(135deg,var(--teal),var(--teal-darker));color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-head);font-weight:900;margin-bottom:14px;box-shadow:0 8px 20px rgba(8,169,184,.25)}
#mf-prescricoes .mf-rx-welcome h2{font-family:var(--font-head);font-size:20px;margin:0 0 6px}
#mf-prescricoes .mf-rx-welcome p{margin:0;color:var(--muted);font-size:13.5px;max-width:680px}
#mf-prescricoes .mf-rx-loading,#mf-prescricoes .mf-rx-error,#mf-prescricoes .mf-rx-empty{text-align:center;color:var(--muted);font-size:13px}
#mf-prescricoes .mf-rx-error{color:var(--red-dark);background:var(--red-bg)}

/* DOENÇA */
#mf-prescricoes .mf-rx-disease-shell{background:#fff;border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:0 10px 40px rgba(22,32,51,.08);border-top:4px solid var(--accent)}
#mf-prescricoes .mf-rx-disease-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px;background:#fff;border-bottom:1px solid var(--border)}
#mf-prescricoes .mf-rx-disease-kicker{display:inline-block;color:var(--accent-dark);font-size:9.5px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;margin-bottom:4px}
#mf-prescricoes .mf-rx-disease-head h2{font-family:var(--font-head);font-size:21px;font-weight:900;letter-spacing:-.025em;margin:0 0 5px;color:var(--navy)}
#mf-prescricoes .mf-rx-disease-head p{margin:0;color:var(--muted);font-size:12.5px;max-width:720px}
#mf-prescricoes .mf-rx-review-date{font-size:9.5px;font-weight:800;color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:999px;padding:5px 8px;white-space:nowrap}
#mf-prescricoes .mf-rx-global-alert{margin:14px 18px 0;padding:11px 14px;border:1px solid #fde68a;border-radius:11px;background:var(--orange-bg);color:#7a5a10;font-size:11.5px;font-weight:650}
#mf-prescricoes .mf-rx-global-alert ul,#mf-prescricoes .mf-rx-step-alert ul{margin:0;padding-left:17px}
#mf-prescricoes .mf-rx-global-alert li+li,#mf-prescricoes .mf-rx-step-alert li+li{margin-top:4px}

/* TRATAMENTOS / ACCORDION */
#mf-prescricoes .mf-rx-treatment-list{padding:16px 18px 20px;background:var(--bg)}
#mf-prescricoes .mf-rx-treatment{border:1px solid var(--border);border-radius:14px;background:#fff;overflow:hidden;margin-bottom:10px;box-shadow:0 4px 15px rgba(22,32,51,.035)}
#mf-prescricoes .mf-rx-treatment:last-child{margin-bottom:0}
#mf-prescricoes .mf-rx-treatment-toggle{width:100%;display:flex;align-items:center;gap:12px;padding:14px 15px;border:0;background:#fff;text-align:left;color:var(--navy)}
#mf-prescricoes .mf-rx-treatment-toggle:hover{background:#fbfcfe}
#mf-prescricoes .mf-rx-treatment.is-open>.mf-rx-treatment-toggle{background:linear-gradient(90deg,var(--accent-light),#fff 55%);border-bottom:1px solid var(--border)}
#mf-prescricoes .mf-rx-treatment-index{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--accent-light);color:var(--accent-dark);font-family:var(--font-head);font-size:11px;font-weight:900;flex:0 0 auto}
#mf-prescricoes .mf-rx-treatment-copy{flex:1;min-width:0}
#mf-prescricoes .mf-rx-treatment-copy strong{display:block;font-family:var(--font-head);font-size:14px;font-weight:900;color:var(--navy)}
#mf-prescricoes .mf-rx-treatment-copy small{display:block;margin-top:2px;color:var(--muted);font-size:10.8px;font-weight:600;line-height:1.4}
#mf-prescricoes .mf-rx-chevron{font-size:18px;color:var(--muted);transition:.2s;transform:rotate(-90deg)}
#mf-prescricoes .mf-rx-treatment.is-open .mf-rx-chevron{transform:rotate(0)}
#mf-prescricoes .mf-rx-treatment-body{display:none;padding:14px}
#mf-prescricoes .mf-rx-treatment.is-open .mf-rx-treatment-body{display:block;animation:mfRxFade .2s ease}
@keyframes mfRxFade{from{opacity:.5;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* TOOLBAR + POPULAÇÕES */
#mf-prescricoes .mf-rx-clinical-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
#mf-prescricoes .mf-rx-pop-group,#mf-prescricoes .mf-rx-action-group{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#mf-prescricoes .mf-rx-pop-btn,#mf-prescricoes .mf-rx-tool-btn{border-radius:9px;padding:7px 10px;font-size:10.5px;font-weight:900;transition:.15s;white-space:nowrap}
#mf-prescricoes .mf-rx-pop-btn{border:1px solid var(--border);background:#fff;color:var(--muted)}
#mf-prescricoes .mf-rx-pop-btn.pop-adult{border-color:#bfdbfe;color:var(--blue-dark);background:var(--blue-bg)}
#mf-prescricoes .mf-rx-pop-btn.pop-pediatric{border-color:var(--teal-mid);color:var(--teal-darker);background:var(--teal-light)}
#mf-prescricoes .mf-rx-pop-btn.pop-breastfeeding{border-color:#bbf7d0;color:var(--green-dark);background:var(--green-bg)}
#mf-prescricoes .mf-rx-pop-btn.pop-pregnant{border-color:#ddd6fe;color:var(--purple-dark);background:var(--purple-bg)}
#mf-prescricoes .mf-rx-pop-btn.is-active{color:#fff;border-color:transparent;box-shadow:0 4px 12px rgba(22,32,51,.12)}
#mf-prescricoes .mf-rx-pop-btn.pop-adult.is-active{background:linear-gradient(135deg,var(--blue),var(--blue-dark))}
#mf-prescricoes .mf-rx-pop-btn.pop-pediatric.is-active{background:linear-gradient(135deg,var(--teal),var(--teal-darker))}
#mf-prescricoes .mf-rx-pop-btn.pop-breastfeeding.is-active{background:linear-gradient(135deg,var(--green),var(--green-dark))}
#mf-prescricoes .mf-rx-pop-btn.pop-pregnant.is-active{background:linear-gradient(135deg,var(--purple),var(--purple-dark))}
#mf-prescricoes .mf-rx-tool-btn{border:1.5px solid var(--border);background:#fff;color:var(--navy)}
#mf-prescricoes .mf-rx-tool-btn:hover:not(:disabled){border-color:var(--accent-border);background:var(--accent-light);color:var(--accent-dark)}
#mf-prescricoes .mf-rx-tool-btn.is-primary{background:linear-gradient(135deg,var(--accent),var(--accent-dark));border-color:transparent;color:#fff;box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 25%,transparent)}
#mf-prescricoes .mf-rx-tool-btn:disabled{opacity:.45;cursor:not-allowed}
#mf-prescricoes .mf-rx-pop-band{display:flex;align-items:center;gap:9px;padding:9px 11px;margin-bottom:10px;background:var(--accent-light);border:1px solid var(--accent-border);border-left:4px solid var(--accent);border-radius:10px;color:var(--accent-dark)}
#mf-prescricoes .mf-rx-pop-band strong{font-family:var(--font-head);font-size:11px;font-weight:900;white-space:nowrap}
#mf-prescricoes .mf-rx-pop-band span{font-size:10.5px;font-weight:650;color:var(--muted)}

/* PEDIATRIA */
#mf-prescricoes .mf-rx-patient-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:13px 14px;margin-bottom:8px;background:linear-gradient(135deg,var(--teal-light),#eef6ff);border:1px solid var(--teal-mid);border-radius:11px}
#mf-prescricoes .mf-rx-patient-title{width:100%;font-family:var(--font-head);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--teal-darker);display:flex;align-items:center;gap:7px}
#mf-prescricoes .mf-rx-patient-field{display:flex;flex-direction:column;gap:4px;min-width:115px;flex:1}
#mf-prescricoes .mf-rx-age-unit-field{max-width:125px}
#mf-prescricoes .mf-rx-patient-field>span{font-size:10px;font-weight:900;color:var(--navy)}
#mf-prescricoes .mf-rx-patient-field input,#mf-prescricoes .mf-rx-patient-field select{width:100%;min-height:38px;padding:8px 9px;border:1.5px solid var(--border);border-radius:8px;background:#fff;color:var(--navy);font-size:12px;font-weight:800;outline:none}
#mf-prescricoes .mf-rx-patient-field input:focus,#mf-prescricoes .mf-rx-patient-field select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(8,169,184,.1)}
#mf-prescricoes .mf-rx-input-suffix{display:flex;align-items:center;background:#fff;border:1.5px solid var(--border);border-radius:8px;overflow:hidden}
#mf-prescricoes .mf-rx-input-suffix:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px rgba(8,169,184,.1)}
#mf-prescricoes .mf-rx-input-suffix input{border:0!important;box-shadow:none!important;border-radius:0}
#mf-prescricoes .mf-rx-input-suffix b{padding:0 10px;color:var(--muted);font-size:10px}
#mf-prescricoes .mf-rx-patient-engine{flex:1 1 100%;font-size:10px;color:var(--teal-darker);font-weight:750;padding-top:2px}
#mf-prescricoes .mf-rx-patient-engine.is-muted{color:var(--muted)}

/* ALERTAS */
#mf-prescricoes .mf-rx-step-alert{padding:10px 12px;margin:0 0 9px;border:1px solid #fde68a;border-radius:10px;background:var(--orange-bg);color:#7a5a10;font-size:10.5px;font-weight:650}
#mf-prescricoes .mf-rx-inline-warning{margin:7px 0 0;padding:8px 10px;border:1px solid #fde68a;border-radius:9px;background:var(--orange-bg);color:var(--orange-dark);font-size:10.5px;font-weight:750;line-height:1.45}
#mf-prescricoes .mf-rx-inline-warning.is-danger{border-color:#fecaca;background:var(--red-bg);color:var(--red-dark)}

/* EDITORES */
#mf-prescricoes .mf-rx-edit-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:10px}
#mf-prescricoes .mf-rx-editor-card{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}
#mf-prescricoes .mf-rx-editor-head{min-height:39px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f7f9fc;border-bottom:1px solid var(--border)}
#mf-prescricoes .mf-rx-editor-head strong{font-family:var(--font-head);font-size:10.5px;font-weight:900;color:var(--navy);text-transform:uppercase;letter-spacing:.04em}
#mf-prescricoes .mf-rx-editor-head>span{font-size:9px;color:var(--accent-dark);background:var(--accent-light);border:1px solid var(--accent-border);border-radius:999px;padding:3px 7px;font-weight:900}
#mf-prescricoes .mf-rx-prescription-text,#mf-prescricoes .mf-rx-guidance-text{display:block;width:100%;border:0;outline:0;resize:vertical;background:#fff;padding:13px;overflow:auto}
#mf-prescricoes .mf-rx-prescription-text{min-height:250px;font-family:var(--mono);font-size:11.5px;color:#1e3a5f;white-space:pre-wrap;line-height:1.65;transition:opacity .15s}
#mf-prescricoes .mf-rx-prescription-text.is-calculating{opacity:.55}
#mf-prescricoes .mf-rx-guidance-text{min-height:250px;font-family:var(--font);font-size:11.5px;color:var(--navy);line-height:1.55}
#mf-prescricoes .mf-rx-editor-card>small{display:block;padding:7px 11px;border-top:1px solid var(--border);font-size:9px;color:var(--muted);font-weight:600;background:#fbfcfe}
#mf-prescricoes .mf-rx-mini-actions{display:flex;gap:5px}
#mf-prescricoes .mf-rx-mini-actions button{border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--muted);padding:5px 7px;font-size:9px;font-weight:900}
#mf-prescricoes .mf-rx-mini-actions button.accent{border-color:var(--accent-border);background:var(--accent-light);color:var(--accent-dark)}

/* REFERÊNCIAS */
#mf-prescricoes .mf-rx-references{margin:0;padding:12px 18px 16px;border-top:1px solid var(--border);background:#fff}
#mf-prescricoes .mf-rx-references summary{cursor:pointer;font-family:var(--font-head);font-size:10.5px;font-weight:900;color:var(--muted)}
#mf-prescricoes .mf-rx-references ol{margin:10px 0 0;padding-left:18px}
#mf-prescricoes .mf-rx-references li{margin:6px 0;font-size:10.5px;color:var(--muted)}
#mf-prescricoes .mf-rx-references a{color:var(--teal-darker);font-weight:800}

/* MODAL OPÇÕES */
body.mf-rx-modal-open{overflow:hidden}
#mf-prescricoes .mf-rx-modal-overlay{display:flex;position:fixed;inset:0;background:rgba(15,27,45,.58);z-index:99999;align-items:center;justify-content:center;padding:16px}
#mf-prescricoes .mf-rx-modal-box{background:#fff;border-radius:18px;max-width:620px;width:100%;max-height:min(760px,90vh);box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column}
#mf-prescricoes .mf-rx-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:18px 19px 14px;border-bottom:1px solid var(--border)}
#mf-prescricoes .mf-rx-modal-head span{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--accent-dark)}
#mf-prescricoes .mf-rx-modal-head h3{font-family:var(--font-head);font-size:18px;font-weight:900;color:var(--navy);margin:2px 0 1px}
#mf-prescricoes .mf-rx-modal-head p{font-size:11px;color:var(--muted);margin:0;font-weight:650}
#mf-prescricoes .mf-rx-modal-x{width:32px;height:32px;border-radius:9px;border:1px solid var(--border);background:var(--bg);color:var(--muted);font-size:20px;line-height:1}
#mf-prescricoes .mf-rx-modal-scroll{padding:14px 18px;overflow:auto}
#mf-prescricoes .mf-rx-modal-group+ .mf-rx-modal-group{margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}
#mf-prescricoes .mf-rx-modal-group-title{font-family:var(--font-head);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.055em;color:var(--muted);margin-bottom:8px}
#mf-prescricoes .mf-rx-modal-options{display:flex;flex-direction:column;gap:7px}
#mf-prescricoes .mf-rx-modal-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1.5px solid var(--border);border-radius:11px;background:#fff;text-align:left;color:var(--navy);transition:.15s}
#mf-prescricoes .mf-rx-modal-option:hover{background:var(--accent-light);border-color:var(--accent-border)}
#mf-prescricoes .mf-rx-modal-option.is-selected{background:var(--accent-light);border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
#mf-prescricoes .mf-rx-modal-option strong{display:block;font-size:12px;font-weight:900}
#mf-prescricoes .mf-rx-modal-option small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:600;line-height:1.4}
#mf-prescricoes .mf-rx-option-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}
#mf-prescricoes .mf-rx-option-side em{font-style:normal;font-size:8.5px;font-weight:900;color:var(--teal-darker);background:var(--teal-light);border-radius:999px;padding:2px 6px;white-space:nowrap}
#mf-prescricoes .mf-rx-option-side b,#mf-prescricoes .mf-rx-option-side i{font-style:normal;font-size:9px;font-weight:900;white-space:nowrap;color:var(--accent-dark)}
#mf-prescricoes .mf-rx-option-side i{color:var(--muted)}
#mf-prescricoes .mf-rx-modal-footer{padding:11px 18px 16px;border-top:1px solid var(--border);display:flex;justify-content:flex-end}
#mf-prescricoes .mf-rx-modal-done{padding:9px 16px;border:0;border-radius:9px;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;font-size:11px;font-weight:900}

/* TOAST */
#mf-prescricoes .mf-rx-toast{position:fixed;right:18px;bottom:18px;z-index:100000;background:var(--navy);color:#fff;padding:10px 13px;border-radius:10px;box-shadow:0 10px 30px rgba(22,32,51,.25);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s;font-size:11px;font-weight:750}
#mf-prescricoes .mf-rx-toast.is-visible{opacity:1;transform:none}

@media(max-width:980px){
  #mf-prescricoes .mf-rx-workspace{grid-template-columns:240px minmax(0,1fr)}
  #mf-prescricoes .mf-rx-edit-grid{grid-template-columns:1fr}
  #mf-prescricoes .mf-rx-guidance-text{min-height:170px}
}
@media(max-width:760px){
  #mf-prescricoes{margin:20px auto;padding:0 12px 24px}
  #mf-prescricoes .mf-rx-hero{padding:26px 20px;border-radius:20px}
  #mf-prescricoes .mf-rx-hero h1{font-size:30px}
  #mf-prescricoes .mf-rx-hero p{font-size:14px}
  #mf-prescricoes .mf-rx-workspace{grid-template-columns:1fr}
  #mf-prescricoes .mf-rx-sidebar{position:static;max-height:none}
  #mf-prescricoes .mf-rx-tree{max-height:300px;overflow:auto}
  #mf-prescricoes .mf-rx-disease-head{flex-direction:column;gap:8px}
  #mf-prescricoes .mf-rx-clinical-toolbar{align-items:flex-start}
  #mf-prescricoes .mf-rx-pop-group,#mf-prescricoes .mf-rx-action-group{width:100%}
  #mf-prescricoes .mf-rx-pop-btn{flex:1 1 calc(50% - 4px);text-align:center}
  #mf-prescricoes .mf-rx-action-group{justify-content:flex-end;border-top:1px dashed var(--border);padding-top:8px}
  #mf-prescricoes .mf-rx-patient-field{min-width:calc(50% - 5px)}
  #mf-prescricoes .mf-rx-age-unit-field{max-width:none}
  #mf-prescricoes .mf-rx-prescription-text{min-height:270px;font-size:11px}
  #mf-prescricoes .mf-rx-modal-box{max-height:92vh}
}
@media(max-width:480px){
  #mf-prescricoes .mf-rx-professional-note strong{white-space:normal}
  #mf-prescricoes .mf-rx-treatment-list{padding:12px}
  #mf-prescricoes .mf-rx-treatment-body{padding:10px}
  #mf-prescricoes .mf-rx-treatment-copy small{display:none}
  #mf-prescricoes .mf-rx-pop-band{align-items:flex-start;flex-direction:column;gap:2px}
  #mf-prescricoes .mf-rx-patient-field{min-width:100%}
  #mf-prescricoes .mf-rx-modal-option{align-items:flex-start;flex-direction:column}
  #mf-prescricoes .mf-rx-option-side{align-items:flex-start;flex-direction:row;flex-wrap:wrap}
}
