/* Patient grouping is a view only. Individual visit actions remain in the disclosure. */
@media screen {
 .visit-screening .toolbar{gap:8px;align-items:end;margin-bottom:10px}
 .visit-screening .toolbar label{margin:0;min-width:130px;flex:1 1 135px}
 .visit-screening .toolbar input,.visit-screening .toolbar select{max-width:100%;width:100%;min-width:0}
 .visit-screening .toolbar input[type=search]{flex:2 1 200px;width:auto;min-width:0}
 .visit-screening .screen-explainer{font-size:12px;color:var(--ui-muted,#777c84);margin:8px 0 14px}
 .visit-screening .screen-explainer>summary{cursor:pointer}
 .visit-screening #screen-counts{gap:6px;margin:10px 0;flex-wrap:wrap}
 .visit-screening #screen-counts button{font-size:12px;padding:6px 9px;min-height:32px}
 .visit-screening #screen-counts button[aria-pressed=true]{background:#e9f7fa;color:#00758b;border-color:#00a6c4}
 .visit-screening .screen-summary{font-size:13px;color:#60656e;margin:16px 0 8px}
 .visit-screening .screen-summary>span{display:block;font-size:12px;color:#777c84;margin-top:4px}
 .visit-screening .screen-patient-group{border:1px solid #dedfe2;border-bottom:0;background:#fff}
 .visit-screening .screen-patient-group:last-of-type{border-bottom:1px solid #dedfe2}
 .visit-screening .screen-patient-group>summary{display:grid;grid-template-columns:minmax(110px,1fr) 100px minmax(160px,1.6fr) 85px;align-items:center;gap:12px;padding:12px;list-style:none;cursor:pointer;font-size:13px;color:#60656e}
 .visit-screening .screen-patient-group>summary::-webkit-details-marker{display:none}
 .visit-screening .screen-patient-group>summary:hover{background:#f5fbfc}
 .visit-screening .screen-patient-group>summary:focus-visible{outline:2px solid #00839d;outline-offset:-2px}
 .visit-screening .screen-person{min-width:0;overflow-wrap:anywhere}
 .visit-screening .screen-person>strong{font-size:14px;color:#303339;font-weight:550}
 .visit-screening .screen-person>small,.visit-screening .screen-dates>small{display:block;margin-top:4px;font-size:11px;color:#777c84}
 .visit-screening .screen-states{display:flex;flex-wrap:wrap;gap:5px}
 .visit-screening .screen-states>span{display:inline-block;background:#f4f6f8;border:1px solid #e8eaee;padding:3px 6px;font-size:11px;color:#60656e}
 .visit-screening .screen-toggle{color:#00839d;text-align:right;font-size:12px;white-space:nowrap}
 .visit-screening .screen-patient-group[open] .screen-toggle>span{display:inline-block;transform:rotate(180deg)}
 .visit-screening .screen-patient-records{padding:0 12px 12px;border-top:1px solid #edf0f2}
 .visit-screening .screen-patient-records .tablewrap{max-height:340px;overflow:auto}
 .visit-screening .screen-patient-records th{font-size:12px;background:#f5f6f8;white-space:nowrap;position:sticky;top:0;z-index:1}
 .visit-screening .screen-patient-records td{font-size:12px;padding:10px 8px;min-width:90px}
 .visit-screening .screen-patient-records td:nth-child(3){min-width:150px}
 .visit-screening .screen-patient-records td:last-child{min-width:120px}
 .visit-screening .screen-patient-records td button{font-size:12px;white-space:nowrap}
 .visit-screening .screen-pagination{margin-top:14px;align-items:center;font-size:12px;color:#777c84}
 :is(.visit-patient-list,.daily-patient-list) .visit-group-patient-link{display:flex;gap:8px;align-items:center;padding-top:8px;font-size:12px;color:#777c84}
 :is(.visit-patient-list,.daily-patient-list) .visit-group-patient-link button{border:0;padding:4px 0;color:#00839d}
 .daily-patient-list .daily-task-counts{font-size:12px;line-height:1.7;color:#777c84}
}
@media screen and (max-width:720px){
 #modal:has(.visit-screening){padding:14px;width:calc(100vw - 20px);max-width:100%;max-height:94dvh}
 .visit-screening .toolbar label{flex-basis:calc(50% - 8px);min-width:0}
 .visit-screening .toolbar input[type=search]{flex:1 1 180px}
 .visit-screening .screen-patient-group>summary{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 10px}
 .visit-screening .screen-person{grid-column:1;grid-row:1}
 .visit-screening .screen-toggle{grid-column:2;grid-row:1}
 .visit-screening .screen-dates{grid-column:1/-1;grid-row:2;font-size:12px}
 .visit-screening .screen-dates>small{display:inline;margin-left:8px}
 .visit-screening .screen-states{grid-column:1/-1;grid-row:3}
 .visit-screening .screen-patient-records{padding-inline:6px}
 .visit-screening .screen-patient-records table,.visit-screening .screen-patient-records tbody{display:block;width:100%;min-width:0}
 .visit-screening .screen-patient-records thead{display:none}
 .visit-screening .screen-patient-records tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;padding:10px 4px;border-bottom:1px solid #edf0f2}
 .visit-screening .screen-patient-records td,.visit-screening .screen-patient-records td:nth-child(3),.visit-screening .screen-patient-records td:last-child{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
 .visit-screening .screen-patient-records td:nth-child(3),.visit-screening .screen-patient-records td:last-child{grid-column:1/-1}
 .visit-screening .screen-patient-records td:first-child::before{content:'就诊日期 ';color:#777c84}
 .visit-screening .screen-patient-records td:nth-child(2)::before{content:'医生 ';color:#777c84}
 .visit-screening .screen-patient-records td:last-child{text-align:right}
 .visit-screening .screen-patient-records td button{min-height:40px;color:#00839d}
 .visit-patient-list .screen-patient-records td:nth-child(2)::before{content:'主诉 ';color:#777c84}
 .visit-patient-list .screen-patient-records td:nth-child(3)::before{content:'医生 ';color:#777c84}
 .daily-patient-list .screen-patient-records td:nth-child(2)::before{content:'待办 ';color:#777c84}
}
