.queue-search{display:flex;gap:8px;margin:19px 0 13px}.queue-search input{flex:1;min-width:0}.queue-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:thin}.queue-tab{flex:none;border:1px solid #e0e6f0;background:#f7f9fc;color:#62738c;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:750}.queue-tab:hover{border-color:#afb9ed;color:#4757c3}.queue-tab.selected{background:#e7ebff;border-color:#c8d0ff;color:#3e4fc1}.queue-list{display:grid;gap:7px;max-height:460px;overflow:auto}.queue-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;border:1px solid #e7ebf2;background:#fff;border-radius:11px;padding:11px 13px;color:#21314b}.queue-row:hover,.queue-row.chosen{border-color:#a9b6f2;background:#fafbff}.queue-row strong{font-size:12px}.queue-row small{display:block;color:#8190a2;font-size:10px;margin-top:4px}.queue-main{min-width:0}.queue-drug{font-weight:600;color:#75839a;margin-left:5px}.queue-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:40%}.queue-meta small{text-align:right;width:100%}.selected-note:empty{display:none}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.detail-header .eyebrow{margin-bottom:6px}.detail-header h2{margin-bottom:4px}.detail-header .muted{font-size:11px}.source-compare{align-items:stretch}.source-compare .info-panel{min-height:240px;background:#fbfcff}.source-compare .info-panel dl{grid-template-columns:100px 1fr}.source-image{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:auto;border:1px solid #e2e7ef;border-radius:7px;background:white}.subhead{color:#738299;font-size:10px;letter-spacing:.13em;margin:2px 0 9px}.ledger-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e9edf3}.ledger-row:last-child{border-bottom:0}.ledger-row>div:first-child{min-width:0}.ledger-row>div:last-child{text-align:right;flex:none;max-width:42%}.ledger-row strong{font-size:11px;display:block;color:#283a55}.ledger-row small{font-size:10px;display:block;line-height:1.4;color:#7b8ba0;margin-top:3px;overflow-wrap:anywhere}.label-preview{display:grid;gap:5px;border:1px dashed #aeb8ca;border-radius:9px;padding:13px 15px;background:#fdfefe;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;color:#27394f}.label-preview strong{font-size:12px}.workflow-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:11px}.workflow-actions>.note,.workflow-actions>.alert{grid-column:1/-1}.task-card{border:1px solid #e3e9f0;background:#fff;border-radius:12px;padding:15px;box-shadow:0 4px 15px #1c2f4908}.task-card h4{font-size:13px;margin:0 0 6px;color:#1f3150}.task-card>p{font-size:11px;color:#73839a;line-height:1.45;margin:0 0 13px}.task-card .form-grid{gap:9px;margin:8px 0}.task-card .field label{font-size:10px}.task-card .field input,.task-card .field select{font-size:11px;min-height:36px;padding:7px 9px}.task-card .scan-input{font-size:15px!important;letter-spacing:.05em;min-height:49px!important}.task-card .actions{margin-top:10px}.task-card .primary{font-size:11px;min-height:34px;padding:8px 11px}.task-card .check{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#526178;line-height:1.4;margin-top:9px}.task-card .check input{min-height:0;margin:2px 0 0;flex:none}.form-error{color:#ad493e;font-size:11px;margin-top:7px;min-height:0}.form-error:not(:empty){padding:8px 9px;border:1px solid #f2cdc8;background:#fff3f1;border-radius:7px}.lot-note{font-size:10px;color:#74869c;margin-top:6px}.timeline{border-left:1px solid #d9e1ec;margin-left:5px;padding-left:16px}.timeline-row{position:relative;padding:0 0 14px}.timeline-row:last-child{padding-bottom:0}.timeline-dot{position:absolute;width:7px;height:7px;border:2px solid #6574dd;background:#fff;border-radius:50%;left:-20px;top:4px}.timeline-row strong{font-size:11px;text-transform:capitalize;color:#2c3d57}.timeline-row small{display:block;color:#8090a5;font-size:10px;line-height:1.45;margin-top:3px}.print-history .ledger-row{padding:7px 0}@media(max-width:980px){.workflow-actions{grid-template-columns:1fr}.queue-row{align-items:flex-start}}@media(max-width:600px){.queue-row{display:block}.queue-meta{justify-content:flex-start;max-width:none;margin-top:8px}.queue-meta small{text-align:left}.source-compare{grid-template-columns:1fr}.detail-header{display:block}}

.initial-status{margin:14px 0;padding:14px 16px;border-radius:12px}.initial-status p{margin:5px 0}.approval-record{background:#eef8f5;border:1px solid #c7e6db;color:#285e50}.initial-history,.rx-timeline{margin-top:18px;padding:12px;border:1px solid #e2e7ef;border-radius:10px}.initial-history pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.initial-history summary,.rx-timeline summary{cursor:pointer;font-weight:600}.patient-review{margin:12px 0}.task-card textarea{width:100%;box-sizing:border-box;font:inherit;border:1px solid #d7dfec;border-radius:8px;padding:8px}
.print-job {border-top:1px solid var(--border,#dce3ed);padding:16px 0;}
.print-job form {display:grid;gap:10px;margin-top:12px;}
.print-artifact {display:block;width:min(100%,400px);height:auto;margin:16px auto;border:1px solid #dce3ed;background:#fff;}
.print-history {font-size:12px;overflow-wrap:anywhere;}
.initial-status .jump-task{display:block;margin-top:10px;width:fit-content}
.review-access strong{display:block;margin-bottom:5px}.review-access button{margin-top:4px}

.table-scroll{overflow:auto}.operations-table{width:100%;border-collapse:collapse;font-size:12px;margin:12px 0 20px}.operations-table th,.operations-table td{text-align:left;padding:9px;border-bottom:1px solid #e3e9f0;overflow-wrap:anywhere}.operations-table th{color:#63748d}.stock-list{max-height:330px;overflow:auto;margin:14px 0}.stock-list .record-row{width:100%;text-align:left;background:white}.stock-selection,.receiving{margin:18px 0}.stock-selection .task-card{margin-bottom:12px}.report-date{display:flex;gap:12px;align-items:end;margin-bottom:20px}

.record-tools,.optional-assignment{grid-column:1/-1;padding:12px;border:1px solid #e3e9f0;border-radius:10px}.record-tools>.workflow-actions{margin-top:12px}.optional-assignment .task-card{margin-top:12px}.record-tools summary,.optional-assignment summary{cursor:pointer;font-weight:600}.new-patient-profile textarea{width:100%;min-height:70px;border:1px solid #dce3ed;border-radius:9px;font:inherit;padding:9px}
.operations-form .form-grid>label{display:flex;flex-direction:column;gap:6px}.operations-form .form-grid input,.operations-form .form-grid select{width:100%}

/* Managed staff and synthetic delivery use the same task-form vocabulary. */
.staff-accounts .task-card{margin:12px 0}
.staff-accounts .operations-form .form-grid>p,.staff-accounts .operations-form .form-grid>.field{grid-column:1/-1;margin:0}
.staff-accounts .operations-form .form-grid>label.check{flex-direction:row;align-items:center;gap:9px;margin:0;min-height:30px}
.staff-accounts .operations-form .form-grid input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;flex:none}
.synthetic-inbox-tools{margin:18px 0}
.synthetic-inbox-tools summary{cursor:pointer;font-weight:650}
.synthetic-inbox-tools>p{color:#65748a;line-height:1.5}
.synthetic-inbox-tools form{display:grid;gap:14px;padding:18px;background:#fff;border:1px solid #dce3ec;border-radius:12px}
.synthetic-inbox-tools form>label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#45536a}
.synthetic-inbox-tools input,.synthetic-inbox-tools textarea{width:100%;min-width:0}
.synthetic-inbox-tools textarea{font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;border:1px solid #dce3ec;border-radius:10px;padding:12px;color:#243650;resize:vertical}
.synthetic-inbox-tools textarea:focus-visible{outline:3px solid #9aafff;outline-offset:2px}
.synthetic-inbox-tools button{justify-self:start}
.inbox-result:empty{display:none}
.inbox-result button{margin:8px 0 0;display:block}
/* Secondary chat tasks share the workstation form rhythm. */
.device-admin .task-card,.pharmacy-tasks .task-card { margin:12px 0; }
.device-admin form,.pharmacy-tasks form,.till-form,.task-open { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; margin-top:16px; }
.device-admin form label,.pharmacy-tasks form label,.till-form label,.task-open label { display:grid; gap:6px; color:var(--muted,#526480); font-size:12px; font-weight:600; }
.device-admin form input,.device-admin form select,.pharmacy-tasks form input,.pharmacy-tasks form select,.till-form input,.till-form select,.task-open select { width:100%; }
.device-admin form p,.device-admin form h3,.pharmacy-tasks form p,.till-form p,.task-open p { grid-column:1 / -1; margin:0; }
.device-admin form button,.pharmacy-tasks form button,.till-form button,.task-open button { justify-self:start; align-self:end; }
.pharmacy-tasks form label:has(textarea),.task-open label:has(textarea) { grid-column:1 / -1; }
.pharmacy-tasks textarea,.task-open textarea { min-height:72px; }
.pharmacy-tasks pre { white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto; }
.device-admin [hidden],.pharmacy-tasks [hidden],.basket-lines [hidden] { display:none!important; }
@media(max-width:650px){.device-admin form,.pharmacy-tasks form,.till-form,.task-open { grid-template-columns:1fr; }}
/* Catalog and will-call use the same compact task controls as other workflows. */
.catalog-search,.catalog-detail,.willcall-correction { margin:1rem 0; }
.catalog-search label,.product-editor label,.willcall-correction label { display:flex;flex-direction:column;gap:.45rem;font-size:.85rem;font-weight:600; }
.willcall-correction {display:grid;gap:.8rem;}
.catalog-search input,.catalog-search select,.product-editor input,.product-editor select,.product-editor textarea,.willcall-correction input,.willcall-correction select,.willcall-correction textarea {width:100%;box-sizing:border-box;border:1px solid #d7e0ee;border-radius:10px;padding:.7rem;background:#fff;color:#20304e;font:inherit;}
.catalog-detail pre {white-space:pre-wrap;overflow-wrap:anywhere;}
.catalog-pager {align-items:center;justify-content:center;}

.catalog-detail > dl {display:grid;grid-template-columns:180px 1fr;gap:.55rem 1rem;padding:1rem;background:white;border:1px solid #e0e7f0;border-radius:12px;}
.catalog-detail > dl dt {font-size:.8rem;color:#7184a3;}
.catalog-detail > dl dd {margin:0;overflow-wrap:anywhere;}
.willcall-tools {border:1px solid #dce4f0;border-radius:12px;padding:1rem;align-self:start;}
.willcall-tools > summary {cursor:pointer;font-weight:600;}
@media(max-width:600px){.catalog-detail > dl{grid-template-columns:1fr;}.catalog-detail > dl dd{margin-bottom:.5rem;}}
