:root{
  --teal-950:#0b3544;--teal-900:#103f50;--teal-800:#164e63;--teal-700:#17657a;--cyan:#22a6b3;
  --navy:#203650;--slate:#52677d;--bg:#f5f7f8;--card:#fff;--border:#dde4e8;--text:#1e2933;--muted:#667784;
  --green:#2e8b70;--amber:#d8953d;--red:#c95b5b;--blue:#4c7fa8;--purple:#7768a6;--shadow:0 10px 28px rgba(20,44,55,.08);
  --r:18px;--r2:12px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:11px}.small{font-size:13px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.nowrap{white-space:nowrap}
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,1.08fr);background:linear-gradient(135deg,#f9fbfc 0%,#eef5f6 55%,#e7f1f3 100%)}
.login-brand{padding:64px;display:flex;align-items:center;justify-content:center;background:linear-gradient(155deg,var(--teal-950),var(--teal-800));color:white;position:relative;overflow:hidden}.login-brand:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;border:70px solid rgba(255,255,255,.04);right:-180px;bottom:-180px}.login-brand-inner{max-width:540px;position:relative;z-index:1}.brand-mark{width:68px;height:68px;border-radius:20px;background:rgba(255,255,255,.1);display:grid;place-items:center;margin-bottom:28px;border:1px solid rgba(255,255,255,.16)}.pulse-line{width:38px;height:22px;position:relative}.pulse-line:before{content:"";position:absolute;left:0;right:0;top:10px;height:2px;background:#79d6dc}.pulse-line:after{content:"";position:absolute;width:20px;height:20px;border-left:3px solid #79d6dc;border-bottom:3px solid #79d6dc;transform:rotate(135deg);left:8px;top:0}
.login-brand h1{font-size:42px;line-height:1.08;margin:0 0 14px}.login-brand p{color:#d4e7eb;font-size:17px;line-height:1.7}.security-points{display:grid;gap:12px;margin-top:36px}.security-point{display:flex;gap:12px;align-items:center;color:#dcebee;font-size:14px}.dot{width:9px;height:9px;border-radius:50%;background:#76d4d9;box-shadow:0 0 0 5px rgba(118,212,217,.12)}
.login-panel{display:flex;align-items:center;justify-content:center;padding:44px}.login-card{width:min(470px,100%);background:#fff;border:1px solid var(--border);border-radius:24px;padding:38px;box-shadow:var(--shadow)}.login-card h2{margin:0 0 6px;font-size:28px}.login-card .sub{margin-bottom:28px;color:var(--muted)}
.field{display:grid;gap:8px;margin-bottom:17px}.field label{font-size:13px;font-weight:700;color:#405362}.field input,.field select,.field textarea{width:100%;border:1px solid var(--border);border-radius:11px;background:#fff;padding:12px 13px;color:var(--text);outline:none;transition:.15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(34,166,179,.12)}.field textarea{min-height:92px;resize:vertical}
.row{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.login-options{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:4px 0 20px}.check{display:flex;gap:8px;align-items:center}.link-btn{border:0;background:none;color:var(--teal-700);font-weight:700;padding:0}.primary-btn,.secondary-btn,.danger-btn,.ghost-btn{border:0;border-radius:11px;padding:11px 15px;font-weight:800;transition:.15s}.primary-btn{background:var(--teal-800);color:#fff}.primary-btn:hover{background:var(--teal-700)}.secondary-btn{background:#e8f3f4;color:var(--teal-800)}.danger-btn{background:#f9e8e8;color:#963e3e}.ghost-btn{background:#fff;color:var(--text);border:1px solid var(--border)}.wide{width:100%}.btn-sm{padding:8px 10px;font-size:12px;border-radius:9px}.demo-box{margin-top:22px;background:#f5fafb;border:1px solid #d8eaed;border-radius:14px;padding:15px}.demo-box strong{display:block;font-size:13px;margin-bottom:8px}.demo-accounts{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;font-size:12px;color:var(--muted)}
.app-shell{min-height:100vh;display:grid;grid-template-columns:248px 1fr}.sidebar{background:var(--teal-950);color:white;padding:22px 16px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:6px 8px 22px;border-bottom:1px solid rgba(255,255,255,.11)}.mini-mark{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.11);display:grid;place-items:center}.sidebar-brand b{display:block}.sidebar-brand span{font-size:11px;color:#bcd4d9}.workspace-label{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#8fb0b8;padding:22px 12px 8px}.nav{display:grid;gap:5px}.nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;border-radius:10px;padding:10px 11px;color:#d5e4e7;background:transparent;font-weight:650}.nav button:hover,.nav button.active{background:rgba(255,255,255,.1);color:white}.nav-icon{width:20px;text-align:center}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.11);padding-top:14px}.user-mini{padding:10px 8px}.user-mini b{font-size:13px}.user-mini div{font-size:11px;color:#a9c4ca;margin-top:3px}
.main{min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:15}.top-left{display:flex;align-items:center;gap:12px}.crumb{font-weight:800}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn{width:38px;height:38px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--muted)}.profile-chip{display:flex;align-items:center;gap:9px;padding:5px 8px 5px 5px;border:1px solid var(--border);border-radius:12px;background:#fff}.avatar{width:32px;height:32px;border-radius:9px;background:#d8ecee;color:var(--teal-800);display:grid;place-items:center;font-weight:900}.profile-chip b{font-size:12px;display:block}.profile-chip span{font-size:10px;color:var(--muted)}
.content{padding:26px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}.page-head h1{font-size:28px;margin:0 0 5px}.page-head p{margin:0;color:var(--muted)}.head-actions{display:flex;gap:8px;flex-wrap:wrap}.section-title{font-size:16px;margin:0 0 12px}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 5px 18px rgba(20,44,55,.04)}.card-pad{padding:19px}.grid{display:grid;gap:16px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{padding:17px}.kpi .label{font-size:12px;color:var(--muted);font-weight:700}.kpi .value{font-size:29px;font-weight:900;margin:8px 0 2px}.kpi .meta{font-size:11px;color:var(--muted)}.kpi-accent{border-left:4px solid var(--cyan)}
.workspace-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.workspace-card{padding:20px;min-height:205px;display:flex;flex-direction:column;position:relative;overflow:hidden}.workspace-card:before{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-55px;top:-55px;background:var(--wash,#edf6f7)}.workspace-icon{width:48px;height:48px;border-radius:14px;background:var(--wash,#edf6f7);display:grid;place-items:center;font-size:23px;margin-bottom:16px;position:relative}.workspace-card h3{margin:0 0 6px}.workspace-card p{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 15px}.workspace-card ul{font-size:12px;color:#536674;padding-left:18px;margin:0 0 18px;line-height:1.7}.workspace-card button{margin-top:auto;align-self:flex-start}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:850px}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:left;padding:11px 12px;border-bottom:1px solid var(--border);background:#fafcfc}.table td{font-size:13px;padding:12px;border-bottom:1px solid #edf1f2;vertical-align:middle}.table tr:hover td{background:#fbfdfd}.patient-cell b{display:block}.patient-cell span{font-size:11px;color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.b-green{background:#e4f3ed;color:#246b57}.b-amber{background:#fbf0dd;color:#9a6421}.b-red{background:#f8e5e5;color:#9b4545}.b-blue{background:#e7eff6;color:#3d6788}.b-purple{background:#ede9f6;color:#5f518d}.b-gray{background:#eef1f3;color:#5e6b75}.b-cyan{background:#e0f3f4;color:#147783}.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.search{min-width:260px;flex:1;position:relative}.search input{width:100%;border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fff}.toolbar select{border:1px solid var(--border);border-radius:10px;padding:10px 11px;background:#fff;color:var(--text)}
.workflow{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:stretch}.workflow-step{background:#f8fbfb;border:1px solid var(--border);border-radius:12px;padding:12px;text-align:center;position:relative}.workflow-step b{font-size:19px;display:block}.workflow-step span{font-size:10px;color:var(--muted)}.workflow-step.hot{background:#eef8f8;border-color:#b9dde1}.workflow-step.warn{background:#fff8ee;border-color:#edd9b8}
.alert-list{display:grid;gap:8px}.alert-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f2}.alert-item:last-child{border-bottom:0}.alert-item b{font-size:13px}.alert-item span{font-size:11px;color:var(--muted)}
.split{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.form-grid .span-2{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;padding-top:15px;border-top:1px solid var(--border)}
.timeline{display:grid;gap:10px}.timeline-item{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:start}.time{font-size:11px;color:var(--muted);padding-top:3px}.event{border-left:3px solid var(--cyan);padding-left:12px}.event b{font-size:13px}.event p{margin:4px 0 0;color:var(--muted);font-size:11px}
.schedule-layout{display:grid;grid-template-columns:250px 1fr;gap:16px}.device-list{display:grid;gap:8px}.device-item{padding:12px;border:1px solid var(--border);border-radius:11px;background:#fff}.device-item b{display:block}.device-item span{font-size:11px;color:var(--muted)}.slots{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:9px}.slot{border:1px solid var(--border);border-radius:10px;padding:10px;background:#fff}.slot b{font-size:12px}.slot small{display:block;color:var(--muted);margin-top:3px}.slot.available{border-color:#b9ddd2;background:#f3faf7}.slot.busy{background:#f7f8f9;color:#81909a}.slot.walkin{border-color:#efd1a7;background:#fff9ef}
.pacs-shell{background:#101820;color:#e8f0f2;min-height:calc(100vh - 68px);margin:-26px;padding:18px}.pacs-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.pacs-top h1{font-size:20px;margin:0}.pacs-grid{display:grid;grid-template-columns:270px 1fr 220px;gap:10px;min-height:690px}.dark-panel{background:#16222b;border:1px solid #2a3a44;border-radius:12px;overflow:hidden}.dark-head{padding:11px 12px;border-bottom:1px solid #2a3a44;font-size:11px;color:#a9bac3;text-transform:uppercase;letter-spacing:.06em}.study-list{max-height:640px;overflow:auto}.study-item{padding:11px 12px;border-bottom:1px solid #24343e;cursor:pointer}.study-item:hover,.study-item.active{background:#20333f}.study-item b{display:block;font-size:12px}.study-item span{font-size:10px;color:#9fb0ba}.viewer-area{display:grid;grid-template-rows:auto 1fr auto}.viewer-tools{display:flex;gap:5px;flex-wrap:wrap;padding:9px;border-bottom:1px solid #2a3a44}.viewer-tools button{background:#20313c;color:#dce7eb;border:1px solid #314651;border-radius:7px;padding:7px 8px;font-size:10px}.viewer{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#050809;padding:2px}.viewport{min-height:500px;position:relative;background:radial-gradient(circle at 50% 50%,#90999c 0 8%,#50585b 9% 17%,#24292b 18% 29%,#090c0d 31%);display:flex;align-items:center;justify-content:center;overflow:hidden}.viewport:after{content:"";width:210px;height:300px;border-radius:44% 44% 48% 48%;border:8px solid rgba(220,225,226,.18);box-shadow:inset 0 0 60px rgba(255,255,255,.12);transform:rotate(var(--rot,0deg))}.viewport .overlay{position:absolute;left:9px;top:8px;font-size:9px;line-height:1.5;color:#cad4d8}.viewport .corner{position:absolute;right:8px;bottom:7px;font-size:9px;color:#a6b2b8}.series-list{padding:8px;display:grid;gap:8px}.series-thumb{height:95px;border:1px solid #32454f;border-radius:8px;background:radial-gradient(circle,#828b8f 0 10%,#343a3d 20%,#090b0c 45%);position:relative}.series-thumb span{position:absolute;left:6px;bottom:5px;font-size:9px;color:#cbd6da}.viewer-bottom{padding:8px 10px;border-top:1px solid #2a3a44;color:#9fb0ba;font-size:10px;display:flex;justify-content:space-between}
.clinical-hero{background:linear-gradient(120deg,#ffffff,#eef7f8);border:1px solid var(--border);border-radius:20px;padding:24px}.study-card{padding:16px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.report-box{background:#fbfcfc;border:1px solid var(--border);border-radius:12px;padding:14px;font-size:13px;line-height:1.65}.report-box h4{margin:0 0 7px}
.permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.perm{padding:10px;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:12px;display:flex;justify-content:space-between;gap:8px}.perm.on{background:#f2f9f9;border-color:#bddfe2}.switch{width:32px;height:18px;background:#c9d3d7;border-radius:99px;position:relative}.switch:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:white;top:2px;left:2px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.perm.on .switch{background:var(--cyan)}.perm.on .switch:after{left:16px}
.system-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.system{padding:13px;border:1px solid var(--border);border-radius:11px}.system .line{display:flex;justify-content:space-between;align-items:center}.system small{color:var(--muted)}
.modal-backdrop{position:fixed;inset:0;background:rgba(8,23,30,.52);z-index:100;display:grid;place-items:center;padding:18px}.modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.modal-head{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0}.modal-body{padding:20px}.modal-foot{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.close-x{border:0;background:#f1f4f5;border-radius:8px;width:32px;height:32px}
.modal-wide{width:min(1280px,96vw)}
.schedule-modal-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}
.schedule-sidebar{display:grid;gap:14px}
.schedule-main{display:grid;gap:14px}
.schedule-block{border:1px solid var(--border);border-radius:14px;padding:14px;background:#fbfcfc}
.small-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800;margin-bottom:8px}
.schedule-order-title{font-size:22px;font-weight:900;color:#23313f;line-height:1.2}
.schedule-patient-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px;display:grid;gap:5px;font-size:13px}
.schedule-patient-card b{font-size:20px}
.note-box{background:#f5fbfb}
.schedule-controls{gap:14px}
.wrap{flex-wrap:wrap}
.schedule-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--muted)}
.schedule-legend span{display:inline-flex;align-items:center;gap:6px}
.legend-box{width:12px;height:12px;border-radius:4px;display:inline-block;border:1px solid transparent}
.l-available{background:#e8f6ec;border-color:#b7dfc0}.l-selected{background:#dfeafb;border-color:#9ab7e7}.l-booked{background:#eef1f3;border-color:#d5dce0}.l-maintenance{background:#fff5dc;border-color:#ecd593}.l-weekly{background:#fdecec;border-color:#edb7b7}.l-outside{background:#f7f8f9;border-color:#e2e6e8}
.availability-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:2px}
.availability-head h4{margin:0;font-size:22px}
.availability-table-wrap{border:1px solid var(--border);border-radius:14px;overflow:auto}
.availability-table{width:100%;border-collapse:collapse;min-width:680px}
.availability-table th{padding:12px 14px;background:#fafcfc;border-bottom:1px solid var(--border);font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:left}
.availability-table td{padding:12px 14px;border-bottom:1px solid #edf1f2;font-size:14px}
.availability-table tr:last-child td{border-bottom:0}
.time-col{width:180px;font-weight:700;color:#50606e;background:#fff}
.slot-cell{font-weight:700}
.slot-cell.available{background:#eef9f0;color:#246b57;cursor:pointer}.slot-cell.available:hover{background:#e4f4e7}
.slot-cell.selected{background:#dfeafb;color:#24558c;cursor:pointer}
.slot-cell.booked{background:#f2f4f5;color:#6e7d88}
.slot-cell.maintenance{background:#fff5dc;color:#9a6a0f}
.slot-cell.weekly{background:#fdecec;color:#a14b4b}
.slot-cell.outside{background:#f7f8f9;color:#7a8892}
.slot-cell.limited{background:#f9fcf9;color:#7a9785}

.toast{position:fixed;right:20px;bottom:20px;z-index:200;background:#163c48;color:white;padding:12px 16px;border-radius:11px;box-shadow:var(--shadow);font-size:13px;max-width:360px;animation:toastin .18s ease}@keyframes toastin{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
.empty{padding:34px;text-align:center;color:var(--muted)}.divider{height:1px;background:var(--border);margin:16px 0}.hint{background:#eef8f8;border:1px solid #c9e5e7;border-radius:11px;padding:11px 12px;font-size:12px;color:#365d65}.warning{background:#fff6e8;border:1px solid #edd2a6;border-radius:11px;padding:11px 12px;font-size:12px;color:#7b5521}.critical{background:#fae9e9;border:1px solid #edc4c4;border-radius:11px;padding:11px 12px;font-size:12px;color:#884040}
@media(max-width:1100px){.grid-4,.workspace-grid{grid-template-columns:repeat(2,1fr)}.pacs-grid{grid-template-columns:220px 1fr}.pacs-grid>.dark-panel:last-child{display:none}.grid-3{grid-template-columns:repeat(2,1fr)}.workflow{grid-template-columns:repeat(4,1fr)}}
@media(max-width:820px){.login-page{grid-template-columns:1fr}.login-brand{display:none}.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;min-height:auto}.nav{grid-template-columns:repeat(2,1fr)}.sidebar-footer{display:none}.topbar{position:static}.split,.schedule-layout,.schedule-modal-layout{grid-template-columns:1fr}.grid-2,.grid-3,.grid-4,.workspace-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.pacs-grid{grid-template-columns:1fr}.pacs-grid>.dark-panel:first-child,.pacs-grid>.dark-panel:last-child{display:none}.viewport{min-height:320px}.workflow{grid-template-columns:repeat(2,1fr)}.system-grid,.permission-grid{grid-template-columns:1fr}.content{padding:18px}.pacs-shell{margin:-18px}}


/* Demo V1.2 additions */
.patient-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fbfcfc}
.patient-summary.compact{grid-template-columns:repeat(2,1fr);margin:10px 0}
.patient-summary>div{display:grid;gap:3px}.patient-summary span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.patient-summary b{font-size:13px}
.urgent-row{box-shadow:inset 4px 0 0 #c95b5b;background:#fffafa}.urgent-marker{margin-left:6px;color:#c95b5b}.urgent-text{color:#a94646;font-weight:800;margin-top:4px}
.device-worklist-strip{display:flex;gap:10px;overflow:auto;padding-bottom:4px}.device-worklist-card{min-width:145px;border:1px solid var(--border);background:#fff;border-radius:12px;padding:11px;text-align:left;display:grid;gap:4px;cursor:pointer}.device-worklist-card b{font-size:14px}.device-worklist-card span{font-size:11px;color:var(--muted)}.device-worklist-card strong{font-size:22px;color:var(--teal)}.device-worklist-card.active{border-color:#78bdc5;background:#eef9fa;box-shadow:0 0 0 2px rgba(34,166,179,.08)}
.l-held{background:#fff0b8;border-color:#e7c95a}.slot-cell.held{background:#fff4c9;color:#806515}
.column-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.column-picker .check{padding:10px;border:1px solid var(--border);border-radius:10px;background:#fbfcfc}
.protocol-review-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.protocol-review-head h3{margin:3px 0 4px;font-size:24px}
.core-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.core-tabs button{border:1px solid var(--border);background:#fff;border-radius:10px;padding:9px 12px;font-weight:800;color:#52677d}.core-tabs button.active{background:#164e63;color:#fff;border-color:#164e63}
.page-head.inner{margin:0 0 14px}.page-head.inner h2{margin:0 0 4px}
.config-flow{display:grid;gap:8px}.config-flow>div{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:10px;background:#fbfcfc}.config-flow span{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#e4f5f6;color:#164e63;font-weight:900}
.config-steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.config-steps span{padding:7px 10px;border-radius:99px;background:#eef1f3;color:#687984;font-size:11px;font-weight:800}.config-steps span.active{background:#dff3f4;color:#165a63}
.file-btn{display:inline-flex;align-items:center;cursor:pointer}
@media(max-width:820px){.patient-summary{grid-template-columns:1fr 1fr}.column-picker{grid-template-columns:1fr}}


/* Demo V1.3 — PACS Admin operational user administration */
.security-boundary{display:flex;justify-content:space-between;gap:18px;align-items:center;border:1px solid #b8dfe2;background:#f1fbfb;border-radius:14px;padding:14px 16px;margin-bottom:14px}
.security-boundary>div{display:grid;gap:4px}.security-boundary b{color:#164e63}.security-boundary span:not(.badge){font-size:12px;color:#667784;line-height:1.5}
.permission-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:285px;overflow:auto;border:1px solid var(--border);padding:10px;border-radius:12px;background:#fbfcfc}
.permission-check{display:flex;gap:8px;align-items:flex-start;border:1px solid #e7ecef;background:#fff;border-radius:9px;padding:9px;font-size:12px;line-height:1.35}
.permission-check input{margin-top:2px}.permission-check:has(input:disabled){opacity:.7;background:#f4f6f7}
.mini-heading{margin:0 0 8px;color:#314957}
.credential-box{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.credential-box>div{border:1px solid var(--border);background:#fbfcfc;border-radius:12px;padding:12px;display:grid;gap:5px}.credential-box span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:800}.credential-box b{font-size:15px;word-break:break-all}
@media(max-width:900px){.security-boundary{align-items:flex-start;flex-direction:column}.permission-selector{grid-template-columns:1fr}.credential-box{grid-template-columns:1fr}}


/* Demo V1.4 — PACS Admin Home + Users & Permissions only */
.admin-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.admin-kpi{appearance:none;text-align:left;padding:16px;border:1px solid var(--border);cursor:pointer;display:grid;gap:6px;transition:.15s ease;background:#fff;color:inherit}
.admin-kpi:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(25,54,69,.08);border-color:#a9cfd3}
.admin-kpi span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900}.admin-kpi b{font-size:30px;line-height:1;color:#164e63}.admin-kpi small{color:var(--muted);font-size:11px}
.admin-kpi.alert{background:#fff8f8;border-color:#efd0d0}.admin-kpi.alert b{color:#a94646}.admin-kpi.warning{background:#fffaf0;border-color:#ecd7ae}.admin-kpi.warning b{color:#9b6b1d}
.breakdown-list{display:grid;gap:8px}.breakdown-list>div{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid var(--border);border-radius:9px;background:#fbfcfc}.breakdown-list span{font-size:12px;color:#52677d}.breakdown-list b{font-size:13px;color:#1e2933}
.admin-activity{margin-top:12px;max-height:330px;overflow:auto}
@media(max-width:1250px){.admin-kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.admin-kpi-grid{grid-template-columns:repeat(2,1fr)}}


/* Demo V1.5 — Add User validation, hospital scopes, PACS Admin Integration/Audit */
.phone-input{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}
.phone-input span{display:flex;align-items:center;padding:0 12px;background:#eef6f7;color:#164e63;font-weight:900;border-right:1px solid var(--border);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.phone-input input{border:0!important;border-radius:0!important;box-shadow:none!important;flex:1}
.hospital-scope-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid var(--border);border-radius:12px;padding:10px;background:#fbfcfc;max-height:180px;overflow:auto}
.integration-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.integration-summary>div{display:grid;gap:3px;padding:9px;border:1px solid var(--border);border-radius:9px;background:#fbfcfc}.integration-summary span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:800}.integration-summary b{font-size:12px}
@media(max-width:760px){.hospital-scope-picker,.integration-summary{grid-template-columns:1fr}}


/* Demo V1.6 — PACS-style Clinical Viewer */
.clinical-pro{background:#071521;color:#e8f0f5;border-radius:18px;overflow:hidden;min-height:760px;border:1px solid #1d3545;box-shadow:0 18px 45px rgba(4,19,29,.18)}
.clinical-pro-head{display:grid;grid-template-columns:220px minmax(300px,1fr) auto;gap:16px;align-items:center;padding:14px 18px;background:#0a1b29;border-bottom:1px solid #203746}
.clinical-brandline{display:flex;align-items:center;gap:9px}.clinical-brand-mark{font-size:29px;color:#23c1c9}.clinical-brandline div{display:grid}.clinical-brandline b{font-size:16px}.clinical-brandline span{font-size:11px;color:#9bb0bd}
.clinical-searchbar{display:flex;max-width:720px;margin:auto;width:100%;background:#102331;border:1px solid #284151;border-radius:10px;overflow:hidden}.clinical-searchbar input{background:transparent!important;color:#e8f0f5!important;border:0!important;padding:11px 13px!important;flex:1}.clinical-searchbar button{border:0;background:transparent;color:#dbe7ec;padding:0 14px;font-size:18px;cursor:pointer}
.clinical-top-actions{display:flex;align-items:center;gap:8px}.cv-top-btn,.cv-select{background:#102331;color:#dbe7ec;border:1px solid #284151;border-radius:9px;padding:9px 11px}.cv-user{display:grid;text-align:right;font-weight:800;margin-left:8px}.cv-user small{font-weight:500;color:#92a8b6}
.clinical-study-section{padding:14px 16px 8px}.clinical-section-title{display:flex;align-items:center;gap:10px;margin-bottom:8px}.clinical-section-title h2{font-size:18px;margin:0}.clinical-section-title span{font-size:11px;background:#142a39;border:1px solid #284151;border-radius:8px;padding:4px 7px;color:#9fb3bf}
.clinical-table-wrap{border:1px solid #223a49;border-radius:11px;overflow:auto}.clinical-table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}.clinical-table th{background:#102432;color:#94abba;text-transform:none;font-weight:700;padding:9px 10px;text-align:left;border-bottom:1px solid #25404f}.clinical-table td{padding:9px 10px;border-bottom:1px solid #1b3241;color:#d8e4e9}.clinical-table tr{cursor:pointer;transition:.12s}.clinical-table tbody tr:hover{background:#0d2732}.clinical-table tbody tr.selected{background:#0d3a3c;box-shadow:inset 3px 0 0 #26bec4}.clinical-table .badge{font-size:9px}.cv-modality{font-weight:900;color:#9ee5e7}.cv-more{border:1px solid #2c5262;background:#133142;color:#d9edf1;border-radius:7px;padding:5px 9px;cursor:pointer}.cv-empty-row{text-align:center!important;color:#8da3b0!important}
.clinical-table-footer{display:flex;justify-content:space-between;align-items:center;padding:8px 3px;color:#7f97a5;font-size:10px}.cv-pagination{display:flex;gap:5px}.cv-pagination button{width:26px;height:26px;border:1px solid #294553;background:#102331;color:#c7d6dd;border-radius:6px}.cv-pagination button.active{background:#137d83;color:white;border-color:#1ba0a7}
.clinical-empty-viewer{margin:10px 16px 18px;border:1px dashed #2a4656;border-radius:14px;min-height:260px;display:grid;place-items:center;align-content:center;text-align:center;color:#8da3b0}.clinical-empty-viewer h3{color:#e5eef2;margin:8px 0}.clinical-empty-viewer p{max-width:560px}.cv-empty-icon{font-size:36px;color:#24aeb5}
.clinical-viewer-panel{border-top:1px solid #203746;background:#06131e}.clinical-study-context{display:grid;grid-template-columns:160px 1fr auto;gap:16px;align-items:center;padding:10px 16px;border-bottom:1px solid #203746;background:#0a1b29}.clinical-study-context>div{display:grid}.clinical-study-context b{font-size:12px}.clinical-study-context span{font-size:10px;color:#91a8b5}.cv-back{border:0;background:transparent;color:#cfe0e7;text-align:left;cursor:pointer;font-weight:700}
.clinical-viewer-grid{display:grid;grid-template-columns:230px minmax(500px,1fr) 300px;gap:8px;padding:8px}.cv-series-panel,.cv-main-viewer,.cv-info-panel{background:#091b28;border:1px solid #213b4a;border-radius:10px;overflow:hidden;min-height:520px}
.cv-panel-tabs{display:flex;border-bottom:1px solid #233d4b}.cv-panel-tabs button{flex:1;background:transparent;border:0;color:#92a8b5;padding:11px;cursor:pointer}.cv-panel-tabs button.active{color:#e8f1f4;border-bottom:2px solid #22bec5}
.cv-series-list{padding:8px;display:grid;gap:7px;max-height:440px;overflow:auto}.cv-series{display:grid;grid-template-columns:64px 1fr;gap:9px;align-items:center;background:#0e2533;border:1px solid #244151;border-radius:8px;color:#dce8ed;text-align:left;padding:6px;cursor:pointer}.cv-series.active{background:#0d3d42;border-color:#1bb7bd;box-shadow:0 0 0 1px rgba(27,183,189,.25)}.cv-series b{font-size:11px}.cv-series small{display:block;color:#90a5b2;margin-top:3px}.cv-thumb{height:52px;border-radius:5px;overflow:hidden;position:relative}.cv-compare-add,.cv-info-action{margin:8px;width:calc(100% - 16px);padding:9px;border-radius:8px;border:1px solid #2a5668;background:#123246;color:#dcecf1;cursor:pointer}.cv-compare-add:disabled,.cv-info-action:disabled{opacity:.45;cursor:not-allowed}
.cv-toolstrip{display:flex;align-items:stretch;background:#0b1f2d;border-bottom:1px solid #24404f;overflow:auto}.cv-toolstrip button{min-width:58px;background:transparent;border:0;border-right:1px solid #1e3949;color:#d2e0e6;padding:7px 6px;cursor:pointer;display:grid;gap:2px;place-items:center}.cv-toolstrip button:hover{background:#123243}.cv-toolstrip button span{font-size:17px}.cv-toolstrip button small{font-size:8px}.cv-tool-spacer{flex:1}.cv-zoom-label{display:flex;align-items:center;gap:4px;padding:0 11px;font-size:9px;color:#90a6b3}
.cv-viewport-shell{height:430px;background:#000;position:relative;overflow:hidden;display:grid;place-items:center}.clinical-synthetic-image{width:78%;height:88%;border-radius:50%;position:relative;transition:transform .16s,filter .16s;background:radial-gradient(ellipse at center,#25292a 0 9%,#d7d7d1 10% 13%,#5a5d5c 14% 20%,#171b1c 21% 48%,#9b9c96 49% 52%,#282c2c 53% 65%,#050606 66%);box-shadow:0 0 65px rgba(255,255,255,.04) inset}.clinical-synthetic-image.mod-mri{background:radial-gradient(ellipse at center,#aaa 0 8%,#333 9% 18%,#d3d3d3 19% 24%,#555 25% 45%,#141414 46% 58%,#aaa 59% 62%,#222 63%)}.clinical-synthetic-image.mod-xr{border-radius:28%;width:52%;height:92%;background:radial-gradient(ellipse at 34% 42%,#101010 0 28%,transparent 29%),radial-gradient(ellipse at 66% 42%,#101010 0 28%,transparent 29%),linear-gradient(90deg,#171717,#c4c4c4 49%,#eee 50%,#c4c4c4 51%,#171717);opacity:.92}.clinical-synthetic-image.mod-us{border-radius:12px;width:82%;height:82%;background:radial-gradient(circle at 55% 48%,#bfc0bb 0 5%,#4c4d4c 6% 13%,#181919 14% 45%,#555 46% 52%,#111 53%),repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 4px)}
.cv-anatomy-ring{position:absolute;border:2px solid rgba(230,230,225,.45);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}.ring-1{width:58%;height:47%}.ring-2{width:34%;height:29%}.cv-anatomy-organ{position:absolute;width:18%;height:28%;border-radius:50%;top:37%;background:rgba(15,16,16,.78);box-shadow:0 0 0 2px rgba(180,180,175,.22)}.organ-a{left:24%}.organ-b{right:24%}.cv-anatomy-center{position:absolute;width:9%;height:13%;left:45.5%;top:44%;border-radius:45%;background:#d6d4cc;box-shadow:0 0 0 5px #6d706e}.cv-overlay{position:absolute;top:10px;font:9px ui-monospace,SFMono-Regular,Menlo,monospace;color:#d7e0e5;line-height:1.5;text-shadow:0 1px 2px #000}.cv-overlay-left{left:10px}.cv-overlay-right{right:10px;text-align:right}.cv-not-diagnostic{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:.12em;color:#8d9ca5;background:rgba(0,0,0,.55);padding:4px 7px;border-radius:4px}
.cv-cinebar{height:46px;background:#0b1f2d;border-top:1px solid #213b4a;display:flex;align-items:center;gap:8px;padding:0 10px}.cv-cinebar button,.cv-cinebar select{background:#102a39;color:#d9e7ec;border:1px solid #2a4655;border-radius:6px;padding:5px 8px}.cv-cinebar input{flex:1;accent-color:#22b8bf}.cv-cinebar span{font-size:10px;color:#9fb2bd;min-width:56px}
.cv-info-body{padding:13px}.cv-info-body h3{margin:0;font-size:14px}.cv-patient-title{display:flex;gap:10px;align-items:center;margin-bottom:14px}.cv-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#174c67;color:#ccecf1;font-size:22px}.cv-patient-title span{font-size:10px;color:#91a6b4}.cv-dl{display:grid;gap:0;margin:0}.cv-dl>div{display:grid;grid-template-columns:110px 1fr;gap:8px;padding:8px 0;border-bottom:1px solid #18313f}.cv-dl dt{color:#849ba8;font-size:10px}.cv-dl dd{margin:0;color:#d8e3e8;font-size:10px}.cv-report-summary{margin-top:12px;border:1px solid #234454;border-radius:9px;padding:10px;background:#0d2432}.cv-report-summary p,.cv-report-text{font-size:10px;line-height:1.55;color:#a9bac4}.cv-report-text{margin:14px 0;border:1px solid #234454;border-radius:9px;padding:12px;background:#0d2432}
@media(max-width:1200px){.clinical-pro-head{grid-template-columns:180px 1fr}.clinical-top-actions{grid-column:1/-1}.clinical-viewer-grid{grid-template-columns:200px minmax(420px,1fr)}.cv-info-panel{grid-column:1/-1;min-height:auto}.clinical-study-context{grid-template-columns:130px 1fr}}
@media(max-width:820px){.clinical-pro-head{grid-template-columns:1fr}.clinical-viewer-grid{grid-template-columns:1fr}.cv-series-panel,.cv-info-panel{min-height:auto}.cv-viewport-shell{height:330px}.clinical-study-context{grid-template-columns:1fr}.clinical-top-actions{flex-wrap:wrap}}


/* Demo V1.7 — Dedicated full-screen Clinical Viewer workspace */
.clinical-fullscreen-shell{min-height:100vh;background:#06131e;color:#e8f0f5}
.clinical-fullscreen-main{min-height:100vh}
.clinical-pro-full{min-height:100vh;border-radius:0;border:0;box-shadow:none}
.clinical-pro-full .clinical-pro-head{position:sticky;top:0;z-index:40}
.cv-home-btn{width:38px;height:38px;border-radius:9px;border:1px solid #284151;background:#102331;color:#dbe7ec;display:grid;place-items:center;font-size:18px;cursor:pointer;margin-right:3px}
.cv-home-btn:hover{background:#143143;border-color:#3b5d6d}
.cv-user-menu-wrap{position:relative}
.cv-user-menu-btn{display:flex;align-items:center;gap:9px;min-width:200px;background:#102331;color:#e7f0f4;border:1px solid #284151;border-radius:10px;padding:6px 9px;cursor:pointer;text-align:left}
.cv-user-avatar{width:34px;height:34px;border-radius:9px;background:#174c67;color:#ccecf1;display:grid;place-items:center;font-weight:900}
.cv-user-menu-text{display:grid;min-width:0;flex:1}.cv-user-menu-text b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cv-user-menu-text span{font-size:9px;color:#91a8b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cv-user-caret{color:#93a9b5;font-size:13px}
.cv-user-dropdown{display:none;position:absolute;right:0;top:calc(100% + 7px);width:220px;background:#0c2130;border:1px solid #2a4655;border-radius:10px;box-shadow:0 16px 36px rgba(0,0,0,.35);overflow:hidden;z-index:60}
.cv-user-dropdown.open{display:block}.cv-user-dropdown-head{display:grid;padding:12px;border-bottom:1px solid #213b4a}.cv-user-dropdown-head b{font-size:12px}.cv-user-dropdown-head span{font-size:10px;color:#91a8b5;margin-top:2px}
.cv-user-dropdown button{width:100%;border:0;background:transparent;color:#f1d4d4;padding:11px 12px;text-align:left;cursor:pointer;font-weight:800}.cv-user-dropdown button:hover{background:#3b1f25}
@media(max-width:900px){.cv-user-menu-btn{min-width:auto}.cv-user-menu-text{display:none}.clinical-pro-full .clinical-pro-head{position:relative}}


/* Demo V1.8 — Formal RIS radiology report document */
.report-editor-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.report-editor-head h3{margin:3px 0;font-size:20px}
.report-preview-toolbar{display:grid;gap:8px;margin-bottom:12px}.report-preview-toolbar>div:first-child{display:grid}.report-preview-toolbar span{font-size:11px;color:var(--muted)}
.report-preview-stage{background:#e9eef0;border:1px solid var(--border);border-radius:14px;padding:18px;max-height:68vh;overflow:auto}
.report-preview-stage .ris-report-document{width:min(100%,794px);min-height:1123px;margin:0 auto;background:white;padding:42px 48px 58px;position:relative;box-shadow:0 8px 26px rgba(28,55,68,.12);color:#1e2933}
.report-preview-stage .rr-header{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;border-bottom:2px solid #14747e;padding-bottom:12px}.report-preview-stage .rr-org{display:flex;gap:11px;align-items:center}.report-preview-stage .rr-logo{width:48px;height:48px;border-radius:13px;background:#164e63;color:#fff;display:grid;place-items:center;font-weight:900;letter-spacing:.06em}.report-preview-stage .rr-org h1{font-size:18px;margin:0 0 4px}.report-preview-stage .rr-org p{margin:0;color:#667784;font-size:11px}.report-preview-stage .rr-report-title{text-align:right}.report-preview-stage .rr-report-title h2{font-size:20px;margin:0 0 7px}.report-preview-stage .rr-status{display:inline-block;border-radius:7px;padding:5px 9px;background:#dff1e8;color:#1e6c54;font-weight:900;font-size:11px}.report-preview-stage .is-preliminary .rr-status{background:#fff0c9;color:#996515}.report-preview-stage .rr-report-title small{display:block;margin-top:6px;color:#667784}.report-preview-stage .rr-running-header{display:none}
.report-preview-stage .rr-patient-summary{display:grid;grid-template-columns:1.2fr .8fr 1fr 1fr;gap:0;margin:15px 0 12px;border-top:1px solid #dce4e8;border-bottom:1px solid #dce4e8}.report-preview-stage .rr-patient-summary>div{padding:9px 10px;border-right:1px solid #e3e9ec;display:grid;gap:3px}.report-preview-stage .rr-patient-summary span{font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:#14747e;font-weight:900}.report-preview-stage .rr-patient-summary b{font-size:11px}.report-preview-stage .rr-wide{grid-column:span 2}.report-preview-stage .rr-full{grid-column:1/-1!important}.report-preview-stage .rr-secondary{font-size:9px;color:#536975;background:#f8fafb}
.report-preview-stage .rr-body{padding-top:3px}.report-preview-stage .rr-section{padding:11px 3px 12px;border-bottom:1px solid #e2e8eb}.report-preview-stage .rr-section h3{margin:0 0 7px;color:#116774;font-size:11px;letter-spacing:.03em}.report-preview-stage .rr-text{font-size:11px;line-height:1.55}.report-preview-stage .rr-impression{margin-top:8px;border:1px solid #a8d0d2;background:#f1fafa;border-radius:10px;padding:12px 14px}.report-preview-stage .rr-impression h3{font-size:13px}.report-preview-stage .rr-impression .rr-text{font-weight:800;font-size:12px}
.report-preview-stage .rr-signature{margin-top:16px;border:1px solid #dbe4e8;border-radius:11px;padding:13px;display:grid;grid-template-columns:1.25fr 1fr 90px;gap:16px;align-items:center}.report-preview-stage .rr-signature>div:not(.rr-seal){display:grid;gap:4px}.report-preview-stage .rr-signature span{font-size:9px;color:#14747e;font-weight:900}.report-preview-stage .rr-signature h3{margin:0;font-size:12px}.report-preview-stage .rr-signature p{margin:0;font-size:9px;color:#667784}.report-preview-stage .rr-seal{width:78px;height:78px;border:3px double #197568;border-radius:50%;display:grid;place-items:center;text-align:center;color:#197568;font-size:9px;font-weight:800}.report-preview-stage .rr-footer{position:absolute;left:48px;right:48px;bottom:26px;border-top:2px solid #14747e;padding-top:7px;display:flex;justify-content:space-between;gap:10px;color:#52677d;font-size:8px}
@media(max-width:900px){.report-preview-stage{padding:8px}.report-preview-stage .ris-report-document{padding:28px 24px 52px}.report-preview-stage .rr-header{display:grid}.report-preview-stage .rr-report-title{text-align:left}.report-preview-stage .rr-patient-summary{grid-template-columns:1fr 1fr}.report-preview-stage .rr-wide{grid-column:span 1}.report-preview-stage .rr-signature{grid-template-columns:1fr}.report-preview-stage .rr-footer{left:24px;right:24px}}


/* Demo V1.9 — Technologist completion verification */
.tech-staff-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid var(--border);border-radius:10px;padding:10px;background:#fbfcfc}
.tech-staff-picker .check{display:flex;align-items:center;gap:9px;padding:8px 9px;border:1px solid var(--border);border-radius:9px;background:#fff}
.tech-staff-picker .check span{display:grid;gap:2px}.tech-staff-picker .check small{font-size:10px;color:var(--muted)}
.tech-completion-summary{margin-top:14px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f7fafb;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tech-completion-summary>div{display:grid;gap:3px}.tech-completion-summary span{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800}.tech-completion-summary b{font-size:12px}.tech-completion-summary .span-2{grid-column:1/-1}
@media(max-width:760px){.tech-staff-picker,.tech-completion-summary{grid-template-columns:1fr}}


/* Demo V2.2 — Ultra-compact premium Technologist workflow + Patient Identity Management */
.modal-tech-case{width:min(720px,92vw);border:1px solid #d9e3e7;border-radius:18px;overflow:hidden;box-shadow:0 22px 60px rgba(16,42,53,.22)}
.modal-complete-exam{width:min(640px,92vw);border:1px solid #d9e3e7;border-radius:18px;overflow:hidden;box-shadow:0 22px 60px rgba(16,42,53,.22)}
.modal-tech-case .modal-head,.modal-complete-exam .modal-head{padding:12px 16px;background:linear-gradient(180deg,#fff,#fbfcfd)}
.modal-tech-case .modal-head h3,.modal-complete-exam .modal-head h3{font-size:19px}
.modal-tech-case .modal-body{padding:13px 16px 12px}
.modal-complete-exam .modal-body{padding:0 16px 12px}
.modal-tech-case .modal-foot,.modal-complete-exam .modal-foot{padding:10px 16px;background:#fbfcfd}
.modal-tech-case .modal-foot button,.modal-complete-exam .modal-foot button{min-height:38px;padding:8px 14px}
.modal-tech-case .modal-foot .primary-btn,.modal-complete-exam .modal-foot .primary-btn{min-width:150px}
.modal-tech-case .modal-foot .danger-btn{min-width:118px}
.tech-alert{margin-bottom:10px;padding:9px 11px;font-size:11px}

.tech-case-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px}
.tech-patient{display:flex;align-items:center;gap:9px;min-width:0}
.tech-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d8eef3,#edf6fa);color:var(--teal-800);font-weight:900;font-size:14px;border:1px solid #d5e7ec;flex:0 0 auto}
.tech-patient h2{font-size:17px;line-height:1.1;margin:0 0 3px}.tech-patient p{margin:0;color:var(--muted);font-size:10px}.tech-patient p span{padding:0 3px;color:#afbac0}
.tech-flags{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.tech-flags .badge{font-size:9px;padding:4px 7px}

.tech-exam-strip{display:grid;grid-template-columns:46px minmax(150px,1.35fr) minmax(92px,.72fr) minmax(112px,.86fr) minmax(88px,.68fr);align-items:stretch;border:1px solid #dce5e8;border-radius:11px;background:#fbfcfd;overflow:hidden}
.tech-exam-strip>div:not(.tech-exam-mark){padding:8px 10px;border-left:1px solid #e4eaed;display:grid;align-content:center;gap:2px;min-width:0}.tech-exam-strip span{font-size:8px;color:var(--muted);font-weight:800}.tech-exam-strip b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tech-exam-main b{font-size:12px}
.tech-exam-mark{min-height:50px;background:linear-gradient(145deg,var(--teal-800),#1d7183);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900;letter-spacing:.05em}

.tech-section{padding:10px 2px 8px}.tech-section-label{font-size:9px;font-weight:850;color:#405362;margin-bottom:7px}
.tech-progress{display:grid;grid-template-columns:minmax(88px,1fr) 30px minmax(105px,1fr) 30px minmax(88px,1fr);align-items:center;max-width:520px;margin:auto}
.tech-progress-line{height:2px;background:#dbe4e7}.tech-progress-line.active{background:#7cc5c8}
.tech-step{display:grid;justify-items:center;text-align:center;gap:2px}.tech-step i{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:900;font-size:10px;border:1px solid #d8e1e5;background:#f0f3f5;color:#81909a}.tech-step b{font-size:9px}.tech-step span{font-size:7px;color:#81909a;max-width:116px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tech-step.done i{background:#e2f3ec;border-color:#b9dfd1;color:#28775e}.tech-step.done b{color:#28775e}
.tech-step.active i{background:#fff0da;border-color:#f0d19d;color:#b57118}.tech-step.active b{color:#a76613}

.exam-activity{margin-top:4px}
.exam-activity-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.exam-activity-head b{font-size:9px;color:#405362}.exam-activity-head small{font-size:7px;color:#7b8a93}
.exam-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.exam-activity-card{display:flex;gap:7px;align-items:flex-start;min-width:0;border:1px solid #dde6e9;border-radius:10px;background:#fbfcfd;padding:8px}
.exam-activity-card.done{border-left:3px solid #3a9a77}.exam-activity-card.active{border-left:3px solid #d8953d}.exam-activity-card.pending{border-left:3px solid #b7c1c7}
.exam-activity-icon{width:24px;height:24px;border-radius:8px;background:#edf5f6;color:#2d7d8a;display:grid;place-items:center;font-size:10px;font-weight:900;flex:0 0 auto}
.exam-activity-copy{display:grid;gap:1px;min-width:0}.exam-activity-copy span{font-size:7px;color:#657984;font-weight:850}.exam-activity-copy b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exam-activity-copy small{font-size:7px;color:#7c8b94;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exam-activity-copy time{font-size:7px;color:#425e6c;font-weight:700;margin-top:2px}

.tech-clinical{margin-top:8px;border:1px solid #dce6e9;border-radius:9px;background:#fff;overflow:hidden}.tech-clinical summary{list-style:none;cursor:pointer;padding:8px 10px;display:flex;justify-content:space-between;align-items:center;gap:10px}.tech-clinical summary::-webkit-details-marker{display:none}.tech-clinical summary span{font-size:9px;font-weight:850}.tech-clinical summary small{font-size:7px;color:var(--muted)}.tech-clinical>div{border-top:1px solid #edf1f2;padding:8px 10px;font-size:9px;line-height:1.5;color:#465b68}
.tech-claim-panel{margin-top:8px;border:1px solid #cae2e5;border-radius:9px;background:#f3f9fa;padding:8px 9px;display:grid;gap:4px}.tech-claim-panel>div{display:flex;align-items:center;gap:8px}.tech-claim-panel .small-label{margin:0;white-space:nowrap;font-size:8px}.tech-claim-panel select{flex:1;border:1px solid #cbd9de;border-radius:8px;padding:6px 8px;background:#fff;font-size:9px}.tech-claim-panel small{color:var(--muted);font-size:7px}

/* Complete Exam — compact responsibility/timestamp record */
.complete-case-line{display:flex;align-items:center;gap:6px;padding:8px 1px 9px;color:#536875;font-size:9px;border-bottom:1px solid #edf1f2}.complete-case-line b{color:var(--text);font-size:11px}.complete-case-line span:nth-child(even){color:#aab6bc}
.complete-activity{margin-top:10px;border:1px solid #dce5e8;border-radius:11px;overflow:hidden;background:#fbfcfd}
.complete-activity-row{display:grid;grid-template-columns:1fr 1fr}.complete-activity-row+.complete-activity-row{border-top:1px solid #e4eaed}.complete-activity-row>div{padding:8px 10px;display:grid;gap:2px;min-width:0}.complete-activity-row>div+div{border-left:1px solid #e4eaed}.complete-activity-row span{font-size:7px;text-transform:uppercase;letter-spacing:.04em;color:#627783;font-weight:850}.complete-activity-row b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.complete-activity-row small{font-size:7px;color:#7d8b94;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.complete-activity-row .locked{background:#f4f6f7;color:#6e7d86}
.complete-field{display:grid;gap:4px}.complete-field label{font-size:9px;font-weight:850;color:#314755}.complete-field label em{font-style:normal;color:var(--muted);font-weight:650}.complete-additional{margin-top:9px}.complete-note{margin-top:8px}.complete-field textarea{width:100%;border:1px solid #d5e0e4;border-radius:9px;background:#fff;padding:8px 9px;color:var(--text);outline:none;min-height:52px;resize:vertical;font-size:9px}.complete-field textarea:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(34,166,179,.1)}.complete-field>small{font-size:7px;color:var(--muted)}.char-note{text-align:right}
.tech-staff-picker.compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;background:#fafcfc;border:1px solid #dce5e8;border-radius:9px}.tech-staff-picker.compact .check{padding:6px 7px;border-radius:7px}.tech-staff-picker.compact .check b{font-size:8px}.tech-staff-picker.compact .check small{font-size:7px}

@media(max-width:720px){
  .modal-tech-case,.modal-complete-exam{width:min(96vw,620px)}
  .tech-case-hero{align-items:flex-start}
  .tech-exam-strip{grid-template-columns:42px 1fr 1fr}.tech-exam-strip .tech-exam-main{grid-column:span 2}.tech-exam-strip>div:nth-child(n+4){border-top:1px solid #e4eaed}
  .tech-progress{grid-template-columns:1fr 18px 1fr 18px 1fr}
  .exam-activity-grid{grid-template-columns:1fr}
  .complete-activity-row{grid-template-columns:1fr}.complete-activity-row>div+div{border-left:0;border-top:1px solid #e4eaed}
  .tech-staff-picker.compact{grid-template-columns:1fr}
}


/* V2.2 readability: larger text without enlarging compact containers */
.modal-tech-case .tech-patient h2{font-size:19px}.modal-tech-case .tech-patient p{font-size:11px}.modal-tech-case .tech-exam-strip span{font-size:9px}.modal-tech-case .tech-exam-strip b{font-size:11.5px}.modal-tech-case .tech-exam-main b{font-size:13.5px}.modal-tech-case .tech-section-label{font-size:10.5px}.modal-tech-case .tech-step b{font-size:10.5px}.modal-tech-case .tech-step span{font-size:8.5px}.modal-tech-case .exam-activity-head b{font-size:10.5px}.modal-tech-case .exam-activity-head small{font-size:8.5px}.modal-tech-case .exam-activity-copy span{font-size:8.5px}.modal-tech-case .exam-activity-copy b{font-size:11px}.modal-tech-case .exam-activity-copy small,.modal-tech-case .exam-activity-copy time{font-size:8.5px}.modal-complete-exam .complete-case-line{font-size:10.5px}.modal-complete-exam .complete-case-line b{font-size:12.5px}.modal-complete-exam .complete-activity-row span{font-size:8.5px}.modal-complete-exam .complete-activity-row b{font-size:11px}.modal-complete-exam .complete-activity-row small{font-size:8.5px}.modal-complete-exam .complete-field label{font-size:10.5px}.modal-complete-exam .complete-field textarea{font-size:10.5px}

/* Temporary identity */
.identity-warning-badge{display:inline-flex;align-items:center;width:max-content;margin-top:4px;padding:3px 6px;border-radius:999px;background:#fff0d9;color:#9b641c;font-size:8px;font-weight:900;white-space:nowrap}.identity-warning{display:flex;align-items:flex-start;gap:10px;border:1px solid #efc46e;background:#fff8e8;border-radius:10px;padding:8px 10px;margin-bottom:10px;color:#7d5517}.identity-warning b{font-size:10px;white-space:nowrap}.identity-warning span{font-size:9px;line-height:1.4}.patient-cell .identity-warning-badge{display:flex;margin-top:4px}
.modal-patient-identity{width:min(720px,94vw);border-radius:18px;overflow:hidden}.modal-patient-identity .modal-body{padding:14px 18px}.patient-reg-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.patient-reg-top h3{margin:2px 0 0;font-size:17px}.temp-patient-toggle{display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #e3b85f;background:#fff8e8;border-radius:9px;color:#805719;font-size:10px;font-weight:850;cursor:pointer}.patient-register-grid .field{margin-bottom:10px}.patient-register-grid label{font-size:10px}.patient-register-grid input,.patient-register-grid select{min-height:38px}.patient-register-grid em{font-style:normal;color:#74848d;font-weight:600}.dob-age-inline{display:grid;grid-template-columns:1fr 26px .58fr;align-items:center;gap:5px}.dob-age-inline>span{text-align:center;font-size:8px;color:#85939a;font-weight:900}.patient-companion-toggle{padding:0;font-size:10px}.optional-temp label:after{content:' · Optional for unidentified patient';font-weight:500;color:#7f8b92}.reconcile-current{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #dce5e8;border-radius:10px;overflow:hidden;margin-bottom:10px}.reconcile-current>div{display:grid;gap:2px;padding:8px;border-left:1px solid #e5ebed}.reconcile-current>div:first-child{border-left:0}.reconcile-current span{font-size:8px;color:#6f818c;font-weight:800}.reconcile-current b{font-size:10px;overflow:hidden;text-overflow:ellipsis}.identity-admin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.identity-admin-summary>div{border:1px solid #dce5e8;border-radius:11px;background:#fbfcfd;padding:11px;display:grid;gap:4px}.identity-admin-summary b{font-size:11px;color:#164e63}.identity-admin-summary span{font-size:9px;color:#667784;line-height:1.45}

/* Additional Technologists searchable multi-select */
.multi-select{position:relative}.multi-select-trigger{width:100%;height:38px;border:1px solid #d5e0e4;background:#fff;border-radius:9px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;color:#314755;font-size:10.5px;cursor:pointer}.multi-select-menu{display:none;position:absolute;z-index:20;left:0;right:0;top:42px;background:#fff;border:1px solid #d7e1e5;border-radius:10px;box-shadow:0 14px 35px rgba(21,50,63,.16);padding:7px}.multi-select-menu.open{display:block}.multi-select-menu>input{width:100%;height:34px;border:1px solid #dde5e8;border-radius:7px;padding:0 8px;font-size:10px;margin-bottom:5px}.multi-option{display:flex;align-items:center;gap:7px;padding:6px 7px;border-radius:7px;cursor:pointer}.multi-option:hover{background:#f4f8f9}.multi-option span{display:grid;gap:1px}.multi-option b{font-size:10px}.multi-option small{font-size:8px;color:#758690}.multi-select-foot{border-top:1px solid #edf1f2;margin-top:4px;padding:6px 5px 1px;font-size:8px;color:#687b85;text-align:right}

/* Clinical search-by selector */
.clinical-searchbar select{background:#102331;color:#b9ccd5;border:0;border-right:1px solid #284151;padding:0 9px;font-size:10px;outline:none;max-width:145px}.clinical-searchbar select option{background:#fff;color:#1e2933}

@media(max-width:760px){.identity-admin-summary{grid-template-columns:1fr}.reconcile-current{grid-template-columns:1fr 1fr}.patient-reg-top{align-items:flex-start;flex-direction:column}.dob-age-inline{grid-template-columns:1fr 24px .6fr}.clinical-searchbar select{max-width:105px}}

#additional-tech-options{max-height:150px;overflow:auto}.report-preview-stage .rr-temp-warning{margin:9px 0 4px;border:1px solid #e5bd69;background:#fff6df;color:#916018;border-radius:7px;padding:6px 9px;font-size:9px;font-weight:900;text-align:center}


/* Demo V2.3 — Identity conflict safety + appointment printing */
.identity-warning-badge.conflict{background:#fde7e7;color:#a43f3f}
.identity-conflict-banner{border-color:#e9a4a4;background:#fff2f2;color:#8d3737}
.identity-conflict-hero{display:flex;align-items:center;gap:11px;border:1px solid #e9a4a4;background:#fff4f4;border-radius:12px;padding:11px 12px;margin-bottom:12px}.identity-conflict-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#c95b5b;color:#fff;font-size:18px;font-weight:900;flex:0 0 auto}.identity-conflict-hero h3{margin:0 0 3px;font-size:15px;color:#7c3030}.identity-conflict-hero p{margin:0;font-size:9px;color:#725656}
.identity-conflict-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}.identity-conflict-card{border:1px solid #dce5e8;border-radius:11px;padding:10px;display:grid;gap:3px;background:#fbfcfd}.identity-conflict-card.existing{border-left:4px solid #2e8b70}.identity-conflict-card.entered{border-left:4px solid #c95b5b}.identity-conflict-card span{font-size:8px;text-transform:uppercase;letter-spacing:.04em;color:#6d7e88;font-weight:850}.identity-conflict-card h4{margin:1px 0;font-size:12px}.identity-conflict-card b{font-size:10px;color:#164e63}.identity-conflict-card small{font-size:8px;color:#71818a;line-height:1.4}

.schedule-cell{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:150px}.appointment-inline-btn{border:1px solid #bdd7dc;background:#f3fafb;color:#155d6c;border-radius:7px;padding:4px 7px;font-size:8px;font-weight:850;white-space:nowrap;cursor:pointer}.appointment-inline-btn:hover{background:#e8f6f7}
.scheduled-appointment-list{display:grid;gap:7px;margin-top:11px}.scheduled-appointment-item{display:grid;grid-template-columns:minmax(190px,1.35fr) minmax(150px,.85fr) auto;align-items:center;gap:12px;border:1px solid #dce5e8;border-radius:10px;background:#fbfcfd;padding:9px 10px}.scheduled-appointment-item>div{display:grid;gap:2px}.scheduled-appointment-item b{font-size:10px}.scheduled-appointment-item span{font-size:8px;color:#6e808b}
.appointment-success{display:flex;align-items:center;gap:11px;border:1px solid #b9ddd2;background:#f2faf7;border-radius:12px;padding:11px;margin-bottom:12px}.appointment-success-icon{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#2e8b70;color:#fff;font-size:18px;font-weight:900}.appointment-success h3{margin:0 0 3px;font-size:15px;color:#246b56}.appointment-success p{margin:0;font-size:9px;color:#60777b}

@media(max-width:760px){
  .identity-conflict-grid{grid-template-columns:1fr}
  .scheduled-appointment-item{grid-template-columns:1fr}
  .schedule-cell{align-items:flex-start;flex-direction:column}
}


/* Demo V2.4 — Reception, appointment template admin, past-time scheduling */
.reception-permission-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.reception-permission-strip>div{display:flex;align-items:center;gap:8px;border:1px solid #cfe3de;background:#f2faf7;border-radius:10px;padding:9px 11px}.reception-permission-strip span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#2e8b70;color:#fff;font-weight:900}.reception-permission-strip b{font-size:10px;color:#2f5d50}.reception-jump{margin-top:8px}
.slot-cell.past{background:#f1f3f4;color:#9ba5aa;cursor:not-allowed}.l-past{background:#cfd5d8}
.facility-brand-card{min-height:170px}.facility-brand-preview{display:flex;align-items:center;gap:12px}.facility-brand-preview img,.branding-current-logo{width:62px;height:62px;border:1px solid #dce5e8;border-radius:12px;object-fit:contain;background:#fff;padding:4px}.brand-preview-fallback{width:62px;height:62px;border-radius:12px;background:#164e63;color:#fff;display:grid;place-items:center;font-size:18px;font-weight:900}.facility-brand-preview h3,.branding-modal-head h3{margin:0 0 4px}.facility-brand-preview span,.branding-modal-head span{font-size:9px;color:var(--muted)}.branding-modal-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.template-field-list{border:1px solid #dce5e8;border-radius:10px;overflow:hidden;background:#fbfcfd}.template-field-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 9px;border-top:1px solid #e7edef}.template-field-row:first-child{border-top:0}.template-field-row .check{margin:0}.template-field-row .check span{display:grid;gap:1px}.template-field-row .check b{font-size:9px}.template-field-row .check small{font-size:8px;color:#74858e}.template-field-row>div{display:flex;gap:4px}
.template-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 12px}.template-summary>div{display:grid;gap:2px;border-left:2px solid #d8e8ea;padding-left:8px}.template-summary span{font-size:8px;color:#6c7e88}.template-summary b{font-size:10px}
@media(max-width:800px){.reception-permission-strip{grid-template-columns:1fr 1fr}.template-summary{grid-template-columns:1fr}.facility-brand-preview{align-items:flex-start}}


/* Demo V2.5 — Premium compact patient registration */
.modal-patient-identity{
  width:min(660px,92vw);
  max-height:86vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d7e2e6;
  border-radius:18px;
  box-shadow:0 26px 72px rgba(12,37,48,.28)
}
.modal-patient-identity .modal-head{
  flex:0 0 auto;
  padding:12px 16px;
  background:linear-gradient(180deg,#fff,#fbfcfd)
}
.modal-patient-identity .modal-head h3{font-size:20px}
.modal-patient-identity .modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:12px 16px 10px;
  scrollbar-width:thin
}
.modal-patient-identity .modal-foot{
  flex:0 0 auto;
  position:relative;
  z-index:3;
  padding:10px 16px;
  background:#fff;
  box-shadow:0 -10px 24px rgba(25,55,66,.06)
}
.modal-patient-identity .modal-foot button{min-height:38px;padding:8px 14px}
.modal-patient-identity .patient-save-btn{min-width:154px;display:inline-flex;align-items:center;justify-content:center;gap:7px}

.patient-reg-top.compact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px
}
.patient-reg-top.compact .small-label{font-size:8px;letter-spacing:.12em}
.patient-reg-top.compact p{margin:2px 0 0;font-size:9px;color:#70818b}

.temp-patient-toggle.danger{
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:7px 10px;
  border:1px solid #9f3030;
  border-radius:10px;
  background:linear-gradient(135deg,#c95b5b,#a93838);
  color:#fff;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(169,56,56,.16);
  user-select:none
}
.temp-patient-toggle.danger:hover{background:linear-gradient(135deg,#c34f4f,#982f2f)}
.temp-patient-toggle.danger.active{background:linear-gradient(135deg,#ad3434,#7f2222);box-shadow:0 0 0 3px rgba(201,91,91,.15)}
.temp-patient-toggle.danger input{position:absolute;opacity:0;pointer-events:none}
.temp-patient-toggle.danger strong{font-size:9px;line-height:1.15;white-space:nowrap}
.temp-patient-toggle.danger .reg-icon{width:16px;height:16px;flex:0 0 auto}
.temp-toggle-check{
  width:17px;height:17px;border-radius:4px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.85);
  color:transparent;background:rgba(255,255,255,.12);
  font-size:11px;font-weight:900
}
.temp-patient-toggle.danger.active .temp-toggle-check{background:#fff;color:#9e3030}

.identity-warning-critical{
  align-items:center;
  gap:9px!important;
  border:1px solid #dc7777!important;
  background:#fff0f0!important;
  color:#8b3030!important;
  padding:8px 10px!important;
  border-radius:10px!important;
  margin-bottom:9px!important
}
.identity-warning-critical .reg-icon{width:18px;height:18px;flex:0 0 auto}
.identity-warning-critical>div{display:grid;gap:2px}
.identity-warning-critical b{font-size:9px!important}
.identity-warning-critical span{font-size:8px!important;line-height:1.35}

.patient-reg-section{
  border:1px solid #dde6e9;
  border-radius:11px;
  background:#fcfdfd;
  padding:9px 10px 2px;
  margin-bottom:8px
}
.patient-reg-section-title{
  display:flex;align-items:center;gap:7px;
  margin-bottom:7px;
  color:#405562
}
.patient-reg-section-title span{
  width:20px;height:20px;border-radius:7px;
  display:grid;place-items:center;
  background:#e7f3f5;color:#176878;
  font-size:8px;font-weight:900
}
.patient-reg-section-title b{font-size:10px}

.patient-register-grid.compact-grid{gap:7px 9px}
.patient-register-grid.compact-grid .field{margin-bottom:4px;gap:4px}
.patient-register-grid.compact-grid input,
.patient-register-grid.compact-grid select{
  min-height:34px;
  height:34px;
  border-radius:9px;
  padding:6px 9px;
  font-size:11px
}
.patient-register-grid.compact-grid input[type="date"]{padding-right:7px}
.reg-label{
  display:flex!important;
  align-items:center;
  gap:5px;
  font-size:9px!important;
  line-height:1.1
}
.reg-label em{font-size:8px;color:#7e8b93;font-weight:600}
.reg-icon{
  width:14px;height:14px;
  color:#21778a;
  display:inline-block;
  flex:0 0 auto
}
.reg-help{font-size:7.5px;color:#778991;line-height:1.25}
.dob-age-inline{grid-template-columns:minmax(0,1fr) 22px 72px;gap:4px}
.dob-age-inline>span{font-size:7px}
.companion-field{margin-top:0}
.patient-companion-toggle.premium{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #cfe1e5;
  background:#f5fafb;
  color:#176878;
  border-radius:8px;
  padding:6px 9px;
  font-size:9px;
  font-weight:850;
  cursor:pointer
}
.patient-companion-toggle.premium .reg-icon{width:13px;height:13px}
.patient-companion-toggle.premium small{font-size:7px;color:#7a8991;font-weight:650}
.patient-companion-toggle.premium.open{background:#eaf6f7}
.companion-wrap{margin-top:7px;gap:4px}
.optional-temp .reg-label:after{content:' · Optional';font-size:7px;font-weight:600;color:#89969c}

@media(max-height:760px){
  .modal-patient-identity{max-height:90vh;width:min(640px,94vw)}
  .modal-patient-identity .modal-head{padding:9px 14px}
  .modal-patient-identity .modal-body{padding:9px 14px 8px}
  .modal-patient-identity .modal-foot{padding:8px 14px}
  .patient-reg-section{padding:7px 8px 1px;margin-bottom:6px}
  .patient-register-grid.compact-grid input,.patient-register-grid.compact-grid select{height:32px;min-height:32px}
}
@media(max-width:700px){
  .modal-patient-identity{width:min(96vw,620px)}
  .patient-reg-top.compact{align-items:stretch;flex-direction:column}
  .temp-patient-toggle.danger{justify-content:center}
  .patient-register-grid.compact-grid{grid-template-columns:1fr}
  .patient-register-grid.compact-grid .span-2{grid-column:auto}
}


/* Demo V2.6 — Search-first Order Entry + premium temporary identity + approved appointment design */
.order-entry-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 250px;gap:12px;align-items:start}
.order-patient-search{display:grid;grid-template-columns:165px minmax(0,1fr) auto;gap:7px;margin-top:10px}.order-patient-search select,.order-patient-search input{height:40px;border:1px solid var(--border);border-radius:9px;background:#fff;padding:7px 10px}.order-search-input-wrap{position:relative}.order-search-input-wrap>span{position:absolute;left:11px;top:8px;font-size:20px;color:#73909c}.order-search-input-wrap input{width:100%;padding-left:36px}
.order-search-results{margin-top:8px;display:grid;gap:6px}.order-search-empty{border:1px dashed #d5e0e4;border-radius:10px;padding:13px;text-align:center;color:#74858e;font-size:10px}.order-search-empty.neutral{background:#fafcfc}.order-search-count{font-size:8px;color:#6e808a;font-weight:800}
.order-patient-result{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #dbe5e8;background:#fff;border-radius:10px;padding:8px 9px;text-align:left;cursor:pointer}.order-patient-result:hover{border-color:#8cc8ce;background:#f7fcfc}.order-patient-avatar{width:36px;height:36px;border-radius:50%;background:#e4f1f4;color:#176678;display:grid;place-items:center;font-weight:900;font-size:10px}.order-patient-result-main{display:grid;gap:1px}.order-patient-result-main b{font-size:10px}.order-patient-result-main span{font-size:8px;color:#4d6a76}.order-patient-result-main small{font-size:8px;color:#7a8991}.order-patient-result-side{display:grid;gap:4px;justify-items:end;font-size:8px;color:#74858d}
.order-no-patient{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #e0e7ea;border-radius:11px;background:#fbfcfd;padding:10px}.order-no-patient-icon{width:36px;height:36px;border-radius:10px;background:#f0f5f6;display:grid;place-items:center;font-size:20px;color:#627f8b}.order-no-patient>div:nth-child(2){display:grid;gap:2px}.order-no-patient b{font-size:10px}.order-no-patient span{font-size:8px;color:#71828c}
.selected-patient-card{margin-top:9px;border:1px solid #9fd0d4;border-radius:11px;background:#f5fbfb;padding:10px}.selected-patient-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center}.selected-patient-head>div:nth-child(2){display:grid;gap:1px}.selected-patient-head span{font-size:7px;color:#4a7580;font-weight:850}.selected-patient-head h3{font-size:12px;margin:0}.selected-patient-head small{font-size:8px;color:#607984}.selected-patient-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:8px;border-top:1px solid #d8e9eb}.selected-patient-grid>div{display:grid;gap:2px;padding:7px 8px;border-right:1px solid #e0ebed}.selected-patient-grid span{font-size:7px;color:#6e8088}.selected-patient-grid b{font-size:9px}
.order-create-card.is-locked{opacity:.6}.locked-order-field{height:40px;border:1px solid #d9e3e6;border-radius:9px;background:#f7f9fa;padding:6px 9px;display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}.locked-order-field b{font-size:10px}.locked-order-field em{font-style:normal;color:#788890;font-size:7px}.order-field-help{font-size:7.5px;color:#778990}
.clinical-indication-field label{display:flex;align-items:center;gap:4px}.clinical-indication-field label em{font-size:8px;color:#2d7581;font-style:normal;font-weight:700}.clinical-indication-field textarea{min-height:82px}.clinical-indication-field textarea.invalid{border-color:#c95b5b!important;box-shadow:0 0 0 3px rgba(201,91,91,.08)}.clinical-indication-meta{display:flex;justify-content:space-between;min-height:13px}.clinical-indication-meta span{font-size:8px;font-weight:800;color:#b14040}.clinical-indication-meta span.valid{color:#2e8b70}.clinical-indication-meta small{font-size:7px;color:#7c8a91}.compact-order-hint{font-size:8px;padding:8px 9px}
.order-mini-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:5px}.order-mini-flow>div{display:grid;justify-items:center;gap:4px;text-align:center}.order-mini-flow i{width:28px;height:28px;border-radius:50%;background:#e6f3f5;color:#17687a;display:grid;place-items:center;font-style:normal;font-weight:900}.order-mini-flow span{font-size:8px;font-weight:800}.order-mini-flow>b{color:#a6b4ba}
.case-track-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.case-track-head h3{margin:2px 0;font-size:16px}.case-track-head p{margin:0;color:#71828b;font-size:9px}.order-journey{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:13px}.order-journey-item{border:1px solid #dce5e8;border-radius:9px;padding:7px;display:flex;gap:6px;align-items:flex-start;background:#fafcfc;min-width:0}.order-journey-item i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eef2f3;color:#819098;font-size:8px;font-style:normal;font-weight:900;flex:0 0 auto}.order-journey-item>div{display:grid;gap:1px;min-width:0}.order-journey-item b{font-size:8px}.order-journey-item span,.order-journey-item small{font-size:7px;color:#77868e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-journey-item.done{border-color:#b9ddd1;background:#f3faf7}.order-journey-item.done i{background:#2e8b70;color:#fff}.order-journey-item.active{border-color:#efd097;background:#fff9ee}.order-journey-item.active i{background:#d8953d;color:#fff}
.temp-identity-banner{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;margin-bottom:9px;border:1px solid #d55f5f;border-radius:12px;background:linear-gradient(135deg,#c94d4d,#ae3939);color:#fff;padding:9px 11px;cursor:pointer;box-shadow:0 7px 18px rgba(166,55,55,.14);user-select:none}.temp-identity-banner:hover{background:linear-gradient(135deg,#c34646,#a73232)}.temp-identity-banner.active{background:linear-gradient(135deg,#ab3030,#8c2323);box-shadow:0 0 0 3px rgba(201,91,91,.14),0 7px 18px rgba(166,55,55,.18)}.temp-identity-banner>input{position:absolute;opacity:0;pointer-events:none}.temp-identity-shield{width:44px;height:44px;clip-path:polygon(50% 0,90% 14%,86% 72%,50% 100%,14% 72%,10% 14%);background:rgba(255,255,255,.96);display:grid;place-items:center}.temp-identity-shield span{width:18px;height:18px;border-radius:50%;background:#c34a4a;position:relative}.temp-identity-shield span:after{content:'';position:absolute;left:3px;right:3px;bottom:-7px;height:8px;border-radius:8px 8px 3px 3px;background:#c34a4a}.temp-identity-copy{display:flex;align-items:center;gap:8px;min-width:0}.temp-identity-copy .reg-icon{width:18px;height:18px;color:#fff}.temp-identity-copy>div{display:grid;gap:2px}.temp-identity-copy strong{font-size:10px}.temp-identity-copy small{font-size:8px;color:rgba(255,255,255,.82)}.temp-identity-control{display:flex;align-items:center;gap:7px}.temp-identity-control span{font-size:7px;font-weight:900}.temp-identity-control i{width:24px;height:24px;border:2px solid rgba(255,255,255,.85);border-radius:7px;display:grid;place-items:center;color:transparent;font-style:normal;font-weight:900;background:rgba(255,255,255,.08)}.temp-identity-banner.active .temp-identity-control i{background:#fff;color:#9b2c2c}
@media(max-width:1100px){.order-entry-layout{grid-template-columns:1fr 1fr}.order-side-card{grid-column:1/-1}.order-journey{grid-template-columns:repeat(4,1fr)}}@media(max-width:760px){.order-entry-layout{grid-template-columns:1fr}.order-patient-search{grid-template-columns:1fr}.selected-patient-grid{grid-template-columns:1fr 1fr}.order-journey{grid-template-columns:1fr 1fr}.temp-identity-banner{grid-template-columns:42px minmax(0,1fr) auto}}


/* Demo V2.7 — Clinical Viewer compact temporary-identity warning */
.cv-patient-cell,
.cv-study-patient-name{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0
}
.cv-patient-cell b,
.cv-study-patient-name b{
  min-width:0
}
.cv-identity-warning{
  position:relative;
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-grid;
  place-items:center;
  border:1px solid rgba(237,178,69,.62);
  border-radius:6px;
  background:rgba(245,179,52,.12);
  color:#f2b84a;
  cursor:help;
  vertical-align:middle
}
.cv-identity-warning svg{
  width:12px;
  height:12px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round
}
.cv-identity-warning.conflict{
  border-color:rgba(229,102,102,.72);
  background:rgba(201,91,91,.15);
  color:#ef8585
}
.cv-identity-warning::after{
  content:attr(data-tooltip);
  position:absolute;
  z-index:60;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(3px);
  width:max-content;
  max-width:230px;
  padding:6px 8px;
  border:1px solid #34515e;
  border-radius:7px;
  background:#102630;
  color:#eef8fa;
  font-size:8px;
  font-weight:700;
  line-height:1.25;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  box-shadow:0 8px 18px rgba(0,0,0,.28);
  transition:.14s ease
}
.cv-identity-warning::before{
  content:'';
  position:absolute;
  z-index:61;
  left:50%;
  bottom:calc(100% + 3px);
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:#34515e;
  opacity:0;
  visibility:hidden;
  transition:.14s ease
}
.cv-identity-warning:hover::after,
.cv-identity-warning:hover::before,
.cv-identity-warning:focus-visible::after,
.cv-identity-warning:focus-visible::before{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0)
}
.clinical-study-context .cv-study-patient-name{
  margin-bottom:2px
}


/* Demo V2.8 — Strict patient-name language validation */
.reg-validation{
  min-height:10px;
  display:block;
  margin-top:1px;
  font-size:7.5px;
  font-weight:800;
  color:transparent
}
.reg-validation.error{color:#b23f3f}
#p-name.invalid,
#p-name-ar.invalid,
#rpi-name.invalid,
#rpi-name-ar.invalid{
  border-color:#c95b5b!important;
  box-shadow:0 0 0 3px rgba(201,91,91,.08)
}


/* Demo V2.11 — My Orders ownership / created-time layout */
.order-created-cell{display:grid;gap:2px;white-space:nowrap}
.order-created-cell b{font-size:9px;font-weight:800;color:#314854}
.my-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}


/* Demo V2.15 — Appointment Settings responsive Grid/Typography + existing Add User */

/* Shared modal shell */
.modal-template-settings,.modal-user-editor{
  width:min(980px,94vw);
  max-height:90vh;
  display:flex;
  flex-direction:column;
  overflow:hidden
}
.modal-template-settings .modal-head,.modal-user-editor .modal-head{flex:0 0 auto}
.modal-template-settings .modal-body,.modal-user-editor .modal-body{
  overflow:auto;
  min-height:0;
  padding:16px 18px
}
.modal-template-settings .modal-foot,.modal-user-editor .modal-foot{
  flex:0 0 auto;
  background:#fff
}
.modal-foot-spacer{flex:1}
.required-star{color:#c64f4f;font-weight:900;margin-left:2px}
.compact-hint{padding:8px 10px;font-size:9px}

/* ---------------------------------------------------------
   Appointment Template Settings
   Responsive Grid + approved Form Typography Scale
   --------------------------------------------------------- */
.modal-template-settings .modal-head h3{
  font-size:18px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:-.015em
}
.modal-template-settings .template-settings-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:12px
}
.modal-template-settings .template-settings-summary .small-label{
  margin:0 0 2px;
  font-size:9px;
  line-height:1.25
}
.modal-template-settings .template-settings-summary h3{
  margin:0;
  font-size:13px;
  line-height:1.3;
  font-weight:850
}
.modal-template-settings .template-settings-summary .badge{
  font-size:9px
}

/* Tabs */
.modal-template-settings .settings-tabs{
  display:flex;
  gap:4px;
  padding:4px;
  background:#f1f5f6;
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:12px
}
.modal-template-settings .settings-tab{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  padding:8px 10px;
  border-radius:7px;
  color:#60717b;
  font-size:10.5px;
  line-height:1.25;
  font-weight:850;
  cursor:pointer
}
.modal-template-settings .settings-tab.active{
  background:#fff;
  color:#155f6a;
  box-shadow:0 1px 4px rgba(18,65,78,.08)
}
.modal-template-settings .settings-tab-panel{display:none}
.modal-template-settings .settings-tab-panel.active{display:block}

/* Section hierarchy */
.modal-template-settings .settings-section{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fbfcfc;
  padding:12px
}
.modal-template-settings .settings-section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  margin-bottom:10px
}
.modal-template-settings .settings-section-head>div{
  display:grid;
  gap:2px
}
.modal-template-settings .settings-section-head b{
  font-size:11.5px;
  line-height:1.3;
  font-weight:850
}
.modal-template-settings .settings-section-head span{
  font-size:9.5px;
  line-height:1.35;
  color:var(--muted)
}

/* Main Template fields: auto-wrap instead of fixed 2 columns */
.modal-template-settings .compact-settings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:0 12px
}
.modal-template-settings .compact-settings-grid .field{
  min-width:0;
  gap:6px
}
.modal-template-settings .compact-settings-grid label,
.modal-template-settings .instruction-editor-grid label{
  font-size:10.5px;
  line-height:1.3;
  font-weight:800
}
.modal-template-settings .compact-settings-grid input,
.modal-template-settings .compact-settings-grid select,
.modal-template-settings .instruction-editor-grid textarea{
  width:100%;
  min-width:0;
  font-size:13px;
  line-height:1.35;
  font-weight:500
}
.modal-template-settings .compact-settings-grid .tiny,
.modal-template-settings .instruction-editor-grid .tiny{
  font-size:9px;
  line-height:1.4
}

/* Arrival Reminder */
.modal-template-settings .number-unit-field{
  display:flex;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  overflow:hidden
}
.modal-template-settings .number-unit-field input{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important
}
.modal-template-settings .number-unit-field span{
  display:flex;
  align-items:center;
  padding:0 10px;
  background:#eef4f5;
  color:#566f7a;
  font-size:9px;
  line-height:1;
  font-weight:850
}

/* Option cards wrap 3 → 2 → 1 automatically */
.modal-template-settings .template-toggle-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:8px;
  margin-top:7px
}
.modal-template-settings .setting-toggle{
  display:flex;
  gap:8px;
  align-items:flex-start;
  min-width:0;
  border:1px solid #dce6e8;
  border-radius:10px;
  background:#fff;
  padding:9px;
  cursor:pointer
}
.modal-template-settings .setting-toggle input{
  flex:0 0 auto;
  margin-top:2px
}
.modal-template-settings .setting-toggle span{
  display:grid;
  gap:2px;
  min-width:0
}
.modal-template-settings .setting-toggle b{
  font-size:10.5px;
  line-height:1.3;
  font-weight:800
}
.modal-template-settings .setting-toggle small{
  font-size:9px;
  line-height:1.35;
  color:var(--muted)
}
.modal-template-settings .compact-hint{
  font-size:9.5px;
  line-height:1.4
}

/* Fields tab */
.modal-template-settings .template-field-table{
  border:1px solid #dce5e8;
  border-radius:10px;
  overflow:hidden;
  background:#fff
}
.modal-template-settings .template-field-head,
.modal-template-settings .template-field-row{
  display:grid;
  grid-template-columns:54px minmax(150px,1.15fr) minmax(150px,1.15fr) 112px;
  align-items:center;
  gap:8px
}
.modal-template-settings .template-field-head{
  padding:7px 9px;
  background:#f2f6f7;
  color:#667984;
  font-size:8.5px;
  line-height:1.25;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em
}
.modal-template-settings .template-field-list{
  border:0;
  border-radius:0;
  background:#fff;
  overflow:visible
}
.modal-template-settings .template-field-row{
  padding:7px 9px;
  border-top:1px solid #e7edef;
  min-height:42px
}
.modal-template-settings .template-field-row:first-child{border-top:0}
.modal-template-settings .template-field-row.dragging{
  opacity:.45;
  background:#eef9fa
}
.modal-template-settings .template-show{text-align:center}
.modal-template-settings .template-field-name b{
  font-size:10.5px;
  line-height:1.3
}
.modal-template-settings .template-field-ar{
  font-size:10px;
  line-height:1.35;
  color:#5f737d;
  text-align:right
}
.modal-template-settings .template-order-actions{
  display:flex!important;
  justify-content:flex-end;
  align-items:center;
  gap:4px!important
}
.modal-template-settings .drag-handle{
  cursor:grab;
  color:#91a1a8;
  font-size:15px;
  letter-spacing:-3px;
  margin-right:4px
}
.modal-template-settings .icon-order-btn{
  width:28px;
  height:28px;
  border:1px solid #d4e0e3;
  background:#fff;
  border-radius:7px;
  color:#304a57;
  font-size:11px;
  font-weight:900;
  cursor:pointer
}
.modal-template-settings .icon-order-btn:disabled{
  opacity:.35;
  cursor:not-allowed
}

/* Instructions: responsive 2 → 1 */
.modal-template-settings .instruction-editor-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:10px
}
.modal-template-settings .instruction-editor-grid .field{
  min-width:0;
  gap:6px
}
.modal-template-settings .instruction-editor-grid textarea{
  min-height:180px;
  line-height:1.55
}

/* ---------------------------------------------------------
   Add / Edit User — approved Responsive Grid + Form Typography
   --------------------------------------------------------- */
.user-editor-intro{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}
.modal-user-editor .modal-head h3{font-size:18px;line-height:1.2;font-weight:850;letter-spacing:-.015em}
.user-editor-intro .small-label{font-size:9px;line-height:1.25}.user-editor-intro h3{margin:2px 0 0;font-size:13px;line-height:1.3;font-weight:850}.user-editor-intro p{margin:2px 0 0;color:var(--muted);font-size:9.5px;line-height:1.4}
.user-editor-section{border:1px solid var(--border);border-radius:12px;background:#fbfcfc;padding:12px;margin-bottom:10px}
.user-section-head{display:flex;align-items:center;gap:8px;margin-bottom:9px}.user-section-head>span{width:25px;height:25px;border-radius:50%;background:#dff3f4;color:#146a74;display:grid;place-items:center;font-size:9px;font-weight:900}.user-section-head>div{display:grid;gap:2px}.user-section-head b{font-size:11.5px;line-height:1.3;font-weight:850}.user-section-head small{font-size:9.5px;line-height:1.35;color:var(--muted)}
.user-core-note{display:flex;align-items:center;gap:8px;padding:7px 9px;margin:0 0 10px;border:1px solid #cfe3e6;border-radius:9px;background:#f1f9fa}.user-core-note.locked{border-color:#d9e0e3;background:#f5f7f8}.user-core-note b{font-size:9.5px;color:#245966;white-space:nowrap}.user-core-note span{font-size:9px;line-height:1.35;color:#607782}
.user-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:0 12px}.user-editor-grid .field{min-width:0;gap:6px;margin-bottom:9px}.user-editor-grid .user-grid-full{grid-column:1/-1}
.modal-user-editor .field>label,.modal-user-editor .mini-heading{font-size:10.5px;line-height:1.3;font-weight:800}.modal-user-editor input,.modal-user-editor select,.modal-user-editor textarea{min-width:0;font-size:13px;line-height:1.35;font-weight:500}.modal-user-editor textarea{min-height:74px;resize:vertical}.modal-user-editor input:disabled,.modal-user-editor select:disabled{background:#f1f4f5;color:#5e7078;cursor:not-allowed}.modal-user-editor .tiny{font-size:9px;line-height:1.4}
.phone-input-v212 span{min-width:58px;justify-content:center;font-size:12px;font-weight:850}.user-field-error{display:block;min-height:12px;color:#b74646;font-size:9px;line-height:1.35;font-weight:800;margin-top:1px}
.read-only-credential{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #d8e4e7;border-radius:9px;background:#f5f8f9;padding:8px 10px}.read-only-credential>span{font:800 11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#203d4b}.read-only-credential small{font-size:9px;line-height:1.35;color:#687b84}
.role-template-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;border:1px solid #cfe1e4;border-radius:10px;background:#f4fbfb;padding:9px 10px;margin-top:4px}.role-preview-main{display:grid;gap:3px}.role-preview-main .small-label{font-size:8.5px}.role-preview-main b{font-size:10.5px;line-height:1.3}.role-preview-main p{margin:0;color:#5f747e;font-size:9px;line-height:1.45}.role-preview-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:6px}.role-preview-meta>div{display:grid;gap:3px;padding-left:8px;border-left:2px solid #d1e7e9}.role-preview-meta span{font-size:8px;line-height:1.3;color:#74868f}.role-preview-meta b{font-size:9px;line-height:1.35;color:#284b58}
.user-scope-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px}.user-scope-grid>div{min-width:0}.user-scope-grid .permission-selector{max-height:230px}.hospital-scope-picker{max-height:120px}
.appointment-print-choice{display:grid;gap:12px}.appointment-print-choice-head{display:grid;gap:3px}.appointment-print-choice-head b{font-size:12px;line-height:1.3}.appointment-print-choice-head span{font-size:9.5px;line-height:1.4;color:var(--muted)}.appointment-language-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px}.appointment-language-choice{position:relative;display:grid;gap:4px;text-align:left;min-height:84px;padding:12px;border:1px solid #d5e1e4;border-radius:11px;background:#fff;color:#233c48;cursor:pointer}.appointment-language-choice:hover{border-color:#94c6cc;background:#f7fbfb}.appointment-language-choice.preferred{border-color:#71b7bf;background:#eef9fa}.appointment-language-choice span{font-size:11px;font-weight:850}.appointment-language-choice small{font-size:9px;line-height:1.35;color:#687d86}.appointment-language-choice em{position:absolute;top:8px;right:8px;padding:2px 6px;border-radius:999px;background:#dff3f4;color:#176a74;font-size:7.5px;font-style:normal;font-weight:900}

/* Narrow settings modal */
@media(max-width:760px){
  .modal-template-settings,.modal-user-editor{width:96vw}
  .modal-user-editor .user-editor-grid,.modal-user-editor .user-scope-grid,.modal-user-editor .role-template-preview,.modal-user-editor .role-preview-meta{grid-template-columns:1fr}
  .modal-user-editor .user-editor-grid .user-grid-full{grid-column:auto}
  .user-core-note{align-items:flex-start;flex-direction:column;gap:2px}
}
@media(max-width:620px){
  .modal-template-settings .template-settings-summary{
    align-items:flex-start;
    flex-wrap:wrap
  }
  .modal-template-settings .settings-tabs{overflow-x:auto}
  .modal-template-settings .settings-tab{
    min-width:120px;
    flex:1 0 120px
  }
  .modal-template-settings .compact-settings-grid,
  .modal-template-settings .instruction-editor-grid,
  .modal-template-settings .template-toggle-grid{
    grid-template-columns:1fr
  }
  .modal-template-settings .settings-section-head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px
  }
  .modal-template-settings .template-field-head{
    grid-template-columns:44px minmax(130px,1fr) 92px
  }
  .modal-template-settings .template-field-head span:nth-child(3){display:none}
  .modal-template-settings .template-field-row{
    grid-template-columns:44px minmax(130px,1fr) 92px;
    align-items:center
  }
  .modal-template-settings .template-field-ar{
    grid-column:2;
    grid-row:2;
    text-align:left
  }
  .modal-template-settings .template-order-actions{
    grid-column:3;
    grid-row:1/3
  }
}

/* Demo V2.14 — Resolve Temporary Identity responsive Grid + balanced Form Typography */
.modal-patient-identity .modal-head h3{
  font-size:18px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:-.015em
}

/* Warning banner: important, but not visually louder than the modal title */
.modal-patient-identity .identity-warning{
  align-items:center;
  gap:9px;
  padding:8px 10px
}
.modal-patient-identity .identity-warning b{
  font-size:10.5px;
  line-height:1.35
}
.modal-patient-identity .identity-warning span{
  font-size:9.5px;
  line-height:1.4
}

/* Current patient summary */
.modal-patient-identity .reconcile-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
  margin-bottom:8px
}
.modal-patient-identity .reconcile-summary-grid>div{
  min-width:0;
  border-left:1px solid #e5ebed;
  padding:8px 9px;
  gap:3px
}
.modal-patient-identity .reconcile-summary-grid>div:first-child{border-left:0}
.modal-patient-identity .reconcile-summary-grid span{
  font-size:9px;
  line-height:1.25;
  font-weight:800
}
.modal-patient-identity .reconcile-summary-grid b{
  font-size:11px;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

/* HIS source note */
.modal-patient-identity .reconcile-source-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:8px 10px;
  margin:0 0 9px;
  line-height:1.4
}
.modal-patient-identity .reconcile-source-note b{
  flex:0 0 auto;
  font-size:10px;
  line-height:1.35
}
.modal-patient-identity .reconcile-source-note span{
  font-size:9.5px;
  line-height:1.4;
  color:#4e6d78
}

/* Compact responsive sections */
.modal-patient-identity .reconcile-section{
  border:1px solid #e0e8ea;
  background:#fbfcfc;
  border-radius:11px;
  padding:10px 10px 2px;
  margin-bottom:8px
}
.modal-patient-identity .reconcile-section-last{margin-bottom:0}
.modal-patient-identity .reconcile-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px
}
.modal-patient-identity .reconcile-section-head b{
  color:#284b58;
  font-size:11.5px;
  line-height:1.3;
  font-weight:850
}
.modal-patient-identity .reconcile-section-head span{
  color:#788a93;
  font-size:9.5px;
  line-height:1.35;
  text-align:right
}

.modal-patient-identity .reconcile-form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr));
  gap:0 12px
}
.modal-patient-identity .reconcile-form-grid .field{
  min-width:0;
  margin-bottom:9px;
  gap:6px
}
.modal-patient-identity .reconcile-form-grid .reconcile-full{grid-column:1/-1}

/* Unified form typography scale */
.modal-patient-identity .reconcile-form-grid label{
  font-size:10.5px;
  line-height:1.3;
  font-weight:800
}
.modal-patient-identity .reconcile-form-grid input,
.modal-patient-identity .reconcile-form-grid select{
  width:100%;
  min-width:0;
  font-size:13px;
  line-height:1.35;
  font-weight:500
}
.modal-patient-identity .reconcile-form-grid input::placeholder{
  font-size:13px;
  font-weight:500
}
.modal-patient-identity .reconcile-form-grid em{
  font-style:normal;
  color:#7c8b92;
  font-weight:650;
  font-size:9.5px
}
.modal-patient-identity .reconcile-form-grid .reg-help{
  font-size:9px;
  line-height:1.4;
  color:#778991
}
.modal-patient-identity .reconcile-form-grid .reg-validation{
  font-size:9px;
  line-height:1.35
}
.modal-patient-identity .reconcile-form-grid .required-star{
  font-size:10px;
  vertical-align:baseline
}
.modal-patient-identity .reconcile-form-grid .dob-age-inline>span{
  font-size:9px;
  line-height:1;
  font-weight:850
}

@media(max-width:590px){
  .modal-patient-identity .reconcile-form-grid{grid-template-columns:1fr}
  .modal-patient-identity .reconcile-form-grid .reconcile-full{grid-column:auto}
  .modal-patient-identity .reconcile-section-head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px
  }
  .modal-patient-identity .reconcile-section-head span{text-align:left}
  .modal-patient-identity .reconcile-source-note{
    flex-direction:column;
    gap:3px
  }
}


/* ---------------------------------------------------------
   V2.18 — Temporary Staff Identity
   --------------------------------------------------------- */
.temp-staff-policy{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:3px;
  padding:10px 11px;
  border:1px solid #e2bf77;
  border-radius:10px;
  background:#fff8ea
}
.temp-staff-policy-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 38px;
  background:#f1d798;
  color:#784e0f;
  font-size:11px;
  font-weight:900
}
.temp-staff-policy>div:last-child{display:grid;gap:2px}
.temp-staff-policy b{font-size:10.5px;line-height:1.3;color:#6e4a15}
.temp-staff-policy span{font-size:9px;line-height:1.45;color:#725c39}
.temp-staff-account-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 10px;
  margin:0 0 10px;
  border:1px solid #e2bf77;
  border-radius:10px;
  background:#fff8ea
}
.temp-staff-account-strip.expired{border-color:#e1aaaa;background:#fff1f1}
.temp-staff-account-strip>div{display:grid;gap:2px}
.temp-staff-account-strip b{font-size:10px;line-height:1.3;color:#6c4d1c}
.temp-staff-account-strip.expired b{color:#9c3636}
.temp-staff-account-strip span{font-size:8.8px;line-height:1.4;color:#715f43}
.temp-staff-account-strip strong{
  white-space:nowrap;
  font-size:9px;
  padding:4px 8px;
  border-radius:999px;
  background:#f2dfb0;
  color:#765015
}
.temp-staff-account-strip.expired strong{background:#f2c9c9;color:#983737}
.temp-staff-login-warning{
  display:flex;
  gap:12px;
  align-items:center;
  padding:2px 0 10px
}
.temp-staff-warning-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 44px;
  background:#fff0cc;
  border:1px solid #e3bd67;
  color:#875815;
  font-size:20px;
  font-weight:900
}
.temp-staff-login-warning>div:last-child{display:grid;gap:2px}
.temp-staff-login-warning h3{margin:0;font-size:15px;line-height:1.25}
.temp-staff-login-warning p{margin:0;font-size:10px;line-height:1.45;color:var(--muted)}
.temp-staff-countdown{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:2px 0 12px
}
.temp-staff-countdown>div{
  min-width:0;
  display:grid;
  gap:4px;
  padding:9px 10px;
  border:1px solid #d7e2e5;
  border-radius:9px;
  background:#f8fbfb
}
.temp-staff-countdown span{font-size:8px;line-height:1.3;color:#6b7f88;font-weight:800;text-transform:uppercase}
.temp-staff-countdown b{font-size:11px;line-height:1.3;color:#203e4a;overflow-wrap:anywhere}
@media(max-width:700px){
  .temp-staff-countdown{grid-template-columns:1fr}
  .temp-staff-account-strip{align-items:flex-start;flex-direction:column}
}


/* ---------------------------------------------------------
   V2.20 — CT Multi-Exam Scheduling
   --------------------------------------------------------- */
.multi-ct-panel{
  border:1px solid #a9d4d8;
  border-radius:12px;
  background:#f7fbfc;
  padding:11px;
  margin-bottom:12px
}
.multi-ct-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid #d7e7e9
}
.multi-ct-head h4{margin:2px 0 2px;font-size:12px;line-height:1.3}
.multi-ct-head p{margin:0;font-size:9px;line-height:1.4;color:var(--muted)}
.multi-ct-orders{display:grid;gap:5px;padding:8px 0}
.multi-ct-order{
  display:grid;
  grid-template-columns:auto 24px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  min-width:0;
  padding:7px 8px;
  border:1px solid #dbe5e7;
  border-radius:9px;
  background:#fff;
  cursor:pointer
}
.multi-ct-order.anchor{
  border-color:#9ccbd0;
  background:#eef8f9;
  cursor:default
}
.multi-ct-order input{margin:0}
.multi-ct-order-index{
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  background:#e5f3f4;color:#176d76;
  font-size:8px;font-weight:900
}
.multi-ct-order>div{min-width:0;display:grid;gap:2px}
.multi-ct-order>div b{font-size:10px;line-height:1.3}
.multi-ct-order>div small{font-size:8px;line-height:1.35;color:#6c7f87}
.multi-ct-order em{font-size:7.5px;font-style:normal;font-weight:900;color:#176b74}
.multi-ct-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  padding-top:7px;
  border-top:1px solid #d7e7e9
}
.multi-ct-actions #multi-ct-live-summary{
  margin-left:auto;
  font-size:9px;
  color:#185d67
}
.multi-visit-tag{
  display:inline-block;
  margin-top:3px;
  font-size:8px;
  line-height:1.3;
  color:#176a74;
  font-weight:850
}
.booked-multi-list{
  display:grid;
  gap:5px;
  margin:10px 0;
  padding:9px;
  border:1px solid #d6e5e7;
  border-radius:10px;
  background:#f8fbfb
}
.booked-multi-list>div{
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  gap:7px;
  align-items:center
}
.booked-multi-list>div>span{
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  background:#dff2f3;color:#176c75;
  font-size:8px;font-weight:900
}
.booked-multi-list b{font-size:9.5px;line-height:1.3}
.booked-multi-list small{font-size:8px;color:var(--muted)}
@media(max-width:760px){
  .multi-ct-head{flex-direction:column}
  .multi-ct-order{grid-template-columns:auto 24px minmax(0,1fr)}
  .multi-ct-order>.badge,.multi-ct-order>em{grid-column:3}
  .multi-ct-actions #multi-ct-live-summary{width:100%;margin-left:0}
}


/* ---------------------------------------------------------
   V2.21 — Full Page RIS Scheduling Workspace
   --------------------------------------------------------- */
.schedule-workspace-page{max-width:1680px;margin:0 auto}
.schedule-workspace-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:18px;
  margin-bottom:16px
}
.schedule-workspace-title{display:flex;align-items:flex-start;gap:11px;min-width:0}
.schedule-back-btn{
  width:38px;height:38px;flex:0 0 38px;border:1px solid var(--border);border-radius:10px;
  background:#fff;color:var(--teal-800);font-size:20px;font-weight:800;
  display:grid;place-items:center
}
.schedule-back-btn:hover{background:#edf7f8;border-color:#b8dce0}
.schedule-breadcrumb{
  display:block;font-size:9px;line-height:1.3;font-weight:850;letter-spacing:.08em;
  text-transform:uppercase;color:#6d838d;margin-bottom:3px
}
.schedule-workspace-title h1{font-size:26px;line-height:1.2;margin:0 0 4px}
.schedule-workspace-title p{font-size:12px;line-height:1.45;margin:0;color:var(--muted)}

.schedule-workspace-grid{
  display:grid;
  grid-template-columns:245px minmax(560px,1fr) 270px;
  gap:14px;
  align-items:start
}
.schedule-page-left,.schedule-page-center,.schedule-page-right{display:grid;gap:12px;min-width:0}
.schedule-page-left,.schedule-page-right{position:sticky;top:84px}
.schedule-page-card{
  background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:13px;box-shadow:0 4px 14px rgba(20,44,55,.035);min-width:0
}
.schedule-patient-premium{grid-template-columns:38px minmax(0,1fr);align-items:center}
.schedule-patient-premium .schedule-patient-avatar{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:#dff2f3;color:#146b75;font-size:11px;font-weight:900
}
.schedule-patient-premium>div:nth-child(2){display:grid;gap:2px;min-width:0}
.schedule-patient-premium>div:nth-child(2) b{font-size:14px;line-height:1.25}
.schedule-patient-premium>div:nth-child(2) span{font-size:9px;color:var(--muted)}
.schedule-patient-premium dl{grid-column:1/-1;margin:4px 0 0;padding-top:7px;border-top:1px solid #edf1f2;display:grid;gap:5px}
.schedule-patient-premium dl>div{display:flex;justify-content:space-between;gap:8px}
.schedule-patient-premium dt,.schedule-patient-premium dd{margin:0;font-size:9px}
.schedule-patient-premium dt{color:var(--muted)}.schedule-patient-premium dd{font-weight:800}
.schedule-procedure-line{display:flex;align-items:center;gap:9px}
.schedule-procedure-line>div{display:grid;gap:2px;min-width:0}
.schedule-procedure-line b{font-size:11px;line-height:1.35}
.schedule-procedure-line small{font-size:8.5px;line-height:1.35;color:var(--muted)}
.schedule-modality-icon{
  width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;
  background:#e7f4f5;color:#126775;font-size:9px;font-weight:900
}
.schedule-safety-card{display:flex;align-items:flex-start;gap:9px;background:#f4fafb;border-color:#cee4e7}
.schedule-rule-icon{
  width:25px;height:25px;flex:0 0 25px;border-radius:50%;display:grid;place-items:center;
  background:#dff1f3;color:#176a74;font-size:10px;font-weight:900
}
.schedule-safety-card b{font-size:10px}.schedule-safety-card p{font-size:8.8px;line-height:1.45;color:#5e747e;margin:3px 0 0}

.schedule-controls-card{padding:14px 14px 5px}
.schedule-controls-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:9px}
.schedule-controls-header h3{font-size:13px;line-height:1.3;margin:1px 0 0}
.schedule-controls-premium{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.schedule-controls-premium .field{margin-bottom:9px;gap:5px}
.schedule-controls-premium .field label{font-size:9.5px}
.schedule-controls-premium .field input,.schedule-controls-premium .field select{padding:10px 11px;font-size:12px;border-radius:9px}

.schedule-rule-banner{background:#eef8f8;border:1px solid #c9e5e7;border-radius:11px;padding:10px 11px;font-size:10px;color:#365d65}
.schedule-rule-banner.warning{background:#fff6e8;border-color:#edd2a6;color:#7b5521}
.schedule-rule-banner .schedule-legend{gap:8px 12px;font-size:9px}

.schedule-availability-card{padding:0;overflow:hidden}
.schedule-availability-card .availability-head{padding:11px 13px;border-bottom:1px solid var(--border);margin:0;background:#fbfcfc}
.schedule-availability-card .availability-head h4{font-size:15px;line-height:1.3}
.schedule-availability-card .availability-table-wrap{
  border:0;border-radius:0;max-height:calc(100vh - 365px);min-height:390px;overflow:auto
}
.schedule-availability-card .availability-table{min-width:540px}
.schedule-availability-card .availability-table thead th{position:sticky;top:0;z-index:2}
.schedule-availability-card .availability-table th{padding:9px 12px;font-size:9px}
.schedule-availability-card .availability-table td{padding:8px 12px;font-size:11px}
.schedule-availability-card .time-col{width:150px}
.schedule-availability-card .slot-cell.available:hover{box-shadow:inset 3px 0 0 var(--green)}
.schedule-availability-card .slot-cell.selected{box-shadow:inset 3px 0 0 var(--teal-700)}

.schedule-booking-summary-card{padding:0;overflow:hidden}
.schedule-summary-title{
  display:flex;align-items:center;gap:8px;padding:12px 13px;border-bottom:1px solid var(--border);
  background:#fbfcfc
}
.schedule-summary-title>span{
  width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#e5f4f5;color:#176d76;font-size:12px
}
.schedule-summary-title>div{display:grid;gap:1px}
.schedule-summary-title b{font-size:11px}.schedule-summary-title small{font-size:8px;color:var(--muted)}
#schedule-booking-summary{padding:11px 13px}
.booking-summary-status{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #dbe4e6;border-radius:9px;background:#f8fbfb;margin-bottom:9px}
.booking-summary-status>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#e8eff2;color:#71838c;font-size:10px;font-weight:900}
.booking-summary-status>div{display:grid;gap:1px}.booking-summary-status b{font-size:9.5px}.booking-summary-status small{font-size:7.8px;color:var(--muted)}
.booking-summary-status.ready{border-color:#b8decf;background:#f0faf6}.booking-summary-status.ready>span{background:#d9f1e7;color:#23765e}
.booking-summary-status.blocked{border-color:#ebcccc;background:#fff5f5}.booking-summary-status.blocked>span{background:#f5dddd;color:#9a4848}
.booking-summary-list{display:grid}
.booking-summary-list>div{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:7px 0;border-bottom:1px solid #edf1f2}
.booking-summary-list>div:last-child{border-bottom:0}
.booking-summary-list span{font-size:8px;color:var(--muted)}
.booking-summary-list b{font-size:9px;text-align:right;line-height:1.35}
.booking-summary-list b small{display:block;font-size:7.5px;color:var(--muted);font-weight:600}
.schedule-hold-timer{display:flex;justify-content:space-between;align-items:center;margin-top:9px;padding:7px 8px;border-radius:8px;background:#eef8f8}
.schedule-hold-timer span{font-size:8px;color:#56727c}.schedule-hold-timer b{font-size:10px;color:#176a74}
.schedule-summary-empty{padding:12px 4px;text-align:center;font-size:8.5px;color:var(--muted)}
.schedule-summary-actions{display:grid;gap:7px;padding:0 13px 13px}
.schedule-summary-actions button{font-size:10px;padding:10px}
.schedule-summary-actions button:disabled{opacity:.45;cursor:not-allowed}
.schedule-help-card b{font-size:9.5px}.schedule-help-card p{font-size:8.5px;line-height:1.5;color:var(--muted);margin:4px 0 0}

.schedule-workspace-page .multi-ct-panel{margin:0}
.schedule-workspace-page .multi-ct-head h4{font-size:11px}
.schedule-workspace-page .multi-ct-head p{font-size:8.5px}
.schedule-workspace-page .multi-ct-order{padding:6px 7px}
.schedule-workspace-page .multi-ct-order>div b{font-size:9px}
.schedule-workspace-page .multi-ct-order>div small{font-size:7.5px}

@media(max-width:1280px){
  .schedule-workspace-grid{grid-template-columns:220px minmax(520px,1fr) 235px}
}
@media(max-width:1050px){
  .schedule-workspace-grid{grid-template-columns:210px minmax(0,1fr)}
  .schedule-page-right{position:static;grid-column:1/-1;grid-template-columns:1fr 1fr}
  .schedule-page-left{top:84px}
  .schedule-availability-card .availability-table-wrap{max-height:560px}
}
@media(max-width:820px){
  .schedule-workspace-head{flex-direction:column}
  .schedule-workspace-grid{grid-template-columns:1fr}
  .schedule-page-left,.schedule-page-right{position:static}
  .schedule-page-left{grid-template-columns:1fr}
  .schedule-page-right{grid-column:auto;grid-template-columns:1fr}
  .schedule-controls-premium{grid-template-columns:1fr}
  .schedule-availability-card .availability-table-wrap{max-height:520px;min-height:320px}
}


/* ---------------------------------------------------------
   V2.24 — Radiology Intake / Protocol Pool / Live Tech Workflow
   --------------------------------------------------------- */
.sched-work-page,.protocol-work-page,.tech-work-page{max-width:1680px;margin:0 auto;display:grid;gap:14px}
.sched-work-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.sched-work-head h1{margin:0;font-size:26px;line-height:1.2;letter-spacing:-.025em}.sched-work-head p{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.sched-filter-bar{display:grid;grid-template-columns:minmax(360px,1fr) 200px 200px auto;gap:11px;align-items:end;padding:12px;border:1px solid var(--border);border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(20,44,55,.03)}
.sched-search-box{height:44px;display:flex;align-items:center;gap:8px;border:1px solid #d6e1e4;border-radius:9px;padding:0 12px;background:#fbfcfc}.sched-search-box span{font-size:17px;color:#6a7e87}.sched-search-box input{width:100%;border:0;outline:0;background:transparent;font-size:12px}
.sched-filter-field{display:grid;gap:5px}.sched-filter-field label{font-size:10px;font-weight:850;color:#536d79}.sched-filter-field select{height:44px;border-radius:9px;font-size:11.5px}
.sched-admin-boundary{align-self:center;display:inline-flex;padding:7px 9px;border-radius:999px;background:#fff4df;color:#8a5a17;font-size:9.5px;font-weight:900;white-space:nowrap}
.sched-work-panel{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:0 5px 16px rgba(20,44,55,.035)}
.sched-work-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #e7edef;background:#fcfdfd}.sched-work-panel-head>div{display:grid;gap:3px}.sched-work-panel-head h3{margin:0;font-size:14px;line-height:1.3}.sched-work-panel-head span{font-size:10px;line-height:1.4;color:var(--muted)}.sched-work-panel-head>b{min-width:30px;height:30px;border-radius:999px;background:#e7f4f5;color:#176c75;display:grid;place-items:center;font-size:11px}
.sched-work-table-wrap{overflow:auto}.sched-work-table{width:100%;border-collapse:collapse;min-width:980px}.sched-work-table th{text-align:left;padding:10px 11px;background:#f8fbfb;border-bottom:1px solid #dce6e8;font-size:10px;line-height:1.3;color:#5a7180;font-weight:900;letter-spacing:.025em}.sched-work-table td{padding:11px;border-bottom:1px solid #edf1f2;vertical-align:middle;font-size:11.5px}.sched-work-table tbody tr:last-child td{border-bottom:0}.sched-work-table tbody tr:hover{background:#fbfdfd}.sched-work-table td>b{display:block;font-size:11.5px;line-height:1.35;color:#223a46}.sched-work-table td>small{display:block;margin-top:3px;font-size:9.5px;line-height:1.4;color:var(--muted)}
.sched-priority{display:inline-flex;padding:4px 8px;border-radius:7px;font-size:9.5px;font-weight:900}.sched-priority.routine{background:#e9f2f8;color:#4b7595}.sched-priority.urgent{background:#fff0da;color:#9a671c}.sched-priority.stat{background:#fbe1e1;color:#a64444}.sched-relation{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:7px;background:#edf7f8;color:#176b75;font-size:9.5px;font-weight:850;white-space:nowrap}.sched-relation.none{background:transparent;color:#9aa8ae}
.sched-action-cell{text-align:right}.sched-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center;white-space:nowrap}.sched-actions .btn-sm,.sched-action-cell .btn-sm{font-size:10px;padding:8px 10px}.sched-modality-pill{display:inline-flex;padding:4px 8px;border-radius:7px;background:#e8f5f6;color:#176d77;font-size:9.5px;font-weight:900}.sched-no-action{font-size:9.5px;color:#9aa8ae}.sched-filter-empty{padding:22px;text-align:center;color:var(--muted);font-size:10.5px;background:#fbfcfc}
.schedule-current-appointment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px;padding:11px 13px;border:1px solid #e3c985;border-radius:11px;background:#fff8e9}.schedule-current-appointment>div{display:grid;gap:2px}.schedule-current-appointment b{font-size:11.5px;color:#704d18}.schedule-current-appointment small{font-size:9px;color:#7b6847}

.tech-work-tabs,.protocol-folder-tabs,.protocol-modality-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tech-work-tabs button,.protocol-folder-tab,.protocol-modality-bar button{border:1px solid #d7e3e6;background:#fff;border-radius:9px;padding:8px 11px;font-size:10.5px;font-weight:850;color:#526d79}.tech-work-tabs button.active,.protocol-folder-tab.active,.protocol-modality-bar button.active{background:#e6f4f5;border-color:#9fcfd3;color:#176b75}.tech-work-tabs button b,.protocol-folder-tab b{margin-left:6px;background:#eef3f5;border-radius:999px;padding:2px 6px;font-size:9px}
.protocol-modality-bar select{height:36px;min-width:130px;border-radius:9px;font-size:10.5px}
.protocol-suggested{display:block;margin-top:4px;color:#9a671c!important}
.protocol-triage-table .table th,.tech-readable-table .table th{font-size:10px}.protocol-triage-table .table td,.tech-readable-table .table td{font-size:11.5px}.protocol-triage-table .table .tiny,.tech-readable-table .table .tiny{font-size:9.5px}
.tech-readable-table td>b{font-size:11.5px}.tech-readable-table td>small{display:block;margin-top:3px;font-size:9.5px;color:var(--muted)}
.tech-claim-panel em{font-style:normal;color:#6d7f87;font-size:9px;font-weight:700}

@media(max-width:1000px){.sched-filter-bar{grid-template-columns:1fr 1fr}.sched-search-box{grid-column:1/-1}.sched-admin-boundary{justify-self:start}}
@media(max-width:650px){.sched-work-head{flex-direction:column}.sched-filter-bar{grid-template-columns:1fr}.sched-search-box{grid-column:auto}.schedule-current-appointment{grid-template-columns:1fr}.sched-actions{white-space:normal;flex-wrap:wrap}}
