/* Curated supply cards and their company catalog editor. */
.qrc-add-modes{display:flex;gap:8px;margin-bottom:16px}.qrc-add-modes .button{flex:1}.qrc-add-intro{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 22px}.qrc-import-options{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}.qrc-import-options>summary{font-size:12px;color:var(--muted);cursor:pointer}.qrc-import-options[open]>summary{margin-bottom:16px}.qrc-editor textarea[data-rc-bulk-numbers]{box-sizing:border-box;resize:vertical;min-height:150px;width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--soft,var(--panel,#fff));color:var(--ink);font:14px/1.7 ui-monospace,monospace}.qrc-add-help{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0}.qrc-bulk-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.qrc-bulk-results{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.qrc-bulk-results[hidden],.qrc-editor button[hidden]{display:none}.qrc-bulk-results>[data-rc-bulk-summary]{font-size:12px;line-height:1.6;color:var(--ink)}.qrc-bulk-results progress{width:100%;height:7px;accent-color:var(--steel,var(--accent,#2563eb));margin-bottom:12px}[data-rc-bulk-list]{max-height:350px;overflow:auto;overscroll-behavior:contain}.qrc-bulk-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.qrc-bulk-row>div{flex:1;min-width:0}.qrc-bulk-row strong{overflow-wrap:anywhere}.qrc-bulk-row p{margin:7px 0 0;line-height:1.5;overflow-wrap:anywhere}.qrc-bulk-row small{display:block;margin-top:6px;color:var(--muted)}.qrc-bulk-state{display:inline-block;margin-left:8px;font-size:11px;color:var(--muted)}.qrc-bulk-row[data-status=added] .qrc-bulk-state{color:var(--steel,#27824d);font-weight:700}.qrc-bulk-row[data-status=failed] .qrc-bulk-state{font-weight:700;text-decoration:underline}.qrc-bulk-failure{color:var(--muted)}.qrc-editor textarea:focus-visible{outline:2px solid var(--steel,var(--accent,#2563eb));outline-offset:2px}@media(max-width:600px){.qrc-bulk-row{flex-wrap:wrap}.qrc-bulk-row>div{flex-basis:100%}.qrc-bulk-actions>.button{flex:1}.qrc-editor [data-rc-quick-form] .qrc-import-row{flex-direction:column;align-items:stretch}.qrc-editor [data-rc-quick-form] .qrc-import-row .field{width:100%}}
.qrc-browser{margin:20px 0 24px;min-width:0}.qrc-browser-heading,.qrc-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.qrc-browser-heading h3{font-size:22px;letter-spacing:-.025em;margin:5px 0}.qrc-browser-heading p{color:var(--muted);margin:5px 0;font-size:13px}.qrc-search-row{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:10px;margin:16px 0}.qrc-search-row .field{margin:0}.qrc-search-row input,.qrc-search-row select{min-height:42px}.qrc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.qrc-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0;background:var(--panel,#fff);transition:border-color .15s,box-shadow .15s}.qrc-card:hover{border-color:var(--accent,#2563eb);box-shadow:0 4px 18px #0000000d}.qrc-photo{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff;color:#758193;overflow:hidden;flex:none}.qrc-photo>img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.qrc-photo>svg{width:45px;height:45px;opacity:.6}.qrc-photo>span{font-size:11px;margin-top:8px}.qrc-card>.qrc-photo{width:100%;height:158px;padding:18px;box-sizing:border-box;border-bottom:1px solid var(--line)}.qrc-card-info{padding:14px}.qrc-category{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:650}.qrc-card h4{font-size:16px;line-height:1.35;margin:6px 0 8px;color:var(--ink);overflow-wrap:anywhere}.qrc-item{font-size:10px;font-weight:750;letter-spacing:.04em;color:var(--muted)}.qrc-meta,.qrc-card-spec{font-size:12px;color:var(--muted);line-height:1.4;margin:8px 0 0;overflow-wrap:anywhere}.qrc-card-spec{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.qrc-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px}.qrc-card-bottom>span{font-size:12px;color:var(--muted)}.qrc-card-bottom .button{min-height:36px}.qrc-in-request{display:block;color:var(--accent,#2563eb);font-size:11px;margin-top:8px}.qrc-in-request[hidden]{display:none}.qrc-backups{border-top:1px solid var(--line);margin-top:14px;padding-top:11px}.qrc-backups>summary{cursor:pointer;font-size:12px;font-weight:650;color:var(--ink)}.qrc-backups>p,.qrc-html-import p{font-size:12px;line-height:1.5;color:var(--muted)}.qrc-backup{display:flex;align-items:flex-start;gap:7px;padding:10px 0;flex-wrap:wrap}.qrc-backup>.qrc-product{flex:1;min-width:120px}.qrc-backup>.button{margin-left:auto;min-height:32px}.qrc-rank{width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex:none;font-size:11px;border:1px solid var(--line);border-radius:50%;color:var(--muted)}.qrc-product{display:flex;gap:12px;align-items:center;min-width:0}.qrc-product>.qrc-photo{width:78px;height:78px;padding:6px;border:1px solid var(--line);border-radius:9px;box-sizing:border-box}.qrc-product>div{min-width:0;display:grid;gap:5px}.qrc-product strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere;color:var(--ink)}.qrc-product small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.qrc-product-compact>.qrc-photo{width:48px;height:48px}.qrc-product-compact strong{font-size:12px}.qrc-product-compact .qrc-photo>svg{width:22px;height:22px}.qrc-product-compact .qrc-photo>span{display:none}.qrc-source{font-size:11px;color:var(--accent,#2563eb);text-decoration:none}.qrc-source:hover{text-decoration:underline}.qrc-empty{min-height:140px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:1px dashed var(--line);border-radius:14px;padding:28px;color:var(--muted);gap:8px}.qrc-empty>svg{width:45px;height:45px;margin-bottom:6px;color:var(--accent,#2563eb)}.qrc-empty>strong{color:var(--ink);font-size:17px}.qrc-empty p{max-width:430px;margin:4px 0 8px;font-size:13px;line-height:1.6}.qrc-announcement,.qrc-browser .sr-only,.qrc-editor .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.qrc-snapshot{margin-top:6px}.qrc-snapshot .qrc-backups{margin-top:10px}.qrc-snapshot-note{display:block;color:var(--muted);font-size:10px;margin-top:9px}.qrc-selected-label{display:block;font-size:11px;color:var(--muted);margin-top:7px}.qrc-editor{width:min(1050px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;color:var(--ink);background:var(--panel,#fff);border:1px solid var(--line);border-radius:17px;box-shadow:0 25px 100px #0007}.qrc-editor::backdrop{background:#0b1328a6;backdrop-filter:blur(2px)}.qrc-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel,#fff);z-index:2}.qrc-editor-head h2{font-size:23px;margin:4px 0 7px;letter-spacing:-.025em}.qrc-editor-head p{font-size:13px;color:var(--muted);margin:0;line-height:1.5}.qrc-editor-body{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:450px}.qrc-editor-list{padding:20px 16px;border-right:1px solid var(--line);background:var(--soft,#f5f7fb);min-width:0}.qrc-editor-list>button{width:100%}.qrc-editor-list>p{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:20px 0 9px}.qrc-group-link{display:flex;width:100%;gap:10px;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);padding:10px 8px;margin-bottom:6px;cursor:pointer}.qrc-group-link.selected{border-color:var(--accent,#2563eb);background:var(--panel,#fff)}.qrc-group-link>.qrc-photo{width:40px;height:40px;border-radius:6px;padding:3px;box-sizing:border-box}.qrc-group-link .qrc-photo>svg{width:20px;height:20px}.qrc-group-link .qrc-photo>span{display:none}.qrc-group-link>span:last-child{min-width:0;display:grid;gap:5px}.qrc-group-link strong{font-size:12px;overflow-wrap:anywhere;line-height:1.4}.qrc-group-link small,.qrc-group-link em{font-size:10px;color:var(--muted);font-style:normal}.qrc-editor-form{padding:24px;min-width:0}.qrc-editor-form h3{font-size:20px;margin:5px 0 20px}.qrc-editor .field{display:grid;gap:7px;margin-bottom:15px;min-width:0;font-size:13px}.qrc-editor .field>input{width:100%;min-width:0;box-sizing:border-box}.qrc-import-section{padding:18px 0;border-top:1px solid var(--line)}.qrc-import-section h4{font-size:14px;margin:0 0 7px}.qrc-import-section h4>span{font-size:11px;font-weight:400;color:var(--muted)}.qrc-import-section>p,.qrc-product-empty{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 12px}.qrc-import-row{display:flex;gap:8px;align-items:start;margin-bottom:12px}.qrc-import-row .field{flex:1;margin:0}.qrc-import-row input,.qrc-import-row button{min-height:42px}.qrc-backup-edit{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:10px;margin-top:10px;flex-wrap:wrap}.qrc-backup-edit>.qrc-product{flex:1;min-width:160px}.qrc-backup-actions{display:flex;gap:5px;margin-left:auto}.qrc-backup-actions .button{min-height:32px}.qrc-visibility{display:flex;gap:10px;align-items:flex-start;font-size:13px;padding:16px 0;border-top:1px solid var(--line)}.qrc-visibility>input{width:18px;height:18px;flex:none;margin:0}.qrc-visibility>span{display:grid;gap:5px}.qrc-visibility small{font-size:11px;color:var(--muted);line-height:1.5}.qrc-editor-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:17px}.qrc-notice{color:var(--accent,#2563eb);font-size:12px;line-height:1.6}.qrc-html-import{margin-bottom:14px;font-size:11px;color:var(--muted)}.qrc-html-import summary{cursor:pointer}.qrc-html-import input[type=file]{font-size:12px;padding:8px;border:1px solid var(--line);border-radius:8px}.qrc-editor input:focus-visible,.qrc-browser input:focus-visible,.qrc-editor button:focus-visible,.qrc-browser button:focus-visible{outline:2px solid var(--accent,#2563eb);outline-offset:2px}
@media(max-width:800px){.qrc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qrc-editor-body{grid-template-columns:210px minmax(0,1fr)}.qrc-editor-form{padding:18px}.qrc-card>.qrc-photo{height:145px}}
@media(max-width:600px){.qrc-browser-heading{align-items:flex-start;gap:10px}.qrc-browser-heading h3{font-size:19px}.qrc-browser-heading p{font-size:12px}.qrc-browser-heading .button{font-size:11px;padding:8px;white-space:nowrap}.qrc-search-row{grid-template-columns:minmax(0,1fr) 130px;gap:7px}.qrc-search-row input,.qrc-search-row select{font-size:12px;padding:10px}.qrc-grid{gap:10px}.qrc-card>.qrc-photo{height:125px;padding:12px}.qrc-card-info{padding:11px}.qrc-card h4{font-size:14px}.qrc-meta,.qrc-card-spec{font-size:11px}.qrc-card-bottom .button{font-size:11px;padding:8px 9px}.qrc-card .qrc-product-compact>.qrc-photo{width:32px;height:32px}.qrc-editor{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.qrc-editor-head{padding:17px}.qrc-editor-head h2{font-size:20px}.qrc-editor-head p{font-size:12px}.qrc-editor-body{grid-template-columns:1fr}.qrc-editor-list{padding:14px;border-right:0;border-bottom:1px solid var(--line)}.qrc-editor-list>div{display:flex;gap:8px;overflow-x:auto;max-height:120px}.qrc-editor-list>p{margin:13px 0 7px}.qrc-group-link{min-width:200px;width:200px;flex:none}.qrc-editor-form{padding:17px}.qrc-import-row .button{padding:10px;font-size:12px}.qrc-import-row input{font-size:13px}.qrc-backup-edit .qrc-backup-actions{flex-basis:100%;justify-content:flex-end}.qrc-editor-actions>.button{flex:1}}
@media(prefers-reduced-motion:reduce){.qrc-card{transition:none}}
.qrc-editor .qrc-unit-select{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:11px;color:var(--muted)}.qrc-unit-select select{max-width:220px;min-width:0;font-size:12px;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--panel,#fff);color:var(--ink)}
.qrc-in-request,.qrc-source,.qrc-notice{color:var(--steel,var(--accent,#2563eb))}
.qrc-replace-primary{margin-top:14px;font-size:12px}.qrc-replace-primary>summary,.qrc-manual-entry>summary{cursor:pointer;color:var(--steel,var(--accent,#2563eb));font-weight:600}.qrc-replace-primary>p,.qrc-manual-entry>p{font-size:12px;line-height:1.6;color:var(--muted)}.qrc-import-controls>.qrc-import-row{align-items:flex-end}.qrc-import-row .field>span{font-size:12px}.qrc-manual-entry{margin:12px 0;font-size:12px}.qrc-manual-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.qrc-manual-fields .qrc-full-width{grid-column:1/-1}.qrc-manual-fields .field>select,.qrc-manual-fields input[type=file]{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel,#fff);color:var(--ink);font-size:12px}.qrc-manual-fields small{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:400}.qrc-import-error{border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:14px;background:var(--soft,#f5f7fb);font-size:12px;line-height:1.5}.qrc-import-error[hidden]{display:none}.qrc-import-error p{margin:7px 0;color:var(--muted);overflow-wrap:anywhere}.qrc-import-error .button{margin-top:4px}.qrc-product .qrc-manual-label{font-weight:600}.qrc-backup-section>[data-rc-backup-list]:not(:empty){margin-top:15px}.qrc-import-controls .qrc-import-row>.button{white-space:nowrap}
@media(max-width:600px){.qrc-manual-fields{grid-template-columns:minmax(0,1fr)}.qrc-manual-fields .qrc-full-width{grid-column:auto}.qrc-import-row .field>span{font-size:11px}.qrc-import-controls>.qrc-import-row{gap:6px}}
/* Product quantity confirmation keeps the request draft and its scroll position in place. */
.qrc-documents{display:grid;gap:6px;margin-top:10px;min-width:0}.qrc-document{display:flex;align-items:center;gap:7px;min-height:34px;padding:7px 8px;border:1px solid var(--line);border-radius:8px;font-size:11px;line-height:1.4;text-decoration:none;color:var(--steel,var(--accent,#2563eb));background:var(--soft,var(--panel,#fff));box-sizing:border-box}.qrc-document>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.qrc-document:hover{border-color:var(--steel,var(--accent,#2563eb));text-decoration:underline}.qrc-pdf-badge{flex:none;border:1px solid currentColor;border-radius:4px;padding:2px 3px;font-size:9px;font-weight:750;letter-spacing:.03em}.qrc-document-note{font-size:12px;color:var(--muted);line-height:1.6;margin:9px 0 0}.qrc-product .qrc-documents{margin-top:3px}.qrc-source-pending{line-height:1.5}.qrc-refresh-product{margin-top:10px}.qrc-quantity-dialog{box-sizing:border-box;width:min(610px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:17px;background:var(--panel,#fff);color:var(--ink);box-shadow:0 25px 100px #0007;overflow:auto;overscroll-behavior:contain}.qrc-quantity-dialog::backdrop{background:#0b1328a6;backdrop-filter:blur(2px)}.qrc-quantity-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 24px;border-bottom:1px solid var(--line)}.qrc-quantity-head h2{font-size:22px;letter-spacing:-.025em;margin:5px 0 0}.qrc-quantity-head>.button{flex:none}.qrc-quantity-body{padding:22px 24px;min-width:0}.qrc-quantity-body>.qrc-product{align-items:flex-start}.qrc-quantity-body>.qrc-product>.qrc-photo{width:118px;height:118px;padding:10px}.qrc-quantity-body>.qrc-product strong{font-size:17px;line-height:1.4}.qrc-quantity-body>.qrc-product small{font-size:12px;line-height:1.5}.qrc-quantity-documents{margin:22px 0;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.qrc-quantity-documents h3{font-size:13px;margin:0 0 9px}.qrc-quantity-documents .qrc-document{font-size:12px;padding:10px;min-height:42px}.qrc-quantity-field{display:grid;gap:9px;font-size:14px;font-weight:650;min-width:0}.qrc-quantity-input{display:flex;gap:12px;align-items:center}.qrc-quantity-input>input{width:150px;min-width:0;max-width:55%;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--soft,var(--panel,#fff));color:var(--ink);font-size:20px;box-sizing:border-box}.qrc-quantity-input>span{color:var(--muted);font-size:13px;font-weight:400;overflow-wrap:anywhere}.qrc-quantity-field>small{color:var(--muted);font-size:12px;line-height:1.6;font-weight:400}.qrc-quantity-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 24px;border-top:1px solid var(--line);background:var(--panel,#fff);position:sticky;bottom:0}.qrc-quantity-actions>.button{min-height:42px}.qrc-quantity-dialog input:focus-visible,.qrc-quantity-dialog button:focus-visible,.qrc-document:focus-visible{outline:2px solid var(--steel,var(--accent,#2563eb));outline-offset:2px}.qrc-quantity-body>.qmr-error:empty{display:none}
@media(max-width:600px){.qrc-quantity-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.qrc-quantity-head{padding:17px}.qrc-quantity-head h2{font-size:20px}.qrc-quantity-body{padding:17px}.qrc-quantity-body>.qrc-product{gap:12px}.qrc-quantity-body>.qrc-product>.qrc-photo{width:84px;height:84px;padding:7px}.qrc-quantity-body>.qrc-product strong{font-size:15px}.qrc-quantity-actions{padding:14px 17px}.qrc-quantity-actions>.button{flex:1}.qrc-card .qrc-document{gap:5px;font-size:10px}.qrc-backup-actions{flex-wrap:wrap}}
.qrc-document-entry{min-width:0}.qrc-document small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.qrc-document-upload{display:grid;gap:5px;font-size:11px;color:var(--muted);margin-top:8px}.qrc-document-upload input{min-width:0;width:100%;max-width:100%;box-sizing:border-box;font-size:11px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--panel,#fff);color:var(--ink)}
.qrc-quantity-specifications{margin-top:18px;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:12px;line-height:1.6;min-width:0}.qrc-quantity-specifications>summary{cursor:pointer;font-weight:650;color:var(--ink)}.qrc-full-description{color:var(--muted);white-space:pre-line;overflow-wrap:anywhere;margin:12px 0}.qrc-quantity-specifications dl{margin:12px 0 0}.qrc-quantity-specifications dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;padding:8px 0;border-top:1px solid var(--line)}.qrc-quantity-specifications dt{color:var(--muted)}.qrc-quantity-specifications dd{margin:0;color:var(--ink)}.qrc-quantity-specifications dt,.qrc-quantity-specifications dd{overflow-wrap:anywhere}.qrc-quantity-documents>.qrc-documents{max-height:260px;overflow:auto;overscroll-behavior:contain}
/* Company shelf: direct administration without selecting a project. */
.qrc-company{max-width:1560px;margin:0 auto;min-width:0}.qrc-company-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.qrc-company-heading h2{margin:7px 0 9px;font-size:30px;line-height:1.15;letter-spacing:-.035em;color:var(--ink)}.qrc-company-heading p{margin:0;max-width:620px;font-size:13px;color:var(--muted);line-height:1.7}.qrc-company-actions{display:flex;gap:9px;flex:none}.qrc-company-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--line);margin-bottom:23px}.qrc-company-stats>div{display:flex;gap:12px;align-items:center;padding:20px;background:var(--panel)}.qrc-company-stats strong{font-size:25px;letter-spacing:-.035em;color:var(--ink);font-variant-numeric:tabular-nums}.qrc-company-stats span{font-size:12px;color:var(--muted)}.qrc-company-controls{display:grid;grid-template-columns:minmax(210px,1fr) minmax(140px,210px) 150px auto auto;gap:9px;align-items:center}.qrc-company-controls .field{margin:0;min-width:0}.qrc-company-controls input,.qrc-company-controls select{min-width:0;width:100%;box-sizing:border-box;min-height:43px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;font-size:12px}.qrc-company-controls .button{min-height:43px}.qrc-company-count{font-size:12px;color:var(--muted);margin:16px 0}.qrc-company-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.qrc-company-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;overflow:hidden;min-width:0;box-shadow:0 2px 8px #00000005}.qrc-company-photo{position:relative;border:0;display:block;width:100%;height:190px;padding:0;cursor:pointer;background:#fff;border-bottom:1px solid var(--line)}.qrc-company-photo>.qrc-photo{height:100%;width:100%;box-sizing:border-box;padding:25px}.qrc-company-photo img{transition:transform .18s ease}.qrc-company-photo:hover img{transform:scale(1.04)}.qrc-state-badge{position:absolute;right:12px;top:12px;padding:5px 8px;border-radius:20px;background:#edf7f1;color:#246144;font-size:10px;font-weight:650;box-shadow:0 1px 6px #0000000d}.qrc-state-badge.is-hidden{background:#fff3db;color:#82591b}.qrc-state-badge.is-removed{background:#f4e9e9;color:#8c3535}.qrc-company-card-body{padding:18px}.qrc-company-card-body h3{margin:7px 0 10px;font-size:16px;line-height:1.5}.qrc-company-card-body h3 button{display:block;padding:0;background:transparent;border:0;color:var(--ink);text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}.qrc-company-card-body h3 button:hover{text-decoration:underline}.qrc-company-card-body .qrc-meta{min-height:16px}.qrc-company-tags{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.qrc-company-tags span{background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:4px 7px;color:var(--muted);font-size:10px}.qrc-company-card-body footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.qrc-company-card-body .qrc-documents{max-height:150px;overflow:auto}.qrc-company .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.qrc-company :focus-visible,.qrc-category-dialog :focus-visible{outline:2px solid var(--steel);outline-offset:3px}.qrc-category-dialog{padding:0;border:1px solid var(--line);border-radius:17px;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);background:var(--panel);color:var(--ink);box-sizing:border-box;box-shadow:0 25px 100px #0007}.qrc-category-dialog::backdrop{background:#0b1328a6;backdrop-filter:blur(2px)}.qrc-category-dialog .field{display:grid;gap:7px;margin:16px 0;font-size:13px}.qrc-category-dialog input,.qrc-category-dialog select,.qrc-editor select[name=category],.qrc-product-edit textarea{box-sizing:border-box;width:100%;min-width:0;padding:11px;border:1px solid var(--line);border-radius:9px;background:var(--soft,var(--panel));color:var(--ink);font:inherit;font-size:13px}.qrc-editor .field>small.qrc-add-help{margin:0;font-size:11px;font-weight:400}.qrc-remove-zone{padding:16px 0;border-top:1px solid var(--line)}.qrc-remove-zone [hidden]{display:none}.qrc-remove-zone>div{margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-size:13px}.qrc-remove-zone p,.qrc-removed-item p{font-size:12px;color:var(--muted);line-height:1.7}.qrc-danger{color:var(--danger,#b33c3c)!important}.qrc-product-edit{flex-basis:100%;margin:14px 0;font-size:12px;border:1px solid var(--line);padding:12px;border-radius:10px}.qrc-product-edit>summary{cursor:pointer;font-weight:600;color:var(--steel)}.qrc-product-edit>p{color:var(--muted);line-height:1.6}.qrc-product-edit textarea{resize:vertical}.qrc-editor-actions{position:sticky;bottom:-24px;background:var(--panel);padding-bottom:12px;z-index:1}.qrc-editor .qrc-group-link.selected{box-shadow:inset 3px 0 var(--steel)}
@media(min-width:1550px){.qrc-company-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.qrc-company-controls{grid-template-columns:minmax(180px,1fr) 170px 140px}.qrc-company-controls>.button{grid-row:2}.qrc-company-controls>.button:last-child{grid-column:3}.qrc-company-stats>div{padding:16px;gap:8px}.qrc-company-stats span{font-size:11px}.qrc-company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.qrc-company-heading{align-items:flex-start;flex-direction:column;gap:15px}.qrc-company-heading h2{font-size:26px}.qrc-company-actions{width:100%}.qrc-company-actions>.button{flex:1}.qrc-company-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:17px}.qrc-company-stats>div{padding:15px}.qrc-company-stats strong{font-size:23px}.qrc-company-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.qrc-company-controls>.field:first-child{grid-column:1/-1}.qrc-company-controls>.button{grid-row:3}.qrc-company-controls>.button:last-child{grid-column:2}.qrc-company-grid{gap:11px}.qrc-company-photo{height:145px}.qrc-company-photo>.qrc-photo{padding:20px 14px}.qrc-company-card-body{padding:12px}.qrc-company-card-body h3{font-size:13px}.qrc-company-tags{gap:4px;margin:10px 0}.qrc-company-card-body footer{align-items:stretch;flex-direction:column;gap:10px}.qrc-company-card-body footer>.button{width:100%}.qrc-company-card-body .qrc-category{font-size:9px}.qrc-company-card-body .qrc-document{padding:6px;font-size:10px;gap:5px}.qrc-state-badge{top:8px;right:8px;font-size:9px}.qrc-editor-actions{bottom:-17px}.qrc-category-dialog .qrc-quantity-head h2{font-size:20px}}
@media(max-width:360px){.qrc-company-grid{grid-template-columns:minmax(0,1fr)}.qrc-company-photo{height:175px}}
@media(prefers-reduced-motion:reduce){.qrc-company-photo img{transition:none}}
/* Fixed card tracks keep documents, long names and backup counts from moving actions. */
.qrc-grid,.qrc-company-grid{align-items:stretch}
.qrc-card,.qrc-company-card{display:flex;flex-direction:column;align-self:stretch}
.qrc-card>.qrc-photo,.qrc-company-photo{flex:none}
.qrc-card-info,.qrc-company-card-body{display:grid;min-width:0;gap:6px;align-content:start}
.qrc-card-info{grid-template-rows:14px 45px 14px 34px 34px 40px 38px 17px 32px}
.qrc-company-card-body{grid-template-rows:14px 45px 14px 34px 48px 40px 51px}
.qrc-card-info>*,.qrc-company-card-body>*{min-width:0;margin:0}
.qrc-card-info>.qrc-category,.qrc-company-card-body>.qrc-category{grid-row:1;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-info>h4,.qrc-company-card-body>h3{grid-row:2;line-height:1.4;margin:0}
.qrc-card-info>h4,.qrc-company-card-body>h3>button{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-height:45px}
.qrc-company-card-body>h3>button{width:100%;line-height:1.4}
.qrc-card-info>.qrc-item,.qrc-company-card-body>.qrc-item{grid-row:3;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-info>.qrc-meta,.qrc-company-card-body>.qrc-meta{grid-row:4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:17px;max-height:34px;margin:0}
.qrc-card-info>.qrc-card-copy{grid-row:5;overflow:hidden;color:var(--muted);font-size:12px;line-height:17px}
.qrc-card-copy>.qrc-card-spec,.qrc-card-copy>.qrc-meta,.qrc-card-copy>.qrc-details-source{margin:0;font-size:inherit;line-height:inherit}
.qrc-card-copy>.qrc-details-source{display:block}
.qrc-card-info>.qrc-card-documents,.qrc-company-card-body>.qrc-card-documents{grid-row:6;height:40px;min-height:40px;display:flex;align-items:center;min-width:0}
.qrc-card-documents>.qrc-documents{width:100%;grid-template-columns:minmax(0,1fr);max-height:none;margin:0;overflow:visible}
.qrc-card-documents .qrc-document-note{display:none}
.qrc-document-picker{display:flex;align-items:center;gap:6px;min-width:0;width:100%;box-sizing:border-box}
.qrc-document-picker>select{flex:1;width:0;min-width:0;max-width:100%;min-height:40px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--soft,var(--panel,#fff));color:var(--ink);font:inherit;font-size:12px;line-height:1.4;padding:8px 22px 8px 9px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 10px) 50%,calc(100% - 6px) 50%;background-size:4px 4px;background-repeat:no-repeat;cursor:pointer}
.qrc-document-picker>.qrc-document{flex:none;min-height:40px;justify-content:center;margin:0;padding:8px 10px;cursor:pointer;font-family:inherit;white-space:nowrap}
.qrc-document-picker>select:focus-visible{outline:2px solid var(--steel,var(--accent,#2563eb));outline-offset:2px}
.qrc-card-documents .qrc-document{min-width:0;min-height:40px;max-height:40px;width:100%;box-sizing:border-box;cursor:pointer;font-family:inherit}
.qrc-card-documents .qrc-document-picker>.qrc-document{width:auto}
.qrc-card-documents .qrc-document>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-documents .qrc-document small{display:none}
.qrc-document-empty{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.qrc-card-info>.qrc-card-bottom{grid-row:7;margin:0;min-width:0;gap:6px}
.qrc-card-bottom>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qrc-card-bottom>.button{flex:none;white-space:nowrap}
.qrc-card-info>.qrc-in-request{grid-row:8;margin:0;font-size:11px;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-info>.qrc-card-backup-line{grid-row:9;display:flex;align-items:center;min-width:0;border-top:1px solid var(--line)}
.qrc-card-backup-line>.button{max-width:100%;min-height:28px;padding:4px 0;border:0;background:transparent;color:var(--steel,var(--accent,#2563eb));font-size:12px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-backup-line>span,.qrc-card-backup-line>small{color:var(--muted);font-size:11px;line-height:1.5}
.qrc-company-card-body>.qrc-company-tags{grid-row:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:22px 22px;align-content:start;justify-items:start;gap:4px 6px;margin:0;height:48px;overflow:hidden}
.qrc-company-tags>span{box-sizing:border-box;max-width:100%;height:22px;line-height:14px;padding:3px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-company-tags>span:first-child{grid-column:1/-1;margin:0}
.qrc-company-card-body>footer{grid-row:7;min-width:0;margin:0;padding-top:14px;border-top:1px solid var(--line);box-sizing:border-box}
.qrc-company-card-body>footer>.button{min-height:36px;box-sizing:border-box;white-space:nowrap}
.qrc-company-card-body>footer>.qrc-source{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:17px}
.qrc-backup-dialog .qrc-backup{gap:10px;padding:17px 0;border-bottom:1px solid var(--line)}
.qrc-backup-dialog .qrc-backup:first-child{padding-top:0}
.qrc-backup-dialog .qrc-backup:last-child{padding-bottom:0;border-bottom:0}
.qrc-backup-dialog .qrc-backup>.qrc-product{min-width:0;flex-basis:calc(100% - 34px)}
.qrc-backup-dialog .qrc-backup>.button{min-height:36px}
@media(max-width:600px){
  .qrc-card-info{grid-template-rows:14px 40px 14px 32px 32px 40px 36px 17px 32px}
  .qrc-company-card-body{grid-template-rows:14px 40px 14px 32px 48px 40px 74px}
  .qrc-card-info>h4,.qrc-company-card-body>h3>button{max-height:40px}
  .qrc-card-info>.qrc-meta,.qrc-company-card-body>.qrc-meta,.qrc-card-info>.qrc-card-copy{font-size:11px;line-height:16px;max-height:32px}
  .qrc-company-card-body>footer{padding-top:10px;gap:8px}
  .qrc-document-picker{gap:4px}
  .qrc-document-picker>select{font-size:11px;padding-left:6px;padding-right:16px}
  .qrc-card-documents .qrc-document-picker>.qrc-document{font-size:11px;padding:7px 6px}
  .qrc-card-backup-line>.button{font-size:11px}
  .qrc-backup-dialog .qrc-backup>.qrc-product{gap:9px}
}

@media(max-width:360px){.qrc-grid{grid-template-columns:minmax(0,1fr)}.qrc-card>.qrc-photo{height:155px}}
.qrc-documents [hidden]{display:none!important}
/* Short family title, material, size and supplier use the same tracks on every card. */
.qrc-card-info{grid-template-rows:14px 45px 34px 61px 30px 40px 38px 17px 32px}
.qrc-company-card-body{grid-template-rows:14px 45px 34px 61px 30px 48px 40px 51px}
.qrc-card-info>.qrc-material,.qrc-company-card-body>.qrc-material{grid-row:3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:var(--muted);line-height:17px;max-height:34px;margin:0;overflow-wrap:anywhere}
.qrc-card-info>.qrc-card-variant,.qrc-company-card-body>.qrc-card-variant{grid-row:4}
.qrc-card-info>.qrc-item,.qrc-company-card-body>.qrc-item{grid-row:5;white-space:normal;line-height:14px;max-height:30px;overflow:hidden}
.qrc-card-info>.qrc-item>small,.qrc-company-card-body>.qrc-item>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:400;letter-spacing:0;color:var(--muted)}
.qrc-company-card-body>.qrc-company-tags{grid-row:6}
.qrc-card-info>.qrc-card-documents{grid-row:6}
.qrc-company-card-body>.qrc-card-documents{grid-row:7}
.qrc-card-info>.qrc-card-bottom{grid-row:7}
.qrc-company-card-body>footer{grid-row:8}
.qrc-card-info>.qrc-in-request{grid-row:8}
.qrc-card-info>.qrc-card-backup-line{grid-row:9}
.qrc-product .qrc-product-material{font-size:12px;line-height:1.5}
.qrc-product .qrc-product-size{color:var(--ink);font-size:13px;font-weight:650}
.qrc-source-title{font-size:12px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}
.qrc-source-title>small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:4px}
.qrc-product .qrc-quantity-specifications{margin:4px 0;font-size:12px}
.qrc-product .qrc-quantity-specifications>summary{font-size:11px}
.qrc-card-variant{display:grid;grid-template-rows:15px 40px;gap:6px;min-width:0;margin:0}
.qrc-card-variant>span{font-size:10px;color:var(--muted);line-height:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-variant>select,.qrc-quantity-variant>select,.qrc-merge-variants select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:40px;border:1px solid var(--line);border-radius:8px;padding:8px 25px 8px 10px;background:var(--soft,var(--panel,#fff));color:var(--ink);font:inherit;font-size:12px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 12px) 50%,calc(100% - 8px) 50%;background-size:4px 4px;background-repeat:no-repeat;cursor:pointer}
.qrc-card-variant>select:focus-visible,.qrc-quantity-variant>select:focus-visible{outline:2px solid var(--steel,var(--accent,#2563eb));outline-offset:2px}
.qrc-quantity-variant{display:grid;gap:8px;margin:0 0 20px;font-size:13px;font-weight:650}
.qrc-quantity-variant>select{font-size:14px;min-height:44px}
.qrc-variant-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.qrc-import-section .qrc-variant-heading>h4{margin:0}
.qrc-variant-heading>span{font-size:11px;line-height:1.5;padding:5px 9px;border:1px solid var(--line);border-radius:7px;color:var(--steel,var(--accent,#2563eb));background:var(--soft);max-width:60%;overflow-wrap:anywhere}
.qrc-variants-section>p,.qrc-add-variant>p,.qrc-merge-variants>p{font-size:12px;line-height:1.65;color:var(--muted)}
.qrc-variant-row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--line);border-radius:11px;background:var(--panel);margin:9px 0}
.qrc-variant-row.is-selected{border-color:var(--steel,var(--accent,#2563eb));box-shadow:inset 3px 0 var(--steel,var(--accent,#2563eb))}
.qrc-variant-row>.qrc-photo{width:58px;height:58px;align-self:center;padding:6px;border-radius:8px;box-sizing:border-box}
.qrc-variant-row-main{min-width:0}
.qrc-variant-row-main>.field{margin:0;display:grid;gap:5px}
.qrc-variant-row-main>.field>span{font-size:10px;color:var(--muted)}
.qrc-variant-row-main>.field>input{box-sizing:border-box;width:100%;min-width:0;padding:8px 10px;min-height:36px;font-size:13px}
.qrc-variant-row-main>small{display:block;margin-top:6px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.qrc-variant-actions{grid-column:2;display:flex;gap:6px;flex-wrap:wrap}
.qrc-variant-actions>.button{min-height:30px;font-size:11px;padding:5px 9px}
.qrc-variant-actions>.button:first-child{margin-right:auto}
.qrc-add-variant,.qrc-merge-variants{padding:13px 0;border-top:1px solid var(--line);margin-top:13px;font-size:12px}
.qrc-add-variant>summary,.qrc-merge-variants>summary{cursor:pointer;color:var(--steel,var(--accent,#2563eb));font-weight:650;line-height:1.5}
.qrc-add-variant>.qrc-import-controls{margin-top:14px}
.qrc-merge-variants .qrc-import-row{align-items:flex-end}
.qrc-merge-variants .qrc-import-row>.button{white-space:nowrap;min-height:40px}
.qrc-pending-merge{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:9px 0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--soft);font-size:12px;line-height:1.5;color:var(--muted)}
.qrc-pending-merge>span{min-width:0;overflow-wrap:anywhere}
.qrc-pending-merge strong{display:block;color:var(--ink)}
.qrc-pending-merge>.button{flex:none}
@media(max-width:600px){
 .qrc-card-info{grid-template-rows:14px 40px 32px 61px 30px 40px 36px 17px 32px}
 .qrc-company-card-body{grid-template-rows:14px 40px 32px 61px 30px 48px 40px 74px}
 .qrc-card-info>.qrc-material,.qrc-company-card-body>.qrc-material{font-size:11px;line-height:16px;max-height:32px}
 .qrc-card-variant>select{font-size:11px;padding-left:6px}
 .qrc-variant-row{grid-template-columns:42px minmax(0,1fr);gap:9px;padding:11px}
 .qrc-variant-row>.qrc-photo{width:42px;height:42px;padding:4px}
 .qrc-variant-actions{grid-column:1/-1}
 .qrc-variant-actions>.button{font-size:10px}
 .qrc-pending-merge{align-items:flex-start;flex-direction:column}
 .qrc-merge-variants .qrc-import-row{flex-wrap:wrap}
 .qrc-merge-variants .qrc-import-row>.field{flex-basis:100%}
}

/* Supplier identity stays visible; all cards reserve equal space for details and PDFs. */
.qrc-brand{display:block;min-width:0;color:var(--steel,var(--accent,#2563eb));font-size:11px;font-weight:800;line-height:16px;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-info{grid-template-rows:16px 45px 36px 61px 16px 36px 40px 38px 17px 32px}
.qrc-company-card-body{grid-template-rows:16px 45px 36px 61px 16px 36px 26px 40px 51px}
.qrc-card-info>.qrc-brand,.qrc-company-card-body>.qrc-brand{grid-row:1}
.qrc-card-info>.qrc-material,.qrc-company-card-body>.qrc-material{max-height:36px;line-height:18px;color:var(--ink)}
.qrc-card-info>.qrc-item,.qrc-company-card-body>.qrc-item{grid-row:5;max-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-card-info>.qrc-card-details,.qrc-company-card-body>.qrc-card-details{grid-row:6;align-self:stretch;justify-self:stretch;min-width:0;min-height:36px;padding:6px 8px;font-size:12px;line-height:16px;white-space:normal;text-align:center}
.qrc-card-info>.qrc-card-documents{grid-row:7}
.qrc-card-info>.qrc-card-bottom{grid-row:8}
.qrc-card-info>.qrc-in-request{grid-row:9}
.qrc-card-info>.qrc-card-backup-line{grid-row:10}
.qrc-company-card-body>.qrc-company-tags{grid-row:7;display:flex;gap:5px;height:26px;align-items:center;overflow:hidden}
.qrc-company-card-body>.qrc-card-documents{grid-row:8}
.qrc-company-card-body>footer{grid-row:9}
.qrc-product .qrc-brand{font-size:10px;line-height:16px}
.qrc-details-dialog{width:min(850px,calc(100vw - 24px))}
.qrc-details-dialog .qrc-quantity-body>.qrc-product{align-items:flex-start}
.qrc-details-dialog .qrc-quantity-body>.qrc-product>.qrc-photo{width:150px;height:150px;padding:12px}
.qrc-details-dialog .qrc-product strong{font-size:21px}
.qrc-details-dialog .qrc-product .qrc-brand{font-size:12px}
.qrc-details-category{font-size:12px;color:var(--muted);margin:16px 0 0}
.qrc-details-dialog .qrc-quantity-specifications{margin-top:20px}
.qrc-details-dialog .qrc-quantity-specifications dd{overflow-wrap:anywhere}
@media(max-width:600px){
 .qrc-card-info{grid-template-rows:16px 40px 36px 61px 16px 44px 40px 36px 17px 32px}
 .qrc-company-card-body{grid-template-rows:16px 40px 36px 61px 16px 44px 26px 40px 74px}
 .qrc-card-info>.qrc-card-details,.qrc-company-card-body>.qrc-card-details{font-size:11px;padding:5px}
 .qrc-brand{font-size:10px}
 .qrc-details-dialog .qrc-quantity-body>.qrc-product>.qrc-photo{width:92px;height:92px;padding:7px}
 .qrc-details-dialog .qrc-product strong{font-size:17px}
}

/* Photo options use a modal grid so every catalog card keeps the same dimensions. */
.qrc-card-info{grid-template-rows:16px 45px 36px 80px 16px 36px 40px 38px 17px 32px}
.qrc-company-card-body{grid-template-rows:16px 45px 36px 80px 16px 36px 26px 40px 51px}
.qrc-card-variant{grid-template-rows:15px 59px}
.qrc-option-trigger{display:grid;grid-template-columns:37px minmax(0,1fr) 16px;gap:8px;align-items:center;box-sizing:border-box;width:100%;min-width:0;height:59px;padding:6px 9px;border:1px solid var(--line);border-radius:10px;background:var(--soft,var(--panel));color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.qrc-option-trigger:hover{border-color:var(--steel,var(--accent,#2563eb));background:var(--panel)}
.qrc-option-trigger>.qrc-photo{width:37px;height:40px;padding:3px;border-radius:6px;box-sizing:border-box}
.qrc-option-trigger>.qrc-photo>span{display:none}
.qrc-option-trigger>span:not(.qrc-photo){font-size:12px;line-height:16px;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.qrc-option-trigger>svg{width:16px;height:16px;color:var(--muted)}
.qrc-option-trigger:focus-visible,.qrc-option-tile button:focus-visible,.qrc-option-tile input:focus-visible{outline:3px solid var(--steel,var(--accent,#2563eb));outline-offset:3px}
.qrc-quantity-body>.qrc-card-variant{margin-bottom:20px}
.qrc-options-dialog{box-sizing:border-box;width:min(1120px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--panel,#fff);color:var(--ink,#162d3e);box-shadow:0 28px 100px #0006;overflow:hidden}
.qrc-options-dialog[open]{display:flex;flex-direction:column}
.qrc-options-dialog::backdrop{background:rgba(9,20,32,.6);backdrop-filter:blur(3px)}
.qrc-options-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 18px;border-bottom:1px solid var(--line);flex:none}
.qrc-options-head>div{min-width:0}
.qrc-options-head h2{font-size:24px;line-height:1.25;margin:5px 0 8px;overflow-wrap:anywhere}
.qrc-options-head p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.qrc-options-head>.button{flex:none}
.qrc-options-filters{display:flex;flex-wrap:wrap;gap:12px;padding:18px 26px 10px;flex:none}
.qrc-options-filters>.field{display:grid;gap:6px;flex:1 1 140px;min-width:0;margin:0}
.qrc-options-filters>.qrc-options-search{flex:2 1 250px}
.qrc-options-filters>.field>span{font-size:11px;font-weight:650;color:var(--muted)}
.qrc-options-filters input,.qrc-options-filters select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--soft,var(--panel));color:var(--ink);font:inherit;font-size:13px}
.qrc-options-dialog [hidden]{display:none!important}
.qrc-options-summary{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:30px;padding:0 26px 10px;flex:none;color:var(--muted);font-size:12px}
.qrc-options-summary .button{min-height:28px;padding:3px 9px;font-size:11px}
.qrc-options-results{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:5px 26px 24px}
.qrc-options-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));align-items:stretch;gap:16px}
.qrc-option-tile{display:flex;flex-direction:column;box-sizing:border-box;width:100%;min-width:0;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--ink);font:inherit;text-align:left;transition:border-color .15s,box-shadow .15s}
.qrc-option-tile:hover{border-color:var(--steel,var(--accent,#2563eb));box-shadow:0 4px 16px #0001}
.qrc-option-tile.is-selected{border-color:var(--steel,var(--accent,#2563eb));box-shadow:0 0 0 2px color-mix(in srgb,var(--steel,#2563eb) 15%,transparent)}
.qrc-option-image{display:block;position:relative;width:100%;height:154px;background:#fff;flex:none;border-bottom:1px solid var(--line)}
.qrc-option-image>.qrc-photo{width:100%;height:100%;padding:18px;box-sizing:border-box;background:#fff;border:0;border-radius:0}
.qrc-option-selected{position:absolute;top:10px;right:10px;padding:5px 8px;border-radius:6px;background:var(--steel,#2563eb);color:var(--panel,#fff);font-size:10px;font-weight:750}
.qrc-option-content{display:flex;flex-direction:column;flex:1;gap:8px;min-width:0;padding:15px}
.qrc-option-content>.qrc-brand{font-size:10px;white-space:normal;overflow-wrap:anywhere}
.qrc-option-label{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.qrc-option-color{color:var(--steel,var(--accent,#2563eb));font-size:12px;font-weight:650;overflow-wrap:anywhere}
.qrc-option-color:empty{display:none}
.qrc-option-facts{display:grid;gap:4px;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.qrc-option-content>.qrc-item{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.qrc-option-unit{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.qrc-option-choose{display:flex;justify-content:space-between;gap:8px;padding-top:12px;margin-top:auto;border-top:1px solid var(--line);font-size:12px;font-weight:750;color:var(--steel,var(--accent,#2563eb))}
.qrc-options-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 26px;border-top:1px solid var(--line);background:var(--soft,var(--panel));flex:none}
.qrc-options-footer>span{font-size:11px;line-height:1.5;color:var(--muted)}
@media(max-width:600px){
 .qrc-card-info{grid-template-rows:16px 40px 36px 80px 16px 44px 40px 36px 17px 32px}
 .qrc-company-card-body{grid-template-rows:16px 40px 36px 80px 16px 44px 26px 40px 74px}
 .qrc-option-trigger{grid-template-columns:28px minmax(0,1fr) 12px;gap:5px;padding:5px}
 .qrc-option-trigger>.qrc-photo{width:28px;height:34px;padding:2px}
 .qrc-option-trigger>span:not(.qrc-photo){font-size:11px}
 .qrc-options-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 .qrc-options-head{padding:18px 16px 14px;gap:8px}
 .qrc-options-head h2{font-size:20px}
 .qrc-options-head p{font-size:12px}
 .qrc-options-filters{padding:12px 16px 8px;gap:9px}
 .qrc-options-filters>.field{flex:1 1 100px}
 .qrc-options-filters>.qrc-options-search{flex-basis:100%}
 .qrc-options-summary{padding:0 16px 8px}
 .qrc-options-results{padding:4px 16px 16px}
 .qrc-options-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px}
 .qrc-options-footer{padding:12px 16px;gap:10px}
 .qrc-options-footer .button{flex:none}
}
@media(max-height:500px){.qrc-options-dialog{max-height:calc(100dvh - 12px)}.qrc-options-head{padding:10px 16px}.qrc-options-head p,.qrc-options-footer>span{display:none}.qrc-options-filters{padding:8px 16px}.qrc-options-filters>.qrc-options-search{flex:2 1 160px}.qrc-options-footer{padding:8px 16px}}

/* Option cards expose exact-SKU details and add directly to the shared project cart. */
.qrc-option-label{height:calc(1.45em * 3);overflow:auto;scrollbar-width:thin}
.qrc-option-content>.qrc-brand{height:28px;line-height:14px;overflow:auto}
.qrc-option-facts{height:34px;overflow:auto;align-content:start}
.qrc-option-actions{display:grid;gap:9px;margin-top:auto;padding-top:12px}
.qrc-option-actions>.button{width:100%;justify-content:center;box-sizing:border-box;min-height:38px}
.qrc-option-specifications{font-size:11px!important;white-space:normal}
.qrc-option-add-form{display:grid;grid-template-columns:minmax(65px,1fr) minmax(80px,1fr);align-items:end;gap:8px;margin:0}
.qrc-option-add-form>label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:11px}
.qrc-option-add-form input{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:7px 8px;border:1px solid var(--line);border-radius:8px;background:var(--soft,var(--panel));color:var(--ink);font:inherit;font-size:14px}
.qrc-option-add-form>.button{min-width:0;min-height:40px;padding:8px;justify-content:center;white-space:nowrap}
.qrc-option-add-form:has(button:disabled){opacity:.7}
.qrc-option-count{font-size:11px;color:var(--muted);line-height:16px;min-height:16px}
.qrc-option-message{font-size:11px;line-height:15px;height:30px;overflow:auto;color:var(--steel,var(--accent,#2563eb));overflow-wrap:anywhere}
.qrc-option-message.is-error{color:var(--danger,#c43d4d)}
.qrc-option-select{display:flex;justify-content:space-between!important}
.qrc-option-color{height:18px;overflow:auto}
.qrc-option-color:empty{display:block}

[data-rc-options-cart]{margin-left:auto;color:var(--steel,var(--accent,#2563eb));font-size:11px;font-weight:650;text-align:right}
@media(max-width:480px){.qrc-options-summary{flex-wrap:wrap;gap:6px 12px}[data-rc-options-cart]{font-size:10px}}

.qrc-option-unit{height:30px;line-height:15px;overflow:auto}

/* Keep exact material grades visible when one family includes several grades. */
.qrc-option-facts{height:68px;scrollbar-width:thin}
.qrc-option-material{display:block;box-sizing:border-box;height:44px;padding:7px 9px;border-radius:7px;background:var(--soft,var(--panel));border:1px solid var(--line);font-size:12px;font-weight:750;line-height:14px;color:var(--ink);overflow:auto;overflow-wrap:anywhere}
.qrc-option-material:empty{visibility:hidden}

/* The catalog list and item editor each scroll without moving the manager tools. */
.qrc-editor{box-sizing:border-box;width:min(1220px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(900px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
.qrc-editor[open]{display:flex;flex-direction:column}
.qrc-editor-head{position:static;flex:none;align-items:center;padding:20px 24px}
.qrc-editor-head>div:first-child{min-width:0}
.qrc-editor-head-actions{display:flex;align-items:center;gap:9px;flex:none}
.qrc-editor-head-actions>.button{min-height:40px;white-space:nowrap}
.qrc-editor-body{flex:1;min-height:0;overflow:hidden;grid-template-columns:320px minmax(0,1fr)}
.qrc-editor-list{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0}
.qrc-manager-controls{flex:none;padding:18px 16px 12px;border-bottom:1px solid var(--line)}
.qrc-editor .qrc-manager-controls .field{margin:0;gap:6px;font-size:11px}
.qrc-manager-controls input,.qrc-manager-controls select{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:12px}
.qrc-manager-controls>small{display:block;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.5}
.qrc-manager-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:14px}
.qrc-manager-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-top:10px;color:var(--muted);font-size:11px;line-height:1.5}
.qrc-manager-summary .button{padding:4px 8px;min-height:28px;font-size:10px}
.qrc-manager-results{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:10px;overscroll-behavior:contain;scrollbar-gutter:stable}
.qrc-editor-list .qrc-group-link{box-sizing:border-box;width:100%;min-width:0;align-items:center;padding:12px 10px;gap:11px;margin-bottom:5px}
.qrc-editor-list .qrc-group-link:hover{background:var(--panel)}
.qrc-editor-list .qrc-group-link>.qrc-photo{width:46px;height:46px;padding:5px}
.qrc-editor-list .qrc-group-link>span:last-child{gap:4px}
.qrc-editor-list .qrc-group-link strong{font-size:13px}
.qrc-editor-list .qrc-group-link small{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.qrc-editor-list .qrc-group-link em{font-size:10px;color:var(--steel,var(--accent,#2563eb))}
.qrc-manager-empty{padding:22px 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}
.qrc-manager-empty strong{color:var(--ink)}
.qrc-editor-form{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px}
.qrc-editor-actions{bottom:-24px}
.qrc-editor-mobile-nav{display:none}
.qrc-editor [hidden]{display:none!important}
@media(max-width:850px) and (min-width:601px){
 .qrc-editor-body{grid-template-columns:265px minmax(0,1fr)}
 .qrc-editor-form{padding:18px}
 .qrc-editor-actions{bottom:-18px}
 .qrc-manager-controls{padding:15px 12px 10px}
 .qrc-editor-head{padding:18px}
}
@media(max-width:600px){
 .qrc-editor{width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:13px}
 .qrc-editor-head{padding:14px;gap:10px;align-items:flex-start}
 .qrc-editor-head h2{font-size:19px;margin-bottom:0}
 .qrc-editor-head .eyebrow{font-size:9px}
 .qrc-editor-head p{display:none}
 .qrc-editor-head-actions{gap:5px}
 .qrc-editor-head-actions>.button{padding:7px 9px;min-height:36px;font-size:11px}
 .qrc-editor-mobile-nav{display:flex;flex:none;gap:7px;padding:0 14px 12px;background:var(--panel);border-bottom:1px solid var(--line)}
 .qrc-editor-mobile-nav>button{flex:1;min-width:0;min-height:38px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--muted);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
 .qrc-editor-mobile-nav>button[aria-pressed=true]{border-color:var(--steel,var(--accent,#2563eb));color:var(--ink);background:var(--panel);box-shadow:inset 0 -2px var(--steel,var(--accent,#2563eb))}
 .qrc-editor-body{display:flex;flex-direction:column;grid-template-columns:none}
 .qrc-editor-list,.qrc-editor-form{flex:1;border:0}
 .qrc-editor-list>.qrc-manager-controls{display:block;max-height:none;overflow:visible;padding:14px}
 .qrc-editor-list>.qrc-manager-results{display:block;max-height:none;overflow-y:auto;overflow-x:hidden}
 .qrc-editor[data-manager-pane=editor] .qrc-editor-list,.qrc-editor[data-manager-pane=catalog] .qrc-editor-form{display:none}
 .qrc-editor-form{padding:17px}
 .qrc-editor-actions{bottom:-17px}
 .qrc-manager-filters{margin-top:10px}
 .qrc-manager-controls>small{margin-top:5px}
 .qrc-editor-list .qrc-group-link{width:100%;min-width:0}
}

/* Price and supplier availability belong to the selected Grainger SKU. */
.qrc-pricing{display:grid;gap:4px;min-width:0;padding:10px 0;line-height:1.45}
.qrc-price-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px;min-width:0;color:var(--ink)}
.qrc-price-line>.qrc-price{display:block;font-size:19px;font-weight:800;letter-spacing:-.025em;line-height:24px;color:var(--ink);margin:0}
.qrc-price-line>.qrc-price.is-unavailable{font-size:13px;font-weight:650;letter-spacing:0}
.qrc-price-unit{font-size:11px;line-height:17px;color:var(--muted);overflow-wrap:anywhere}
.qrc-availability{display:block;font-size:12px;line-height:18px;font-weight:650;overflow-wrap:anywhere;color:var(--muted)}
.qrc-availability.is-available{color:#237a4c}
.qrc-availability.is-limited{color:#926014}
.qrc-availability.is-unavailable{color:#ae4242}
.qrc-pricing>.qrc-price-checked,.qrc-pricing>.qrc-price-source,.qrc-pricing>.qrc-availability-detail{display:block;font-size:10px;line-height:15px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.qrc-pricing.is-stale>.qrc-price-checked{color:#926014}
.qrc-pricing-compact{padding:7px 0;gap:3px;grid-template-rows:12px 24px 18px 15px;box-sizing:border-box;min-height:92px}
.qrc-pricing-compact>.qrc-price-line{flex-wrap:nowrap;overflow:hidden}
.qrc-pricing-compact .qrc-price{flex:none}
.qrc-pricing-compact .qrc-price-unit,.qrc-pricing-compact>.qrc-availability,.qrc-pricing-compact>.qrc-price-checked{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-pricing-compact>.qrc-availability{height:18px}
.qrc-pricing-compact>.qrc-price-checked{height:15px}
.qrc-card-info{grid-template-rows:16px 45px 36px 80px 16px 92px 36px 40px 38px 17px 32px}
.qrc-company-card-body{grid-template-rows:16px 45px 36px 80px 16px 92px 36px 26px 40px 51px}
.qrc-card-info>.qrc-pricing,.qrc-company-card-body>.qrc-pricing{grid-row:6;height:92px}
.qrc-card-info>.qrc-card-details,.qrc-company-card-body>.qrc-card-details{grid-row:7}
.qrc-card-info>.qrc-card-documents{grid-row:8}
.qrc-card-info>.qrc-card-bottom{grid-row:9}
.qrc-card-info>.qrc-in-request{grid-row:10}
.qrc-card-info>.qrc-card-backup-line{grid-row:11}
.qrc-company-card-body>.qrc-company-tags{grid-row:8}
.qrc-company-card-body>.qrc-card-documents{grid-row:9}
.qrc-company-card-body>footer{grid-row:10}
.qrc-option-content>.qrc-pricing{border-top:1px solid var(--line);min-height:93px}
.qrc-variant-row-main>.qrc-pricing{padding-bottom:0}
[data-qps-theme=dark] .qrc-availability.is-available{color:#75d6a0}
[data-qps-theme=dark] .qrc-availability.is-limited,[data-qps-theme=dark] .qrc-pricing.is-stale>.qrc-price-checked{color:#edc175}
[data-qps-theme=dark] .qrc-availability.is-unavailable{color:#f29b9b}
@media(max-width:600px){
 .qrc-card-info{grid-template-rows:16px 40px 36px 80px 16px 92px 44px 40px 36px 17px 32px}
 .qrc-company-card-body{grid-template-rows:16px 40px 36px 80px 16px 92px 44px 26px 40px 74px}
 .qrc-card-info .qrc-price,.qrc-company-card-body .qrc-price{font-size:16px}
 .qrc-card-info .qrc-price.is-unavailable,.qrc-company-card-body .qrc-price.is-unavailable{font-size:11px}
 .qrc-card-info .qrc-price-unit,.qrc-company-card-body .qrc-price-unit{font-size:10px}
 .qrc-card-info .qrc-availability,.qrc-company-card-body .qrc-availability{font-size:11px}
}

.qrc-price-label{display:block;font-size:9px;font-weight:750;line-height:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-product .qrc-pricing>.qrc-price-checked,.qrc-product .qrc-pricing>.qrc-price-source,.qrc-product .qrc-pricing>.qrc-availability-detail{font-size:10px;line-height:15px}

/* The same purchase-history row is reserved on every product card. */
.qrc-purchases{display:block;min-width:0;max-width:100%;height:22px;line-height:22px;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrc-purchases.has-purchases{color:var(--steel);font-weight:650}
.qrc-product .qrc-purchases{font-size:11px;margin:5px 0}
.qrc-option-content>.qrc-purchases{height:24px;line-height:24px;border-top:1px solid var(--line);font-size:11px}
.qrc-search-row{grid-template-columns:minmax(0,1fr) minmax(125px,190px) minmax(135px,170px)}
.qrc-company-controls{grid-template-columns:minmax(200px,1fr) minmax(120px,180px) 135px 165px auto auto}
.qrc-card-info{grid-template-rows:16px 45px 36px 80px 16px 92px 22px 36px 40px 38px 17px 32px}
.qrc-company-card-body{grid-template-rows:16px 45px 36px 80px 16px 92px 22px 36px 26px 40px 51px}
.qrc-card-info>.qrc-purchases,.qrc-company-card-body>.qrc-purchases{grid-row:7}
.qrc-card-info>.qrc-card-details,.qrc-company-card-body>.qrc-card-details{grid-row:8}
.qrc-card-info>.qrc-card-documents{grid-row:9}
.qrc-card-info>.qrc-card-bottom{grid-row:10}
.qrc-card-info>.qrc-in-request{grid-row:11}
.qrc-card-info>.qrc-card-backup-line{grid-row:12}
.qrc-company-card-body>.qrc-company-tags{grid-row:9}
.qrc-company-card-body>.qrc-card-documents{grid-row:10}
.qrc-company-card-body>footer{grid-row:11}
@media(max-width:1200px){.qrc-company-controls{grid-template-columns:minmax(180px,1fr) minmax(120px,1fr) minmax(120px,1fr)}.qrc-company-controls>.button{grid-row:2}.qrc-company-controls>.button:last-child{grid-column:3}}
@media(max-width:600px){
 .qrc-search-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.qrc-search-row>.field:first-child{grid-column:1/-1}
 .qrc-company-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.qrc-company-controls>.field:first-child{grid-column:1/-1}.qrc-company-controls>.field:nth-child(4){grid-column:1/-1}.qrc-company-controls>.button{grid-row:4}.qrc-company-controls>.button:last-child{grid-column:2}
 .qrc-card-info{grid-template-rows:16px 40px 36px 80px 16px 92px 22px 44px 40px 36px 17px 32px}
 .qrc-company-card-body{grid-template-rows:16px 40px 36px 80px 16px 92px 22px 44px 26px 40px 74px}
}
