.exam-page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.exam-page-head small{color:#2462ca;font-weight:700}.exam-page-head h1{font-size:24px;margin:8px 0 0}.exam-doctor{font-size:12px;font-weight:900;color:#263a61}.exam-dashboard{display:grid;grid-template-columns:28% 16% 56%;grid-template-rows:minmax(560px,auto) minmax(380px,auto);gap:14px;font-size:12px}.exam-dashboard section{background:#fff;border:1px solid #d6dfec;border-radius:9px;overflow:hidden}.exam-dashboard section>header{display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid #dce4ef;color:#075cce}.exam-clinical-column{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;background:transparent!important;border:0!important;overflow:visible!important}.exam-clinical-column form{display:grid;gap:12px}.exam-queue-panel{grid-column:2;grid-row:1}.exam-worklist-panel{grid-column:3;grid-row:1}.exam-services-panel{grid-column:1;grid-row:2}.exam-rx-panel{grid-column:2/4;grid-row:2}.exam-card{flex:none!important;overflow:visible!important}.exam-card header{padding:10px 13px!important}.exam-patient-mini,.exam-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:11px}.exam-patient-mini{grid-template-columns:1fr 1.4fr .55fr}.exam-patient-mini label,.exam-fields label,.exam-queue-panel>label{display:grid;gap:4px;color:#263550;font-weight:700}.span-two{grid-column:span 2}.span-all{grid-column:1/-1}.exam-dashboard input,.exam-dashboard select,.exam-dashboard textarea{min-width:0;border:1px solid #ccd7e7;border-radius:6px;background:#fff;padding:8px;color:#17233b}.exam-dashboard input[readonly]{background:#f8faff}.exam-dashboard :disabled{cursor:not-allowed;color:#7d899b;background:#f3f6fa}.exam-dashboard i{color:#e22;font-style:normal}.exam-clinical-bottom{display:grid;grid-template-columns:1fr 1fr;gap:12px}.exam-vitals.dense{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;padding:10px}.exam-vitals label{display:grid;gap:4px}.exam-revisit{display:flex;gap:8px;align-items:center;padding:14px}.exam-revisit label{display:flex;align-items:center;gap:5px}.exam-queue-panel>label{padding:16px}.exam-queue-panel h3{text-align:center;color:#1365d7;margin:24px 0 18px}.exam-queue-numbers{display:grid;gap:12px;float:left;width:38%;padding-left:10px}.exam-queue-numbers strong{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#1261e9;color:white;font-size:27px}.exam-call-actions{display:grid;gap:14px;padding:4px 10px}.exam-call-actions button{min-height:55px;border:1px solid #cbd7e8;border-radius:7px;background:white;color:#1e3157;font-weight:700}.exam-worklist-tools{display:flex;align-items:center;gap:8px;padding:11px;border-bottom:1px solid #dae3ef}.exam-tabs{display:flex}.exam-tabs button,.exam-worklist-tools>button{border:1px solid #d3ddeb;background:#fff;padding:10px 17px;font-weight:800;color:#223858}.exam-tabs button:first-child{border-radius:6px 0 0 6px}.exam-tabs button:last-child{border-radius:0 6px 6px 0}.exam-tabs button.active{background:#0864ed;color:#fff}.exam-worklist-tools #examSearch{margin-left:auto;min-width:240px}.exam-table-wrap{overflow:auto}.exam-worklist-table,.exam-services-panel table,.rx-table{width:100%;border-collapse:collapse}.exam-worklist-table{min-width:900px}.exam-worklist-table th,.exam-worklist-table td,.exam-services-panel th,.exam-services-panel td,.rx-table th,.rx-table td{padding:10px 8px;border:1px solid #e0e7f1;text-align:left}.exam-worklist-table th,.exam-services-panel th,.rx-table th{background:#f5f8fc;font-size:11px}.exam-patient{cursor:pointer}.exam-patient:hover,.exam-patient.selected{background:#eaf3ff}.exam-order{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#2770e8;color:#fff;font-weight:900}.exam-patient em{font-style:normal;border:1px solid #ffd56e;border-radius:99px;padding:6px 9px;background:#fff3d3;color:#b77500;font-weight:800;white-space:nowrap}.exam-patient code{color:#174ea8}.exam-empty{padding:40px!important;text-align:center!important;color:#8290a7}.exam-placeholder{min-height:120px;display:grid;place-content:center;text-align:center;color:#8290a7}.exam-placeholder.compact{min-height:80px}.exam-service-entry{display:grid;grid-template-columns:1fr 1.4fr 1.4fr auto auto auto;gap:7px;padding:10px}.exam-service-entry button,.rx-search button,.exam-rx-panel header button,.exam-actions button,.exam-edit-button,.exam-save-clinical{border:1px solid transparent;border-radius:6px;background:#0964ed;color:#fff;padding:9px 14px;font-weight:800}.exam-edit-button{margin-left:auto}.exam-save-clinical{width:100%;min-height:42px}.exam-selection-hint{padding:12px;border:1px dashed #b9c9df;border-radius:8px;background:#f7faff;color:#60728e;text-align:center}.outline{background:#fff!important;color:#1261cd!important;border-color:#82a9e2!important}.danger{background:#fff!important;color:#e13535!important;border-color:#ef9b9b!important}.exam-services-panel footer{display:flex;justify-content:space-between;padding:12px}.exam-services-panel footer strong{color:#0964ed}.done,.wait{display:inline-block;border-radius:99px;padding:5px 8px;font-weight:800}.done{background:#e4f8ed;color:#16844b}.wait{background:#fff1d7;color:#a16500}.exam-rx-panel>header{gap:8px!important}.exam-rx-panel>header>b{margin-right:5px}.exam-rx-panel>header>strong{margin-left:auto;color:#ed2929}.exam-rx-panel>header label{display:flex;align-items:center;gap:4px}.rx-search{display:flex;gap:8px;padding:8px}.rx-search select{min-width:260px}.rx-table{min-width:1050px}.rx-table input{width:52px;padding:6px}.rx-table td:nth-last-child(2) input{width:150px}.rx-table td:last-child button{border:0;background:#fee8e8;color:#c92828}.exam-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px}.exam-actions button{min-width:150px}.exam-actions .secondary{background:#fff;color:#223858;border-color:#cbd6e6}.exam-rx-locked{opacity:.72}.exam-rx-locked:after{content:'Bấm Bắt đầu khám hoặc Cập nhật để kê toa thuốc';display:block;padding:12px;text-align:center;color:#65758e}.exam-clinical-column fieldset{border:0;padding:0;margin:0;display:grid;gap:12px}.error{color:#c8323e}.exam-worklist-panel>small{display:block;padding:7px 11px;color:#74849b}
@media(max-width:1350px){.exam-dashboard{grid-template-columns:35% 65%;grid-template-rows:auto auto}.exam-queue-panel{display:none}.exam-worklist-panel{grid-column:2}.exam-services-panel{grid-column:1;grid-row:2}.exam-rx-panel{grid-column:2;grid-row:2}}
@media(max-width:800px){.exam-page-head{align-items:flex-start}.exam-doctor{display:none}.exam-dashboard{display:block;font-size:13px}.exam-dashboard>section{margin-bottom:12px}.exam-clinical-column{display:flex}.exam-queue-panel{display:block}.exam-worklist-tools{flex-wrap:wrap}.exam-worklist-tools #examSearch{order:3;margin:0;width:100%}.exam-patient-mini,.exam-fields,.exam-clinical-bottom{grid-template-columns:1fr}.span-two,.span-all{grid-column:1}.exam-service-entry{grid-template-columns:1fr 1fr}.exam-rx-panel>header{flex-wrap:wrap}.exam-rx-panel>header>strong{width:100%;margin:4px 0}.rx-search select{min-width:0;flex:1}.exam-actions{position:sticky;bottom:0;background:#fff}.exam-queue-panel{min-height:340px}}

/* V2.12.4: bố cục thao tác nhanh như WinForms, vừa một màn hình desktop. */
@media(min-width:1351px){
 .exam-page-head{height:42px;margin:0 0 6px}.exam-page-head h1{font-size:20px;margin:3px 0 0}
 .exam-dashboard{height:calc(100vh - 122px);grid-template-rows:minmax(0,58%) minmax(0,42%);gap:7px;font-size:11px}
 .exam-dashboard>section,.exam-clinical-column{min-height:0}
 .exam-clinical-column{gap:5px;overflow:auto!important}
 .exam-clinical-column form,.exam-clinical-column fieldset{gap:5px}
 .exam-card header,.exam-dashboard section>header{padding:6px 8px!important}
 .exam-patient-mini,.exam-fields{gap:4px;padding:6px}
 .exam-patient-mini label,.exam-fields label,.exam-vitals label{gap:2px}
 .exam-dashboard input,.exam-dashboard select,.exam-dashboard textarea{padding:5px 6px;border-radius:4px;min-height:27px}
 .exam-clinical-bottom{gap:5px}.exam-vitals.dense{gap:4px;padding:6px}.exam-revisit{padding:7px;gap:5px}
 .exam-edit-button{padding:5px 9px}.exam-save-clinical{min-height:32px;padding:5px}
 .exam-selection-hint{padding:6px}.exam-queue-panel>label{padding:9px}.exam-queue-panel h3{margin:10px 0 8px}
 .exam-queue-numbers{gap:6px}.exam-queue-numbers strong{width:50px;height:50px;font-size:23px}.exam-call-actions{gap:7px;padding:2px 7px}.exam-call-actions button{min-height:43px}
 .exam-worklist-tools{padding:6px}.exam-tabs button,.exam-worklist-tools>button{padding:7px 13px}
 .exam-worklist-table th,.exam-worklist-table td,.exam-services-panel th,.exam-services-panel td,.rx-table th,.rx-table td{padding:5px 6px}
 .exam-worklist-panel,.exam-services-panel,.exam-rx-panel{display:flex;flex-direction:column}.exam-table-wrap,.rx-table-wrap{min-height:0;overflow:auto;flex:1}
 .exam-service-entry{padding:5px;gap:4px}.exam-services-panel footer{padding:6px 8px}
 .exam-rx-panel>header{padding:5px 7px!important}.exam-rx-panel>header button,.exam-actions button{padding:6px 9px}
 .exam-actions{padding:5px}.exam-actions button{min-width:110px}.rx-table input{padding:3px;min-height:24px}
}
.rx-entry-row td{background:#eef5ff!important;padding:5px!important}.rx-entry-row input{width:100%!important;min-width:360px}.rx-entry-row button{width:100%;border:0;border-radius:5px;background:#0964ed;color:#fff;padding:7px;font-weight:800}
#examIcdSearch{width:100%}

/* V2.12.5: thanh hành động nổi chỉ xuất hiện khi bản nháp thật sự thay đổi. */
.exam-save-bar{position:fixed;right:24px;bottom:22px;z-index:120;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #f1c45c;border-radius:18px;background:#fff;box-shadow:0 12px 36px rgba(15,35,70,.22);animation:exam-save-attention 1.35s ease-in-out infinite}
.exam-save-bar[hidden]{display:none!important}
.exam-save-bar>span{display:flex;align-items:center;gap:8px;padding:0 6px;color:#8a5a00;font-size:13px;font-weight:800;white-space:nowrap}
.exam-save-bar>span i{width:9px;height:9px;border-radius:50%;background:#f3aa18;box-shadow:0 0 0 5px rgba(243,170,24,.15)}
.exam-save-bar button{min-width:92px;height:40px;border:0;border-radius:11px;padding:0 18px;background:#2768df;color:#fff;font-weight:800;cursor:pointer}
.exam-save-bar button.secondary{border:1px solid #d9e2f1;background:#f1f5fb;color:#3a526f}
.exam-save-bar button:disabled{cursor:wait;opacity:.65}
@keyframes exam-save-attention{0%,100%{box-shadow:0 12px 36px rgba(15,35,70,.22),0 0 0 0 rgba(243,170,24,.25)}50%{box-shadow:0 12px 36px rgba(15,35,70,.22),0 0 0 8px rgba(243,170,24,0)}}
@media(max-width:800px){.exam-save-bar{left:12px;right:12px;bottom:12px;justify-content:flex-end;border-radius:15px}.exam-save-bar>span{margin-right:auto}.exam-save-bar button{min-width:80px;padding:0 12px}}
@media(max-width:520px){.exam-save-bar{display:grid;grid-template-columns:1fr 1fr}.exam-save-bar>span{grid-column:1/-1}.exam-save-bar button{width:100%}}
.exam-doctor-picker{min-width:310px;display:grid;gap:5px;padding:9px 12px;border:1px solid #d8e4f1;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(23,69,120,.08)}.exam-doctor-picker span{color:#7890aa;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}.exam-doctor-picker select{height:34px;border:0;background:#fff;color:#12335b;font-weight:800;outline:0}.exam-fields select{width:100%;height:29px;border:1px solid #c9d7e8;border-radius:5px;background:#fff;color:#183a64;padding:0 6px}
