/* Prontuário · busca premium de paciente */
.records-patient-filter{position:relative;margin:0 0 18px}
.records-patient-filter>label{display:block;margin-bottom:6px;color:#51695e;font-size:10px}
.records-patient-search{display:flex;align-items:center;gap:9px;min-height:46px;padding:0 12px;border:1px solid #dbe3da;border-radius:11px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.records-patient-search:hover{border-color:#c8d2ca;background:#fffefa}
.records-patient-search:focus-within{border-color:#b7c3ba;box-shadow:0 0 0 2px rgba(23,63,53,.035)}
.records-patient-search svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:#6d8177;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.records-patient-search input{min-width:0;flex:1;height:42px;border:0!important;outline:none!important;background:transparent!important;color:#27483e!important;padding:0!important;box-shadow:none!important;font-size:12px!important}
.records-patient-search input:focus,.records-patient-search input:focus-visible{outline:none!important;border:0!important;box-shadow:none!important}
.records-patient-search button{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border:0;border-radius:8px;background:transparent;color:#87968e;font-size:19px;line-height:1}
.records-patient-search button:hover{background:#f0f3ef;color:#4d685b}
.records-patient-results{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:120;padding:7px;border:1px solid #dbe3da;border-radius:15px;background:#fffefa;box-shadow:0 22px 55px rgba(23,63,53,.15);max-height:360px;overflow:auto}
.records-patient-option{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:58px;padding:8px 10px;border:0;border-radius:11px;background:transparent;color:#274b40;text-align:left}
.records-patient-option:hover,.records-patient-option:focus-visible{outline:none;background:#f3f5f1}
.records-patient-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#214d3f;color:#fff;font-size:11px;font-weight:850}
.records-patient-copy{min-width:0}.records-patient-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.records-patient-copy small{display:block;margin-top:3px;color:#849289;font-size:10px}
.records-patient-option em{padding:6px 8px;border-radius:999px;font-style:normal;font-size:9px;font-weight:800;white-space:nowrap}
.records-patient-option em.private{background:#edf2ea;color:#5c775e}.records-patient-option em.insurance{background:#f4eddf;color:#896b37}.records-patient-option em.pending{background:#f2efeb;color:#887d72}
.records-patient-empty{padding:18px;text-align:center;color:#84938a;font-size:11px}

html[data-theme="dark"] .records-patient-search{background:#0d211a;border-color:#335146}
html[data-theme="dark"] .records-patient-search:hover{background:#10271f;border-color:#456557}
html[data-theme="dark"] .records-patient-search:focus-within{border-color:#5d7469;box-shadow:0 0 0 2px rgba(220,232,226,.04)}
html[data-theme="dark"] .records-patient-search input{color:#edf1ec!important}
html[data-theme="dark"] .records-patient-results{background:#10271f;border-color:#294238}
html[data-theme="dark"] .records-patient-option{color:#edf1ec}
html[data-theme="dark"] .records-patient-option:hover,html[data-theme="dark"] .records-patient-option:focus-visible{background:#173126}

@media(max-width:620px){
  .records-patient-option{grid-template-columns:36px minmax(0,1fr)}
  .records-patient-option em{grid-column:2;justify-self:start}
}
