/* Resumo clínico: cores + texto, cabeçalho compacto e conteúdo hierarquizado. */
#ag_drawer.rx-drawer{width:min(460px,100vw);max-width:100vw;display:flex;flex-direction:column;background:#fff}#ag_drawer.rx-drawer .ag-drawer-header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 8px;flex-shrink:0;padding:12px 20px;background:#fff}#ag_drawer.rx-drawer .ag-drawer-header>.ag-drawer-section{grid-column:1/-1;margin:0;padding:12px 0 0;border:0}#ag_drawer.rx-drawer .ag-drawer-body{flex:1;min-height:0;overflow:auto;padding:0 20px 20px}#ag_drawer.rx-drawer .ag-drawer-patient{font-size:15px;line-height:1.4;overflow-wrap:anywhere}#ag_drawer.rx-drawer .ag-drawer-meta{font-size:11px;gap:4px 10px}#ag_drawer.rx-drawer .ag-drawer-section{margin:0;padding:15px 0;border-bottom:1px solid #e7dcd0}#ag_drawer.rx-drawer .ag-drawer-section-title{font-size:11px;margin-bottom:10px;color:#786e63;letter-spacing:.04em}#ag_drawer.rx-drawer .rx-header-actions{display:flex;align-items:center;gap:3px}#ag_drawer.rx-drawer .rx-header-actions button{width:34px;min-width:34px;height:34px;min-height:34px;padding:7px;border:0;background:transparent;color:#786e63;display:inline-flex;align-items:center;justify-content:center}#ag_drawer.rx-drawer #drawer_btn_sign:not(:disabled){width:auto;font-size:11px;padding:6px;border:1px solid #d8c8b5;border-radius:6px}#ag_drawer.rx-drawer .rx-icon{display:inline-flex;align-items:center;flex-shrink:0;vertical-align:middle}#ag_drawer.rx-drawer .rx-icon svg{width:16px;height:16px}#rx_signed{display:inline-flex;color:#177548;background:#edf8f0;padding:7px;border-radius:7px}#rx_signed[hidden],#ag_drawer.rx-drawer [hidden]{display:none!important}#ag_drawer.rx-drawer :focus-visible{outline:2px solid #785633;outline-offset:3px}#ag_drawer.rx-drawer #drawer_rc_checkin>.ag-drawer-section-title{display:none}.rx-first{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.rx-first-chip{display:inline-flex;align-items:center;gap:6px;background:#edf1fb;border:1px solid #d6def1;color:#40557d;padding:6px 8px;border-radius:5px;font-size:11px;font-weight:700}.rx-first-other{font-size:11px;color:#786e63;line-height:1.5}.rx-allergy{display:flex;gap:9px;align-items:flex-start;padding:10px 12px;border-radius:7px;border-left:3px solid #d6e2d9;font-size:12px;margin-bottom:12px}.rx-allergy p{margin:4px 0 0}.rx-allergic{background:#fdf0ef;color:#9e352d;border-left-color:#b34d42}.rx-negative{background:#f8f8f5;color:#646158}.rx-unknown{background:#fff9e9;color:#886316;border-left-color:#d3b771!important}.rx-present{background:#fff3e1;color:#8a4a10;border-left-color:#c48730!important}.rx-past{background:#f0f5f8;color:#476477;border-left-color:#90a8b9!important}.rx-conditions{background:#faf7f0;border:1px solid #eae1d5;border-radius:7px;padding:10px 12px;margin-bottom:12px}.rx-conditions span{display:block;font-size:10px;color:#785633;margin-bottom:6px}.rx-conditions b{font-size:12px}.rx-measures{display:flex;align-items:center;gap:10px;padding:9px 10px;background:#f0f5f8;border:1px solid #dce5eb;border-radius:7px;color:#34556a;margin-bottom:8px}.rx-measures>div{flex:1;display:flex;gap:5px;align-items:baseline;flex-wrap:wrap}.rx-measures>div+div{border-left:1px solid #cddbe3;padding-left:10px}.rx-measures span,.rx-measures small{font-size:10px}.rx-measures b{font-size:14px}.rx-line{display:grid;grid-template-columns:16px 1fr 1.2fr;gap:7px;align-items:center;border-left:3px solid #e3dfd7;border-radius:4px;padding:8px;margin:4px 0;font-size:11px;line-height:1.4}.rx-line b{text-align:right;overflow-wrap:anywhere}.rx-label{font-size:10px;color:#786e63;display:flex;align-items:center;gap:6px;margin:12px 0 7px}.rx-family-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rx-family-grid>div{padding:8px;border-left:3px solid #e1ddd6;border-radius:4px}.rx-family-grid span{display:block;font-size:10px;margin-bottom:3px}.rx-family-grid b{font-size:11px;display:block;overflow-wrap:anywhere}.rx-minor{font-size:11px;color:#786e63;padding:6px}.rx-other{margin-top:14px}.rx-other summary,#ag_drawer.rx-drawer details>summary{font-size:12px;color:#785633;cursor:pointer;font-weight:600}.rx-secondary{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;font-size:11px;padding:6px 0;line-height:1.45}.rx-secondary span{color:#786e63}.rx-secondary b{font-weight:500}.rx-indication{display:flex;gap:10px;align-items:baseline;margin:10px 0;font-size:12px;line-height:1.5}.rx-indication b{font-size:10px;background:#edf3f1;color:#32675b;padding:1px 6px;border-radius:4px;flex-shrink:0}.rx-indication:first-child b{background:#eef0fa;color:#505b85}#rx_medications>.ag-drawer-section-title{display:none}@media(max-width:520px){#ag_drawer.rx-drawer{width:100vw}#ag_drawer.rx-drawer .ag-drawer-body{padding:0 16px 16px}#ag_drawer.rx-drawer .ag-drawer-header{padding:10px 16px}.rx-measures small{display:none}}@media(pointer:coarse){#ag_drawer.rx-drawer .rx-header-actions button{width:40px;height:44px}.rx-other summary{min-height:40px;display:flex;align-items:center}}

#ag_drawer.rx-drawer #drawer_btn_open,#ag_drawer.rx-drawer #drawer_btn_pdf{background:transparent!important;color:#786e63!important;border:0!important;box-shadow:none!important;width:34px!important}#ag_drawer.rx-drawer #drawer_btn_open:hover,#ag_drawer.rx-drawer #drawer_btn_pdf:hover{background:#f3ede5!important}
@media print{.mr-ficha,.mr-dialog{display:none!important}}
