/* RMS Workshop layout r3 — only the approved single-queue workspace. RMS native variables and typography retained. */
.rms-workshop-layout-r3{--rms-red:var(--color-bosch-red,#E20015);--rms-dark:var(--color-charcoal,#191919);--rms-muted:var(--color-bosch-gray,#525F6B);margin:4px 0 20px;color:var(--rms-dark);font:inherit}
.rms-layout-r3-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 15px}
.rms-layout-r3-heading h2{font-size:20px;font-weight:800;letter-spacing:-.025em;margin:0 0 4px}
.rms-layout-r3-heading p{font-size:12px;color:#6b7787;margin:0}
.rms-layout-r3-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.rms-layout-r3-secondary,.rms-layout-r3-primary{min-height:42px;padding:10px 14px;border:1px solid #e2e6eb;border-radius:10px;background:white;font-size:12px;font-weight:750;color:#334155;cursor:pointer;margin:3px 6px 3px 0}
.rms-layout-r3-primary{background:var(--rms-red);border-color:var(--rms-red);color:white;border-radius:5px}
.rms-layout-r3-primary:hover:not(:disabled){background:#c70013}
.rms-layout-r3-secondary:hover:not(:disabled){background:#fafbfc;border-color:#b6c0cb}
.rms-workshop-layout-r3 button:disabled{opacity:.45;cursor:not-allowed}
.rms-workshop-layout-r3 :is(button,input,select):focus-visible{outline:3px solid #1366d8;outline-offset:2px}
.rms-layout-r3-body{display:grid;grid-template-columns:minmax(255px,300px) minmax(0,1fr);align-items:start;gap:18px}
.rms-layout-r3-queue,.rms-layout-r3-detail{min-width:0;border:1px solid #e1e5ea;background:#fff;border-radius:16px;box-shadow:0 2px 4px #1019230a;overflow:hidden}
.rms-layout-r3-queue{padding:9px}
.rms-layout-r3-queue-tools{padding:5px 5px 9px;display:grid;gap:9px}
.rms-layout-r3-queue-tools input,.rms-layout-r3-queue-tools select{width:100%;min-width:0;min-height:41px;border:1px solid #dce3ea;border-radius:10px;padding:9px 11px;background:#fff;font:inherit;font-size:12px;color:#334155}
.rms-layout-r3-queue-tools label{font-size:11px;font-weight:700;color:var(--rms-muted);display:grid;gap:4px}
.rms-layout-r3-queue-list{max-height:620px;overflow:auto;display:grid;gap:4px;align-content:start}
.rms-layout-r3-queue-list button{display:grid;gap:4px;width:100%;min-width:0;min-height:67px;padding:12px;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;cursor:pointer}
.rms-layout-r3-queue-list button strong{font-size:13px;font-weight:800;color:#191919;overflow-wrap:anywhere}
.rms-layout-r3-queue-list button span{font-size:12px;color:#627285}
.rms-layout-r3-queue-list button small{font-size:10px;font-weight:700;color:#8392a4}
.rms-layout-r3-queue-list button:hover:not([aria-current=true]){background:#f8fafb}
.rms-layout-r3-queue-list button[aria-current=true]{background:#fff5f5;border-color:var(--rms-red)}
.rms-layout-r3-detail{padding:19px 21px;min-height:310px}
.rms-layout-r3-record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f2;padding-bottom:14px;margin-bottom:12px}
.rms-layout-r3-record-head h3{font-size:19px;font-weight:800;letter-spacing:-.02em;margin:0 0 4px}
.rms-layout-r3-record-head p{font-size:12px;color:var(--rms-muted);margin:0 0 10px}
.rms-layout-r3-badges{display:flex;flex-wrap:wrap;gap:6px}
.rms-layout-r3-pill{display:inline-flex;align-items:center;min-height:27px;border-radius:6px;padding:5px 9px;font-size:10px;font-weight:750;color:#58677b;background:#f6f8fa;border:1px solid #e7eaef}
.rms-layout-r3-pill.green{background:#effbf3;color:#0b783a;border-color:#d8f1e1}
.rms-layout-r3-pill.amber{background:#fff6ed;color:#a05c03;border-color:#ffdfb5}
.rms-layout-r3-steps{display:flex;gap:4px;flex-wrap:wrap;padding:4px 0 14px;margin-bottom:13px}
.rms-layout-r3-steps .rms-layout-r3-pill{font-size:9px;color:#748292;padding:4px 7px;min-height:24px}
.rms-layout-r3-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid #e1e6eb;gap:3px;margin-bottom:14px}
.rms-layout-r3-tabs button{border:0;border-bottom:3px solid transparent;cursor:pointer;background:transparent;font-size:11px;font-weight:800;color:#6b7888;padding:12px 10px;min-height:42px}
.rms-layout-r3-tabs button[aria-selected=true]{color:var(--rms-red);border-color:var(--rms-red)}
.rms-layout-r3-tabpanel{min-width:0}
.rms-layout-r3-overview{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(210px,.8fr);align-items:start;gap:13px}
.rms-layout-r3-panel{min-width:0;border:1px solid #e4e9ed;border-radius:12px;background:#fff;padding:15px}
.rms-layout-r3-panel h4{font-size:14px;font-weight:800;margin:0 0 10px}
.rms-layout-r3-panel p{color:#647184;font-size:12px;line-height:1.5}
.rms-layout-r3-next{background:#fafbfc}
.rms-layout-r3-next .rms-layout-r3-secondary{display:block}
.rms-layout-r3-panel :is(input,select){max-width:100%}
.rms-layout-r3-panel fieldset{min-width:0}
.rms-layout-r3-panel section{min-width:0}
.rms-layout-r3-panel .rms-verified-branch{display:inline-block;background:#eefaf1;border:1px solid #d6eee0;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:800;color:#0c783c}
.rms-layout-r3-panel .bosch-button{background:var(--rms-red);color:white}
.rms-layout-r3-setup{padding:14px;background:#fff;border:1px solid #e1e6eb;border-radius:12px;margin:0 0 14px}
.rms-layout-r3-empty,.rms-layout-r3-muted{font-size:12px;color:#708091;line-height:1.6;padding:9px}
.rms-workshop-layout-r3 [role=alert]{background:#fff9ed;color:#874d02;border:1px solid #f7dfb5;border-radius:9px;padding:10px}
@media(max-width:1160px){.rms-layout-r3-overview{grid-template-columns:1fr}.rms-layout-r3-body{grid-template-columns:minmax(218px,250px) minmax(0,1fr)}}
@media(max-width:720px){.rms-layout-r3-body{grid-template-columns:1fr}.rms-layout-r3-queue-list{max-height:235px}.rms-layout-r3-queue-list button{min-height:56px;padding:9px}.rms-layout-r3-detail{padding:13px}.rms-layout-r3-heading-actions{width:100%}.rms-layout-r3-tabs button{flex:1 1 45%;text-align:center}}
@media(max-width:390px){.rms-layout-r3-queue-list{max-height:195px}.rms-layout-r3-record-head h3{font-size:17px}}
