.cedar-origem{border-top:1px solid var(--line,#dde5e2);padding:8px 0;margin:4px 0;color:var(--ink,#342e29);font-size:12px;box-sizing:border-box}
.cedar-origem .co-heading{display:flex;align-items:center;gap:8px;font-weight:650;margin-bottom:5px;line-height:20px}
.cedar-origem .co-optional{font-weight:400;color:#65756f;font-size:11px}
.cedar-origem .co-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.cedar-origem .co-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.cedar-origem label{font-size:11px;line-height:15px;font-weight:500;color:#52655e}
.cedar-origem select{width:100%;min-width:0;height:36px;border:1px solid #d8d0c7;border-radius:6px;background:white;color:#342e29;font:inherit;padding:0 8px;box-sizing:border-box}
.cedar-origem .co-answer{height:36px;display:flex;align-items:center;font-size:12px}
.cedar-origem [hidden]{display:none!important}
.cedar-origem .co-edit{margin-left:auto;background:transparent;border:0;border-radius:4px;font:inherit;color:#8b5e3c;cursor:pointer;min-height:28px;padding:2px 8px}
.cedar-origem :focus-visible{outline:2px solid #8b5e3c;outline-offset:2px}
@media(pointer:coarse){.cedar-origem select,.cedar-origem .co-answer{height:44px}.cedar-origem .co-edit{min-height:44px}}
@media(max-width:540px){.cedar-origem .co-grid{grid-template-columns:1fr}}
.co-bi{padding:8px 0}.co-bi h2{font-size:22px;margin:4px 0 8px}.co-bi p{font-size:12px;color:#52655e;line-height:1.5}.co-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:14px 0}.co-filters label{display:grid;gap:4px;font-size:11px}.co-filters input,.co-filters select,.co-filters button{min-height:36px;border:1px solid #cbd7d2;border-radius:6px;padding:6px;background:#fff;color:#342e29}.co-filters button{background:#8b5e3c;color:white;padding:6px 15px}.co-tables{overflow:auto}.co-bi table{width:100%;border-collapse:collapse;font-size:12px;margin:12px 0}.co-bi th,.co-bi td{padding:9px 8px;text-align:right;border-bottom:1px solid #e2e9e5;white-space:nowrap}.co-bi th:first-child,.co-bi td:first-child{text-align:left}.co-bi th{background:#f0f5f2;font-weight:600}.co-bi .co-notice{background:#f1f6f3;padding:10px 12px;border-radius:6px}.co-bi button:focus-visible{outline:2px solid #8b5e3c;outline-offset:2px}

/* Integração com os containers nativos, sem alterar abas clínicas. */
#bdx-filters[hidden],.ck-box.ckt-on > #ck_origem{display:none!important}
#ck_origem{padding:0 18px;flex-shrink:0}

@media(min-width:900px){
 #ck_origem .co-complete{display:grid;grid-template-columns:170px 1fr;gap:12px;align-items:center;padding:6px 0}
 #ck_origem .co-complete .co-heading{margin:0;flex-wrap:wrap;gap:2px 8px}
 #ck_origem .co-complete .co-edit{margin-left:0}
 #ck_origem .co-complete .co-field{gap:0}
 #ck_origem .co-complete .co-answer{height:24px;font-weight:600}
}

#qr_overlay:has(.cedar-origem) .ag-modal{width:680px}
#qr_overlay:has(.cedar-origem) .ag-modal-footer{position:sticky;bottom:0;background:#fff;z-index:2}
