.doctor-patients{min-width:0;color:var(--ink);caret-color:var(--action)}
.patients-summary{display:flex;align-items:center;gap:8px;margin-top:-4px;margin-bottom:20px;font-size:13px;color:var(--muted)}
.patients-summary strong{color:var(--ink);font-weight:500;margin-left:10px;font-variant-numeric:tabular-nums}
.patients-help{position:relative;line-height:1.6}.patients-help>summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer;list-style:none;border-radius:4px}.patients-help>summary::-webkit-details-marker{display:none}.patients-help .icon{width:17px;height:17px}.patients-help>div{position:absolute;z-index:5;top:100%;left:0;width:min(360px,calc(100vw - 48px));padding:16px;background:var(--paper);color:var(--ink);font-size:12px;box-shadow:0 10px 30px rgb(0 0 0 / .18);border-radius:8px}.patients-help p+p{margin-top:10px}
.patients-filters{display:grid;grid-template-columns:minmax(190px,1.15fr) minmax(190px,1fr) minmax(160px,.8fr) minmax(210px,1fr);gap:16px 24px;padding:0 0 24px;border-bottom:1px solid var(--line)}
.patients-filters>label,.patients-custom-dates>label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;color:var(--muted)}
.patients-filters select,.patients-filters input{width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 0;border:0;border-radius:0;background:transparent;color:var(--ink);font:13px Poppins,sans-serif;box-shadow:none}
.patients-filters select{padding-right:18px;cursor:pointer}.patients-filters input{border-bottom:1px solid var(--control)}
.patients-search>div{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--control)}.patients-search .icon{width:17px;height:17px;flex:none}.patients-search input{border:0}.patients-search input::placeholder{color:var(--muted);opacity:1}
.patients-custom-dates{grid-column:1/-1;display:grid;grid-template-columns:180px 180px 1fr;align-items:end;gap:16px 24px}.patients-custom-dates[hidden]{display:none}.patients-custom-dates>span{font-size:11px;color:var(--muted);padding-bottom:12px}
.patients-list-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:22px;padding-bottom:10px;min-height:66px}.patients-list-header h2{font-size:17px;font-weight:500}.patients-list-header .ui-text-action{font-size:12px;min-height:44px}
.patients-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.patients-table th{color:var(--muted);font-size:12px;font-weight:400;text-align:left}.patients-table th,.patients-table td{padding:9px 16px 9px 0;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}.patients-table th:first-child{width:37%}.patients-table th:nth-child(2){width:20%}.patients-table th:nth-child(3){width:28%}.patients-table th:last-child{width:15%;padding-right:0}.patients-table td:last-child{padding-right:0}.patients-person>div{display:flex;align-items:center;gap:8px;min-height:44px}.patients-person strong{font-weight:500;line-height:1.5;min-width:0}.patients-person .ui-line-action{flex:none;margin-left:auto;vertical-align:middle}.patients-cpf,.patients-last time,.patients-count{font-variant-numeric:tabular-nums}.patients-cpf,.patients-last time{white-space:nowrap}.patients-time{color:var(--muted)}.patients-mobile-label{display:none}
.patients-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 20px;padding-top:12px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.patients-pagination>div{display:flex;align-items:center;gap:16px}.patients-pagination button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;font-size:12px}.patients-pagination .icon{width:16px;height:16px}.patients-pagination button:disabled{color:var(--disabled-text,var(--muted));cursor:default}
.patients-state{padding:28px 0;min-height:150px;color:var(--muted);font-size:13px;line-height:1.7}.patients-state h3{font-size:15px;font-weight:500;color:var(--ink)}.patients-state p{margin-top:7px}.patients-state button{margin-top:10px;min-height:44px}.patients-state [role=alert]{color:var(--danger)}
.doctor-patients :is(input,select,button,summary):focus-visible,.doctor-patients #patients-results:focus-visible{outline:2px solid var(--action);outline-offset:3px}.doctor-patients ::selection{background:var(--selection,var(--mint));color:var(--ink)}
@media(hover:hover) and (pointer:fine){.patients-table tbody tr:hover{background:var(--hover-row,var(--quiet))}.patients-help>summary:hover{color:var(--action)}}
@media(max-width:1100px){.patients-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.patients-table th:first-child{width:34%}.patients-table th:nth-child(2){width:21%}.patients-table th:nth-child(3){width:27%}.patients-table th:last-child{width:18%}}
@media(max-width:620px){.patients-summary{margin-bottom:12px;justify-content:space-between}.patients-help>div{left:auto;right:0}.patients-filters{gap:12px 16px;padding-bottom:18px}.patients-search{grid-column:1/-1}.patients-filters>label:last-of-type{grid-column:1/-1}.patients-filters>label{justify-content:space-between}.patients-filters select{font-size:12px}.patients-filters input{font-size:16px}.patients-custom-dates{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}.patients-custom-dates>span{grid-column:1/-1;padding-bottom:0}.patients-list-header{padding-top:16px}.patients-list-header h2{font-size:16px}.patients-table,.patients-table tbody{display:block}.patients-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.patients-table tr{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}.patients-table td{display:block;padding:0;border:0;min-width:0}.patients-person{grid-column:1;grid-row:1}.patients-person strong{font-size:14px}.patients-cpf{grid-column:1;grid-row:2;font-size:12px}.patients-last{grid-column:1;grid-row:3;font-size:12px}.patients-count{grid-column:1;grid-row:4;font-size:12px}.patients-mobile-label{display:inline;color:var(--muted);margin-right:5px}.patients-person .ui-line-action{width:44px;height:44px}.patients-time{display:none}.patients-pagination{padding-top:8px;gap:0}.patients-pagination>span{padding-block:10px}.patients-pagination>div{justify-content:space-between;width:100%;gap:8px}.patients-pagination button{font-size:12px}}

.patients-filter-panel{padding:12px 16px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.patients-filter-panel .patients-summary{margin:0 0 8px}
.patients-filter-panel .patients-filters{grid-template-columns:repeat(4,minmax(0,1fr));border:0;padding:0}
.patients-table-wrap .patients-table :is(th,td):first-child{padding-left:12px}
.patients-table-wrap .patients-table :is(th,td):last-child{padding-right:12px}
.patients-table tbody tr:last-child td{border-bottom:0}
.doctor-workspace .patient-chart-history-region{border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.doctor-workspace .patient-chart-encounters th{background:var(--quiet)}
@media(max-width:1100px){
 .patients-filter-panel .patients-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 .patients-table-wrap .patients-table tr{padding-inline:12px}
 .patients-table-wrap .patients-table :is(th,td):first-child,.patients-table-wrap .patients-table :is(th,td):last-child{padding-inline:0}
 .patients-table-wrap .patients-table tr:last-child{border-bottom:0}
}
