body.c-production-auth{margin:0}
/* Keep application styles out of browser annotation overlays. */
@scope (#app, #modal-root, #toast) {
:where(body).c-production-auth :scope{font-family:Arial,"Microsoft YaHei",sans-serif;color:#232a2a;background:#f5f6f6;font-size:14px;letter-spacing:0;font-synthesis:none;--line:#e2e6e4;--green:#177551;--muted:#6f7974}
:where(body).c-production-auth *{box-sizing:border-box}body.c-production-auth{margin:0}:where(body).c-production-auth button,:where(body).c-production-auth input,:where(body).c-production-auth select{font:inherit}:where(body).c-production-auth button,:where(body).c-production-auth a,:where(body).c-production-auth input,:where(body).c-production-auth select{outline-offset:3px}:where(body).c-production-auth button{cursor:pointer}:where(body).c-production-auth button:disabled{opacity:.55;cursor:wait}:where(body).c-production-auth button,:where(body).c-production-auth .button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid #d9dfdc;border-radius:5px;background:#fff;color:#273a30;text-decoration:none;white-space:nowrap}:where(body).c-production-auth button:hover,:where(body).c-production-auth .button:hover{background:#f1f5f2;border-color:#b2c4b9}:where(body).c-production-auth .primary{background:var(--green);color:white;border-color:var(--green)}:where(body).c-production-auth .primary:hover{background:#125f42;color:#fff}:where(body).c-production-auth .danger{color:#b0414e}:where(body).c-production-auth svg{width:17px;height:17px;flex-shrink:0}:where(body).c-production-auth .icon{width:34px;height:34px;padding:6px}:where(body).c-production-auth .icon svg{width:17px}:where(body).c-production-auth h1,:where(body).c-production-auth h2,:where(body).c-production-auth h3,:where(body).c-production-auth p{margin:0}:where(body).c-production-auth h1{font-size:23px;font-weight:600}:where(body).c-production-auth h2{font-size:18px}:where(body).c-production-auth h3{font-size:15px}:where(body).c-production-auth small,:where(body).c-production-auth .muted{color:var(--muted)}:where(body).c-production-auth input,:where(body).c-production-auth select{border:1px solid #d9dfdc;border-radius:4px;padding:8px 10px;background:#fff;min-height:36px;min-width:0}:where(body).c-production-auth input:focus,:where(body).c-production-auth select:focus{border-color:var(--green);outline:2px solid #dcf2e5}:where(body).c-production-auth label{display:flex;flex-direction:column;gap:7px;color:#48534c}:where(body).c-production-auth label.check{flex-direction:row;align-items:center;gap:7px}:where(body).c-production-auth input[type=checkbox]{min-height:auto;width:16px;height:16px;accent-color:var(--green)}:where(body).c-production-auth .loading{padding:50px;color:var(--muted)}:where(body).c-production-auth .auth{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f3f6f4}:where(body).c-production-auth .auth form{width:100%;max-width:390px}:where(body).c-production-auth .brand{font-size:19px;font-weight:700;display:flex;align-items:center;gap:10px}:where(body).c-production-auth .brand svg{width:25px;height:25px;color:var(--green)}:where(body).c-production-auth .auth .brand{margin-bottom:36px}:where(body).c-production-auth .auth h1{margin-bottom:26px}:where(body).c-production-auth .auth label{margin-bottom:18px}:where(body).c-production-auth .auth .primary{width:100%;margin-top:10px}:where(body).c-production-auth .auth .switch{border:0;background:transparent;margin:15px auto;display:flex;color:var(--green)}:where(body).c-production-auth .error{color:#b33448;font-size:13px;margin:10px 0}:where(body).c-production-auth .layout{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}:where(body).c-production-auth .sidebar{background:#fff;border-right:1px solid var(--line);padding:27px 16px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}:where(body).c-production-auth .sidebar .brand{padding-left:7px}:where(body).c-production-auth .sidebar nav{display:grid;gap:7px}:where(body).c-production-auth .nav-button{border:none;background:transparent;justify-content:flex-start;width:100%;min-height:42px;gap:12px;font-weight:500}:where(body).c-production-auth .nav-button.active{background:#e7f3eb;color:#135c3e}:where(body).c-production-auth .account{margin-top:auto;border-top:1px solid var(--line);padding:17px 6px 0;display:flex;gap:8px;align-items:center;min-width:0}:where(body).c-production-auth .account div{min-width:0;flex:1}:where(body).c-production-auth .account strong,:where(body).c-production-auth .account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(body).c-production-auth .account small{margin-top:5px;font-size:11px}:where(body).c-production-auth .main{min-width:0}:where(body).c-production-auth .topbar{height:61px;border-bottom:1px solid var(--line);background:#fff;padding:0 30px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}:where(body).c-production-auth .status-dot{width:7px;height:7px;display:inline-block;background:#389968;border-radius:50%;margin-right:6px}:where(body).c-production-auth .content{padding:29px 30px;max-width:1800px;margin:auto}:where(body).c-production-auth .heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:25px}:where(body).c-production-auth .heading p{font-size:12px;color:var(--muted);margin-top:9px}:where(body).c-production-auth .actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}:where(body).c-production-auth .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:26px;background:#fff}:where(body).c-production-auth .stat{padding:0 24px;border-right:1px solid var(--line)}:where(body).c-production-auth .stat:last-child{border:0}:where(body).c-production-auth .stat small{display:block}:where(body).c-production-auth .stat strong{font-size:25px;display:block;font-weight:600;margin-top:9px}:where(body).c-production-auth .stat.warn strong{color:#ba6d13}:where(body).c-production-auth .section-line{display:flex;align-items:center;justify-content:space-between;margin:24px 0 13px;gap:12px}:where(body).c-production-auth .table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:5px}:where(body).c-production-auth table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}:where(body).c-production-auth th{background:#f1f4f2;color:#627065;font-size:12px;font-weight:500;padding:12px 14px;white-space:nowrap;border-bottom:1px solid var(--line)}:where(body).c-production-auth td{padding:11px 14px;border-bottom:1px solid #edf0ee;max-width:330px;line-height:1.5;overflow-wrap:anywhere;vertical-align:middle}:where(body).c-production-auth tr:last-child td{border-bottom:0}:where(body).c-production-auth tbody tr:hover{background:#fafcfb}:where(body).c-production-auth .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}:where(body).c-production-auth .file-link{background:none;border:0;padding:0;min-height:25px;color:#236e4c;text-align:left;white-space:normal;justify-content:flex-start}:where(body).c-production-auth .file-link:hover{background:none;text-decoration:underline}:where(body).c-production-auth .file-link svg{color:#4c9270}:where(body).c-production-auth .badge{display:inline-block;font-size:11px;padding:3px 7px;border-radius:3px;background:#eaf4ee;color:#237245;white-space:nowrap}:where(body).c-production-auth .badge.missing{background:#fff0dd;color:#9b6010}:where(body).c-production-auth .badge.manual{background:#eaf0fa;color:#3f5e9b}:where(body).c-production-auth .badge.existing{background:#eceff0;color:#607078}:where(body).c-production-auth .empty{padding:65px 20px;text-align:center;color:var(--muted)}:where(body).c-production-auth .empty svg{width:36px;height:36px;color:#8daa98;margin-bottom:15px}:where(body).c-production-auth .empty p{margin-bottom:18px}:where(body).c-production-auth .search{display:flex;align-items:center;gap:8px;max-width:360px;min-width:0}:where(body).c-production-auth .search input{width:100%;min-width:0}:where(body).c-production-auth .pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:13px;font-size:12px;color:var(--muted)}:where(body).c-production-auth .filename{max-width:820px;overflow-wrap:anywhere;font-size:19px;line-height:1.5}:where(body).c-production-auth .back{border:0;padding:0;background:transparent;color:var(--muted);margin-bottom:12px;font-size:12px}:where(body).c-production-auth .source{font-size:11px;color:var(--muted);max-width:260px}:where(body).c-production-auth .detail-table{min-width:1360px}:where(body).c-production-auth .detail-table th:first-child{width:55px}:where(body).c-production-auth .settings{max-width:620px;background:#fff;border-top:2px solid #2f805b;padding:26px}:where(body).c-production-auth .settings label{margin:20px 0}:where(body).c-production-auth .settings .note{font-size:12px;line-height:1.8;color:var(--muted);margin:15px 0}:where(body).c-production-auth .divider{height:1px;background:var(--line);margin:25px 0}:where(body).c-production-auth .overlay{position:fixed;inset:0;background:#162c244d;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px}:where(body).c-production-auth .modal{background:#fff;border-radius:7px;box-shadow:0 12px 50px #17302426;width:100%;max-width:1100px;max-height:92vh;display:flex;flex-direction:column;min-height:0}:where(body).c-production-auth .modal.small{max-width:780px}:where(body).c-production-auth .modal-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}:where(body).c-production-auth .modal-head div{min-width:0}:where(body).c-production-auth .modal-head p{margin-top:5px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}:where(body).c-production-auth .modal-body{padding:22px 24px;overflow:auto}:where(body).c-production-auth .modal-foot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;align-items:center}:where(body).c-production-auth .map-top{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:20px}:where(body).c-production-auth .map-top label:first-child{flex:1;min-width:180px}:where(body).c-production-auth .map-top input{width:100px}:where(body).c-production-auth .mapping{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 18px}:where(body).c-production-auth .mapping label{font-size:12px}:where(body).c-production-auth .mapping select{width:100%;font-size:12px}:where(body).c-production-auth .preview{margin-top:22px;max-height:260px;overflow:auto}:where(body).c-production-auth .preview table{font-size:11px}:where(body).c-production-auth .preview th{position:sticky;top:0}:where(body).c-production-auth .preview td{white-space:nowrap;max-width:none;padding:8px 10px}:where(body).c-production-auth .notice{background:#fff5e7;border-left:3px solid #c78b36;padding:10px 13px;font-size:12px;line-height:1.7;margin-bottom:18px}:where(body).c-production-auth .form-options{display:flex;gap:22px;align-items:center;margin:22px 0 0;flex-wrap:wrap}:where(body).c-production-auth .form-options select{max-width:220px}:where(body).c-production-auth :scope#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#243e30;color:#fff;padding:11px 20px;border-radius:5px;z-index:30;display:none;max-width:90vw;font-size:13px}:where(body).c-production-auth .busy{opacity:.6;pointer-events:none}:where(body).c-production-auth .inline-info{color:#6b7970;font-size:12px;margin:14px 0}:where(body).c-production-auth .page-error{padding:26px;border:1px solid #edc9cd;background:#fff8f8;color:#a13a45}
:where(body).c-production-auth .quote-pricing-table{min-width:1660px}:where(body).c-production-auth .quote-result-count{font-size:12px;color:var(--muted);white-space:nowrap}:where(body).c-production-auth .quote-query{padding-top:0}:where(body).c-production-auth .catalog-filters.quote-filters{align-items:end;padding:14px;border:1px solid var(--line);border-radius:5px;background:#fff;margin-bottom:12px}:where(body).c-production-auth .catalog-filters.quote-filters[hidden]{display:none}:where(body).c-production-auth .quote-filters label{min-width:180px}:where(body).c-production-auth .quote-filter-actions{margin-left:auto}:where(body).c-production-auth .markup-status{margin-bottom:20px}:where(body).c-production-auth .markup-applied{background:#eaf4ee;border-left:3px solid var(--green);padding:10px 13px;font-size:12px;line-height:1.7;margin-bottom:20px;color:#236e4c}
:where(body).c-production-auth .modal.markup-editor-modal{max-width:620px}:where(body).c-production-auth .markup-name-fields{display:grid;gap:14px}:where(body).c-production-auth .markup-name-fields>label{max-width:300px;font-size:12px}:where(body).c-production-auth .markup-name-fields>label>input[name="defaultRate"]{width:120px;max-width:100%;align-self:flex-start}:where(body).c-production-auth .markup-name-fields>label>input[name="defaultRate"][readonly]{background:#f2f5f3;color:#53645a;cursor:default}:where(body).c-production-auth .markup-name-heading{font-weight:600;color:#315c50}:where(body).c-production-auth .markup-name-add{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}:where(body).c-production-auth .markup-name-add label{font-size:12px}:where(body).c-production-auth .markup-name-add-button{grid-column:1/-1;justify-self:end}:where(body).c-production-auth .markup-name-add input,:where(body).c-production-auth .markup-name-add select{width:100%}:where(body).c-production-auth .markup-name-status{font-size:12px;color:var(--muted)}:where(body).c-production-auth .markup-name-status button{min-height:24px;padding:2px 8px}:where(body).c-production-auth .markup-name-list{display:grid;gap:8px}:where(body).c-production-auth .markup-name-rule{display:grid;grid-template-columns:minmax(0,1fr) 115px auto;gap:8px;align-items:center;padding:8px;background:#f5f9f6;border:1px solid #dce9e2;border-radius:4px}:where(body).c-production-auth .markup-name-rule span{overflow-wrap:anywhere}:where(body).c-production-auth .markup-name-rule input{width:100%}:where(body).c-production-auth .markup-name-rule button{min-height:32px}:where(body).c-production-auth .markup-name-empty{font-size:12px}
:where(body).c-production-auth .quote-sale-cell{min-width:135px;white-space:normal;cursor:text}:where(body).c-production-auth .quote-sale-cell:focus-visible{outline:2px solid var(--green);outline-offset:-2px}:where(body).c-production-auth .quote-sale-cell-manual{background:#fff3d9;color:#8a4b12}:where(body).c-production-auth .quote-sale-cell-manual .quote-sale-value{font-weight:700}:where(body).c-production-auth .quote-sale-value{font-variant-numeric:tabular-nums}:where(body).c-production-auth .quote-sale-manual{display:block;color:#8a4b12;font-size:11px;line-height:1.4}:where(body).c-production-auth .quote-sale-restore{display:block;margin:3px 0 0 auto;padding:0;border:0;min-height:20px;background:transparent;color:#276b54;font-size:11px}:where(body).c-production-auth .quote-sale-editor{min-width:115px;text-align:left}:where(body).c-production-auth .quote-sale-editor input{width:100%;min-height:32px}:where(body).c-production-auth .quote-sale-controls{display:flex;gap:4px;margin-top:4px}:where(body).c-production-auth .quote-sale-controls .icon{width:34px;height:34px;min-height:34px}:where(body).c-production-auth .quote-sale-error{display:block;white-space:normal;max-width:180px}
@media(max-width:1000px){:where(body).c-production-auth .layout{grid-template-columns:176px minmax(0,1fr)}:where(body).c-production-auth .sidebar{padding:22px 10px}:where(body).c-production-auth .sidebar .brand{font-size:16px}:where(body).c-production-auth .content{padding:24px 20px}:where(body).c-production-auth .topbar{padding:0 20px}:where(body).c-production-auth .mapping{grid-template-columns:repeat(3,minmax(0,1fr))}:where(body).c-production-auth .heading{flex-wrap:wrap}:where(body).c-production-auth .stat{padding:0 15px}}
@media(max-width:700px){:where(body).c-production-auth .layout{display:block}:where(body).c-production-auth .sidebar{height:auto;position:static;border-right:0;border-bottom:1px solid var(--line);padding:14px 15px;gap:13px}:where(body).c-production-auth .sidebar .brand{font-size:18px}:where(body).c-production-auth .sidebar nav{display:flex;gap:5px}:where(body).c-production-auth .nav-button{font-size:12px;min-height:36px;padding:6px 9px;justify-content:center;gap:6px}:where(body).c-production-auth .account{position:absolute;right:12px;top:7px;border:0;padding:0}:where(body).c-production-auth .account div{display:none}:where(body).c-production-auth .topbar{height:40px;padding:0 16px}:where(body).c-production-auth .content{padding:20px 14px}:where(body).c-production-auth h1{font-size:21px}:where(body).c-production-auth .stats{padding:15px 0;margin-bottom:20px}:where(body).c-production-auth .stat{padding:0 10px}:where(body).c-production-auth .stat strong{font-size:20px}:where(body).c-production-auth .stat small{font-size:11px}:where(body).c-production-auth .section-line{flex-wrap:wrap}:where(body).c-production-auth .actions{gap:6px}:where(body).c-production-auth .actions button,:where(body).c-production-auth .actions .button{font-size:12px}:where(body).c-production-auth .overlay{padding:8px}:where(body).c-production-auth .modal{max-height:97vh}:where(body).c-production-auth .modal-head{padding:16px}:where(body).c-production-auth .modal-body{padding:16px}:where(body).c-production-auth .modal-foot{padding:12px 16px}:where(body).c-production-auth .mapping{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}:where(body).c-production-auth .settings{padding:20px}:where(body).c-production-auth .filename{font-size:17px}:where(body).c-production-auth .heading{margin-bottom:18px}:where(body).c-production-auth .form-options{gap:12px}:where(body).c-production-auth .modal h2{font-size:16px}}
@media(max-width:700px){:where(body).c-production-auth .quote-pricing-table{min-width:1660px}:where(body).c-production-auth .quote-query>.actions input[name="q"]{width:100%;flex-basis:100%}:where(body).c-production-auth .catalog-filters.quote-filters{display:grid;grid-template-columns:1fr}:where(body).c-production-auth .quote-filters label,:where(body).c-production-auth .quote-filters select{width:100%;max-width:none}:where(body).c-production-auth .quote-filter-actions{margin-left:0;justify-content:flex-end}}
@media(max-width:700px){:where(body).c-production-auth .markup-name-rule{grid-template-columns:minmax(0,1fr) 95px auto}}
}

/* Workspace recovery remains available outside a failed page or editor. */
:where(body).c-production-auth .workspace-context-notice{margin:16px 24px 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}:where(body).c-production-auth .workspace-context-notice span{flex:1 1 240px}:where(body).c-production-auth .workspace-context-notice button{flex:none}
@media(max-width:600px){:where(body).c-production-auth .workspace-context-notice{margin:12px 10px 0}}


/* Keep application styles out of browser annotation overlays. */
@scope (#app, #modal-root, #toast) {
:where(body).c-production-auth .material-dialog{max-width:800px}
:where(body).c-production-auth .material-dialog form,:where(body).c-production-auth .material-dialog #material-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
:where(body).c-production-auth .material-dialog .modal-head{background:#fff;padding:18px 24px}
:where(body).c-production-auth .material-dialog .modal-head h2{font-size:18px;color:#163e3b}
:where(body).c-production-auth .material-dialog .modal-head p{margin-top:4px}
:where(body).c-production-auth .material-dialog .modal-body{display:grid;gap:24px;padding:22px 24px;overflow:auto;min-height:0}
:where(body).c-production-auth .material-section+.material-section{border-top:1px solid #dce9e6;padding-top:22px}
:where(body).c-production-auth .material-section-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:15px}
:where(body).c-production-auth .material-section-heading h3{font-size:14px;font-weight:700;color:#194f4a}
:where(body).c-production-auth .material-section-heading p{margin-top:3px;color:#6b817c;font-size:12px;line-height:1.5}
:where(body).c-production-auth .material-section-number{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:7px;background:#e5f4f1;color:#08766e;font-size:12px;font-weight:700}
:where(body).c-production-auth .material-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
:where(body).c-production-auth .material-field{min-width:0;gap:7px;font-size:12px;font-weight:600;color:#4b625d}
:where(body).c-production-auth .material-field input{width:100%;min-width:0;min-height:40px;font-size:14px;font-weight:400;color:#183732;background:#fff}
:where(body).c-production-auth .material-field input[readonly]{background:#f5f8f7;color:#304e49}
:where(body).c-production-auth .material-field input:focus{border-color:#08766e;outline:2px solid #d8efeb}
:where(body).c-production-auth .material-dialog .modal-foot{background:#fff;min-height:65px;padding:12px 24px;gap:12px}
:where(body).c-production-auth .material-save-hint{margin-right:auto;color:#71847f;font-size:12px}
:where(body).c-production-auth .material-form-error{margin:0 auto 0 0;min-width:0;overflow-wrap:anywhere}
:where(body).c-production-auth .material-form-error[hidden]{display:none}
:where(body).c-production-auth .bom-meta-modal form{display:flex;flex-direction:column;min-height:0}
:where(body).c-production-auth .bom-meta-modal .modal-body{overflow:visible;min-height:0}
:where(body).c-production-auth .bom-meta-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}
:where(body).c-production-auth .bom-meta-fields>label,:where(body).c-production-auth .bom-meta-fields>.customer-picker{min-width:0;font-size:12px;font-weight:600}
:where(body).c-production-auth .bom-meta-fields input{width:100%;min-height:40px;font-size:14px;font-weight:400}
:where(body).c-production-auth .bom-meta-fields input[readonly]{background:#f2f6f4;color:#455b54}
:where(body).c-production-auth .bom-meta-modal .customer-options{width:100%;max-width:none}
:where(body).c-production-auth .bom-meta-modal #bom-meta-error{margin:12px 0 0}
:where(body).c-production-auth .bom-meta-state{margin:0 0 14px;color:#5b726d;font-size:13px}:where(body).c-production-auth .bom-meta-hint{margin:14px 0 0;color:#9b5b16;font-size:12px}
@media(max-width:700px){:where(body).c-production-auth .material-dialog .modal-head{padding:16px}:where(body).c-production-auth .material-dialog .modal-body{padding:18px 16px;gap:20px}:where(body).c-production-auth .material-dialog .modal-foot{padding:12px 16px}:where(body).c-production-auth .material-fields{grid-template-columns:minmax(0,1fr);gap:13px}:where(body).c-production-auth .material-section+.material-section{padding-top:18px}:where(body).c-production-auth .material-save-hint{display:none}}
:where(body).c-production-auth .bom-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}:where(body).c-production-auth .bom-detail-toolbar .back.bom-customer-back{margin:0}:where(body).c-production-auth .bom-versions-modal .modal-body{min-height:0}:where(body).c-production-auth .bom-versions-modal table{min-width:720px}
:where(body).c-production-auth .bom-versions-modal .bom-version-hint{margin:0 0 10px}:where(body).c-production-auth .bom-versions-modal .bom-version-editable{cursor:pointer}:where(body).c-production-auth .bom-versions-modal .bom-version-editable:hover,:where(body).c-production-auth .bom-versions-modal .bom-version-editable:focus-visible{background:#eaf4ee}:where(body).c-production-auth .bom-versions-modal .bom-version-editable:focus-visible{outline:2px solid #237245;outline-offset:-2px}
:where(body).c-production-auth .bom-version-remark{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;max-width:220px}:where(body).c-production-auth .bom-version-actions{display:flex;align-items:center;gap:6px}:where(body).c-production-auth .bom-version-actions button,:where(body).c-production-auth .bom-version-actions .button{min-height:32px;padding:5px 8px;font-size:12px}:where(body).c-production-auth .bom-version-actions [data-archive-latest]{cursor:not-allowed}:where(body).c-production-auth .bom-archive-confirm{display:grid;gap:14px}:where(body).c-production-auth .bom-archive-confirm p{line-height:1.6}:where(body).c-production-auth .bom-archive-confirm .actions{justify-content:flex-end}:where(body).c-production-auth .bom-publish-modal{max-width:540px!important}:where(body).c-production-auth .bom-publish-modal form{display:flex;flex-direction:column;min-height:0}:where(body).c-production-auth .bom-publish-modal .modal-body{display:grid;gap:10px}:where(body).c-production-auth .bom-publish-modal textarea{width:100%;max-width:100%;min-height:115px;padding:10px;border:1px solid #d9dfdc;border-radius:5px;font:inherit;resize:vertical}:where(body).c-production-auth .bom-publish-modal textarea:focus{border-color:#177551;outline:2px solid #dcf2e5}:where(body).c-production-auth .bom-publish-modal .inline-info{margin:0}
:where(body).c-production-auth .bom-versions-modal [hidden]{display:none!important}
@media(max-width:700px){:where(body).c-production-auth .bom-versions-modal table,:where(body).c-production-auth .bom-versions-modal tbody{display:block;min-width:0;width:100%}:where(body).c-production-auth .bom-versions-modal colgroup{display:none}:where(body).c-production-auth .bom-versions-modal thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:where(body).c-production-auth .bom-versions-modal tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:10px;border-bottom:1px solid #dce8e2}:where(body).c-production-auth .bom-versions-modal tbody tr:last-child{border-bottom:0}:where(body).c-production-auth .bom-versions-modal tbody td{display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important}:where(body).c-production-auth .bom-versions-modal tbody td[data-column="version"]{grid-column:1;font-weight:700}:where(body).c-production-auth .bom-versions-modal tbody td[data-column="publishedAt"]{grid-column:2;color:#61756a;font-size:12px;text-align:right}:where(body).c-production-auth .bom-versions-modal tbody td[data-column="remark"]{grid-column:1/-1}:where(body).c-production-auth .bom-versions-modal tbody td[data-column="actions"]{grid-column:1/-1}:where(body).c-production-auth .bom-versions-modal .bom-version-remark{max-width:none}:where(body).c-production-auth .bom-versions-modal .button{padding:5px 8px}}
:where(body).c-production-auth .published-bom-fields{display:grid;gap:16px}:where(body).c-production-auth .published-bom-fields select{width:100%;min-width:0}:where(body).c-production-auth .published-bom-fields p{overflow-wrap:anywhere}
:where(body).c-production-auth .dev-role{display:flex;flex-direction:row;align-items:center;font-size:12px;gap:8px}:where(body).c-production-auth .dev-role select{min-height:30px;padding:4px 8px;width:120px}:where(body).c-production-auth .bom-meta{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,2fr) minmax(0,1fr);gap:18px;margin-bottom:26px}:where(body).c-production-auth .bom-editor{min-width:1200px;table-layout:fixed}:where(body).c-production-auth .bom-editor th:first-child{width:60px}:where(body).c-production-auth .bom-editor th:nth-child(2){width:160px}:where(body).c-production-auth .bom-editor th:nth-child(3){width:240px}:where(body).c-production-auth .bom-editor th:nth-child(4){width:100px}:where(body).c-production-auth .bom-editor th:nth-child(5){width:90px}:where(body).c-production-auth .bom-editor th:nth-child(6){width:120px}:where(body).c-production-auth .bom-editor th:nth-child(7){width:160px}:where(body).c-production-auth .bom-editor th:nth-child(8){width:230px}:where(body).c-production-auth .bom-editor th:last-child{width:55px}:where(body).c-production-auth .bom-editor td{padding:7px}:where(body).c-production-auth .bom-editor input{width:100%;font-size:13px}:where(body).c-production-auth .heading h1{overflow-wrap:anywhere;min-width:0}:where(body).c-production-auth .topbar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;margin-right:10px}:where(body).c-production-auth .loading>.page-error{margin-bottom:16px}:where(body).c-production-auth #material-form{display:flex;flex-direction:column;min-height:0;overflow:auto}:where(body).c-production-auth #company-choice>button{margin-top:16px}:where(body).c-production-auth #company-choice p{line-height:1.8}:where(body).c-production-auth .account strong{font-size:13px}:where(body).c-production-auth .bom-customer-row{cursor:pointer}
:where(body).c-production-auth .bom-editor .bom-derived-field{background:#f2f6f4;color:#455b54;cursor:default}:where(body).c-production-auth .bom-editor .bom-derived-field:focus{outline-color:#c8d9d2}:where(body).c-production-auth .bom-editor .bom-model-pending{border-color:#b76c22;background:#fff8ee}:where(body).c-production-auth .bom-editor .bom-model-pending:focus{outline-color:#f5d8b3}
:where(body).c-production-auth .back.bom-customer-back{min-height:34px;margin:12px 0 16px;padding:6px 11px;border:1px solid #8fc7bb;border-radius:5px;background:#e4f4f0;color:#006b66;font-size:14.4px;font-weight:600;line-height:1.25}:where(body).c-production-auth .back.bom-customer-back:hover{background:#d4ece7;border-color:#68aa9d;color:#005b57}:where(body).c-production-auth .back.bom-customer-back svg{width:16px;height:16px}
:where(body).c-production-auth .bom-unlinked{min-width:0;margin-top:16px;padding:16px;border:1px solid #dfd4b6;border-radius:8px;background:#fffaf0}:where(body).c-production-auth .bom-unlinked h2{font-size:15px;color:#75551c}:where(body).c-production-auth .bom-unlinked>p{margin:6px 0 12px;color:#75694f;font-size:12px;line-height:1.6}:where(body).c-production-auth .bom-unlinked .table-wrap{min-width:0}:where(body).c-production-auth .bom-unlinked table{min-width:620px}:where(body).c-production-auth .bom-unlinked td:last-child{white-space:nowrap}
:where(body).c-production-auth .quote-reminder-entry{position:relative;overflow:visible}:where(body).c-production-auth .quote-reminder-count{position:absolute;top:-9px;right:-9px;min-width:19px;height:19px;padding:0 4px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:#bd344b;color:#fff;font-size:11px;font-weight:700;line-height:1;box-shadow:0 0 0 2px #fff}:where(body).c-production-auth table[data-table-key="quote-customers"] .file-link{font-weight:600}
:where(body).c-production-auth .team-heading{gap:12px}:where(body).c-production-auth .team-heading>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}:where(body).c-production-auth .team-heading .actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}:where(body).c-production-auth .team-table-wrap{overflow-x:auto}:where(body).c-production-auth .team-table-wrap table{min-width:1050px}:where(body).c-production-auth .team-table-wrap th,:where(body).c-production-auth .team-table-wrap td{white-space:nowrap}:where(body).c-production-auth .team-row-actions{display:flex;gap:6px;align-items:center}:where(body).c-production-auth .team-row-actions button{min-height:32px;padding:5px 9px}:where(body).c-production-auth .team-notice{padding:10px 14px;border:1px solid #d7e8e4;border-radius:7px;background:#f3faf8;color:#4c6761}:where(body).c-production-auth .team-modal{max-width:620px}:where(body).c-production-auth .team-modal .modal-body{display:grid;gap:12px}:where(body).c-production-auth .team-modal .modal-body label{display:grid;gap:6px;min-width:0}:where(body).c-production-auth .team-modal .modal-body input,:where(body).c-production-auth .team-modal .modal-body select{width:100%;min-height:38px}:where(body).c-production-auth .team-fields{grid-template-columns:repeat(2,minmax(0,1fr))}:where(body).c-production-auth .team-fields .team-hint,:where(body).c-production-auth .team-fields .team-form-error{grid-column:1/-1}:where(body).c-production-auth .team-member-name{font-weight:700}:where(body).c-production-auth .team-hint{color:#657c76;font-size:12px;line-height:1.6}:where(body).c-production-auth .team-form-error[hidden]{display:none}
@media(max-width:700px){:where(body).c-production-auth .team-heading{align-items:flex-start;flex-direction:column}:where(body).c-production-auth .team-heading .actions{margin-left:0;width:100%}:where(body).c-production-auth .team-heading .actions button{flex:1}:where(body).c-production-auth .team-fields{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .team-modal .modal-body{padding:16px}:where(body).c-production-auth .team-modal .modal-foot{padding:12px 16px}:where(body).c-production-auth #content .team-table-wrap table[data-table-key="team"] [data-column="actions"]{width:112px!important;min-width:112px!important;max-width:112px!important}:where(body).c-production-auth #content .team-table-wrap table[data-table-key="team"] col:last-child{width:112px!important}:where(body).c-production-auth .team-row-actions{flex-direction:column}:where(body).c-production-auth .team-row-actions button{width:100%}}
:where(body).c-production-auth table[data-table-key="bom-list"] tbody tr[data-bom-id]{cursor:pointer}
:where(body).c-production-auth .heading.bom-review-heading{min-height:0;padding:8px 0;align-items:center;gap:8px}:where(body).c-production-auth .bom-review-heading>div:first-child{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;overflow:hidden}:where(body).c-production-auth .bom-review-heading p{flex:1 1 auto;min-width:0;margin:0;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:where(body).c-production-auth .bom-title-state{display:flex;align-items:center;gap:8px;flex:0 1 auto;max-width:55%;min-width:0}:where(body).c-production-auth .bom-title-state h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(body).c-production-auth .bom-review-heading>.actions{flex:0 0 auto}:where(body).c-production-auth .review-stamp{display:inline-block;flex:0 0 auto;color:#d93b3b;border:2px solid currentColor;border-radius:2px;padding:3px 10px;font-size:14px;font-weight:700;letter-spacing:2px;transform:rotate(-6deg);background:#fff}:where(body).c-production-auth .badge.review-reopened{color:#9b5b16;background:#fff5e7;border-color:#e9c18d}
:where(body).c-production-auth .duplicate-modal{max-width:1180px}:where(body).c-production-auth .duplicate-groups{display:grid;gap:18px}:where(body).c-production-auth .duplicate-group{border:1px solid var(--line);border-radius:6px;padding:14px;background:#fbfdfc}:where(body).c-production-auth .duplicate-group.blocked{background:#fffaf5}:where(body).c-production-auth .duplicate-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}:where(body).c-production-auth .duplicate-group-head label{font-size:13px}:where(body).c-production-auth .duplicate-group-head span{font-size:12px;color:var(--muted)}:where(body).c-production-auth .duplicate-warning{color:#a86116;font-size:12px;margin:0 0 10px}:where(body).c-production-auth .duplicate-group table{min-width:900px}:where(body).c-production-auth .duplicate-group th,:where(body).c-production-auth .duplicate-group td{padding:8px 10px}:where(body).c-production-auth .duplicate-retain{display:flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap}:where(body).c-production-auth .duplicate-retain input{width:15px;height:15px;min-height:auto;accent-color:var(--green)}
@media(max-width:700px){:where(body).c-production-auth .bom-meta-modal .modal-body{padding:16px}:where(body).c-production-auth .bom-meta-modal .modal-foot{padding:12px 16px}:where(body).c-production-auth .sidebar nav{flex-wrap:wrap;justify-content:flex-start}:where(body).c-production-auth .nav-button{width:auto}:where(body).c-production-auth .topbar{height:auto;min-height:48px}:where(body).c-production-auth .dev-role{font-size:11px;gap:5px}:where(body).c-production-auth .heading.bom-review-heading{padding:6px 0}:where(body).c-production-auth .bom-review-heading>div:first-child{flex-basis:100%;gap:6px}:where(body).c-production-auth .bom-review-heading>.actions{flex:1 1 100%;justify-content:flex-end}:where(body).c-production-auth .bom-title-state{max-width:58%;gap:6px}:where(body).c-production-auth .review-stamp{font-size:12px}:where(body).c-production-auth .duplicate-modal .modal-foot{flex-wrap:wrap}:where(body).c-production-auth .duplicate-modal .modal-foot button{flex:1}:where(body).c-production-auth .duplicate-group{padding:10px}:where(body).c-production-auth .duplicate-group-head{align-items:flex-start;flex-direction:column}}
}

:where(body).c-production-auth #app table[data-table-key="bom-list"] [data-column="select"]{width:40px;min-width:40px;text-align:center}

/* Horizontal published BOM selection, 2026-10-23. */
:where(body).c-production-auth #modal-root .modal.published-bom-dialog{width:min(1120px,calc(100vw - 24px));max-width:min(1120px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
:where(body).c-production-auth #modal-root .published-bom-dialog [hidden]{display:none!important}
:where(body).c-production-auth #modal-root .published-bom-dialog .modal-body{min-width:0}
:where(body).c-production-auth .published-bom-table-wrap{max-width:100%;overflow:auto}
:where(body).c-production-auth #modal-root .published-bom-table{width:100%;min-width:890px;border-collapse:collapse;font-size:13px}
:where(body).c-production-auth #modal-root .published-bom-table :is(th,td){padding:9px 10px;vertical-align:middle;white-space:nowrap;max-width:none}
:where(body).c-production-auth #modal-root .published-bom-table [data-column="select"]{width:40px;text-align:center}
:where(body).c-production-auth #modal-root .published-bom-table select{width:150px;min-width:150px}
:where(body).c-production-auth #modal-root .published-bom-table time{font-size:12px}
:where(body).c-production-auth #modal-root .published-bom-table .published-bom-empty{text-align:center;padding:24px}
:where(body).c-production-auth #modal-root .published-bom-table .is-complete{color:var(--pc-accent,#087a75)}
:where(body).c-production-auth #modal-root .published-bom-table .is-error{color:var(--danger,#a13e48)}
:where(body).c-production-auth .published-selection-count{margin-right:auto;color:var(--pc-muted,#59646c);font-size:12px}
:where(body).c-production-auth .published-generation-progress{margin:8px 0 0;font-size:13px}
:where(body).c-production-auth #modal-root .published-bom-dialog .modal-foot{flex-wrap:wrap}
@media(max-width:700px){:where(body).c-production-auth #modal-root .modal.published-bom-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px)}:where(body).c-production-auth #modal-root .published-bom-dialog .modal-body{padding:12px}:where(body).c-production-auth #modal-root .published-bom-dialog .modal-foot{gap:6px}:where(body).c-production-auth .published-selection-count{width:100%}}

:where(body).c-production-auth #content table[data-table-key="quote-customers"]{min-width:1000px}
:where(body).c-production-auth #content table[data-table-key="quote-customers"] :is(th,td){white-space:nowrap;text-align:center}
:where(body).c-production-auth #content table[data-table-key="quote-customers"] .quote-bom-count{justify-content:center;min-width:30px}
:where(body).c-production-auth #modal-root .customer-published-bom-table{min-width:1060px}
:where(body).c-production-auth #modal-root .published-row-actions{white-space:nowrap}
:where(body).c-production-auth #modal-root .published-row-actions button+button{margin-left:6px}
:where(body).c-production-auth #modal-root .published-materials-dialog{width:min(1120px,calc(100vw - 32px));max-width:1120px;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden}
:where(body).c-production-auth #modal-root .published-materials-dialog .modal-body{min-height:0;overflow:auto}
:where(body).c-production-auth #modal-root .published-materials-dialog :is(.modal-head,.modal-foot){flex-shrink:0}
:where(body).c-production-auth #modal-root .published-materials-table{min-width:860px;width:100%}
:where(body).c-production-auth #modal-root .published-materials-table :is(th,td){white-space:nowrap;text-align:center}
:where(body).c-production-auth #modal-root .published-materials-meta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin:0 0 12px;color:var(--muted);font-size:13px}
@media(max-width:600px){:where(body).c-production-auth #modal-root .published-materials-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}}

/* Physical-deletion dialogs: shared flex button rules must respect hidden retry/status controls. */
:where(body).c-production-auth .quote-delete-modal [hidden],:where(body).c-production-auth .bom-delete-overlay [hidden],:where(body).c-production-auth .bom-archive-confirm [hidden]{display:none!important}

:where(body).c-production-auth .qc-list-selection{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;padding:7px 0;font-size:12px}:where(body).c-production-auth .qc-list-selection[hidden]{display:none!important}
:where(body).c-production-auth #app .qc-page{--qc-param-width:180px;--qc-quote-width:260px;height:calc(100dvh - 108px);min-height:480px;min-width:0;display:flex;flex-direction:column}
:where(body).c-production-auth .qc-page .qc-panel{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;overflow:visible;background:var(--pc-top,#fff);border:1px solid var(--pc-line,#d2dfd9);border-radius:12px}
:where(body).c-production-auth .qc-page [hidden]{display:none!important}:where(body).c-production-auth .qc-page-head{border-radius:11px 11px 0 0;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:12px;padding:12px 16px;border-bottom:1px solid var(--pc-line,#d2dfd9)}:where(body).c-production-auth .qc-page-head h1{margin:0;font-size:18px}:where(body).c-production-auth .qc-page-head>.actions{flex-wrap:wrap;justify-content:flex-end}:where(body).c-production-auth .qc-page-head p{font-size:12px;color:var(--pc-muted,#61756a);margin:5px 0 0}
:where(body).c-production-auth .qc-controls{position:relative;z-index:8;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:8px 16px;border-bottom:1px solid var(--pc-line,#d2dfd9);font-size:12px;flex-shrink:0}:where(body).c-production-auth .qc-controls>label,:where(body).c-production-auth .qc-display-panel label{display:flex;align-items:center;gap:6px;flex-direction:row;font-size:12px;cursor:pointer}:where(body).c-production-auth .qc-display{position:relative}:where(body).c-production-auth .qc-display>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;border:1px solid var(--pc-line,#d2dfd9);border-radius:4px;padding:5px 9px;background:var(--pc-top,#fff)}:where(body).c-production-auth .qc-display>summary::-webkit-details-marker{display:none}:where(body).c-production-auth .qc-display>summary span{font-size:11px;color:var(--pc-muted,#61756a)}:where(body).c-production-auth .qc-display>summary:focus-visible{outline:2px solid var(--pc-accent,#087a75);outline-offset:2px}
:where(body).c-production-auth .qc-display-panel{position:absolute;left:0;top:calc(100% + 6px);width:min(530px,calc(100vw - 44px));max-height:min(55dvh,360px);overflow:auto;overscroll-behavior:contain;padding:12px;background:var(--pc-top,#fff);border:1px solid var(--pc-line,#d2dfd9);border-radius:7px;box-shadow:0 6px 24px #17302426}:where(body).c-production-auth .qc-display-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}:where(body).c-production-auth .qc-display-groups fieldset{min-width:0;display:grid;align-content:start;gap:8px;border:0;padding:0;margin:0}:where(body).c-production-auth .qc-display-groups legend{font-size:12px;font-weight:600;color:var(--pc-ink,#17332e);margin-bottom:8px}:where(body).c-production-auth .qc-display-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--pc-line,#d2dfd9);margin-top:12px;padding-top:8px}:where(body).c-production-auth .qc-display-foot .error{margin:0;flex:1}
:where(body).c-production-auth .qc-page .qc-body{padding:0;display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}:where(body).c-production-auth .qc-layout{display:flex;flex:1;min-height:0;min-width:0}
:where(body).c-production-auth .qc-nav{flex:0 0 160px;min-height:0;overflow:auto;padding:12px 8px;background:#f8faf9;border-right:1px solid #d2dfd9}:where(body).c-production-auth .qc-search{display:grid;gap:6px;font-size:12px;margin:0 0 12px}:where(body).c-production-auth .qc-search input{width:100%;min-width:0;padding:8px;font-size:12px}
:where(body).c-production-auth .qc-nav nav{display:grid;gap:4px}:where(body).c-production-auth .qc-nav nav button{display:flex;justify-content:space-between;align-items:center;gap:6px;text-align:left;min-width:0;border:0;background:transparent}:where(body).c-production-auth .qc-nav nav button.active{background:#e0ede6;color:#17593d;font-weight:700}:where(body).c-production-auth .qc-nav nav span{font-size:11px;color:#658174}
:where(body).c-production-auth .qc-main{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}:where(body).c-production-auth .qc-main>[data-qc-status]{padding:10px 14px;margin:0}:where(body).c-production-auth .qc-scroll{flex:1;min-height:0;overflow:auto;position:relative;isolation:isolate;background:#fff}
:where(body).c-production-auth .qc-page .qc-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;min-width:calc(var(--qc-param-width) + var(--qc-quote-width) * var(--qc-grid-quotes,2));font-size:12px}:where(body).c-production-auth .qc-param-col{width:var(--qc-param-width)}:where(body).c-production-auth .qc-quote-col{width:auto}
:where(body).c-production-auth .qc-table th,:where(body).c-production-auth .qc-table td{padding:9px 10px;border-right:1px solid #dbe3de;border-bottom:1px solid #dbe3de;vertical-align:top;white-space:normal;overflow-wrap:anywhere;max-width:none;box-sizing:border-box}
:where(body).c-production-auth .qc-table thead th{position:sticky;top:0;z-index:4}:where(body).c-production-auth .qc-table .qc-control,:where(body).c-production-auth .qc-table .qc-material{position:sticky;left:0;z-index:2;width:var(--qc-param-width);font-weight:400}:where(body).c-production-auth .qc-table thead .qc-control{z-index:7;font-size:13px;font-weight:600}
/* Fixed headers and columns remain opaque under all shared glass themes. */
:where(body).c-production-auth #app .qc-page .qc-table thead th{background:var(--pc-top,#fff)}
:where(body).c-production-auth #app .qc-page .qc-table .qc-control,:where(body).c-production-auth #app .qc-page .qc-table .qc-material{background:var(--pc-head,#f5f8f6)}
:where(body).c-production-auth .qc-quote>strong{display:block;font-size:13px;line-height:1.5;color:var(--pc-ink,#193f30)}:where(body).c-production-auth .qc-quote p{font-size:10px;font-weight:400;color:var(--pc-muted,#64776c);line-height:1.5;margin:3px 0}
:where(body).c-production-auth .qc-header-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;border-top:1px solid #e0e8e3;margin-top:6px;padding-top:6px}:where(body).c-production-auth .qc-header-totals:has(>.qc-metric:only-child){grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .qc-header-totals .qc-metric>strong{font-size:15px;color:var(--pc-ink,#195b3d)}
:where(body).c-production-auth .qc-material>strong{display:block;font-size:12px;line-height:1.5}:where(body).c-production-auth .qc-material-model{display:block;font-size:11px;line-height:1.5;color:var(--pc-muted,#61756a);margin-top:3px}:where(body).c-production-auth .qc-review{display:inline-block;color:#946d23;background:#fff5dc;padding:2px 4px;border-radius:3px;font-size:10px;margin-top:4px}:where(body).c-production-auth .qc-difference-tags{display:block;font-size:10px;font-weight:400;color:#8c6828;line-height:1.5;margin-top:4px}
:where(body).c-production-auth .qc-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}:where(body).c-production-auth .qc-metric{min-width:0;display:flex;flex-direction:column;gap:3px;padding:5px;border-radius:4px;line-height:1.4}:where(body).c-production-auth .qc-metric>small{font-size:10px;font-weight:400;color:var(--pc-muted,#61756a);overflow-wrap:anywhere}:where(body).c-production-auth .qc-metric>strong{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}:where(body).c-production-auth .qc-difference-label{display:block;font-size:10px;font-weight:400;color:#917038}:where(body).c-production-auth .qc-missing-count{display:block;font-size:10px;font-weight:400;color:#9c6931;margin-top:3px}:where(body).c-production-auth .qc-presence{display:inline-block;font-size:11px;padding:3px 5px;border-radius:3px;margin-bottom:4px;color:#8a6530}:where(body).c-production-auth .qc-missing,:where(body).c-production-auth .qc-empty{font-size:11px;color:#8a7771}
:where(body).c-production-auth #app .qc-page .qc-metric.qc-different,:where(body).c-production-auth #app .qc-page .qc-presence.qc-different{background:#fff7df}
:where(body).c-production-auth .qc-page input[type="checkbox"],:where(body).c-production-auth #app input[data-qc-select]{width:16px;height:16px;min-height:16px;flex:none;margin:0;accent-color:#1d6a49}:where(body).c-production-auth .qc-no-results{text-align:center;color:#657c70;padding:24px!important}:where(body).c-production-auth .qc-main>.pager{margin:0;padding:8px 12px;border-top:1px solid #d4e0d9;flex-shrink:0;background:#f8faf9;flex-wrap:wrap}:where(body).c-production-auth .qc-load-error{padding:20px;display:flex;gap:10px}
:where(body).c-production-auth .qc-summary-only .qc-panel,:where(body).c-production-auth .qc-summary-only .qc-body,:where(body).c-production-auth .qc-summary-only .qc-layout,:where(body).c-production-auth .qc-summary-only .qc-scroll{flex:0 1 auto}
:where(body).c-production-auth .qc-picker{width:100%;overflow:auto;padding:16px 18px;min-height:0}:where(body).c-production-auth .qc-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}:where(body).c-production-auth .qc-picker-query{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:14px 0}:where(body).c-production-auth .qc-picker-query label{display:grid;gap:5px;min-width:180px;flex:1}:where(body).c-production-auth .qc-picker-query select,:where(body).c-production-auth .qc-picker-query input{width:100%}:where(body).c-production-auth .qc-picker-table-wrap{width:100%;max-width:100%;min-width:0;overflow:auto}:where(body).c-production-auth #app .qc-page .qc-picker-table{width:100%;min-width:100%;table-layout:auto}:where(body).c-production-auth #app .qc-page .qc-picker-table :is(th,td){width:auto;max-width:none;height:34px;padding:6px 10px;line-height:1.4;white-space:nowrap;overflow-wrap:normal}:where(body).c-production-auth #app .qc-page .qc-picker-table :is(th,td):first-child{width:1%}
:where(body).c-production-auth .qc-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){:where(body).c-production-auth #app .qc-page{height:calc(100dvh - 156px);--qc-param-width:132px;--qc-quote-width:240px}:where(body).c-production-auth .qc-page-head{padding:10px;align-items:flex-start;flex-wrap:wrap}:where(body).c-production-auth .qc-page-head h1{font-size:16px}:where(body).c-production-auth .qc-page-head>.actions{gap:4px}:where(body).c-production-auth .qc-page-head button{font-size:11px;padding:5px}:where(body).c-production-auth .qc-controls{gap:10px;padding:7px 10px}:where(body).c-production-auth .qc-display-panel{max-height:min(50dvh,300px)}:where(body).c-production-auth .qc-display-groups{gap:10px}:where(body).c-production-auth .qc-layout{flex-direction:column}:where(body).c-production-auth .qc-nav{flex:0 0 auto;max-height:136px;padding:8px;border-right:0;border-bottom:1px solid #d2dfd9}:where(body).c-production-auth .qc-search{margin:0 0 7px;display:flex;align-items:center;gap:8px}:where(body).c-production-auth .qc-search input{flex:1}:where(body).c-production-auth .qc-nav nav{display:flex;overflow:auto}:where(body).c-production-auth .qc-nav nav button{white-space:nowrap;font-size:12px;flex-shrink:0}:where(body).c-production-auth .qc-table th,:where(body).c-production-auth .qc-table td{padding:8px}:where(body).c-production-auth .qc-picker{padding:12px}:where(body).c-production-auth .qc-picker-query{gap:8px}:where(body).c-production-auth .qc-picker-query label{min-width:130px}:where(body).c-production-auth .qc-list-selection{justify-content:space-between;gap:8px}}


/* Quote groups share field headings and a continuous, compact grid. */
:where(body).c-production-auth #app .qc-page{--qc-grid-fields:3;--qc-quote-width:max(240px,calc(var(--qc-grid-fields) * 96px));--qc-grid-line:var(--pc-line,#c8dad3)}
:where(body).c-production-auth .qc-page-title{display:flex;align-items:center;gap:12px;min-width:0}
:where(body).c-production-auth #app .qc-page .qc-table th,:where(body).c-production-auth #app .qc-page .qc-table td{border-color:var(--qc-grid-line)}
:where(body).c-production-auth #app .qc-page .qc-table thead th{vertical-align:bottom}:where(body).c-production-auth .qc-table .qc-quote{padding:0!important}:where(body).c-production-auth .qc-quote-heading{padding:8px 10px}:where(body).c-production-auth .qc-quote-heading>strong{display:block;font-size:13px;line-height:1.4}:where(body).c-production-auth .qc-quote-heading p{font-size:11px;margin:3px 0;line-height:1.4;color:var(--pc-muted,#61756a)}
:where(body).c-production-auth .qc-header-totals{display:flex;flex-direction:column;gap:4px;margin-top:7px;padding-top:7px}:where(body).c-production-auth .qc-total{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;line-height:1.4}:where(body).c-production-auth .qc-total>small{font-size:11px;font-weight:400;color:var(--pc-muted,#61756a)}:where(body).c-production-auth .qc-total>strong{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
:where(body).c-production-auth .qc-field-headings,:where(body).c-production-auth .qc-metrics{display:grid;grid-template-columns:repeat(var(--qc-grid-fields),minmax(0,1fr));gap:0}:where(body).c-production-auth .qc-field-headings{border-top:1px solid var(--qc-grid-line);background:var(--pc-head,#f5f8f6)}:where(body).c-production-auth .qc-field-headings>span{padding:6px 7px;text-align:center;font-size:11px;font-weight:500;border-right:1px solid var(--qc-grid-line);line-height:1.4}:where(body).c-production-auth .qc-field-headings>span:last-child{border-right:0}
:where(body).c-production-auth #app .qc-page .qc-table .qc-quote-cell{height:1px;padding:0;vertical-align:middle}:where(body).c-production-auth .qc-metrics{height:100%;min-height:48px}:where(body).c-production-auth .qc-metric{align-items:center;justify-content:center;padding:8px 7px;border-radius:0;gap:0;line-height:1.4}:where(body).c-production-auth .qc-metric>strong{font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;text-align:center;max-width:100%;overflow-wrap:anywhere}:where(body).c-production-auth .qc-metric.qc-different>strong{font-weight:600}:where(body).c-production-auth .qc-same-hidden{color:var(--pc-muted,#718078)}
:where(body).c-production-auth #app .qc-page .qc-table .qc-material{padding:7px 10px;vertical-align:middle}:where(body).c-production-auth .qc-material-model{font-size:12px;margin-top:3px;line-height:1.4}:where(body).c-production-auth .qc-table .qc-review{margin-top:4px}:where(body).c-production-auth .qc-table .qc-presence{padding:8px;font-size:12px;margin:0}:where(body).c-production-auth .qc-absent{text-align:center!important;background-image:none!important}
:where(body).c-production-auth #app .qc-page .qc-metric.qc-different{background:#fff8e3}:where(body).c-production-auth #app .qc-page .qc-total.qc-different>strong{background:#fff8e3;color:#735216;padding:1px 4px;border-radius:2px}
@media(max-width:700px){:where(body).c-production-auth .qc-page-title{gap:8px}:where(body).c-production-auth .qc-quote-heading{padding:7px 8px}}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="1"]{--qc-grid-fields:1}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="2"]{--qc-grid-fields:2}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="3"]{--qc-grid-fields:3}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="4"]{--qc-grid-fields:4}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="5"]{--qc-grid-fields:5}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="6"]{--qc-grid-fields:6}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="7"]{--qc-grid-fields:7}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="8"]{--qc-grid-fields:8}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="9"]{--qc-grid-fields:9}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="10"]{--qc-grid-fields:10}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="11"]{--qc-grid-fields:11}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="12"]{--qc-grid-fields:12}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="13"]{--qc-grid-fields:13}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="14"]{--qc-grid-fields:14}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="15"]{--qc-grid-fields:15}
:where(body).c-production-auth #app .qc-page[data-qc-field-count="16"]{--qc-grid-fields:16}
:where(body).c-production-auth #app .qc-page[data-qc-quote-count="2"]{--qc-grid-quotes:2}
:where(body).c-production-auth #app .qc-page[data-qc-quote-count="3"]{--qc-grid-quotes:3}
:where(body).c-production-auth #app .qc-page[data-qc-quote-count="4"]{--qc-grid-quotes:4}
:where(body).c-production-auth #app .qc-page[data-qc-quote-count="5"]{--qc-grid-quotes:5}
:where(body).c-production-auth #app .qc-page[data-qc-quote-count="6"]{--qc-grid-quotes:6}

:where(body).c-production-auth #app .qc-page .qc-metric:not(:last-child){border-right:1px solid var(--qc-grid-line)}
:where(body).c-production-auth #app .qc-page .qc-table tbody tr:last-child :is(th,td){border-bottom:1px solid var(--qc-grid-line)}

/* Keep quote metadata and material values on single lines; scroll the matrix when needed. */
:where(body).c-production-auth #app .qc-page .qc-table{table-layout:auto}
:where(body).c-production-auth .qc-page .qc-param-col{width:1%}
:where(body).c-production-auth #app .qc-page .qc-table :is(.qc-control,.qc-material){width:1%;white-space:nowrap;overflow-wrap:normal}
:where(body).c-production-auth .qc-quote-heading{padding:5px 8px;min-width:calc(var(--qc-quote-width) - 16px)}
:where(body).c-production-auth .qc-quote-identity{display:flex;align-items:center;justify-content:space-between;gap:8px;white-space:nowrap}
:where(body).c-production-auth .qc-quote-identity>strong{font-size:12px;line-height:1.4}
:where(body).c-production-auth .qc-quote-identity .qc-remove{min-height:22px;width:22px;padding:0;border:0;background:transparent;color:var(--pc-muted,#61756a);font-size:16px;flex-shrink:0}
:where(body).c-production-auth .qc-quote-heading p{white-space:nowrap;margin:1px 0;line-height:1.4}
:where(body).c-production-auth .qc-header-totals{margin-top:4px;padding-top:4px;gap:3px}
:where(body).c-production-auth .qc-total{white-space:nowrap}:where(body).c-production-auth .qc-total>strong{font-size:13px;overflow-wrap:normal}
:where(body).c-production-auth .qc-field-headings>span{padding:4px 7px;white-space:nowrap}
:where(body).c-production-auth .qc-metrics{min-height:32px}
:where(body).c-production-auth .qc-metric{padding:5px 7px}
:where(body).c-production-auth .qc-metric>strong{white-space:nowrap;overflow-wrap:normal;overflow-x:auto}
:where(body).c-production-auth .qc-missing-count{display:inline;margin:0 0 0 5px;white-space:nowrap}
:where(body).c-production-auth #app .qc-page .qc-table .qc-material{padding:5px 8px}
:where(body).c-production-auth .qc-table .qc-material>strong,:where(body).c-production-auth .qc-table .qc-material-model{display:inline;line-height:1.4;margin:0;white-space:nowrap}
:where(body).c-production-auth .qc-table .qc-review{margin:0 0 0 5px;padding:1px 3px}
:where(body).c-production-auth .qc-table .qc-presence{padding:5px 8px;white-space:nowrap}

/* Column settings include quote identity and detail/summary values. */
:where(body).c-production-auth .qc-page-head .qc-display{z-index:10}
:where(body).c-production-auth .qc-page-head .qc-display>summary{font-size:12px;white-space:nowrap}
:where(body).c-production-auth .qc-page-head .qc-display>summary svg{width:14px;height:14px}
:where(body).c-production-auth .qc-page-head .qc-display-panel{left:auto;right:0;text-align:left}
:where(body).c-production-auth .qc-quote-info{display:flex;align-items:baseline;white-space:nowrap;gap:0;font-size:11px;font-weight:400;line-height:1.4}
:where(body).c-production-auth .qc-quote-info>span:not(:first-child)::before{content:" · ";white-space:pre;color:var(--pc-muted,#61756a)}
:where(body).c-production-auth .qc-quote-info>[data-qc-header-key="quote:title"]{font-weight:600;font-size:12px}
:where(body).c-production-auth .qc-quote-heading{padding:4px 8px}
:where(body).c-production-auth .qc-header-totals{margin-top:3px;padding-top:3px}
@media(max-width:700px){:where(body).c-production-auth .qc-page-head .qc-display-panel{position:fixed;left:12px;right:12px;top:auto;width:auto;margin-top:6px}:where(body).c-production-auth .qc-page-head>.actions{align-items:center}}

/* One toolbar and a bottom pager; only the quote table scrolls. */
:where(body).c-production-auth .qc-picker{display:flex;flex:1;flex-direction:column;overflow:hidden}
:where(body).c-production-auth .qc-picker-head{flex:none;min-width:0;margin-bottom:8px;gap:8px 12px}
:where(body).c-production-auth .qc-picker-head h3{flex:none;margin:0;font-size:14px;white-space:nowrap}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .qc-page .qc-picker-head .qc-picker-query{display:flex;flex:1;flex-wrap:nowrap;align-items:center;min-width:0;margin:0;gap:8px}
:where(body).c-production-auth #app .qc-page .qc-picker-query label{display:flex;flex:1;flex-direction:row;align-items:center;gap:8px;min-width:0;white-space:nowrap;font-size:12px}
:where(body).c-production-auth #app .qc-page .qc-picker-query :is(input,select){flex:1;min-width:0;width:0;height:34px;padding:6px 9px;font-size:12px}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .qc-page .qc-picker-query .query-searchbar{flex:1;width:100%;max-width:322px;margin:0}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .qc-page .qc-picker-query input.query-keyword{max-width:none}
:where(body).c-production-auth .qc-picker-head>[data-qc-action="finish-pick"]{flex:none}
:where(body).c-production-auth .qc-picker-query>button{height:34px;min-height:34px;padding:6px 14px;font-size:12px}
:where(body).c-production-auth .qc-picker>[data-qc-picker-rows]{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
:where(body).c-production-auth .qc-picker-table-wrap{flex:0 1 auto;min-height:0;overscroll-behavior:contain}
:where(body).c-production-auth #app .qc-page [data-qc-picker-rows]>.pager{flex:none;margin-top:auto;padding-top:8px}
@media(max-width:700px){:where(body).c-production-auth .qc-picker-head{gap:8px}}

/* Use the shared icon-only table-settings button and modal. */
:where(body).c-production-auth #app .qc-page-head .table-settings-button{flex:none}

/* Keep application styles out of browser annotation overlays. */
@scope (#app, #modal-root, #toast) {
/* Adapted from the WMS App V2 default arctic theme; no WMS business code. */
:where(body).c-production-auth .model-options{position:fixed;z-index:15;overflow:auto;background:#fff;border:1px solid #b8d2d9;border-radius:3px;box-shadow:0 5px 18px #163b2926;font-size:12px}
:where(body).c-production-auth .model-options .model-option-head,:where(body).c-production-auth .model-options button[role=option]{display:grid;grid-template-columns:minmax(150px,2fr) minmax(120px,1.6fr) minmax(100px,1.2fr) 70px 60px;min-width:540px;width:100%;gap:0;padding:0;white-space:normal;text-align:left;border:0;border-bottom:1px solid #dce5ee;border-radius:0;background:white;justify-content:stretch}
:where(body).c-production-auth .model-options span{padding:9px 12px;overflow-wrap:anywhere}:where(body).c-production-auth .model-options span+span{border-left:1px solid #dce5ee}:where(body).c-production-auth .model-options .model-option-head{position:sticky;top:0;background:#f2f5f9;font-weight:600}:where(body).c-production-auth .model-options button:hover,:where(body).c-production-auth .model-options button[aria-selected=true]{background:#e3f5fc}:where(body).c-production-auth .model-options p{padding:12px}
:where(body).c-production-auth .customer-picker{position:relative;min-width:0;display:flex;flex-direction:column;gap:7px}
:where(body).c-production-auth .customer-input{display:flex;gap:4px}:where(body).c-production-auth .customer-input input{width:100%;min-width:0}
:where(body).c-production-auth .customer-options{position:absolute;top:100%;left:0;min-width:100%;width:420px;max-width:min(420px,calc(100vw - 40px));max-height:300px;overflow:auto;z-index:5;background:white;border:1px solid #b9d6d0;box-shadow:0 6px 18px #163b2924;border-radius:4px}
:where(body).c-production-auth .customer-options[hidden]{display:none}:where(body).c-production-auth .customer-options .customer-option-head,:where(body).c-production-auth .customer-options button[role=option]{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:0;width:100%;text-align:left;white-space:normal;padding:0;border:0;border-radius:0;border-bottom:1px solid #d9e6e2;background:#fff;justify-content:stretch}
:where(body).c-production-auth .customer-options span{padding:9px 12px;overflow-wrap:anywhere}:where(body).c-production-auth .customer-options span+span{border-left:1px solid #d9e6e2}:where(body).c-production-auth .customer-options .customer-option-head{background:#f0f5f7;font-weight:600}:where(body).c-production-auth .customer-options button[aria-selected=true],:where(body).c-production-auth .customer-options button:hover{background:#e2f5fa}:where(body).c-production-auth .customer-options p{padding:12px}:where(body).c-production-auth .customer-status{margin-top:20px}
:where(body).c-production-auth #customer-form{min-height:0;overflow:auto}:where(body).c-production-auth .customer-picker .customer-options{right:0;left:auto}
/* Catalog grid and three-state sorting follow the WMS product list. */
:where(body).c-production-auth .catalog-table th,:where(body).c-production-auth .catalog-table td{border:1px solid #d3e0dc;text-align:center;vertical-align:middle}
:where(body).c-production-auth .catalog-table tr:last-child td{border-bottom:1px solid #d3e0dc}
:where(body).c-production-auth .catalog-table .catalog-sort,:where(body).c-production-auth .bom-editor .bom-sort,:where(body).c-production-auth .quote-pricing-table .quote-sort{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;border:0;background:transparent;padding:0;min-height:22px;font-size:12px;font-weight:600;color:inherit;border-radius:0}
:where(body).c-production-auth .catalog-table .catalog-sort:hover,:where(body).c-production-auth .bom-editor .bom-sort:hover,:where(body).c-production-auth .quote-pricing-table .quote-sort:hover{color:#087a75;background:transparent}
:where(body).c-production-auth .bom-editor .bom-sort:focus-visible,:where(body).c-production-auth .quote-pricing-table .quote-sort:focus-visible{outline:2px solid #087a75;outline-offset:1px}
:where(body).c-production-auth .sort-arrows{display:flex;flex-direction:column;width:12px;height:18px;flex-shrink:0;color:#b3c2bd}
:where(body).c-production-auth .sort-arrows>span{display:flex;height:9px;align-items:center}
:where(body).c-production-auth .sort-arrows svg{width:12px;height:12px;stroke-width:3}
:where(body).c-production-auth .sort-arrows .selected{color:#087a75}
:where(body).c-production-auth :scope{font-family:"Noto Sans SC","Microsoft YaHei","Segoe UI",sans-serif;font-size:13px;color:#142321;background:#eef5f1;--line:#d3e0dc;--green:#087a75;--muted:#61736f;letter-spacing:0}
:where(body).c-production-auth .layout{grid-template-columns:204px minmax(0,1fr);background:#eef5f1}
:where(body).c-production-auth .sidebar{padding:0;gap:0;background:#f8f9ee;border-color:#bdcec5;overflow:hidden}
:where(body).c-production-auth .sidebar .brand{height:70px;padding:5px 10px 4px;border-bottom:1px solid #d3e0dc;background:transparent;flex-direction:column;justify-content:center;flex-shrink:0;gap:1px;text-align:center}
:where(body).c-production-auth .sidebar .brand-label{display:block;color:#3b5960;font-size:18px;font-weight:700;line-height:22px}
:where(body).c-production-auth .sidebar .brand-logo{display:block;width:106px;height:35px;max-width:100%;object-fit:contain}
:where(body).c-production-auth .sidebar nav{margin:8px 10px 0;padding:8px;gap:3px;border:1px solid #d3e0dc;border-radius:8px;background:#fbfcf6;flex-shrink:0}
:where(body).c-production-auth .nav-button{height:44px;min-height:44px;padding:0 10px;gap:10px;border:1px solid transparent;border-left:3px solid transparent;border-radius:6px;color:#465a55;font-size:13px}
:where(body).c-production-auth .nav-button.active,:where(body).c-production-auth .nav-button:hover{background:#e2f3ef;color:#075f5b;border-color:#bdd7ce;border-left-color:#087a75}
:where(body).c-production-auth .nav-button.active{font-weight:700}
:where(body).c-production-auth .sidebar-art{flex:1;min-height:0;margin:0 10px;background:url('/assets/wms/mugwort-forest-sidebar.png') center bottom/cover no-repeat;mask-image:linear-gradient(to bottom,transparent,#000 35%);pointer-events:none}
:where(body).c-production-auth .account{margin-top:0;padding:16px;min-height:72px;background:#fbfcf6d9;flex-shrink:0}
:where(body).c-production-auth .account::before{content:"";width:30px;height:30px;border-radius:50%;background:#e2f3ef;border:1px solid #a9c9bf;flex-shrink:0}
:where(body).c-production-auth .account strong{font-size:12px}:where(body).c-production-auth .account small{font-size:11px}
:where(body).c-production-auth .main{background:#fff;min-height:100vh}
:where(body).c-production-auth .topbar{height:56px;background:#fbfdf8;padding:0 18px;color:#465a55;border-color:#d3e0dc}
:where(body).c-production-auth .workspace-location{display:flex;align-items:center;gap:9px;font-size:13px;min-width:0}
:where(body).c-production-auth .workspace-location span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(body).c-production-auth .workspace-strip{height:40px;display:flex;align-items:end;padding:0 14px;background:#f1f7f3;border-bottom:1px solid #d3e0dc;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
:where(body).c-production-auth .workspace-tab{height:34px;display:inline-flex;align-items:center;border:1px solid #c9dad5;border-bottom:0;border-radius:5px 5px 0 0;color:#55716a;background:#f7faf8;font-weight:600;font-size:12px;flex:0 0 auto}
:where(body).c-production-auth .workspace-tab.active{color:#087a75;background:#fff;border-color:#9fc7bd;box-shadow:inset 0 2px #69b6aa}
:where(body).c-production-auth .workspace-tab-main,:where(body).c-production-auth .workspace-tab-close{height:33px;min-height:33px;border:0;background:transparent;border-radius:0;color:inherit;padding:0;display:inline-flex;align-items:center;justify-content:center}
:where(body).c-production-auth .workspace-tab-main{gap:7px;padding:0 8px 0 11px;font-weight:inherit;font-size:inherit;white-space:nowrap}
:where(body).c-production-auth .workspace-tab-main:last-child{padding-right:12px}
:where(body).c-production-auth .workspace-tab-close{width:28px;padding:0 7px 0 4px}
:where(body).c-production-auth .workspace-tab-main:hover,:where(body).c-production-auth .workspace-tab-close:hover{background:#e8f3ef;border-color:transparent;color:#087a75}
:where(body).c-production-auth .workspace-tab-main:focus-visible,:where(body).c-production-auth .workspace-tab-close:focus-visible{outline:2px solid #178d86;outline-offset:-2px}
:where(body).c-production-auth .workspace-tab svg{width:14px;height:14px}:where(body).c-production-auth .workspace-tab-close svg{width:13px;height:13px}
:where(body).c-production-auth .content{max-width:none;padding:0 14px 18px;background:#fff;min-height:calc(100vh - 96px)}
:where(body).c-production-auth .heading{min-height:70px;padding:16px 0;margin-bottom:0;align-items:center;border-bottom:1px solid var(--line)}
:where(body).c-production-auth h1{font-size:18px}:where(body).c-production-auth h2{font-size:17px}:where(body).c-production-auth .heading p{margin-top:5px}:where(body).c-production-auth .heading .filename{font-size:18px}
:where(body).c-production-auth button,:where(body).c-production-auth .button{min-height:32px;padding:5px 12px;border-radius:4px;font-size:13px;color:#364e48;border-color:#ccdcd5}
:where(body).c-production-auth button:hover,:where(body).c-production-auth .button:hover{background:#edf6f2;border-color:#a7c5b8}
:where(body).c-production-auth .primary{background:#087a75;color:#fff;border-color:#087a75}:where(body).c-production-auth .primary:hover{background:#06635f;color:#fff}
:where(body).c-production-auth .danger{color:#b0414e}:where(body).c-production-auth .icon{width:32px;height:32px;padding:6px;flex-shrink:0}
:where(body).c-production-auth input,:where(body).c-production-auth select{min-height:32px;padding:6px 9px;font-size:13px;border-color:#ccdcd5}
:where(body).c-production-auth input:focus,:where(body).c-production-auth select:focus{border-color:#087a75;outline:2px solid #d7eeea}
:where(body).c-production-auth .section-line{margin:0;padding:12px 0;min-height:57px}:where(body).c-production-auth .search{max-width:380px}:where(body).c-production-auth .search input{width:260px;max-width:100%}
:where(body).c-production-auth .table-wrap{border-radius:0;border-color:#dce6e1}:where(body).c-production-auth table{font-size:13px}:where(body).c-production-auth th{background:#edf5f1;font-size:12px;color:#465f57;padding:9px 12px;font-weight:600;border-right:1px solid #e1e9e4}
:where(body).c-production-auth td{padding:9px 12px;border-color:#e8eeeb}:where(body).c-production-auth tbody tr:nth-child(even){background:#fafcfb}:where(body).c-production-auth tbody tr:hover{background:#edf7f4}
:where(body).c-production-auth #content>.table-wrap:not(:has(.bom-editor)) table{min-width:max(100%,820px)}
:where(body).c-production-auth #content>.table-wrap td:not(.num){min-width:90px;overflow-wrap:break-word}
:where(body).c-production-auth .empty{min-height:300px;padding:72px 20px}:where(body).c-production-auth .empty svg{color:#82a99b}:where(body).c-production-auth .empty p{font-size:13px}
:where(body).c-production-auth .pager{padding-top:10px;margin-top:0}:where(body).c-production-auth .stats{margin:0;padding:16px 0;border-top:0;background:#fbfdfc}:where(body).c-production-auth .stat strong{font-size:23px}:where(body).c-production-auth .stat.warn strong{color:#b97422}
:where(body).c-production-auth .file-link{color:#087a75;padding:0;background:none;border:0;white-space:normal}:where(body).c-production-auth .file-link:hover{background:none}:where(body).c-production-auth .back{margin:12px 0 0;padding:0}
:where(body).c-production-auth .settings{max-width:680px;border:0;background:transparent;padding:20px 0}:where(body).c-production-auth .bom-meta{padding:16px 0;margin:0;gap:14px}:where(body).c-production-auth .bom-editor td{padding:5px}
:where(body).c-production-auth .modal{border-radius:8px;box-shadow:0 12px 42px #153b302b}:where(body).c-production-auth .modal-head{padding:16px 20px;background:#f5f9f6}:where(body).c-production-auth .modal-body{padding:18px 20px}:where(body).c-production-auth .modal-foot{padding:12px 20px;background:#fbfdfc}
:where(body).c-production-auth .overlay{background:#18392d55}:where(body).c-production-auth .badge{border-radius:3px}:where(body).c-production-auth .notice{border-radius:0}:where(body).c-production-auth .page-error{margin-top:14px}
:where(body).c-production-auth .auth{background:#c8e9f7 url('/assets/wms/ocean-wave-hero.png') center/cover no-repeat;padding:40px 24px}
:where(body).c-production-auth .auth form,:where(body).c-production-auth .auth #company-choice{width:100%;max-width:440px;padding:32px;border:1px solid #ffffffb3;border-radius:8px;background:#f9fdfff0;box-shadow:0 16px 50px #092d5024;backdrop-filter:blur(12px)}
:where(body).c-production-auth .auth .brand{margin-bottom:26px}:where(body).c-production-auth .auth h1{font-size:22px;margin-bottom:24px}:where(body).c-production-auth .auth label{font-size:13px}:where(body).c-production-auth .auth input{min-height:40px}:where(body).c-production-auth .auth .primary{min-height:40px;background:#1178f2;border-color:#1178f2}:where(body).c-production-auth .auth .primary:hover{background:#0867d6}
@media(max-width:1000px){:where(body).c-production-auth .layout{grid-template-columns:188px minmax(0,1fr)}:where(body).c-production-auth .sidebar nav{margin:8px 7px 0;padding:6px}:where(body).c-production-auth .content{padding:0 12px 16px}:where(body).c-production-auth .heading{flex-wrap:wrap;gap:12px}:where(body).c-production-auth .topbar{padding:0 14px}}
@media(max-width:700px){:where(body).c-production-auth .layout{display:block}:where(body).c-production-auth .sidebar{height:auto;position:static;border-right:0;border-bottom:1px solid var(--line);overflow:visible}:where(body).c-production-auth .sidebar nav{margin:0;padding:8px;border:0;border-radius:0;display:flex;flex-wrap:wrap;gap:4px}:where(body).c-production-auth .nav-button{width:auto;height:34px;min-height:34px;padding:0 9px;font-size:12px;gap:6px}:where(body).c-production-auth .sidebar-art,:where(body).c-production-auth .account{display:none}:where(body).c-production-auth .topbar{min-height:48px;height:auto;padding:8px 12px;gap:8px}:where(body).c-production-auth .workspace-location{font-size:12px;flex:1}:where(body).c-production-auth .workspace-location svg{display:none}:where(body).c-production-auth .workspace-strip{height:36px;padding:0 10px}:where(body).c-production-auth .workspace-tab{height:30px}:where(body).c-production-auth .workspace-tab-main,:where(body).c-production-auth .workspace-tab-close{height:29px;min-height:29px}:where(body).c-production-auth .content{padding:0 10px 16px;min-height:calc(100dvh - 175px)}:where(body).c-production-auth .heading{padding:14px 0;min-height:64px}:where(body).c-production-auth h1{font-size:18px}:where(body).c-production-auth .section-line{gap:9px;padding:10px 0}:where(body).c-production-auth .search{width:100%}:where(body).c-production-auth .search input{width:100%}:where(body).c-production-auth .bom-meta{grid-template-columns:1fr;gap:10px}:where(body).c-production-auth .auth{padding:16px}:where(body).c-production-auth .auth form,:where(body).c-production-auth .auth #company-choice{padding:24px;max-width:420px}:where(body).c-production-auth .empty{min-height:240px;padding:48px 16px}:where(body).c-production-auth .stats{padding:12px 0}:where(body).c-production-auth .stat{padding:0 10px}:where(body).c-production-auth .stat strong{font-size:21px}}
}
/* Catalog controls keep dense tables scrollable without expanding the workspace. */
:where(body).c-production-auth .catalog-query { padding: 12px 0; }
:where(body).c-production-auth .list-query { position: relative; z-index: 4; }
:where(body).c-production-auth .list-query > .actions { align-items: center; }
:where(body).c-production-auth .list-query > .actions input[name="q"] { flex: 1 1 280px; width: min(360px, 100%); max-width: 440px; }
:where(body).c-production-auth .list-query .list-filters { position: absolute; left: 0; right: auto; top: calc(100% + 3px); z-index: 6; display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; width: min(420px,100%); max-height: min(70dvh,480px); overflow-y: auto; padding: 16px 20px; border: 1px solid #c9dcda; border-radius: 4px; background: #fff; box-shadow: 0 10px 26px #143b3226; }
:where(body).c-production-auth .list-query .list-filters[hidden],:where(body).c-production-auth .list-query .list-query-error[hidden] { display: none; }
:where(body).c-production-auth .list-query .list-filters label { display: grid; grid-template-columns: 94px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; max-width: none; text-align: right; font-size: 13px; }
:where(body).c-production-auth .list-query .list-filters :is(input,select) { width: 100%; max-width: none; min-height: 32px; text-align: left; }
:where(body).c-production-auth .list-filter-actions { display: flex; justify-content: center; padding-top: 2px; }
:where(body).c-production-auth .list-filter-actions button { min-height: 32px; }
:where(body).c-production-auth .list-query .list-query-error { margin-top: 8px; }
:where(body).c-production-auth .list-query[aria-busy="true"] button[type="submit"] { opacity: .6; }
@media(max-width:700px){:where(body).c-production-auth .list-query .list-filters { width: min(420px,100%); }:where(body).c-production-auth .list-query > .actions input[name="q"] { max-width: none; }}
@media(max-width:430px){:where(body).c-production-auth .list-query .list-filters { padding: 14px 12px; }:where(body).c-production-auth .list-query .list-filters label { grid-template-columns: 80px minmax(0,1fr); gap: 8px; }:where(body).c-production-auth .list-query > .actions input[name="q"] { flex-basis: 100%; }}
:where(body).c-production-auth #app .content > .heading:has(.catalog-export-menu) { position: relative; z-index: 5; }
:where(body).c-production-auth .catalog-export-menu { position: relative; }
:where(body).c-production-auth .catalog-export-options { position: absolute; z-index: 8; top: calc(100% + 4px); right: 0; display: grid; gap: 2px; min-width: 132px; padding: 5px; border: 1px solid #c9dcda; border-radius: 5px; background: #fff; box-shadow: 0 8px 22px #143b3226; }
:where(body).c-production-auth .catalog-export-options[hidden] { display: none; }
:where(body).c-production-auth .catalog-export-options button { justify-content: flex-start; width: 100%; border: 0; min-height: 32px; }
:where(body).c-production-auth .catalog-import-review { max-width: 1180px; }
:where(body).c-production-auth .catalog-review-group { margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
:where(body).c-production-auth .catalog-review-group h3 { margin-bottom: 10px; overflow-wrap: anywhere; }
:where(body).c-production-auth .catalog-review-group table { min-width: 1050px; }
:where(body).c-production-auth .catalog-review-group th, :where(body).c-production-auth .catalog-review-group td { padding: 7px 9px; }
:where(body).c-production-auth .catalog-review-choice { flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; }
:where(body).c-production-auth .catalog-review-foot { flex-wrap: wrap; }
:where(body).c-production-auth .catalog-review-foot span { margin-right: auto; }
@media(max-width:700px){:where(body).c-production-auth .catalog-review-foot button{flex:1}:where(body).c-production-auth .catalog-review-group{padding:8px}}
:where(body).c-production-auth .table-settings-overlay{z-index:25}
:where(body).c-production-auth .table-settings-list{max-height:min(65vh,560px)}
:where(body).c-production-auth .table-settings-list .catalog-column{min-height:42px}
:where(body).c-production-auth .table-settings-list .notice{margin:14px 0 0}
:where(body).c-production-auth .modal-head>.table-settings-button{margin-left:auto}
@media(max-width:430px){:where(body).c-production-auth .table-settings-overlay .modal{max-height:96vh}:where(body).c-production-auth .table-settings-list .catalog-column{gap:5px}}
:where(body).c-production-auth .catalog-query > .actions, :where(body).c-production-auth .catalog-summary, :where(body).c-production-auth .catalog-summary > .actions { flex-wrap: wrap; gap: 8px; }
:where(body).c-production-auth .catalog-summary .catalog-new-material { width: 220px; max-width: 100%; min-height: 30px; margin-left: auto; }
:where(body).c-production-auth .catalog-query input[name="q"] { width: 280px; max-width: 100%; }
:where(body).c-production-auth .catalog-filters { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
:where(body).c-production-auth .catalog-filters[hidden] { display: none; }
:where(body).c-production-auth .catalog-filters label { display: grid; gap: 4px; min-width: 120px; max-width: 100%; }
:where(body).c-production-auth .catalog-filters select { max-width: 260px; }
:where(body).c-production-auth .catalog-column { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid #dce6e4; }
:where(body).c-production-auth .catalog-column .check { margin: 0; }
:where(body).c-production-auth .catalog-table { width: max-content; min-width: 100%; table-layout: auto; }
:where(body).c-production-auth .catalog-table th, :where(body).c-production-auth .catalog-table td { min-width: 0 !important; height: 38px; padding: 5px 8px; line-height: 1.35; }
:where(body).c-production-auth .catalog-table thead th { height: 36px; }
:where(body).c-production-auth .catalog-table tbody .icon { width: 28px; height: 28px; min-height: 28px; padding: 5px; }
:where(body).c-production-auth .catalog-table [data-column="select"] { width: 40px; min-width: 40px !important; max-width: 40px; }
:where(body).c-production-auth .catalog-table [data-column="index"] { width: 52px; min-width: 52px !important; max-width: 60px; white-space: nowrap; }
:where(body).c-production-auth .catalog-table [data-column="name"] { width: 104px; min-width: 88px !important; max-width: 150px; }
:where(body).c-production-auth .catalog-table [data-column="model"] { width: 28vw; min-width: 220px !important; max-width: 420px; overflow-wrap: anywhere; }
:where(body).c-production-auth .catalog-table [data-column="color"] { width: 76px; min-width: 64px !important; max-width: 110px; }
:where(body).c-production-auth .catalog-table [data-column="supplier"] { width: 104px; min-width: 84px !important; max-width: 160px; }
:where(body).c-production-auth .catalog-table [data-column="unit"] { width: 62px; min-width: 58px !important; max-width: 80px; white-space: nowrap; }
:where(body).c-production-auth .catalog-table [data-column="copper_unit"] { width: 104px; min-width: 92px !important; max-width: 140px; }
:where(body).c-production-auth .catalog-table [data-column="quantity"] { width: 82px; min-width: 76px !important; max-width: 110px; white-space: nowrap; }
:where(body).c-production-auth .catalog-table [data-column="package_level_1_quantity"], :where(body).c-production-auth .catalog-table [data-column="package_level_2_quantity"] { width: 118px; min-width: 106px !important; max-width: 148px; white-space: nowrap; }
:where(body).c-production-auth .catalog-table [data-column="net_price"], :where(body).c-production-auth .catalog-table [data-column="price"] { width: 96px; min-width: 88px !important; max-width: 130px; white-space: nowrap; }
:where(body).c-production-auth .catalog-table [data-column="tax_rate"] { width: 68px; min-width: 62px !important; max-width: 80px; white-space: nowrap; }
:where(body).c-production-auth .catalog-table input[type="checkbox"] { width: 15px; height: 15px; }
:where(body).c-production-auth .catalog-check { width: 40px; }
:where(body).c-production-auth .pager { flex-wrap: wrap; }
:where(body).c-production-auth .pager label { display: flex; align-items: center; gap: 6px; }
:where(body).c-production-auth .catalog-footer { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-top: 13px; font-size: 12px; color: var(--muted); }
:where(body).c-production-auth .catalog-count { white-space: nowrap; }
:where(body).c-production-auth .catalog-footer > .catalog-pager { flex: 1; min-width: 0; justify-content: flex-end; align-items: center; flex-wrap: nowrap; gap: 6px; min-height: 32px; margin-top: 0; padding: 4px 0 0; overflow-x: auto; }
:where(body).c-production-auth .catalog-pager label { flex-direction: row; gap: 4px; white-space: nowrap; }
:where(body).c-production-auth .catalog-pager select { height: 28px; min-height: 28px; padding: 2px 7px; }
:where(body).c-production-auth .catalog-pager .icon { width: 28px; height: 28px; min-height: 28px; padding: 5px; }
:where(body).c-production-auth .catalog-pager > span { white-space: nowrap; }
@media (max-width: 640px) {
  :where(body).c-production-auth .catalog-query > .actions { align-items: stretch; }
  :where(body).c-production-auth .catalog-query input[name="q"] { width: 100%; flex-basis: 100%; }
  :where(body).c-production-auth .catalog-summary { align-items: flex-start; }
  :where(body).c-production-auth .catalog-footer { align-items: flex-start; flex-wrap: wrap; }
  :where(body).c-production-auth .catalog-footer > .catalog-pager { flex-basis: 100%; }
}

/* Shared WMS-style column sizing and operation column behavior. */
:where(body).c-production-auth .table-wrap > table.has-custom-widths { table-layout: fixed; max-width: none; }
:where(body).c-production-auth .table-wrap > table.has-custom-widths th:not([data-column="select"]):not([data-column="index"]):not([data-column="actions"]),
:where(body).c-production-auth .table-wrap > table.has-custom-widths td:not([data-column="select"]):not([data-column="index"]):not([data-column="actions"]) { min-width: 0 !important; max-width: none; }
:where(body).c-production-auth .table-wrap > table thead th { position: relative; }
:where(body).c-production-auth .table-column-resizer { position: absolute; z-index: 4; top: 0; right: -5px; width: 10px; height: 100%; cursor: col-resize; touch-action: none; user-select: none; }
:where(body).c-production-auth .table-column-resizer.before-sticky-actions { left: -5px; right: auto; z-index: 6; }
:where(body).c-production-auth .table-column-resizer::after { content: ""; position: absolute; top: 20%; bottom: 20%; left: 4px; width: 2px; border-radius: 2px; background: transparent; }
:where(body).c-production-auth .table-column-resizer:hover::after,:where(body).c-production-auth .table-column-resizer:focus-visible::after { background: #087a75; }
:where(body).c-production-auth .table-column-resizer:focus-visible { outline: 2px solid #087a75; outline-offset: -2px; }
body.c-production-auth.resizing-table-column,body.c-production-auth.resizing-table-column * { cursor: col-resize !important; user-select: none !important; }
:where(body).c-production-auth .table-wrap > table { --table-actions-width: 180px; }
:where(body).c-production-auth .table-wrap > table[data-table-key="customers"] th:not([data-column="actions"]) { white-space: normal; overflow-wrap: anywhere; }
:where(body).c-production-auth .table-wrap > table [data-column="actions"] { position: sticky; right: 0; z-index: 2; box-sizing: border-box; width: var(--table-actions-width) !important; min-width: var(--table-actions-width) !important; max-width: var(--table-actions-width) !important; white-space: nowrap; background: #fff; box-shadow: -1px 0 0 #dce6e1; text-align: center; }
:where(body).c-production-auth .table-wrap > table thead [data-column="actions"] { z-index: 5; background: #dff1f4; }
:where(body).c-production-auth .table-wrap > table tbody tr:nth-child(even) > [data-column="actions"] { background: #fafcfb; }
:where(body).c-production-auth .table-wrap > table tbody tr:hover > [data-column="actions"] { background: #edf7f4; }
/* Customer addresses use the available column width and remain fully visible beside actions. */
:where(body).c-production-auth .table-wrap > table[data-table-key="customers"] { table-layout: fixed; }
:where(body).c-production-auth .table-wrap > table[data-table-key="customers"] [data-column="address"] { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; height: auto; max-width: none; }
:where(body).c-production-auth .table-wrap > table[data-table-key="customers"] [data-column="actions"] { position: relative; right: auto; z-index: auto; box-shadow: none; }
:where(body).c-production-auth .table-action-button { width: auto !important; min-width: 76px; min-height: 28px !important; height: 28px; padding: 3px 10px !important; font-size: 12px; }
:where(body).c-production-auth .table-action-button > svg { display: none; }
:where(body).c-production-auth .table-action-button .table-action-label { display: inline; }
:where(body).c-production-auth .catalog-operation-setting { margin-top: 4px; border-top: 1px solid #c9dcd5; }
@media (max-width: 700px) {
  :where(body).c-production-auth .table-wrap > table [data-column="actions"] { position: relative; right: auto; z-index: auto; box-shadow: none; white-space: normal; }
  :where(body).c-production-auth .table-wrap > table [data-column="actions"] :is(button,a) { min-height: 44px !important; height: auto; }
  :where(body).c-production-auth .table-wrap > table .team-row-actions { flex-wrap: wrap; }
}

/* Auth-only styles; do not style browser annotation overlays. */
@scope (#app, #modal-root) {
:where(body).c-production-auth .crm-auth{min-height:100dvh;padding:38px 5%;background:#e6f0f7 url('/assets/login/cable-stranding-hero.webp') center/cover fixed;display:flex;flex-direction:column;align-items:stretch;color:#16394a;letter-spacing:0}
:where(body).c-production-auth .crm-auth .auth-hero-copy{max-width:700px;color:#fff}
:where(body).c-production-auth .crm-auth .auth-panel{align-self:flex-end;width:440px;max-width:100%;margin:auto 0;padding:32px;background:#ffffffed;border:1px solid #c5dde9;border-radius:8px;box-shadow:0 16px 48px #143c5129}
:where(body).c-production-auth .crm-auth .auth-panel.register{width:570px}
:where(body).c-production-auth .crm-auth h1{font-size:26px;margin:0 0 24px;color:#173b50}
:where(body).c-production-auth .crm-auth .auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
:where(body).c-production-auth .crm-auth .auth-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;font-size:13px}
:where(body).c-production-auth .crm-auth .auth-grid .auth-field{margin-bottom:0}
:where(body).c-production-auth .crm-auth .auth-field input,:where(body).c-production-auth .crm-auth .auth-field select{width:100%;height:44px;border:1px solid #bed4e1;background:white;border-radius:5px;color:#16394a;padding:8px 10px}
:where(body).c-production-auth .crm-auth .auth-field label{font:inherit;color:inherit}
:where(body).c-production-auth .crm-auth .auth-input-wrap{position:relative}
:where(body).c-production-auth .crm-auth .auth-input-wrap:has(.auth-password-toggle) input{padding-right:48px}
:where(body).c-production-auth .crm-auth .auth-password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:36px;height:36px;min-height:36px;padding:7px;border:0;border-radius:7px;background:transparent;color:#417087;display:grid;place-items:center}
:where(body).c-production-auth .crm-auth .auth-password-toggle svg{width:18px;height:18px}
:where(body).c-production-auth .crm-auth .auth-field-error{display:block;margin-top:5px;color:#b43c34;font-size:12px;line-height:1.4}
:where(body).c-production-auth .crm-auth .auth-field input[aria-invalid="true"]{border-color:#df806e;outline-color:#df806e}
:where(body).c-production-auth .crm-auth .auth-panel-brand{display:none;margin-bottom:12px;font-size:12px;font-weight:700;letter-spacing:.04em}
:where(body).c-production-auth .crm-auth .auth-note{margin:-8px 0 20px}
:where(body).c-production-auth .crm-auth .auth-field input:focus{outline:2px solid #b9e4ef;border-color:#188bb0}
:where(body).c-production-auth .crm-auth .auth-field small{font-size:12px;font-weight:400}
:where(body).c-production-auth .crm-auth .auth-submit{width:100%;min-height:44px;background:#087f8c;border-color:#087f8c;color:white;font-weight:600;margin-top:16px}
:where(body).c-production-auth .crm-auth .auth-submit:hover{background:#076b77}
:where(body).c-production-auth .crm-auth .auth-secondary{width:100%;min-height:44px;border:0;background:transparent;margin-top:10px;color:#276580}
:where(body).c-production-auth .crm-auth .auth-remember{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:44px;margin:0;color:#effcff;font-size:13px;line-height:1.5;cursor:pointer}
:where(body).c-production-auth .crm-auth .auth-remember input{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:#0ba8c5;cursor:pointer}
:where(body).c-production-auth .crm-auth .auth-remember input:focus-visible{outline:2px solid #b9f2ff;outline-offset:3px}
:where(body).c-production-auth .crm-auth .auth-remember span{min-width:0;overflow-wrap:anywhere}
:where(body).c-production-auth .crm-auth .auth-sms{grid-column:1/-1}
:where(body).c-production-auth .crm-auth .auth-sms-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:8px}
:where(body).c-production-auth .crm-auth .auth-sms-row button{min-height:44px;font-size:12px;white-space:normal;padding:4px 8px;border-color:#bed4e1;color:#246c84}
:where(body).c-production-auth .crm-auth .auth-consent{display:flex;align-items:flex-start;gap:8px;margin-top:18px;font-size:12px;line-height:1.8}
:where(body).c-production-auth .crm-auth .auth-consent input{flex:0 0 16px;margin-top:4px}
:where(body).c-production-auth .crm-auth .auth-consent>div{min-width:0}
:where(body).c-production-auth .crm-auth .auth-consent label{display:inline;color:#49636e}
:where(body).c-production-auth .crm-auth .auth-consent button{border:0;padding:0;min-height:24px;display:inline;background:none;color:#087e9e;font-size:12px}
:where(body).c-production-auth .crm-auth .auth-message{min-height:22px;margin-top:14px;color:#a53d33;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
:where(body).c-production-auth .crm-auth .auth-note{margin:12px 0;font-size:13px;color:#516c7a;line-height:1.7}
:where(body).c-production-auth .crm-auth .auth-choices{display:grid;gap:10px}
:where(body).c-production-auth .crm-auth .auth-choices button{justify-content:space-between;text-align:left;white-space:normal;min-height:50px;padding:12px;overflow-wrap:anywhere;border-color:#bed4e1}
:where(body).c-production-auth .crm-auth .company-choice-list{min-width:0;margin:0;padding:0;border:0}
:where(body).c-production-auth .crm-auth .company-choice-list legend{margin-bottom:10px;color:#eaf9ff;font-size:13px;font-weight:700}
:where(body).c-production-auth .crm-auth .company-choice-options{display:grid;gap:9px;max-height:min(42dvh,360px);overflow:auto;padding:2px 4px 2px 2px}
:where(body).c-production-auth .crm-auth .company-choice-option{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:56px;padding:11px 14px;border:1px solid rgba(223,249,255,.43);border-radius:12px;background:linear-gradient(125deg,rgba(255,255,255,.12),rgba(255,255,255,.05));box-shadow:inset 0 1px rgba(255,255,255,.24);backdrop-filter:blur(18px) saturate(116%);-webkit-backdrop-filter:blur(18px) saturate(116%);color:#f2fcff;cursor:pointer;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
:where(body).c-production-auth .crm-auth .company-choice-option:hover{border-color:#a4edff;background:rgba(223,249,255,.16)}
:where(body).c-production-auth .crm-auth .company-choice-option:has(input:checked){border-color:#8ee8ff;background:linear-gradient(125deg,rgba(32,170,208,.3),rgba(255,255,255,.09));box-shadow:inset 0 1px rgba(255,255,255,.34),0 0 16px rgba(62,202,240,.22)}
:where(body).c-production-auth .crm-auth .company-choice-option:has(input:focus-visible){outline:2px solid #b9f2ff;outline-offset:2px}
:where(body).c-production-auth .crm-auth .company-choice-option input{appearance:none;flex:none;width:18px;height:18px;min-height:18px;margin:0;padding:0;border:1px solid #bdeaf5;border-radius:50%;background:rgba(255,255,255,.12);box-shadow:inset 0 1px rgba(255,255,255,.2)}
:where(body).c-production-auth .crm-auth .company-choice-option input:checked{border-color:#b6f2ff;background:#59d7f4;box-shadow:inset 0 0 0 4px #123d57}
:where(body).c-production-auth .crm-auth .company-choice-option input:focus{outline:none}
:where(body).c-production-auth .crm-auth .company-choice-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.5}
:where(body).c-production-auth .crm-auth .company-choice-indicator{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:rgba(114,226,255,.21);color:#d8f8ff;opacity:0}
:where(body).c-production-auth .crm-auth .company-choice-option:has(input:checked) .company-choice-indicator{opacity:1}
:where(body).c-production-auth .crm-auth .company-choice-indicator svg{width:15px;height:15px}
:where(body).c-production-auth .crm-auth .company-choice-hint{margin:11px 2px 0;color:#cee9f4;font-size:12px}
:where(body).c-production-auth .crm-auth .company-choice-error{margin:9px 2px 0;color:#ffd3c6;font-size:12px}
:where(body).c-production-auth .crm-auth [hidden]{display:none!important}
:where(body).c-production-auth .auth-legal-dialog{width:700px;max-width:calc(100vw - 32px);max-height:85dvh;border:1px solid #bed4e1;border-radius:8px;padding:0;color:#243f4f}
:where(body).c-production-auth .auth-legal-dialog::backdrop{background:#18334370}
:where(body).c-production-auth .auth-legal-dialog header{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-bottom:1px solid #d5e4ec}
:where(body).c-production-auth .auth-legal-dialog article{padding:20px 24px;max-height:65dvh;overflow:auto;font-size:14px;line-height:1.8}
:where(body).c-production-auth .auth-legal-dialog h3{margin:22px 0 10px;font-size:17px}:where(body).c-production-auth .auth-legal-dialog h4{margin:16px 0 6px;font-size:15px}:where(body).c-production-auth .auth-legal-dialog p{margin:10px 0;overflow-wrap:anywhere}
:where(body).c-production-auth .auth-legal-dialog .auth-legal-retry{min-height:40px;padding:8px 14px}
@media(max-width:720px){:where(body).c-production-auth .crm-auth{padding:20px 16px;background-position:38% center;gap:24px}:where(body).c-production-auth .crm-auth .auth-panel{align-self:center;margin:auto 0;padding:24px 20px}:where(body).c-production-auth .crm-auth .auth-grid{grid-template-columns:1fr}:where(body).c-production-auth .crm-auth h1{font-size:23px}:where(body).c-production-auth .crm-auth .auth-panel.register{margin:0}:where(body).c-production-auth .crm-auth .auth-message{font-size:12px}}
@media(max-width:340px){:where(body).c-production-auth .crm-auth .auth-sms-row{grid-template-columns:1fr}}
}

/* Shared WMS-inspired section cards. Keep these selectors inside the app so
   browser annotation overlays do not inherit application presentation. */
:where(body).c-production-auth #app {
  --card-canvas: #f7f9f1;
  --card-border: #cbded3;
  --card-shadow: 0 7px 24px rgba(35, 79, 62, .09);
}

:where(body).c-production-auth #app .main {
  background: var(--card-canvas) url('/assets/wms/mugwort-forest.webp') center center / cover fixed no-repeat;
}
:where(body).c-production-auth #app > .loading {
  width: min(420px, calc(100% - 32px));
  margin: 16vh auto 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
:where(body).c-production-auth #app .content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  width: 100%;
  min-width: 0;
  padding: 8px 12px 20px;
  background: transparent;
}

:where(body).c-production-auth #app .content > :is(.heading, .section-line, .stats, .bom-meta, .bom-detail-toolbar,
  .catalog-query, .settings, .table-wrap, .pager, .catalog-footer, .page-error,
  .loading, .empty, .notice, .markup-applied, .quote-readonly-note) {
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

:where(body).c-production-auth #app .content > .heading {
  min-height: 70px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--card-border);
  gap: 12px;
}
:where(body).c-production-auth #app .content > .heading > div:first-child { min-width: 0; }
:where(body).c-production-auth #app .content > .heading .actions { justify-content: flex-end; }
:where(body).c-production-auth #app .content > .heading h1 { line-height: 1.35; }
:where(body).c-production-auth #app .content > .heading > .module-heading {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, var(--card-border));
}
:where(body).c-production-auth #app .content > .heading :is(h1.module-heading, .module-heading h1) {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
:where(body).c-production-auth #app .settings > .settings-module-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, var(--card-border));
}
:where(body).c-production-auth #app .settings-module-heading h1 { font-size: 18px; font-weight: 700; line-height: 1.35; }
:where(body).c-production-auth #app .content > .heading p { line-height: 1.5; }
:where(body).c-production-auth #app .content > .heading.module-toolbar {
  position: relative;
  z-index: 5;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-height: 62px;
}
:where(body).c-production-auth #app .content > .heading.module-toolbar > .catalog-query {
  flex: 1 1 390px;
  min-width: min(100%, 240px);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
:where(body).c-production-auth #app .content > .heading.module-toolbar > .catalog-query > .actions { justify-content: flex-start; }
:where(body).c-production-auth #app .content > .heading.module-toolbar > .actions,
:where(body).c-production-auth #app .content > .heading.module-toolbar > button { margin-left: auto; }
:where(body).c-production-auth #app .content .toolbar-note {
  flex: 1 1 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.45;
  color: var(--pc-muted, var(--muted));
}
:where(body).c-production-auth .field-required { color: #d53039; font-weight: 700; }
:where(body).c-production-auth .field-optional { margin-left: 6px; color: var(--pc-muted, var(--muted)); font-size: 11px; font-weight: 400; }
:where(body).c-production-auth .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media (max-width: 700px) {
  :where(body).c-production-auth #customer-form :is(button,input:not([type="checkbox"])) { min-height: 44px; }
  :where(body).c-production-auth #customer-form .customer-status { min-height: 44px; display: flex; align-items: center; }
}

:where(body).c-production-auth #app .content > .section-line {
  min-height: 54px;
  padding: 10px 16px;
  flex-wrap: wrap;
  gap: 10px;
}
:where(body).c-production-auth #app .content > .section-line .actions { min-width: 0; }
:where(body).c-production-auth #app .content > .heading .batch-actions { display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0; }
:where(body).c-production-auth #app .content > .heading .batch-actions > span { color:var(--muted);font-size:12px;white-space:nowrap; }
:where(body).c-production-auth #app .content > .heading .batch-actions button { display:inline-flex;align-items:center;gap:6px; }
:where(body).c-production-auth #app .content > .table-wrap [data-column="select"] { width:42px;min-width:42px;max-width:42px;padding-inline:7px;text-align:center; }
:where(body).c-production-auth #app .content > .table-wrap [data-column="select"] input { width:16px;height:16px;min-height:16px;margin:0;vertical-align:middle;cursor:pointer; }
:where(body).c-production-auth #app .content > .table-wrap [data-column="select"] input:disabled { cursor:not-allowed; }
:where(body).c-production-auth :is(.quote-delete-modal,.customer-delete-modal) { max-width:520px; }
:where(body).c-production-auth :is(.quote-delete-modal,.customer-delete-modal) .modal-body p { line-height:1.7; }
:where(body).c-production-auth :is(.quote-delete-error,.customer-delete-error) { margin-top:12px; }
:where(body).c-production-auth #app .content > .bom-detail-line .bom-detail-search { flex: 0 1 360px; max-width: 380px; width: 100%; margin: 0; }
:where(body).c-production-auth #app .content > .bom-detail-line .bom-detail-search input { width: 100%; flex: 1 1 auto; }
:where(body).c-production-auth #app .content > .bom-detail-line .bom-detail-search button { flex: 0 0 auto; }
:where(body).c-production-auth #app .content > .bom-detail-line .bom-detail-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 0; margin-left: auto; }
:where(body).c-production-auth #app .content > .bom-detail-line .bom-detail-controls h3 { white-space: nowrap; }
:where(body).c-production-auth #app .content > .stats {
  padding: 7px 4px;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
:where(body).c-production-auth #app .content > .stats .stat { min-width: 0; padding: 0 16px; }
:where(body).c-production-auth #app .content > .stats .stat small { font-size: 11px; line-height: 1.25; }
:where(body).c-production-auth #app .content > .stats .stat strong { font-size: 18px; line-height: 1.2; margin-top: 3px; }
:where(body).c-production-auth #app .content > .quote-detail-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; }
:where(body).c-production-auth #app .content > .quote-detail-stats .stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 10px; }
:where(body).c-production-auth #app .content > .quote-detail-stats .stat strong { text-align: center; overflow-wrap: anywhere; }
:where(body).c-production-auth #app .content > .quote-detail-stats .stat-filter-link {
  display: inline-flex;
  min-height: 24px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body).c-production-auth #app .content > .quote-detail-stats .stat-filter-link:hover { background: transparent; text-decoration-thickness: 2px; }
:where(body).c-production-auth #app .content > .stats .pending-bom-trigger { min-height: 24px; padding: 0 2px; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
:where(body).c-production-auth #app .content > .stats .pending-bom-trigger:hover { background: transparent; text-decoration-thickness: 2px; }
:where(body).c-production-auth #app .content > .pending-bom-panel { padding: 14px 16px; border: 1px solid var(--card-border); border-radius: 10px; background: #fffef8; }
:where(body).c-production-auth #app .content > .pending-bom-panel[hidden] { display: none; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-head h3 { font-size: 14px; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-list { list-style: none; margin: 10px 0 0; padding: 0; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid #e2ebe5; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-link { display: inline-block; color: #146a62; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-meta { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-count { flex: 0 0 auto; color: #8c5d1c; font-size: 12px; white-space: nowrap; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-unavailable { margin-left: 8px; color: var(--muted); }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-message,
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-history { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
:where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: 12px; }

:where(body).c-production-auth #app .content > .bom-detail-toolbar {
  padding: 9px 15px;
  min-height: 52px;
}
:where(body).c-production-auth #app .content > .bom-meta {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  padding: 10px 16px;
  gap: 18px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(35, 79, 62, .04);
}
:where(body).c-production-auth #app .content > .bom-meta > :is(.customer-picker, label) {
  --bom-meta-label-width: 4.5em;
  display: grid;
  grid-template-columns: var(--bom-meta-label-width) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}
:where(body).c-production-auth #app .content > .bom-meta > .customer-picker > label { margin: 0; }
:where(body).c-production-auth #app .content > .bom-meta .customer-input { min-width: 0; }
:where(body).c-production-auth #app .content > .bom-meta input { width: 100%; min-height: 32px; height: 32px; }
:where(body).c-production-auth #app .content > .bom-meta .customer-options {
  top: calc(100% + 2px);
  left: calc(var(--bom-meta-label-width) + 8px);
  right: auto;
  min-width: 0;
  width: min(420px, calc(100vw - 110px));
}
:where(body).c-production-auth #app .content > .catalog-query {
  padding: 14px 16px;
}
:where(body).c-production-auth #app .content > .catalog-query .catalog-filters:not([hidden]) {
  margin-top: 0;
  border-top: 1px solid #c9dcda;
}
:where(body).c-production-auth #app .content > .settings {
  max-width: 720px;
  padding: 24px;
  border-top: 1px solid var(--card-border);
}

:where(body).c-production-auth #app .content > .table-wrap {
  overflow: auto;
  max-width: 100%;
  border-color: var(--card-border);
}
:where(body).c-production-auth #app .content > .table-wrap > table { margin: 0; }
:where(body).c-production-auth #app .content > .stats + .section-line + .table-wrap > table { min-width: 1400px; }
:where(body).c-production-auth #app .content > .table-wrap :is(th, td) { line-height: 1.45; }
/* Keep the same centered grid on every data table, including modal tables. */
:where(body).c-production-auth :is(#app, #modal-root) .table-wrap > table :is(th, td) {
  border: 1px solid #d3e0dc;
  text-align: center;
  vertical-align: middle;
}
:where(body).c-production-auth :is(#app, #modal-root) .table-wrap > table :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  text-align: center;
}
:where(body).c-production-auth :is(#app, #modal-root) .table-wrap > table .file-link {
  justify-content: center;
  text-align: center;
}
:where(body).c-production-auth :is(#app, #modal-root) .table-wrap > table :is(.duplicate-retain, .catalog-review-choice, .quote-sale-controls) { justify-content: center; }
:where(body).c-production-auth :is(#app, #modal-root) .table-wrap > table .quote-sale-editor { text-align: center; }
:where(body).c-production-auth :is(#app, #modal-root) .table-wrap > table .quote-sale-restore { margin-inline: auto; }
:where(body).c-production-auth #app .content > .table-wrap:has(+ :is(.pager, .catalog-footer)) {
  border-radius: 12px 12px 0 0;
}
:where(body).c-production-auth #app .content > :is(.pager, .catalog-footer) {
  min-height: 48px;
  margin-top: -1px;
  padding: 8px 14px;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--card-shadow);
}
:where(body).c-production-auth #app .content > .pager { justify-content: flex-end; }
:where(body).c-production-auth #app .content > .catalog-footer { flex-wrap: wrap; }

:where(body).c-production-auth #app .content > :is(.notice, .markup-applied, .quote-readonly-note) {
  padding: 12px 16px;
  line-height: 1.65;
}
:where(body).c-production-auth #app .content > .notice { border-left: 4px solid #c78b36; }
:where(body).c-production-auth #app .content > .markup-applied { border-left: 4px solid #087a75; }
:where(body).c-production-auth #app .content > .quote-readonly-note { color: var(--muted); }
:where(body).c-production-auth #app .content > :is(.page-error, .loading, .empty) { padding: 24px; }
:where(body).c-production-auth #app .content > .empty { min-height: 200px; padding: 52px 20px; }
:where(body).c-production-auth #app .content > .back { align-self: flex-start; margin: 0; }
:where(body).c-production-auth #app .content > .back.bom-customer-back { margin: 0; }

:where(body).c-production-auth #modal-root .modal,
:where(body).c-production-auth #modal-root .auth-legal-dialog,
:where(body).c-production-auth #app .auth-panel {
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 48px rgba(30, 61, 50, .18);
}
:where(body).c-production-auth #modal-root .modal-head { border-radius: 12px 12px 0 0; }
:where(body).c-production-auth #modal-root .modal-foot { border-radius: 0 0 12px 12px; }
:where(body).c-production-auth #app .crm-auth .auth-panel {
  border-color: #cbded3;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(26, 71, 62, .2);
}
:where(body).c-production-auth #app .crm-auth .auth-brand {
  border: 1px solid #cbded3;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
:where(body).c-production-auth #app .crm-auth .auth-field :is(input, select) { border-radius: 7px; }
:where(body).c-production-auth #app .crm-auth .auth-message:not(:empty) {
  padding: 10px 12px;
  background: #fff8f6;
  border: 1px solid #ebcbc7;
  border-radius: 8px;
}
:where(body).c-production-auth #app :is(button, .button, input, select):focus-visible {
  outline: 2px solid #087a75;
  outline-offset: 2px;
}

@media (min-width: 701px) and (max-width: 1000px) {
  :where(body).c-production-auth #app .content > .quote-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  :where(body).c-production-auth #app .content > .quote-detail-stats .stat:nth-child(even) { border-right: 0; }
  :where(body).c-production-auth #app .content > .bom-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  :where(body).c-production-auth #app .content > .bom-meta > .customer-picker { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :where(body).c-production-auth #app .content { gap: 1px; padding: 6px 8px 16px; }
  :where(body).c-production-auth #app .content > .heading { align-items: flex-start; padding: 13px; }
  :where(body).c-production-auth #app .content > .heading .actions { justify-content: flex-start; }
  :where(body).c-production-auth #app .content > .heading .batch-actions { flex-basis:100%; }
  :where(body).c-production-auth #app .content > .heading .batch-actions > span { white-space:normal; }
  :where(body).c-production-auth #app .content > .heading.module-toolbar > .catalog-query { flex-basis: 100%; }
  :where(body).c-production-auth #app .content > .heading.module-toolbar > .actions,
  :where(body).c-production-auth #app .content > .heading.module-toolbar > button { margin-left: 0; }
  :where(body).c-production-auth #app .content > :is(.section-line, .catalog-query, .bom-meta) { padding: 12px; }
  :where(body).c-production-auth #app .content > .bom-meta { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  :where(body).c-production-auth #app .content > .settings { padding: 18px; }
  :where(body).c-production-auth #app .content > :is(.pager, .catalog-footer) { margin-top: -1px; }
  :where(body).c-production-auth #app .content > .stats { grid-template-columns: 1fr; padding: 4px 12px; }
  :where(body).c-production-auth #app .content > .stats .stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-right: 0; border-bottom: 1px solid #e2ebe5; }
  :where(body).c-production-auth #app .content > .stats .stat strong { font-size: 16px; margin-top: 0; text-align: right; overflow-wrap: anywhere; }
  :where(body).c-production-auth #app .content > .stats .stat:last-child { border-bottom: 0; }
  :where(body).c-production-auth #app .content > .quote-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 4px; row-gap: 8px; }
  :where(body).c-production-auth #app .content > .quote-detail-stats .stat { flex-direction: column; justify-content: center; gap: 0; padding: 4px 8px; border-bottom: 0; border-right: 1px solid var(--line); }
  :where(body).c-production-auth #app .content > .quote-detail-stats .stat:nth-child(even) { border-right: 0; }
  :where(body).c-production-auth #app .content > .quote-detail-stats .stat strong { margin-top: 3px; text-align: center; }
  :where(body).c-production-auth #app .content > .bom-detail-line .bom-detail-search,
  :where(body).c-production-auth #app .content > .bom-detail-line .bom-detail-controls { flex-basis: 100%; max-width: none; width: 100%; }
  :where(body).c-production-auth #app .crm-auth .auth-panel { width: 100%; }
}

@media (max-width: 430px) {
  :where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-list li { flex-direction: column; gap: 4px; }
  :where(body).c-production-auth #app .content > .pending-bom-panel .pending-bom-count { white-space: normal; }
  :where(body).c-production-auth #app .content > .heading .actions { width: 100%; }
  :where(body).c-production-auth #app .content > .heading .actions :is(button, .button) { white-space: normal; }
  :where(body).c-production-auth #app .content > .bom-detail-toolbar { flex-wrap: wrap; padding: 10px 12px; }
  :where(body).c-production-auth #app .content > .section-line .search { max-width: none; }
  :where(body).c-production-auth #app .content > .catalog-query input[name="q"] { width: 100%; }
}

/* 2026-10-11: column settings stay in the upper-right title corner. */
:where(body).c-production-auth #app .content > .heading.has-table-settings-corner{position:relative}
:where(body).c-production-auth #app .content > .heading.has-table-settings-corner > :is(h1,div:has(>h1)):not(.table-settings-corner){padding-inline-end:var(--table-settings-corner-width,44px);min-height:36px}
:where(body).c-production-auth #app .content > .heading > .table-settings-corner{position:absolute;inset-block-start:10px;inset-inline-end:14px;display:flex;align-items:center;gap:6px;margin:0;z-index:1}
:where(body).c-production-auth :is(#app,#modal-root) :is(.modal-head,.pfa-modal-head) > .table-settings-corner{display:flex;align-items:center;gap:6px;margin-inline-start:auto;flex-shrink:0}
:where(body).c-production-auth :is(#app,#modal-root) .table-settings-corner > .table-settings-button{flex:0 0 auto;margin:0;width:36px;min-height:36px}
@media(max-width:700px){
  :where(body).c-production-auth #app .content > .heading > .table-settings-corner{inset-block-start:9px;inset-inline-end:10px}
  :where(body).c-production-auth #app .content > .heading.has-table-settings-corner > :is(h1,div:has(>h1)):not(.table-settings-corner){min-height:44px}
  :where(body).c-production-auth :is(#app,#modal-root) .table-settings-corner > .table-settings-button{width:44px;min-height:44px}
  :where(body).c-production-auth #app .content > .heading.has-table-settings-corner{--table-settings-corner-width:calc(var(--table-settings-count,1) * 50px + 4px)!important}
}

/* 2026-10-11: selected count and delete live above the table, aligned left. */
:where(body).c-production-auth #app .content > .list-batch-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;padding:2px 12px;min-width:0}
:where(body).c-production-auth #app .content > .list-batch-actions .batch-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;min-width:0}
:where(body).c-production-auth #app .content > .list-batch-actions :is(#raw-selected-count,#catalog-selected,.customer-delete-count,.quote-delete-count){font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
:where(body).c-production-auth #app .content > .list-batch-actions button{display:inline-flex;align-items:center;gap:5px;min-height:26px;height:26px;padding:2px 8px;font-size:12px;line-height:20px}
@media(max-width:700px){:where(body).c-production-auth #app .content > .list-batch-actions{padding:2px 10px}:where(body).c-production-auth #app .content > .list-batch-actions .batch-actions{width:100%}}

/* 2026-10-11: compact batch row while keeping a larger mobile touch target. */
:where(body).c-production-auth #app .content > .list-batch-actions button svg{width:14px;height:14px}
@media(max-width:700px){:where(body).c-production-auth #app .content > .list-batch-actions button{min-height:32px;height:32px;padding:4px 9px}}

/* Personal center and the four browser-local workspace themes. */
html:has(:where(body).c-production-auth)[data-bq-theme="arctic"]{--pc-accent:#087a75;--pc-deep:#075f5b;--pc-soft:#e2f3ef;--pc-ink:#17332e;--pc-muted:#61736f;--pc-line:#c9ddd5;--pc-canvas:#eef5f1;--pc-side:#f8f9ee;--pc-surface:#fff;--pc-top:#fbfdf8;--pc-head:#edf5f1;--pc-shadow:#21483e24;--pc-sidebar-art:url('/assets/wms/mugwort-forest-sidebar.png');--pc-wallpaper:url('/assets/wms/mugwort-forest.webp')}
html:has(:where(body).c-production-auth)[data-bq-theme="sky-blue"]{--pc-accent:#267da5;--pc-deep:#176486;--pc-soft:#e3f3f9;--pc-ink:#173746;--pc-muted:#607986;--pc-line:#c9dfea;--pc-canvas:#eff8fc;--pc-side:#f4fbff;--pc-surface:#fdfefe;--pc-top:#f4fbff;--pc-head:#e0f2f9;--pc-shadow:#25668222;--pc-sidebar-art:url('/assets/wms/sky-blue-clouds-sidebar.png');--pc-wallpaper:url('/assets/wms/sky-blue.webp')}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"]{--pc-accent:#087f7b;--pc-deep:#056762;--pc-soft:#eaf4f3;--pc-ink:#1d1d1f;--pc-muted:#6e6e73;--pc-line:#d5d9df;--pc-canvas:#f5f5f7;--pc-side:#fff;--pc-surface:#fff;--pc-top:#fff;--pc-head:#f2f4f5;--pc-shadow:#1d1d1f0d;--pc-sidebar-art:none;--pc-wallpaper:none}
html:has(:where(body).c-production-auth)[data-bq-theme="ink-wash"]{--pc-accent:#536763;--pc-deep:#394a46;--pc-soft:#e8edeb;--pc-ink:#26312f;--pc-muted:#697572;--pc-line:#d2d7d5;--pc-canvas:#f2f3f2;--pc-side:#f6f7f5;--pc-surface:#fdfefd;--pc-top:#f7f9f7;--pc-head:#e9edeb;--pc-shadow:#2d393620;--pc-sidebar-art:url('/assets/wms/ink-wash-pool-sidebar.png');--pc-wallpaper:url('/assets/wms/ink-wash-pool.webp')}
html:has(:where(body).c-production-auth)[data-bq-theme] #app,html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root{--line:var(--pc-line);--green:var(--pc-accent);--muted:var(--pc-muted);color:var(--pc-ink)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .layout{background:var(--pc-canvas) var(--pc-wallpaper) center/cover fixed}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar{background:var(--pc-side);border-color:var(--pc-line);overflow:visible}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand{border-color:var(--pc-line)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar nav{border-color:var(--pc-line);background:color-mix(in srgb,var(--pc-side) 77%,white)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar-art{background-image:var(--pc-sidebar-art)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .nav-button{color:var(--pc-muted)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .nav-button.active,html:has(:where(body).c-production-auth)[data-bq-theme] #app .nav-button:hover{background:var(--pc-soft);color:var(--pc-deep);border-color:var(--pc-line);border-left-color:var(--pc-accent)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .main{background:color-mix(in srgb,var(--pc-surface) 96%,transparent)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip{background:var(--pc-soft);border-color:var(--pc-line)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab{background:var(--pc-top);border-color:var(--pc-line);color:var(--pc-muted)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab.active{background:var(--pc-surface);color:var(--pc-accent);box-shadow:inset 0 2px var(--pc-accent)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab-main:hover,html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab-close:hover{background:var(--pc-soft);color:var(--pc-deep)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .content{background:var(--pc-surface)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .heading{border-color:var(--pc-line)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .heading h1,html:has(:where(body).c-production-auth)[data-bq-theme] #app h2{color:var(--pc-ink)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .table-wrap,html:has(:where(body).c-production-auth)[data-bq-theme] #app .settings,html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal{border-color:var(--pc-line);background:var(--pc-surface)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app th,html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root th{background:var(--pc-head);color:var(--pc-ink);border-color:var(--pc-line)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app td,html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root td{border-color:var(--pc-line)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app tbody tr:nth-child(even){background:color-mix(in srgb,var(--pc-soft) 20%,white)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app tbody tr:hover{background:color-mix(in srgb,var(--pc-soft) 58%,white)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .stats,html:has(:where(body).c-production-auth)[data-bq-theme] #app .stat{border-color:var(--pc-line);background:var(--pc-surface)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app button:not(.danger):not(.profile-center-action):not(.profile-theme-option):hover{border-color:var(--pc-accent)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .primary,html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .primary{background:var(--pc-accent);border-color:var(--pc-accent);color:#fff}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .primary:hover,html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .primary:hover{background:var(--pc-deep);border-color:var(--pc-deep);color:#fff}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(input,select,textarea):focus,html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root :is(input,select,textarea):focus{border-color:var(--pc-accent);outline-color:var(--pc-soft)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.file-link,.catalog-sort,.bom-sort,.quote-sort){color:var(--pc-deep)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}
:where(body).c-production-auth .profile-trigger{display:flex;align-items:center;gap:9px;margin:10px;width:calc(100% - 20px);min-height:54px;padding:9px 11px;border:1px solid var(--pc-line);border-radius:12px;background:color-mix(in srgb,var(--pc-surface) 83%,transparent);color:var(--pc-ink);box-shadow:0 8px 22px var(--pc-shadow);text-align:left}
:where(body).c-production-auth .profile-trigger:hover,:where(body).c-production-auth .profile-trigger[aria-expanded="true"]{background:var(--pc-soft);border-color:var(--pc-accent)}
:where(body).c-production-auth .profile-avatar{display:grid;place-items:center;width:30px;height:30px;flex:0 0 auto;border-radius:9px;background:var(--pc-soft);color:var(--pc-accent)}
:where(body).c-production-auth .profile-trigger-summary{display:grid;gap:3px;flex:1;min-width:0}:where(body).c-production-auth .profile-trigger-summary strong,:where(body).c-production-auth .profile-trigger-summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(body).c-production-auth .profile-trigger-summary strong{font-size:12px}:where(body).c-production-auth .profile-trigger-summary small{font-size:11px;color:var(--pc-muted)}
:where(body).c-production-auth .profile-trigger>svg:last-child{width:15px;height:15px;color:var(--pc-muted)}
:where(body).c-production-auth .profile-center-panel{position:fixed;z-index:45;left:10px;bottom:82px;width:280px;max-height:min(650px,calc(100dvh - 92px));overflow-y:auto;padding:18px;border:1px solid var(--pc-line);border-radius:15px;background:color-mix(in srgb,var(--pc-surface) 93%,transparent);color:var(--pc-ink);box-shadow:0 18px 46px var(--pc-shadow);backdrop-filter:blur(24px) saturate(135%)}
:where(body).c-production-auth .profile-center-panel[hidden]{display:none}:where(body).c-production-auth .profile-center-panel:focus{outline:none}:where(body).c-production-auth .profile-center-eyebrow{margin-bottom:14px;color:var(--pc-accent);font-size:11px;font-weight:800;letter-spacing:.06em}
:where(body).c-production-auth .profile-center-details{display:grid;gap:10px;margin:0 0 16px}:where(body).c-production-auth .profile-center-details>div{display:grid;grid-template-columns:45px minmax(0,1fr);gap:10px}:where(body).c-production-auth .profile-center-details dt{font-size:11px;color:var(--pc-muted)}:where(body).c-production-auth .profile-center-details dd{min-width:0;margin:0;overflow-wrap:anywhere;font-size:12px;font-weight:700}
:where(body).c-production-auth .profile-center-details>div:has(.profile-role-select){align-items:center}
:where(body).c-production-auth .profile-role-select{width:100%;min-height:34px;padding:5px 9px;border:1px solid var(--pc-line);border-radius:8px;background:color-mix(in srgb,var(--pc-surface) 35%,transparent);color:var(--pc-ink);font:inherit}
:where(body).c-production-auth .profile-role-select option{color:var(--pc-ink);background:var(--pc-surface)}
:where(body).c-production-auth .profile-role-select:disabled{cursor:wait;opacity:.65}
:where(body).c-production-auth .profile-role-status{margin:-5px 0 12px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
:where(body).c-production-auth .profile-role-status[hidden]{display:none}
:where(body).c-production-auth .profile-center-themes{display:grid;gap:10px;margin-bottom:14px;padding:14px 0;border-top:1px solid var(--pc-line);border-bottom:1px solid var(--pc-line)}:where(body).c-production-auth .profile-center-theme-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}:where(body).c-production-auth .profile-center-theme-heading strong{font-size:12px}:where(body).c-production-auth .profile-center-theme-heading small{font-size:9px;color:var(--pc-muted);white-space:nowrap}
:where(body).c-production-auth .profile-center-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}:where(body).c-production-auth .profile-theme-option{display:grid;gap:7px;min-width:0;min-height:62px;padding:8px;border:1px solid var(--pc-line);border-radius:10px;background:color-mix(in srgb,var(--pc-surface) 70%,transparent);color:var(--pc-ink);text-align:left}:where(body).c-production-auth .profile-theme-option:hover,:where(body).c-production-auth .profile-theme-option[aria-checked="true"]{border-color:var(--pc-accent);background:var(--pc-soft)}:where(body).c-production-auth .profile-theme-option strong{overflow:hidden;padding:0 2px;font-size:11px;text-overflow:ellipsis;white-space:nowrap}:where(body).c-production-auth .profile-theme-preview{display:block;width:100%;height:22px;border:1px solid #8899a044;border-radius:6px;background-size:cover;background-position:center;box-shadow:inset 0 0 0 4px #ffffff80}:where(body).c-production-auth .profile-theme-preview.arctic{background-image:url('/assets/wms/mugwort-forest.webp')}:where(body).c-production-auth .profile-theme-preview.sky-blue{background-image:url('/assets/wms/sky-blue.webp')}:where(body).c-production-auth .profile-theme-preview.lychee{background:#f5f5f7;box-shadow:inset 0 0 0 4px #fff}:where(body).c-production-auth .profile-theme-preview.ink-wash{background-image:url('/assets/wms/ink-wash-pool.webp')}
:where(body).c-production-auth .profile-center-actions{display:grid;gap:8px}:where(body).c-production-auth .profile-center-action{width:100%;min-height:40px;border:1px solid var(--pc-line);border-radius:9px;background:color-mix(in srgb,var(--pc-surface) 77%,transparent);color:var(--pc-ink);font-size:13px;font-weight:700}:where(body).c-production-auth .profile-center-action:hover,:where(body).c-production-auth .profile-center-action:focus-visible{border-color:var(--pc-accent);background:var(--pc-soft);color:var(--pc-deep)}:where(body).c-production-auth .profile-center-action.edit{border-color:var(--pc-accent);background:var(--pc-soft);color:var(--pc-deep)}:where(body).c-production-auth .profile-center-action.logout{border-color:#efcbd2;background:#ffeeF2;color:#c43f55}:where(body).c-production-auth .profile-center-action.logout:hover{border-color:#e2aab5;background:#ffe5ea;color:#a92c43}
:where(body).c-production-auth .profile-center-legal{display:flex;justify-content:center;gap:16px}:where(body).c-production-auth .profile-center-legal button{border:0;background:transparent;color:var(--pc-deep);font-size:12px;text-decoration:underline;cursor:pointer;min-height:36px}:where(body).c-production-auth .profile-center-legal button:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}
:where(body).c-production-auth #app .account-set-list{gap:6px}
:where(body).c-production-auth .profile-page-heading{margin-bottom:16px}:where(body).c-production-auth .profile-page-card{display:grid;gap:18px;max-width:840px;padding:22px;border:1px solid var(--pc-line);border-radius:10px;background:var(--pc-surface);box-shadow:0 8px 22px var(--pc-shadow)}:where(body).c-production-auth .profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}:where(body).c-production-auth .profile-form-grid label{min-width:0}:where(body).c-production-auth .profile-form-grid input{width:100%}:where(body).c-production-auth .profile-password-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;padding-top:10px;border-top:1px solid var(--pc-line);font-weight:700}:where(body).c-production-auth .profile-password-heading small{font-size:11px;color:var(--pc-muted);font-weight:400}:where(body).c-production-auth .profile-form-status{min-height:20px;color:var(--pc-muted)}:where(body).c-production-auth .profile-page-card>.primary{justify-self:start;min-width:140px}:where(body).c-production-auth .account-set-card h2{font-size:16px}:where(body).c-production-auth .account-set-current{padding:13px;background:var(--pc-soft);border-radius:7px}:where(body).c-production-auth .account-set-list{display:grid;gap:10px}:where(body).c-production-auth .account-set-item{display:flex;align-items:center;gap:13px;min-width:0;padding:14px;border:1px solid var(--pc-line);border-radius:9px}:where(body).c-production-auth .account-set-item>div{display:grid;gap:5px;flex:1;min-width:0}:where(body).c-production-auth .account-set-item strong,:where(body).c-production-auth .account-set-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(body).c-production-auth .account-set-item small{color:var(--pc-muted)}:where(body).c-production-auth .account-set-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:10px;background:var(--pc-soft);color:var(--pc-deep);font-weight:700}:where(body).c-production-auth .profile-account-error[hidden]{display:none}
@media(max-width:700px){:where(body).c-production-auth .profile-center-panel{left:8px;right:auto;top:8px;bottom:auto;width:min(280px,calc(100vw - 16px));max-height:calc(100dvh - 16px)}:where(body).c-production-auth .profile-form-grid{grid-template-columns:1fr}:where(body).c-production-auth .profile-page-card{padding:16px}:where(body).c-production-auth .account-set-item{flex-wrap:wrap}:where(body).c-production-auth .account-set-item>button{margin-left:auto}}

/* 2026-10-06: reference profile card; isolate cards from shared button layout. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel{
  width:280px;padding:18px;border-radius:14px;
  background:color-mix(in srgb,var(--pc-surface) 97%,var(--pc-soft));
  border:1px solid var(--pc-line);box-shadow:0 12px 32px rgba(25,55,48,.16);
}
:where(body).c-production-auth #app #profile-center-panel .profile-center-eyebrow{margin-bottom:14px;font-size:12px;letter-spacing:0}
:where(body).c-production-auth #app #profile-center-panel .profile-center-details{gap:9px;margin-bottom:16px}
:where(body).c-production-auth #app #profile-center-panel .profile-center-details>div{grid-template-columns:45px minmax(0,1fr);align-items:baseline}
:where(body).c-production-auth #app #profile-center-panel .profile-center-details>div:has(.profile-role-select){align-items:center}
:where(body).c-production-auth #app #profile-center-panel .profile-center-themes{gap:10px;margin-bottom:14px;padding:14px 0}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel .profile-theme-option{
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:22px auto;
  justify-items:stretch;align-content:start;align-items:start;gap:7px;
  min-height:63px;padding:8px;text-align:left;border:1px solid var(--pc-line);
  border-radius:10px;background:var(--pc-surface);box-shadow:none;
}
:where(body).c-production-auth #app #profile-center-panel .profile-theme-preview{width:100%;height:22px;min-width:0;justify-self:stretch}
:where(body).c-production-auth #app #profile-center-panel .profile-theme-option strong{display:block;width:100%;padding:0 2px;text-align:left;font-size:11px;line-height:1.4}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel .profile-theme-option:is(:hover,[aria-checked="true"]){
  border-color:var(--pc-accent);background:var(--pc-soft);box-shadow:none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel .profile-center-action{
  display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;
  border:1px solid var(--pc-line);border-radius:9px;background:var(--pc-surface);box-shadow:none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel .profile-center-action:is(.edit,:hover,:focus-visible){border-color:var(--pc-accent);background:var(--pc-soft);color:var(--pc-deep)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel .profile-center-action.logout{border-color:#efcbd2;background:#fff1f3;color:#c43f55}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel .profile-center-action.logout:hover{border-color:#e2aab5;background:#ffe5ea;color:#a92c43}
:where(body).c-production-auth #app #profile-center-panel .profile-center-legal{gap:14px}
:where(body).c-production-auth #app #profile-center-panel .profile-center-legal button{min-height:28px;padding:3px 0;font-size:11px}
@media(max-width:700px){html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel{width:min(280px,calc(100vw - 16px));max-height:calc(100dvh - 16px)}}
/* Industrial glow glass: shared across the four workspace themes and CRM entry. */
:where(body).c-production-auth #app {
  --glass-card-gap: 5px;
  --glass-line: rgba(244, 254, 255, .72);
  --glass-surface: rgba(255, 255, 255, .1);
  --glass-strong: rgba(255, 255, 255, .24);
  --glass-shadow: 0 12px 32px rgba(10, 49, 68, .12), 0 3px 18px rgba(30, 137, 190, .18);
  --glass-glow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(75, 174, 224, .22);
}

/* The four saved wallpaper choices remain the workspace photographs. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app .layout {
  background: var(--pc-canvas) var(--pc-wallpaper) center / cover fixed no-repeat;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .main {
  position: relative;
  isolation: isolate;
  background: var(--pc-canvas);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .main::before {
  content: "";
  position: fixed;
  inset: -2% -2% -2% calc(204px - 2%);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(125deg,
    color-mix(in srgb, var(--pc-canvas) 9%, transparent),
    color-mix(in srgb, var(--pc-canvas) 15%, transparent)),
    var(--pc-wallpaper) center / cover no-repeat;
  filter: saturate(1.08) contrast(1.03);
  animation: glass-background-breathe 30s ease-in-out infinite alternate;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .main > * {
  position: relative;
  z-index: 1;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar {
  z-index: 2;
  background: color-mix(in srgb, var(--pc-side) 70%, transparent);
  border-right: 1px solid var(--glass-line);
  box-shadow: 4px 0 24px rgba(20, 87, 113, .12);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar nav,
html:has(:where(body).c-production-auth)[data-bq-theme] #app .account,
html:has(:where(body).c-production-auth)[data-bq-theme] #app .profile-trigger {
  background: var(--glass-surface);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-glow), 0 7px 20px rgba(11, 64, 88, .08);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar nav,
html:has(:where(body).c-production-auth)[data-bq-theme] #app .profile-trigger { border-radius: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand { border-color: var(--glass-line); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar-art {
  background-image: var(--pc-sidebar-art);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .nav-button { transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .nav-button:is(:hover, .active) {
  background: color-mix(in srgb, var(--pc-soft) 64%, transparent);
  border-color: var(--glass-line);
  box-shadow: inset 3px 0 var(--pc-accent), 0 4px 14px rgba(34, 133, 173, .13);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip {
  background: var(--glass-surface);
  border-color: var(--glass-line);
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab {
  background: rgba(255, 255, 255, .12);
  border-color: var(--glass-line);
  color: var(--pc-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab.active {
  background: rgba(255, 255, 255, .3);
  color: var(--pc-deep);
  border-color: rgba(245, 254, 255, .84);
  box-shadow: inset 0 2px var(--pc-accent), 0 5px 16px rgba(37, 113, 149, .12);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab :is(.workspace-tab-main, .workspace-tab-close) {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  transform: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab :is(.workspace-tab-main, .workspace-tab-close):hover {
  background: rgba(255, 255, 255, .2);
  border: 0;
  color: var(--pc-deep);
  transform: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab-close:hover {
  border-radius: 0 5px 0 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .content {
  gap: var(--glass-card-gap);
  background: transparent;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.stat strong, .num, .table-wrap table) {
  font-variant-numeric: tabular-nums;
}
:where(body).c-production-auth #app .content > :is(.heading, .section-line, .stats, .bom-meta, .bom-detail-toolbar,
  .catalog-query, .settings, .table-wrap, .pager, .catalog-footer, .page-error,
  .loading, .empty, .notice, .markup-applied, .quote-readonly-note), html:has(:where(body).c-production-auth)[data-bq-theme] #app .profile-page-card, html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial :is(.pt-panel, .pt-editor, .pt-empty, .pt-scroll, .pt-overview > div), html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa :is(.pfa-panel, .pfa-section, .pfa-fitting-card, .pfa-scroll) {
  background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  box-shadow: var(--glass-glow), var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(116%) brightness(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(116%) brightness(1.04);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pt-overview { gap: var(--glass-card-gap); overflow: visible; border: 0; background: transparent; }
:where(body).c-production-auth #app .content > .table-wrap:has(+ :is(.pager, .catalog-footer)) {
  border-radius: 12px;
}
:where(body).c-production-auth #app .content > :is(.pager, .catalog-footer) {
  margin-top: 0;
  border-top: 1px solid var(--glass-line);
  border-radius: 12px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .stats,
html:has(:where(body).c-production-auth)[data-bq-theme] #app .stat { background: transparent; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .table-wrap,
html:has(:where(body).c-production-auth)[data-bq-theme] #app .settings {
  background: rgba(255, 255, 255, .12);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app th {
  background: color-mix(in srgb, var(--pc-head) 64%, transparent);
  color: var(--pc-ink);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .13);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app tbody tr:hover {
  background: color-mix(in srgb, var(--pc-soft) 68%, transparent);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .table-wrap > table [data-column="actions"],
html:has(:where(body).c-production-auth)[data-bq-theme] #app .table-wrap > table tbody tr:nth-child(even) > [data-column="actions"] {
  /* Fixed cells must mask the text scrolling underneath them. Other surfaces stay glass. */
  background: color-mix(in srgb, var(--pc-canvas) 55%, var(--pc-surface));
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .table-wrap > table thead [data-column="actions"] {
  background: var(--pc-head);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .table-wrap > table tbody tr:hover > [data-column="actions"] {
  background: var(--pc-soft);
}
/* A short explanation belongs to its existing toolbar, not a separate glass card. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app .content > :is(.markup-applied,.quote-readonly-note,.notice:not([role="alert"])) {
  margin: 0;
  padding: 3px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 12px;
  line-height: 1.45;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.catalog-filters.quote-filters, .list-filters, .catalog-export-options,
  .model-options, .customer-options, .markup-name-rule, .account-set-item, .account-set-current) {
  background: color-mix(in srgb, var(--pc-canvas) 24%, transparent);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-glow), 0 8px 24px rgba(15, 70, 92, .12);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .profile-center-panel {
  background: color-mix(in srgb, var(--pc-canvas) 70%, transparent);
  border-color: var(--glass-line);
  box-shadow: var(--glass-glow), 0 18px 46px rgba(15, 67, 86, .24);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.profile-theme-option, .profile-center-action:not(.logout)) {
  background: var(--glass-surface);
  border-color: var(--glass-line);
  box-shadow: var(--glass-glow);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.profile-theme-option, .profile-center-action:not(.logout)):hover, html:has(:where(body).c-production-auth)[data-bq-theme] #app .profile-theme-option[aria-checked="true"] {
  background: color-mix(in srgb, var(--pc-soft) 74%, transparent);
  border-color: var(--pc-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--pc-accent) 25%, transparent);
}
:where(body).c-production-auth #modal-root .overlay { background: rgba(5, 27, 42, .58); }
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal,
:where(body).c-production-auth #modal-root .auth-legal-dialog {
  background: color-mix(in srgb, var(--pc-canvas, #eaf4f9) 83%, transparent);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-glow), 0 24px 60px rgba(4, 35, 56, .28);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}
:where(body).c-production-auth #modal-root .auth-legal-dialog { background: rgba(248, 252, 255, .98); color: #173244; }
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root :is(.modal-head, .modal-foot) {
  background: rgba(255, 255, 255, .13);
  border-color: var(--glass-line);
}
:where(body).c-production-auth #app :is(button, .button, input, select, textarea), :where(body).c-production-auth #modal-root :is(button, .button, input, select, textarea) {
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
:where(body).c-production-auth #app .content .actions > :is(button, .button):not(:disabled):hover, :where(body).c-production-auth #modal-root .modal-foot > :is(button, .button):not(:disabled):hover { transform: translateY(-2px); }
:where(body).c-production-auth #app :is(button, .button, input, select, textarea):focus-visible, :where(body).c-production-auth #modal-root :is(button, .button, input, select, textarea):focus-visible {
  outline: 2px solid var(--pc-accent, #64d7f3);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 216, 243, .2);
}

/* The image and moving stars share the same coordinate system; routes never render. */
:where(body).c-production-auth #app .crm-auth {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(24px, 3.5vw, 64px);
  background: #061c30;
  color: #eefbff;
}
@media (min-width: 1041px) {
  :where(body).c-production-auth #app .crm-auth { padding-inline: clamp(72px, 8vw, 150px); }
}
:where(body).c-production-auth #app .crm-auth .auth-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
:where(body).c-production-auth #app .crm-auth .auth-scene-inner {
  position: absolute;
  inset: -2%;
  animation: auth-scene-breathe 26s ease-in-out infinite alternate;
}
:where(body).c-production-auth #app .crm-auth .auth-scene-image,
:where(body).c-production-auth #app .crm-auth .auth-scene-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
:where(body).c-production-auth #app .crm-auth .auth-scene-image {
  background: linear-gradient(90deg, rgba(2, 18, 32, .72) 0%, rgba(2, 18, 32, .5) 34%, rgba(2, 18, 32, .1) 63%, rgba(2, 18, 32, .46) 100%), url('/assets/login/automotive-harness-hero.png') center / cover no-repeat;
}
:where(body).c-production-auth #app .crm-auth .auth-scene-stars { overflow: visible; }
:where(body).c-production-auth #app .crm-auth .auth-star { color: #ffe9ab; }
:where(body).c-production-auth #app .crm-auth .auth-star-ice { color: #b4f4ff; }
:where(body).c-production-auth #app .crm-auth .auth-star-warm { color: #ffd2a0; }
:where(body).c-production-auth #app .crm-auth .auth-star-halo {
  fill: currentColor;
  opacity: .55;
  filter: blur(4px);
}
:where(body).c-production-auth #app .crm-auth .auth-star-shape {
  fill: currentColor;
  filter: drop-shadow(0 0 3px currentColor);
}
:where(body).c-production-auth #app .crm-auth .auth-star-center { fill: #fff; }
:where(body).c-production-auth #app .crm-auth > :is(.auth-hero-copy, .auth-panel) { position: relative; z-index: 1; }
:where(body).c-production-auth #app .crm-auth .auth-hero-copy {
  justify-self: start;
  width: min(100%, 720px);
  color: #f8fdff;
}
:where(body).c-production-auth #app .crm-auth .auth-hero-brand,
:where(body).c-production-auth #app .crm-auth .auth-hero-system {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: 1.08;
}
:where(body).c-production-auth #app .crm-auth .auth-hero-brand {
  font-size: clamp(52px, 5.6vw, 88px);
  background: linear-gradient(100deg, #e88153 0%, #f3b79b 45%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 12, 30, .68));
}
:where(body).c-production-auth #app .crm-auth .auth-hero-system {
  margin-top: 6px;
  font-size: clamp(56px, 6vw, 94px);
  color: #f9fdff;
  text-shadow: 0 4px 18px rgba(0, 12, 30, .8);
}
:where(body).c-production-auth #app .crm-auth .auth-hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: .25em 0;
  margin: 26px 0 0;
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.025em;
}
:where(body).c-production-auth #app .crm-auth .auth-hero-intro { color: #fff; text-shadow: 0 3px 12px rgba(0, 12, 30, .85); }
:where(body).c-production-auth #app .crm-auth .auth-hero-benefit {
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(100deg, #fff 0%, #f3b79b 48%, #e88153 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 12, 30, .8));
}
:where(body).c-production-auth #app .crm-auth .auth-panel {
  justify-self: end;
  align-self: center;
  margin: 0;
  background: rgba(7, 34, 53, .54);
  border: 1px solid rgba(219, 250, 255, .62);
  color: #effcff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(72, 205, 247, .36), 0 18px 46px rgba(0, 12, 30, .34), 0 0 27px rgba(61, 191, 235, .18);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
:where(body).c-production-auth #app .crm-auth .auth-panel { border-radius: 18px; }
:where(body).c-production-auth #app .crm-auth h1,
:where(body).c-production-auth #app .crm-auth .auth-field,
:where(body).c-production-auth #app .crm-auth .auth-consent,
:where(body).c-production-auth #app .crm-auth .auth-note { color: #effcff; }
:where(body).c-production-auth #app .crm-auth :is(.auth-field input, .auth-field select) {
  background: rgba(226, 248, 255, .12);
  border: 1px solid rgba(221, 250, 255, .58);
  color: #fff;
  border-radius: 9px;
}
:where(body).c-production-auth #app .crm-auth :is(.auth-field input, .auth-field select)::placeholder { color: #d0e3eb; }
:where(body).c-production-auth #app .crm-auth .auth-field select option { color: #0b3448; }
:where(body).c-production-auth #app .crm-auth .auth-submit {
  background: linear-gradient(115deg, #0d9ab5, #136ebd);
  border-color: #9ae8f7;
  color: #fff;
  box-shadow: 0 7px 23px rgba(12, 172, 223, .32);
}
:where(body).c-production-auth #app .crm-auth .auth-submit:hover { background: linear-gradient(115deg, #10a9c5, #187bca); }
:where(body).c-production-auth #app .crm-auth .auth-secondary,
:where(body).c-production-auth #app .crm-auth .auth-choices button {
  background: rgba(233, 249, 255, .12);
  border-color: rgba(219, 250, 255, .48);
  color: #effcff;
}
:where(body).c-production-auth #app .crm-auth .auth-consent button { color: #95edff; }
:where(body).c-production-auth #app .crm-auth .auth-consent label { color: #effcff; }
:where(body).c-production-auth #app .crm-auth .auth-sms-row button { color: #effcff; background: rgba(233, 249, 255, .12); }
:where(body).c-production-auth #app .crm-auth .auth-password-toggle { color: #c8f5ff; }
:where(body).c-production-auth #app .crm-auth .auth-password-toggle:hover { background: rgba(233, 249, 255, .15); }
:where(body).c-production-auth #app .crm-auth .auth-field-error { color: #ffd3c6; }
:where(body).c-production-auth #app .crm-auth .auth-panel-brand { color: #f3b79b; }
:where(body).c-production-auth #app .crm-auth .auth-message { color: #ffbaa8; }
:where(body).c-production-auth #app .crm-auth .auth-message:not(:empty) {
  background: rgba(77, 18, 24, .38);
  border-color: rgba(255, 193, 176, .62);
}
@keyframes auth-scene-breathe { from { transform: scale(1) translateY(0); } to { transform: scale(1.035) translateY(-.6%); } }
@keyframes glass-background-breathe { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.035) translate(-.6%, 0); } }
@media (max-width: 1040px) {
  :where(body).c-production-auth #app .crm-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(20px, 4vh, 36px);
  }
  :where(body).c-production-auth #app .crm-auth .auth-hero-copy { width: 100%; }
  :where(body).c-production-auth #app .crm-auth .auth-hero-brand { font-size: clamp(42px, 7vw, 72px); }
  :where(body).c-production-auth #app .crm-auth .auth-hero-system { font-size: clamp(46px, 7.6vw, 78px); }
  :where(body).c-production-auth #app .crm-auth .auth-panel { align-self: center; width: min(100%, 440px); }
  :where(body).c-production-auth #app .crm-auth .auth-panel.register { width: min(100%, 570px); }
}
@media (min-width: 701px) and (max-width: 1000px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .main::before { left: calc(188px - 2%); }
}
@media (max-width: 700px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar { position: relative; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .main::before { left: -2%; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .content { gap: var(--glass-card-gap); }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar nav { margin: 6px 8px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .account { display: none; }
  :where(body).c-production-auth #app .crm-auth .auth-panel { background: rgba(5, 28, 46, .69); }
  :where(body).c-production-auth #app .crm-auth { justify-content: flex-start; gap: 0; }
  :where(body).c-production-auth #app .crm-auth .auth-hero-copy { display: none; }
  :where(body).c-production-auth #app .crm-auth .auth-panel { order: 1; align-self: center; margin: 0; width: min(100%, 440px); }
  :where(body).c-production-auth #app .crm-auth .auth-panel-brand { display: block; }
}
@media (max-width: 430px) {
  :where(body).c-production-auth #app .crm-auth { padding: 16px 12px; }
  :where(body).c-production-auth #app .crm-auth .auth-panel { padding: 20px 17px; }
  :where(body).c-production-auth #app .crm-auth .auth-hero-brand { font-size: clamp(36px, 10vw, 44px); }
  :where(body).c-production-auth #app .crm-auth .auth-hero-system { font-size: clamp(40px, 11vw, 50px); }
  :where(body).c-production-auth #app .crm-auth .auth-hero-tagline { margin-top: 14px; font-size: 16px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :where(body).c-production-auth #app .content > :is(.heading, .section-line, .stats, .bom-meta, .bom-detail-toolbar,
    .catalog-query, .settings, .table-wrap, .pager, .catalog-footer, .page-error,
    .loading, .empty, .notice, .markup-applied, .quote-readonly-note), html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar, html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal { background: rgba(247, 252, 253, .9); }
  :where(body).c-production-auth #app .crm-auth .auth-panel { background: rgba(5, 27, 44, .9); }
}
@media (prefers-reduced-motion: reduce) {
  :where(body).c-production-auth #app .crm-auth .auth-scene-inner,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .main::before { animation: none; }
  :where(body).c-production-auth #app .crm-auth .auth-scene-stars { display: none; }
  :where(body).c-production-auth #app :is(button, .button, input, select, textarea), :where(body).c-production-auth #modal-root :is(button, .button, input, select, textarea), :where(body).c-production-auth #app .nav-button { transition: none; }
}

/* The registration form uses the login scene and card; only its field layout differs. */
:where(body).c-production-auth #app .crm-auth.auth-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-panel.register {
  grid-column: 2;
  align-self: center;
  justify-self: end;
  width: min(100%, 440px);
  margin: 0;
  padding: 32px;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-panel-brand {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
:where(body).c-production-auth #app .crm-auth.auth-register h1 {
  margin: 0 0 5px;
  font-size: 32px;
  line-height: 1.25;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-note {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-grid .auth-field {
  min-width: 0;
  gap: 5px;
  margin: 0;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-field label {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-required-mark {
  margin-left: 4px;
  color: #ff8791;
  font-weight: 800;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-optional-mark {
  margin-left: 6px;
  color: #bed6df;
  font-size: 11px;
  font-weight: 500;
}
:where(body).c-production-auth #app .crm-auth.auth-register :is(.auth-field input, .auth-field select) {
  min-width: 0;
  height: 43px;
  padding: 9px 13px;
  font-size: 13px;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-field input[aria-invalid="true"] { border-color: #ff9b98; }
:where(body).c-production-auth #app .crm-auth.auth-register .auth-sms { grid-column: auto; }
:where(body).c-production-auth #app .crm-auth.auth-register .auth-sms-row { grid-template-columns: minmax(0, 1fr) 112px; }
:where(body).c-production-auth #app .crm-auth.auth-register .auth-sms-row button {
  min-width: 0;
  min-height: 43px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-consent {
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.5;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-submit {
  min-height: 48px;
  margin-top: 16px;
  font-size: 15px;
}
:where(body).c-production-auth #app .crm-auth.auth-register .auth-secondary {
  min-height: 46px;
  margin-top: 8px;
  font-weight: 700;
}
@media (max-width: 1040px) {
  :where(body).c-production-auth #app .crm-auth.auth-register {
    display: flex;
    flex-direction: column;
  }
  :where(body).c-production-auth #app .crm-auth.auth-register .auth-panel.register {
    align-self: center;
    width: min(100%, 440px);
  }
}
@media (max-width: 430px) {
  :where(body).c-production-auth #app .crm-auth.auth-register .auth-panel.register { padding: 20px 17px; }
  :where(body).c-production-auth #app .crm-auth.auth-register h1 { font-size: 29px; }
  :where(body).c-production-auth #app .crm-auth.auth-register .auth-sms-row { grid-template-columns: minmax(0, 1fr) 105px; }
}

/* Mobile keeps the workspace visible; the full navigation opens on request. */
:where(body).c-production-auth #app .sidebar-mobile-toggle { display: none; }
@media (max-width: 700px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    height: auto;
    min-height: 64px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand { margin: 0; padding: 0; gap: 0; width: auto; min-height: 0; height: auto; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand-logo { width: 82px; height: 27px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand-label { font-size: 15px; line-height: 1.25; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 70px;
    min-height: 44px;
    margin: 0;
    padding: 8px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar-mobile-toggle svg { width: 18px; height: 18px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .profile-trigger { width: 44px; min-height: 44px; margin: 0; padding: 0; justify-content: center; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .profile-trigger-summary,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .profile-trigger > svg,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .sidebar-art { display: none; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .profile-avatar { width: 30px; height: 30px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar:not(.sidebar-menu-open) :is(.sidebar-menu,.sidebar-order-controls) { display: none !important; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar.sidebar-menu-open .sidebar-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    max-height: min(360px, 55dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar.sidebar-menu-open .sidebar-order-controls { grid-column: 1 / -1; grid-row: 3; margin: 0; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .sidebar-menu .nav-button { min-height: 44px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip { min-height: 44px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip .workspace-tab { min-height: 44px; }
  :where(body).c-production-auth #app .content > .heading.module-toolbar { padding: 10px; }
  :where(body).c-production-auth #app .content > .heading.module-toolbar :is(button,input,select) { min-height: 44px; }
  :where(body).c-production-auth #app .content .toolbar-note { font-size: 11px; }
}

:where(body).c-production-auth .process-trial{--pt-green:#177551;--pt-line:#dce5df;--pt-muted:#66766d;min-width:0;max-width:100%;color:#253b30;line-height:1.55}
:where(body).c-production-auth .process-trial *{box-sizing:border-box}
:where(body).c-production-auth .process-trial [hidden]{display:none!important}
:where(body).c-production-auth .process-trial button:disabled{cursor:not-allowed}
:where(body).c-production-auth .process-trial textarea{font:inherit;line-height:1.6;min-width:0;width:100%;resize:vertical;border:1px solid #cbd9cf;border-radius:5px;padding:9px 10px;background:#fff;color:inherit}:where(body).c-production-auth .process-trial textarea:focus{border-color:var(--pt-green);outline:2px solid #dcf2e5}
:where(body).c-production-auth .pt-plan-list{margin-top:14px;max-height:350px}:where(body).c-production-auth .pt-plan-list table{min-width:560px}:where(body).c-production-auth .pt-process-table{min-width:890px}:where(body).c-production-auth .pt-section-spaced{margin-top:28px}:where(body).c-production-auth .pt-operation-stages{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}:where(body).c-production-auth .pt-preline{white-space:pre-line}:where(body).c-production-auth .process-trial .pt-section-head>.pt-actions{margin-left:auto}:where(body).c-production-auth .pt-bom-form-actions{margin-top:14px}
:where(body).c-production-auth .process-trial h1{font-size:24px}:where(body).c-production-auth .process-trial h2{font-size:17px}:where(body).c-production-auth .process-trial h3{font-size:15px}
:where(body).c-production-auth .pt-heading,:where(body).c-production-auth .pt-section-head,:where(body).c-production-auth .pt-toolbar,:where(body).c-production-auth .pt-editor-head,:where(body).c-production-auth .pt-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
:where(body).c-production-auth .pt-heading{align-items:flex-start;margin-bottom:18px}:where(body).c-production-auth .pt-heading p{margin-top:6px;color:var(--pt-muted);font-size:13px}
:where(body).c-production-auth .pt-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}:where(body).c-production-auth .pt-actions button{font-size:13px}
:where(body).c-production-auth .pt-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:3px 8px;border-radius:4px;background:#e8f2ec;color:#216d47;white-space:normal;vertical-align:middle}
:where(body).c-production-auth .pt-tag.warn{background:#fff0d7;color:#85571c}:where(body).c-production-auth .pt-tag.neutral{background:#edf0f1;color:#596970}
:where(body).c-production-auth .pt-banner{display:flex;align-items:flex-start;gap:10px;padding:12px 15px;background:#f0f6f2;border:1px solid #dbe9df;border-radius:7px;margin:12px 0;font-size:13px;overflow-wrap:anywhere}
:where(body).c-production-auth .pt-banner.warn{background:#fff8e9;border-color:#eeddb7;color:#79551e}:where(body).c-production-auth .pt-banner.error{background:#fff2f2;border-color:#edc6cc;color:#9a3748}:where(body).c-production-auth .pt-banner>div{min-width:0;flex:1}:where(body).c-production-auth .pt-banner p+p{margin-top:5px}
:where(body).c-production-auth .pt-empty{padding:54px 24px;border:1px dashed #becfc4;border-radius:10px;background:#fff;text-align:center;max-width:100%}:where(body).c-production-auth .pt-empty>svg{width:44px;height:44px;color:var(--pt-green);margin-bottom:14px}:where(body).c-production-auth .pt-empty h2{font-size:22px}:where(body).c-production-auth .pt-empty p{color:var(--pt-muted);max-width:640px;margin:12px auto 24px;font-size:14px}:where(body).c-production-auth .pt-empty .pt-actions{justify-content:center}
:where(body).c-production-auth .pt-flow{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:26px 0 0;color:#536b5b;font-size:12px}:where(body).c-production-auth .pt-flow span{padding:7px 12px;border:1px solid var(--pt-line);background:#f7faf8;border-radius:5px}
:where(body).c-production-auth .pt-overview{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(100px,1fr));gap:1px;background:var(--pt-line);border:1px solid var(--pt-line);border-radius:8px;overflow:hidden;margin:16px 0}:where(body).c-production-auth .pt-overview>div{background:#fff;padding:16px 18px;min-width:0}:where(body).c-production-auth .pt-overview small{display:block;color:var(--pt-muted);font-size:12px}:where(body).c-production-auth .pt-overview strong{display:block;font-size:24px;font-weight:600;margin-top:4px}:where(body).c-production-auth .pt-overview .pt-project-name{font-size:16px;overflow-wrap:anywhere}:where(body).c-production-auth .pt-overview .pt-project-code{font-size:12px;overflow-wrap:anywhere;margin-top:4px}
:where(body).c-production-auth .pt-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--pt-line);margin:22px 0 18px;padding-bottom:8px;scrollbar-width:thin}:where(body).c-production-auth .pt-tabs button{border:0;background:transparent;color:var(--pt-muted);padding:9px 15px;flex-shrink:0}:where(body).c-production-auth .pt-tabs button.active{background:#e3f1e9;color:#135f40;font-weight:600}
:where(body).c-production-auth .pt-section-head{margin-bottom:13px}:where(body).c-production-auth .pt-section-head p{font-size:12px;color:var(--pt-muted);margin-top:5px}:where(body).c-production-auth .pt-panel{padding:18px;border:1px solid var(--pt-line);border-radius:8px;background:#fff;margin:15px 0;min-width:0}:where(body).c-production-auth .pt-panel>p{font-size:13px;color:var(--pt-muted);margin-top:8px}:where(body).c-production-auth .pt-panel details{margin-top:12px}:where(body).c-production-auth .pt-panel summary{cursor:pointer;font-size:13px;color:#375e47}:where(body).c-production-auth .pt-panel details p{font-size:12px;color:var(--pt-muted);margin:10px 0}
:where(body).c-production-auth .pt-toolbar{padding:12px 0}:where(body).c-production-auth .pt-query{display:flex;align-items:end;gap:8px;max-width:100%;flex-wrap:wrap}:where(body).c-production-auth .pt-query label{font-size:12px;min-width:180px}:where(body).c-production-auth .pt-query input{width:260px;max-width:100%}
:where(body).c-production-auth .pt-scroll{position:relative;min-width:0;width:100%;max-width:100%;overflow:auto;border:1px solid var(--pt-line);border-radius:7px;background:#fff;scrollbar-width:thin}:where(body).c-production-auth .pt-scroll table{width:100%;border-collapse:collapse;table-layout:auto;font-size:12px;text-align:left}:where(body).c-production-auth .pt-scroll th{padding:11px 12px;background:#f3f7f4;color:#607365;font-weight:500;white-space:nowrap;border-bottom:1px solid var(--pt-line)}:where(body).c-production-auth .pt-scroll td{padding:10px 12px;border-bottom:1px solid #eaf0ec;vertical-align:middle;max-width:340px;overflow-wrap:anywhere}:where(body).c-production-auth .pt-scroll tr:last-child td{border-bottom:0}:where(body).c-production-auth .pt-scroll tbody tr:hover{background:#f8fbf9}:where(body).c-production-auth .pt-scroll .pt-nowrap{white-space:nowrap}:where(body).c-production-auth .pt-scroll .pt-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}:where(body).c-production-auth .pt-scroll .pt-source{font-size:11px;color:var(--pt-muted);min-width:140px}:where(body).c-production-auth .pt-scroll .pt-wrap{min-width:170px;max-width:280px;white-space:normal}:where(body).c-production-auth .pt-scroll label{position:relative}:where(body).c-production-auth .pt-scroll input,:where(body).c-production-auth .pt-scroll select{font-size:12px;min-height:34px;max-width:140px}:where(body).c-production-auth .pt-scroll input[type=number]{width:96px}:where(body).c-production-auth .pt-wires-table{min-width:1080px}:where(body).c-production-auth .pt-rules-table{min-width:990px}:where(body).c-production-auth .pt-pin-table{min-width:800px}:where(body).c-production-auth .pt-bom-table{min-width:730px}:where(body).c-production-auth .pt-empty-row{text-align:center;color:var(--pt-muted);padding:30px!important}:where(body).c-production-auth .pt-scroll button{padding:4px 9px;min-height:31px;font-size:12px}
:where(body).c-production-auth .pt-pager{justify-content:flex-end;margin:12px 0;color:var(--pt-muted);font-size:12px}:where(body).c-production-auth .pt-pager button{min-height:32px;font-size:12px}:where(body).c-production-auth .pt-link{border:0;background:transparent;color:var(--pt-green);padding:3px;min-height:24px;text-align:left;white-space:normal}
:where(body).c-production-auth .pt-editor{padding:20px;background:#f7faf8;border:1px solid #bcd6c5;border-radius:8px;margin:16px 0;min-width:0}:where(body).c-production-auth .pt-editor-head{margin-bottom:16px}:where(body).c-production-auth .pt-editor-head p{font-size:12px;color:var(--pt-muted)}:where(body).c-production-auth .pt-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 16px}:where(body).c-production-auth .pt-form-grid label{font-size:12px;min-width:0}:where(body).c-production-auth .pt-form-grid input,:where(body).c-production-auth .pt-form-grid select{width:100%;min-width:0}:where(body).c-production-auth .pt-form-grid .pt-full{grid-column:1/-1}:where(body).c-production-auth .pt-form-grid .pt-check{display:flex;flex-direction:row;align-items:center;gap:8px;align-self:end;min-height:36px}:where(body).c-production-auth .pt-form-grid input[type=checkbox]{width:16px;flex-shrink:0}:where(body).c-production-auth .pt-form-grid small{font-size:11px;color:var(--pt-muted)}:where(body).c-production-auth .pt-editor-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}:where(body).c-production-auth .pt-form-error{font-size:13px;color:#a23144;margin-top:12px}:where(body).c-production-auth .pt-danger{color:#ac3448!important}:where(body).c-production-auth .pt-estimate{background:#edf5ef;border-radius:5px;padding:11px 13px;font-size:13px;color:#245c3b;margin-top:14px}
:where(body).c-production-auth .pt-columns{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:start}:where(body).c-production-auth .pt-connectors{display:grid;gap:7px}:where(body).c-production-auth .pt-connector-button{width:100%;justify-content:flex-start;text-align:left;white-space:normal;display:block;min-width:0;padding:12px}:where(body).c-production-auth .pt-connector-button strong,:where(body).c-production-auth .pt-connector-button small{display:block;overflow-wrap:anywhere}:where(body).c-production-auth .pt-connector-button small{font-size:11px;margin-top:4px;color:var(--pt-muted)}:where(body).c-production-auth .pt-connector-button.active{border-color:#76aa89;background:#edf7f0}:where(body).c-production-auth .pt-connector-content{min-width:0}:where(body).c-production-auth .pt-muted{color:var(--pt-muted);font-size:12px}:where(body).c-production-auth .pt-result-state{font-size:12px;color:var(--pt-muted)}
:where(body).c-production-auth .pt-route-map{width:100%;height:auto;min-height:130px;max-height:230px;display:block;background:#f5f9f6;border-radius:6px;margin:13px 0;color:#456653}:where(body).c-production-auth .pt-route-map .pt-route{fill:none;stroke:#9fc9ae;stroke-width:4}:where(body).c-production-auth .pt-route-map .pt-route.selected{stroke:#197952;stroke-width:6}:where(body).c-production-auth .pt-route-map .pt-node{fill:#fff;stroke:#4f8c64;stroke-width:2}:where(body).c-production-auth .pt-route-map text{fill:#355f43;font-size:13px}:where(body).c-production-auth .pt-route-map .pt-path-label{font-size:11px;fill:#617a6b}
:where(body).c-production-auth .pt-issues{max-height:340px;overflow:auto;margin-top:12px;padding:0;list-style:none;border-top:1px solid var(--pt-line)}:where(body).c-production-auth .pt-issues li{padding:10px 0;border-bottom:1px solid #e5eae7;font-size:12px;overflow-wrap:anywhere}:where(body).c-production-auth .pt-issues strong{color:#845624;margin-right:9px}:where(body).c-production-auth .pt-issues .pt-muted{display:block;margin-top:4px}:where(body).c-production-auth .pt-issues-count{color:#8a5f27}:where(body).c-production-auth .pt-save-note{font-size:12px;color:var(--pt-muted);margin-top:12px}:where(body).c-production-auth .pt-loading{display:flex;gap:10px;align-items:center;font-size:13px;color:#326349;padding:14px 0}:where(body).c-production-auth .pt-progress-dot{width:8px;height:8px;border-radius:50%;background:#2d8b5d;animation:pt-pulse 1s ease-in-out infinite}:where(body).c-production-auth .pt-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:where(body).c-production-auth .pt-disabled-note{font-size:12px;color:#805b25}
@keyframes pt-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){:where(body).c-production-auth .pt-progress-dot{animation:none}}
:where(body).c-production-auth .pw-fields{border:0;padding:0;margin:0;min-width:0}:where(body).c-production-auth .pw-diagram-scroll{overflow:auto;max-width:100%;padding:4px 0}:where(body).c-production-auth .pw-diagram{display:grid;gap:5px;padding:15px;border:2px solid #a8beb0;border-radius:18px;background:#f6faf7;width:max-content;min-width:100%}:where(body).c-production-auth .pw-pin{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:46px;min-height:56px;padding:5px!important;border:1px solid #b8c9c0!important;background:#fff!important}:where(body).c-production-auth .pw-pin strong{font-size:14px}:where(body).c-production-auth .pw-pin small{font-size:10px;white-space:nowrap}:where(body).c-production-auth .pw-pin.occupied{background:#e4f3ea!important;color:#176e49}:where(body).c-production-auth .pw-pin.empty{background:#edf0f2!important;color:#617078}:where(body).c-production-auth .pw-pin.closed{background:#e4e6e7!important;color:#66706a}:where(body).c-production-auth .pw-pin:focus-visible{outline:3px solid #238e62;outline-offset:2px}:where(body).c-production-auth .pw-table{min-width:850px}:where(body).c-production-auth .pw-table input{width:130px}:where(body).c-production-auth .pw-table input[type=checkbox]{min-height:16px;width:16px}:where(body).c-production-auth .pw-table td:has(.pw-select){min-width:65px}:where(body).c-production-auth .pw-select{display:flex!important;flex-direction:row!important;align-items:center;gap:7px}:where(body).c-production-auth .pw-table .pw-match{min-width:165px;max-width:260px}:where(body).c-production-auth .pw-detail{background:#f2f8f4}:where(body).c-production-auth .pw-detail .pt-form-grid input,:where(body).c-production-auth .pw-detail .pt-form-grid select{width:100%;max-width:none}:where(body).c-production-auth .pw-candidates{display:grid;gap:6px;max-height:260px;overflow:auto;margin-top:12px}:where(body).c-production-auth .pw-candidates button{text-align:left;white-space:normal;display:block}:where(body).c-production-auth .pw-footer{margin-top:16px}:where(body).c-production-auth .pw-table tr:focus-within{background:#e9f5ed}:where(body).c-production-auth .pw-workspace>fieldset>.pt-muted{margin-top:6px}:where(body).c-production-auth .pw-workspace input[data-wiring-default]{max-width:100%}
@media(max-width:1100px){:where(body).c-production-auth .pt-overview{grid-template-columns:repeat(3,minmax(0,1fr))}:where(body).c-production-auth .pt-overview>div:first-child{grid-column:1/-1}:where(body).c-production-auth .pt-columns{grid-template-columns:190px minmax(0,1fr)}:where(body).c-production-auth .pt-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){:where(body).c-production-auth .pt-heading{display:block}:where(body).c-production-auth .pt-heading>.pt-actions{margin-top:14px}:where(body).c-production-auth .pt-heading h1{font-size:22px}:where(body).c-production-auth .pt-overview>div{padding:12px}:where(body).c-production-auth .pt-overview strong{font-size:20px}:where(body).c-production-auth .pt-overview small{font-size:11px}:where(body).c-production-auth .pt-overview .pt-project-name{font-size:15px}:where(body).c-production-auth .pt-tabs{margin-top:18px}:where(body).c-production-auth .pt-tabs button{font-size:12px;padding:8px 11px}:where(body).c-production-auth .pt-columns{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .pt-connectors{grid-template-columns:repeat(2,minmax(0,1fr))}:where(body).c-production-auth .pt-form-grid{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .pt-editor,:where(body).c-production-auth .pt-panel{padding:14px}:where(body).c-production-auth .pt-empty{padding:35px 16px}:where(body).c-production-auth .pt-empty h2{font-size:19px}:where(body).c-production-auth .pt-empty p{font-size:13px}:where(body).c-production-auth .pt-banner{padding:10px 12px}:where(body).c-production-auth .pt-query{width:100%}:where(body).c-production-auth .pt-query label{min-width:0;flex:1}:where(body).c-production-auth .pt-query input{width:100%}:where(body).c-production-auth .pt-actions button{font-size:12px;padding:7px 10px}:where(body).c-production-auth .pt-editor-foot>.pt-actions{margin-left:auto}:where(body).c-production-auth .pt-pager{gap:8px}:where(body).c-production-auth .pt-route-map{min-height:100px}:where(body).c-production-auth .pt-toolbar{align-items:stretch}:where(body).c-production-auth .pt-form-grid .pt-full{grid-column:auto}}

/* 2026-10-02: staged terminal and seal selection. */
:where(body).c-production-auth .pw-fitting-steps{display:grid;gap:8px;min-width:190px}:where(body).c-production-auth .pw-fitting-steps label{display:grid;gap:4px}:where(body).c-production-auth .pw-fitting-steps select,:where(body).c-production-auth .pw-fitting-steps input{width:100%;min-width:0}:where(body).c-production-auth .pw-fitting-steps small,:where(body).c-production-auth .pw-fitting-result{white-space:normal;overflow-wrap:anywhere}:where(body).c-production-auth .pw-accessories{overflow-wrap:anywhere}

/* Keep spacing between process cards in line with the shared workspace cards. */
:where(body).c-production-auth .process-trial .pt-heading{margin-bottom:10px}
:where(body).c-production-auth .process-trial .pt-heading:has(> .pt-actions){justify-content:flex-start;align-items:center;gap:10px}
:where(body).c-production-auth .process-trial .pt-heading>.pt-query{flex:1 1 320px}
@media(max-width:700px){:where(body).c-production-auth .process-trial .pt-heading{display:flex}:where(body).c-production-auth .process-trial .pt-heading>.pt-actions{margin-top:0}}
:where(body).c-production-auth .process-trial :is(.pt-panel,.pt-editor,.pt-overview){margin-block:9px}
:where(body).c-production-auth .process-trial .pt-section-spaced{margin-top:16px}
:where(body).c-production-auth .process-trial .pt-tabs{margin-block:14px 10px}
/* 2026-10-05: module names remain visible above their existing actions. */
:where(body).c-production-auth .process-trial .pt-heading>.pt-module-heading{flex:1 1 100%;min-width:0;padding-bottom:8px;border-bottom:1px solid var(--pt-line)}
:where(body).c-production-auth .process-trial .pt-module-heading h1{font-size:18px;line-height:1.35;font-weight:700}
/* 2026-10-12: keep matching, circuit and cut dimensions together at each pin. */
:where(body).c-production-auth .process-trial .pw-cell-fields{display:grid;gap:8px;min-width:135px}:where(body).c-production-auth .process-trial .pw-cell-fields label{display:grid;gap:3px;font-size:11px;color:var(--pt-muted)}:where(body).c-production-auth .process-trial .pw-cell-fields input{width:145px;max-width:100%}:where(body).c-production-auth .process-trial .pw-cell-fields strong{font-size:11px;color:var(--pt-green);white-space:normal}:where(body).c-production-auth .process-trial .pw-table{min-width:1000px}:where(body).c-production-auth .process-trial .pw-table>tbody>tr>td{vertical-align:top;padding-block:14px}:where(body).c-production-auth .process-trial .pw-match{min-width:210px}:where(body).c-production-auth .process-trial .pw-fitting-steps{gap:9px}:where(body).c-production-auth .process-trial .pw-footer{padding-top:12px;border-top:1px solid var(--pt-line)}
:where(body).c-production-auth .process-trial .pt-quick-editor>p,:where(body).c-production-auth .process-trial .pt-transition-editor>p{margin-block:10px 18px;font-size:13px;color:var(--pt-muted)}:where(body).c-production-auth .process-trial .pt-quick-editor form>label{display:grid;gap:8px;font-size:13px}:where(body).c-production-auth .process-trial .pt-quick-editor details{margin-block:12px;font-size:12px}:where(body).c-production-auth .process-trial .pt-quick-editor code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin-block:8px}:where(body).c-production-auth .process-trial .pt-quick-preview{margin-top:16px}:where(body).c-production-auth .process-trial .pt-check{display:flex;align-items:flex-start;gap:8px;font-size:13px}:where(body).c-production-auth .process-trial .pt-check input[type=checkbox]{width:16px;height:16px;flex-shrink:0;margin-top:3px}:where(body).c-production-auth .process-trial .pt-transition-review form{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}:where(body).c-production-auth .process-trial .pt-transition-editor .pt-check{margin-top:18px}:where(body).c-production-auth .process-trial .pt-transition-editor .pt-form-grid{gap:18px 22px}
@media(max-width:700px){:where(body).c-production-auth .process-trial .pt-transition-review form>button{width:100%}:where(body).c-production-auth .process-trial .pt-quick-editor{padding:14px}:where(body).c-production-auth .process-trial .pt-quick-editor .pt-editor-foot button{flex:1 1 150px}:where(body).c-production-auth .process-trial .pt-quick-preview table{min-width:660px}}

:where(body).c-production-auth .pfa{min-width:0;max-width:100%;line-height:1.6;color:#263e33}:where(body).c-production-auth .pfa *{box-sizing:border-box}:where(body).c-production-auth .pfa [hidden]{display:none!important}:where(body).c-production-auth .pfa h1{font-size:23px;margin:0}:where(body).c-production-auth .pfa h2{font-size:17px;margin:0}:where(body).c-production-auth .pfa h3{font-size:14px;margin:10px 0}:where(body).c-production-auth .pfa p{margin:6px 0;color:#69796f;font-size:13px}:where(body).c-production-auth .pfa-header,:where(body).c-production-auth .pfa-actions,:where(body).c-production-auth .pfa-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}:where(body).c-production-auth .pfa-header{align-items:flex-start;margin-bottom:18px}:where(body).c-production-auth .pfa-actions{justify-content:flex-start;gap:8px}:where(body).c-production-auth .pfa button{min-height:35px}:where(body).c-production-auth .pfa button:disabled{cursor:not-allowed}:where(body).c-production-auth .pfa label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px}:where(body).c-production-auth .pfa-panel{padding:18px;background:#fff;border:1px solid #dbe5de;border-radius:8px;margin:16px 0;min-width:0}:where(body).c-production-auth .pfa-section{margin:26px 0;min-width:0}:where(body).c-production-auth .pfa-section-head{margin-bottom:12px}:where(body).c-production-auth .pfa-notice{padding:12px 15px;border:1px solid #d9e7dd;background:#f0f7f2;border-radius:6px;font-size:13px;margin:12px 0;overflow-wrap:anywhere}:where(body).c-production-auth .pfa-notice.warn{background:#fff7e6;border-color:#eddbb3;color:#7b581f}:where(body).c-production-auth .pfa-notice.error{background:#fff0f1;border-color:#edc4ca;color:#9b3547}:where(body).c-production-auth .pfa-notice .pfa-actions{margin-top:10px}:where(body).c-production-auth .pfa-badge{display:inline-block;padding:2px 7px;background:#edf5ef;color:#2b714c;border-radius:4px;font-size:11px}:where(body).c-production-auth .pfa-badge.warn{background:#fff0d5;color:#885d21}:where(body).c-production-auth .pfa-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}:where(body).c-production-auth .pfa-basics{grid-template-columns:repeat(3,minmax(0,1fr))}:where(body).c-production-auth .pfa input,:where(body).c-production-auth .pfa select,:where(body).c-production-auth .pfa textarea{min-width:0;font:inherit}:where(body).c-production-auth .pfa-form-grid input,:where(body).c-production-auth .pfa-form-grid select,:where(body).c-production-auth .pfa-form-grid textarea{width:100%}:where(body).c-production-auth .pfa-form-grid textarea{padding:9px;border:1px solid #cad8cf;border-radius:4px;resize:vertical;line-height:1.5}:where(body).c-production-auth .pfa-check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;min-height:36px;align-self:end}:where(body).c-production-auth .pfa-check input{width:16px!important;min-height:auto}:where(body).c-production-auth .pfa-span{grid-column:1/-1}:where(body).c-production-auth .pfa details{margin:12px 0}:where(body).c-production-auth .pfa summary{cursor:pointer;font-size:13px;color:#496653}:where(body).c-production-auth .pfa details>.pfa-form-grid{margin-top:14px}:where(body).c-production-auth .pfa-file-menu{margin:0!important}:where(body).c-production-auth .pfa-file-menu>summary{padding:6px 11px;border:1px solid #ccd9d0;border-radius:5px;min-height:35px;background:#fff}:where(body).c-production-auth .pfa-file-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding-top:8px}:where(body).c-production-auth .pfa-search{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}:where(body).c-production-auth .pfa-search label{max-width:100%}:where(body).c-production-auth .pfa-search input{width:330px;max-width:100%}:where(body).c-production-auth .pfa-scroll{position:relative;width:100%;max-width:100%;min-width:0;overflow:auto;border:1px solid #dbe5de;border-radius:6px;background:white}:where(body).c-production-auth .pfa-scroll table{width:100%;min-width:790px;font-size:12px;border-collapse:collapse;text-align:left}:where(body).c-production-auth .pfa-scroll th{background:#f2f6f3;color:#63766a;white-space:nowrap;font-size:12px;padding:10px}:where(body).c-production-auth .pfa-scroll td{padding:10px;border-bottom:1px solid #e7eee9;max-width:300px;overflow-wrap:anywhere;vertical-align:top}:where(body).c-production-auth .pfa-scroll tr:last-child td{border-bottom:0}:where(body).c-production-auth .pfa-scroll td .pfa-actions{flex-wrap:nowrap}:where(body).c-production-auth .pfa-inline-table{min-width:930px!important}:where(body).c-production-auth .pfa-inline-table td input,:where(body).c-production-auth .pfa-inline-table td select{width:100%;min-width:100px}:where(body).c-production-auth .pfa-inline-table .pfa-cell-field{min-width:130px}:where(body).c-production-auth .pfa-inline-table .pfa-cell-field label{font-size:11px;color:#718175}:where(body).c-production-auth .pfa-inline-table .pfa-cell-field input{font-size:13px;color:#263e33}:where(body).c-production-auth .pfa-range{display:flex;align-items:end;gap:6px;min-width:205px}:where(body).c-production-auth .pfa-range>span{padding-bottom:8px}:where(body).c-production-auth .pfa-range .pfa-cell-field{min-width:80px;flex:1}:where(body).c-production-auth .pfa-range input{min-width:80px!important}:where(body).c-production-auth .pfa-more-row td{padding:0;max-width:none;background:#f6faf7}:where(body).c-production-auth .pfa-more-body{padding:17px;min-width:0}:where(body).c-production-auth .pfa-more-body>.pfa-form-grid{margin-bottom:14px}:where(body).c-production-auth .pfa-more-body input,:where(body).c-production-auth .pfa-more-body select{min-width:0!important}:where(body).c-production-auth .pfa-empty{padding:32px 18px!important;text-align:center;color:#6b7c71}:where(body).c-production-auth .pfa-add-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}:where(body).c-production-auth .pfa-add-row select{min-width:150px}:where(body).c-production-auth .pfa-group{padding-top:12px;margin-top:12px;border-top:1px solid #dce6df}:where(body).c-production-auth .pfa-advanced>summary{font-weight:600}:where(body).c-production-auth .pfa-undo-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0}:where(body).c-production-auth .pfa-muted{font-size:11px;color:#748279}:where(body).c-production-auth .pfa-result-list{max-height:310px;overflow:auto;margin:12px 0}:where(body).c-production-auth .pfa-result-list button{display:block;width:100%;text-align:left;white-space:normal;margin-bottom:5px;line-height:1.6}:where(body).c-production-auth .pfa-result-list small{display:block;color:#6e7e72}:where(body).c-production-auth .pfa-preview-errors{max-height:260px;overflow:auto;padding-left:20px;font-size:12px;overflow-wrap:anywhere}:where(body).c-production-auth .pfa-section-head .pfa-actions{margin-left:auto}:where(body).c-production-auth .pfa-count{font-size:12px;color:#5b7163}:where(body).c-production-auth .pfa-danger{color:#a43a48!important}:where(body).c-production-auth .pfa-search-block{padding:14px;background:#eef6f1;border:1px solid #bed5c6;border-radius:5px;margin:14px 0}:where(body).c-production-auth .pfa-rule-help{padding:10px 0;font-size:12px;color:#65796d}:where(body).c-production-auth .pfa-pager{justify-content:flex-end;margin:13px 0;font-size:12px;color:#5d7264}
@media(max-width:1100px){:where(body).c-production-auth .pfa-form-grid,:where(body).c-production-auth .pfa-basics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){:where(body).c-production-auth .pfa-form-grid,:where(body).c-production-auth .pfa-basics{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .pfa-panel,:where(body).c-production-auth .pfa-more-body{padding:13px}:where(body).c-production-auth .pfa-header h1{font-size:21px}:where(body).c-production-auth .pfa-search{align-items:stretch}:where(body).c-production-auth .pfa-search label{flex:1;min-width:0}:where(body).c-production-auth .pfa-search input{width:100%}:where(body).c-production-auth .pfa-actions button{font-size:12px;padding:7px 9px}:where(body).c-production-auth .pfa-span{grid-column:auto}:where(body).c-production-auth .pfa-notice{padding:10px}:where(body).c-production-auth .pfa-header>.pfa-actions{width:100%}:where(body).c-production-auth .pfa-add-row{align-items:stretch}:where(body).c-production-auth .pfa-add-row label{flex:1;min-width:140px}:where(body).c-production-auth .pfa-undo-list>div{flex-wrap:wrap}:where(body).c-production-auth .pfa-more-body .pfa-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
:where(body).c-production-auth .pfa-overlay{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:#162c2473;overscroll-behavior:contain}
:where(body).c-production-auth #app .main:has(.pfa-overlay){position:relative;z-index:30}
:where(body).c-production-auth .pfa-modal{position:relative;display:flex;flex-direction:column;min-width:0;width:min(1220px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);background:#fff;border-radius:9px;box-shadow:0 18px 55px #17302440;overflow:visible}
:where(body).c-production-auth .pfa-modal-head,:where(body).c-production-auth .pfa-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;flex-shrink:0;background:#fff}
:where(body).c-production-auth .pfa-modal-head{position:relative;z-index:5;border-bottom:1px solid #dbe5de;border-radius:9px 9px 0 0}:where(body).c-production-auth .pfa-modal-head>div:first-child{min-width:0;flex:1}:where(body).c-production-auth .pfa-modal-head h2{font-size:19px;overflow-wrap:anywhere}:where(body).c-production-auth .pfa-modal-head p{margin:2px 0 0}:where(body).c-production-auth .pfa-modal-foot{justify-content:flex-end;border-top:1px solid #dbe5de;border-radius:0 0 9px 9px}
:where(body).c-production-auth .pfa-modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 22px 18px}:where(body).c-production-auth .pfa-modal-body .pfa-panel:first-of-type{margin-top:18px}
:where(body).c-production-auth .pfa-modal-head .pfa-file-menu{position:relative}:where(body).c-production-auth .pfa-modal-head .pfa-file-actions{position:absolute;top:100%;right:0;z-index:6;width:220px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 150px);overflow:auto;padding:8px;background:var(--pc-head,#fff);border:1px solid var(--line,#ccd9d0);border-radius:6px;box-shadow:0 8px 24px #17302430}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa-modal{background:var(--pc-head,#f3fafb);border:1px solid var(--glass-line);box-shadow:var(--glass-glow),var(--glass-shadow)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa-modal-head,html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa-modal-foot{background:var(--pc-head,#f3fafb);border-color:var(--glass-line)}
@media(max-width:700px){:where(body).c-production-auth .pfa-overlay{padding:8px}:where(body).c-production-auth .pfa-modal{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}:where(body).c-production-auth .pfa-modal-head,:where(body).c-production-auth .pfa-modal-foot{padding:11px 14px}:where(body).c-production-auth .pfa-modal-head{align-items:flex-start;flex-wrap:wrap}:where(body).c-production-auth .pfa-modal-head h2{font-size:16px}:where(body).c-production-auth .pfa-modal-head .pfa-actions{width:100%;justify-content:flex-end}:where(body).c-production-auth .pfa-modal-body{padding:0 14px 12px}:where(body).c-production-auth .pfa-modal-foot button{flex:1}}


/* 2026-10-01: housing model lookup stays inside the current editor. */
:where(body).c-production-auth .pfa-model-field{min-width:0}:where(body).c-production-auth .pfa-model-field>label{margin-bottom:4px}:where(body).c-production-auth .pfa-model-control{position:relative;min-width:0}:where(body).c-production-auth .pfa-model-control>input{width:100%;min-width:0}:where(body).c-production-auth .pfa-housing-options{position:absolute;inset-inline:0;top:calc(100% + 4px);z-index:8;max-height:min(280px,38vh);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #abcbb7;border-radius:6px;box-shadow:0 7px 20px #244a3326;min-width:0;scroll-padding:4px}:where(body).c-production-auth .pfa-housing-options>button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e0e9e3;border-radius:0;background:#fff;padding:9px 11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;min-width:0}:where(body).c-production-auth .pfa-housing-options>button:hover,:where(body).c-production-auth .pfa-housing-options>button[aria-selected="true"]{background:#eaf5ee;color:#175d38}:where(body).c-production-auth .pfa-housing-options strong,:where(body).c-production-auth .pfa-housing-options span{display:block;font-size:12px}:where(body).c-production-auth .pfa-housing-options span{color:#65776c;font-size:11px}:where(body).c-production-auth .pfa-housing-options>p{padding:10px;margin:0;font-size:12px;overflow-wrap:anywhere}:where(body).c-production-auth .pfa .pfa-housing-summary{font-size:11px;line-height:1.5;margin:5px 0 0;color:#5d7567;overflow-wrap:anywhere}

/* 2026-10-02: sequential fitting cards. */
:where(body).c-production-auth .pfa-flow{padding:12px 0;font-weight:600;line-height:1.8;overflow-wrap:anywhere}:where(body).c-production-auth .pfa-fitting-card{border:1px solid #dbe5de;border-radius:8px;padding:16px;margin:12px 0;background:#fff}:where(body).c-production-auth .pfa-staged-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}:where(body).c-production-auth .pfa-staged-grid section{min-width:0}:where(body).c-production-auth .pfa-staged-grid fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:8px}:where(body).c-production-auth .pfa-staged-grid fieldset:disabled{opacity:.55}:where(body).c-production-auth .pfa-fitting-card .pfa-actions{margin-top:10px}:where(body).c-production-auth .pfa-staged-grid h3{margin-bottom:10px}:where(body).c-production-auth .pfa-fitting-card .pfa-more-body{margin-top:12px}@media(max-width:700px){:where(body).c-production-auth .pfa-staged-grid{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .pfa-fitting-card{padding:12px}:where(body).c-production-auth .pfa-fitting-card .pfa-more-body .pfa-form-grid{grid-template-columns:minmax(0,1fr)}}

/* 2026-10-03: shared fitting form alignment, scoped to archive and quick editor. */
:where(body).c-production-auth .pfa{container-type:inline-size}
:where(body).c-production-auth .pfa .pfa-basics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;margin-top:12px;align-items:start}
:where(body).c-production-auth .pfa label{line-height:18px}
:where(body).c-production-auth .pfa input:not([type="checkbox"]),:where(body).c-production-auth .pfa select{height:36px;padding:7px 10px}
:where(body).c-production-auth .pfa input[type="checkbox"]{height:16px;flex-shrink:0}
:where(body).c-production-auth .pfa .pfa-section{padding:18px;background:#fff;border:1px solid #dbe5de;border-radius:8px;margin:16px 0}
:where(body).c-production-auth .pfa .pfa-section-head{align-items:center;margin-bottom:16px}
:where(body).c-production-auth .pfa .pfa-section-head>div:first-child{min-width:0}
:where(body).c-production-auth .pfa .pfa-section-head>button{margin-left:auto;flex-shrink:0}
:where(body).c-production-auth .pfa .pfa-fitting-card{margin:12px 0 0;padding:16px}
:where(body).c-production-auth .pfa .pfa-fitting-card .pfa-section-head .pfa-actions{margin-top:0}
:where(body).c-production-auth .pfa .pfa-staged-grid{gap:16px;align-items:start}
:where(body).c-production-auth .pfa .pfa-step-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:10px}
:where(body).c-production-auth .pfa .pfa-step-head h3{margin:0;line-height:22px}
:where(body).c-production-auth .pfa .pfa-step-head .pfa-check{min-height:28px;align-self:auto;white-space:nowrap}
:where(body).c-production-auth .pfa .pfa-staged-grid fieldset{gap:12px;align-content:start}
:where(body).c-production-auth .pfa .pfa-staged-grid input,:where(body).c-production-auth .pfa .pfa-staged-grid select{width:100%}
:where(body).c-production-auth .pfa .pfa-staged-grid p{margin:0;line-height:18px}
:where(body).c-production-auth .pfa .pfa-add-row{align-items:flex-end;gap:10px}
:where(body).c-production-auth .pfa .pfa-add-row button{height:36px}
:where(body).c-production-auth .pfa .pfa-scroll-empty{overflow:hidden}
:where(body).c-production-auth .pfa .pfa-scroll-empty .pfa-inline-table{min-width:0!important;table-layout:fixed}
@container(max-width:700px){:where(body).c-production-auth .pfa .pfa-basics{grid-template-columns:repeat(2,minmax(0,1fr))}:where(body).c-production-auth .pfa .pfa-staged-grid{grid-template-columns:minmax(0,1fr);gap:20px}:where(body).c-production-auth .pfa .pfa-panel,:where(body).c-production-auth .pfa .pfa-section{padding:14px}:where(body).c-production-auth .pfa .pfa-fitting-card{padding:12px}:where(body).c-production-auth .pfa .pfa-step-head{justify-content:flex-start}:where(body).c-production-auth .pfa .pfa-step-head .pfa-check{margin-left:auto}}
@container(max-width:430px){:where(body).c-production-auth .pfa .pfa-basics{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .pfa .pfa-section-head{gap:8px}:where(body).c-production-auth .pfa .pfa-section-head>div:first-child{flex:1 1 100%}:where(body).c-production-auth .pfa .pfa-fitting-card>.pfa-section-head>div:first-child{flex:0 1 auto}:where(body).c-production-auth .pfa .pfa-fitting-card .pfa-section-head .pfa-actions{margin-left:auto}:where(body).c-production-auth .pfa .pfa-add-row label{flex:1 1 100%;min-width:0}:where(body).c-production-auth .pfa .pfa-add-row button{margin-left:auto}}

:where(body).c-production-auth .pfa .pfa-scroll-empty th{white-space:normal;overflow-wrap:anywhere}

/* 2026-10-03: full-width panels with consistent, wrapping 120/240px fields. */
:where(body).c-production-auth .pfa .pfa-fitting-card{padding:12px}
:where(body).c-production-auth .pfa .pfa-basics{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
:where(body).c-production-auth .pfa .pfa-basics>label{flex:0 1 120px;width:120px;max-width:100%}
:where(body).c-production-auth .pfa .pfa-basics>.pfa-model-field{flex:0 1 240px;width:240px;max-width:100%}
:where(body).c-production-auth .pfa .pfa-staged-grid{grid-template-columns:252px minmax(240px,372px) minmax(180px,1fr);gap:12px;align-items:start}
:where(body).c-production-auth .pfa .pfa-staged-grid:has(option[value="required"]:checked){grid-template-columns:252px minmax(240px,372px) minmax(240px,1fr)}
:where(body).c-production-auth .pfa .pfa-staged-grid fieldset{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;align-content:flex-start}
:where(body).c-production-auth .pfa .pfa-staged-grid fieldset>label,:where(body).c-production-auth .pfa .pfa-staged-grid .pfa-cell-field{flex:0 1 120px;width:120px;max-width:100%}
:where(body).c-production-auth .pfa .pfa-staged-grid .pfa-cell-field:has(input[data-pfa-path$=".model"]){flex-basis:240px;width:240px}
:where(body).c-production-auth .pfa .pfa-staged-grid fieldset>p{flex:1 1 100%}
:where(body).c-production-auth .pfa .pfa-staged-grid label{width:100%}
:where(body).c-production-auth .pfa .pfa-step-head .pfa-check{width:auto}
@container(max-width:860px){:where(body).c-production-auth .pfa .pfa-staged-grid{display:flex;flex-wrap:wrap}:where(body).c-production-auth .pfa .pfa-staged-grid>section{flex:0 1 372px;width:372px;max-width:100%}:where(body).c-production-auth .pfa .pfa-staged-grid>section:first-child{flex-basis:252px;width:252px}:where(body).c-production-auth .pfa .pfa-step-head{justify-content:flex-start}:where(body).c-production-auth .pfa .pfa-step-head .pfa-check{margin-left:auto}}

/* Tighten the space between assembly cards without changing form-field spacing. */
:where(body).c-production-auth .pfa .pfa-header{margin-bottom:10px}
:where(body).c-production-auth .pfa .pfa-header.module-toolbar{align-items:end;justify-content:flex-start;gap:10px}
:where(body).c-production-auth .pfa .pfa-header.module-toolbar>.pfa-search{flex:1 1 360px;margin:0;min-width:min(100%,240px)}
:where(body).c-production-auth .pfa .pfa-header.module-toolbar>.pfa-actions{margin-left:auto}
@media(max-width:700px){:where(body).c-production-auth .pfa .pfa-header.module-toolbar>.pfa-search{flex-basis:100%}:where(body).c-production-auth .pfa .pfa-header.module-toolbar>.pfa-actions{margin-left:0}}
:where(body).c-production-auth .pfa :is(.pfa-panel,.pfa-section){margin-block:9px}
:where(body).c-production-auth .pfa .pfa-fitting-card{margin-block:9px 0}
:where(body).c-production-auth .pfa .pfa-notice{margin-block:8px}
:where(body).c-production-auth .pfa-modal-body .pfa-panel:first-of-type{margin-top:10px}

/* 2026-10-04: one glass surface, with in-page field navigation and simple dividers. */
:where(body).c-production-auth .pfa .pfa-editor-card{min-width:0;margin:8px 0;padding:0 18px 16px;border:1px solid #dbe5de;border-radius:12px;background:#ffffffb3;--pfa-scroll-offset:80px}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-editor-card{background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.06));border-color:var(--glass-line);box-shadow:var(--glass-glow),var(--glass-shadow);backdrop-filter:blur(18px) saturate(116%) brightness(1.04);-webkit-backdrop-filter:blur(18px) saturate(116%) brightness(1.04)}
:where(body).c-production-auth .pfa .pfa-editor-card .pfa-flow{position:sticky;top:8px;z-index:3;display:flex;flex-wrap:wrap;gap:4px;margin:0 -18px 0;padding:10px 18px;background:var(--pc-head,#f2f6f3);border-bottom:1px solid var(--line,#dbe5de);border-radius:11px 11px 0 0}
:where(body).c-production-auth .pfa .pfa-flow button{min-height:44px;padding:8px 14px;border:0;border-radius:6px;background:transparent;color:inherit;font-weight:600}
:where(body).c-production-auth .pfa .pfa-flow button:hover{background:color-mix(in srgb,var(--pc-soft,#eaf4ee) 85%,transparent)}
:where(body).c-production-auth .pfa .pfa-flow button[aria-current]{color:var(--pc-accent,var(--green,#087c82));background:color-mix(in srgb,var(--pc-soft,#eaf4ee) 90%,transparent);box-shadow:inset 0 -2px var(--pc-accent,var(--green,#087c82))}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-editor-card :is(.pfa-section,.pfa-fitting-card,.pfa-scroll),:where(body).c-production-auth .pfa .pfa-editor-card :is(.pfa-section,.pfa-fitting-card,.pfa-scroll){background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:0}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-editor-card .pfa-section,
:where(body).c-production-auth .pfa .pfa-editor-card .pfa-section{margin:0;padding:16px 0;border:0;border-top:1px solid var(--line,#dbe5de)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-editor-card .pfa-housing-section,
:where(body).c-production-auth .pfa .pfa-editor-card .pfa-housing-section{border-top:0}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-editor-card .pfa-fitting-card,
:where(body).c-production-auth .pfa .pfa-editor-card .pfa-fitting-card{margin:12px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--line,#dbe5de)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-editor-card .pfa-scroll,
:where(body).c-production-auth .pfa .pfa-editor-card .pfa-scroll{border:1px solid var(--line,#dbe5de);border-radius:4px}
:where(body).c-production-auth .pfa .pfa-editor-card .pfa-more-row td{background:transparent}
:where(body).c-production-auth .pfa .pfa-editor-detail{padding:12px 0;margin:0;border-top:1px solid var(--line,#dbe5de)}
:where(body).c-production-auth .pfa .pfa-editor-detail>summary{min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}
:where(body).c-production-auth .pfa .pfa-editor-detail>summary::before{content:'›';font-size:20px;transform:rotate(0deg)}
:where(body).c-production-auth .pfa .pfa-editor-detail[open]>summary::before{transform:rotate(90deg)}
:where(body).c-production-auth .pfa .pfa-editor-detail>summary::-webkit-details-marker{display:none}
:where(body).c-production-auth .pfa .pfa-group .pfa-section-head{margin-bottom:12px}
:where(body).c-production-auth .pfa .pfa-group .pfa-section-head h3{margin:0;overflow-wrap:anywhere}
:where(body).c-production-auth .pfa .pfa-group-error{color:#a53539;padding:8px 0;border-left:3px solid currentColor;padding-left:10px}
:where(body).c-production-auth .pfa [data-pfa-stage]{scroll-margin-top:var(--pfa-scroll-offset)}
:where(body).c-production-auth .pfa [data-pfa-stage]:focus-visible,:where(body).c-production-auth .pfa .pfa-flow button:focus-visible,:where(body).c-production-auth .pfa .pfa-editor-detail>summary:focus-visible{outline:2px solid var(--pc-accent,var(--green,#087c82));outline-offset:4px}
:where(body).c-production-auth .pfa .pfa-editor-card .pfa-undo-list{max-width:100%}
@container(max-width:700px){
  :where(body).c-production-auth .pfa .pfa-editor-card{padding-inline:12px}
  :where(body).c-production-auth .pfa .pfa-editor-card .pfa-flow{margin-inline:-12px;padding:8px 12px;top:4px}
  :where(body).c-production-auth .pfa .pfa-editor-card button{min-height:44px}
  :where(body).c-production-auth .pfa .pfa-flow button{padding-inline:10px}
  :where(body).c-production-auth .pfa .pfa-editor-card .pfa-more-body .pfa-form-grid{grid-template-columns:minmax(0,1fr)}
}

/* 2026-10-05: visible module title and compact reference-sized list typography. */
:where(body).c-production-auth .pfa .pfa-list-toolbar{padding:10px 14px;margin:8px 0;background:#ffffffb3;border:1px solid #dbe5de;border-radius:12px}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-list-toolbar{background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.06));border-color:var(--glass-line);box-shadow:var(--glass-glow),var(--glass-shadow);backdrop-filter:blur(18px) saturate(116%) brightness(1.04);-webkit-backdrop-filter:blur(18px) saturate(116%) brightness(1.04)}
:where(body).c-production-auth .pfa .pfa-list-toolbar .pfa-module-heading{flex:1 1 100%;padding-bottom:8px;border-bottom:1px solid var(--line,#dbe5de)}
:where(body).c-production-auth .pfa .pfa-list-toolbar h1{font-size:18px;line-height:1.35;font-weight:700}
:where(body).c-production-auth .pfa .pfa-list-toolbar :is(input,button){font-size:13px}
:where(body).c-production-auth .pfa .pfa-list-toolbar+.pfa-scroll :is(table,th,td){font-size:13px}
@container(max-width:700px){
  :where(body).c-production-auth .pfa .pfa-list-toolbar{padding:10px 12px}
  :where(body).c-production-auth .pfa .pfa-list-toolbar button{min-height:44px}
  :where(body).c-production-auth .pfa .pfa-list-toolbar>.pfa-actions{width:auto;margin-left:auto}
}

/* 2026-10-05: fill the fitting dialog and expose selected material metadata. */
:where(body).c-production-auth .pfa .pfa-modal-body{container-type:inline-size}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section:first-child>fieldset>.pfa-cell-field:only-child{grid-column:1/-1}
:where(body).c-production-auth .pfa .pfa-modal .pfa-basics{display:grid;grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr));gap:12px}
:where(body).c-production-auth .pfa .pfa-modal .pfa-basics>label,:where(body).c-production-auth .pfa .pfa-modal .pfa-basics>.pfa-model-field{width:100%;max-width:100%;min-width:0}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid,:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid:has(option[value="required"]:checked){display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr) minmax(0,2fr);gap:12px}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section,:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section:first-child{width:auto;min-width:0;max-width:100%}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section:nth-child(2)>fieldset{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid fieldset>label,:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid fieldset>.pfa-cell-field,:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid .pfa-cell-field:has(input[data-pfa-path$=".model"]){width:100%;max-width:100%;min-width:0}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section:nth-child(3)>fieldset>label:has(select),:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section:nth-child(3)>fieldset>.pfa-cell-field:has(input[data-pfa-path$=".model"]),:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid fieldset>p{grid-column:1/-1}
:where(body).c-production-auth .pfa .pfa-modal .pfa-material-info{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:10px;min-width:0}
:where(body).c-production-auth .pfa .pfa-modal .pfa-material-info>label{width:100%;min-width:0}
:where(body).c-production-auth .pfa .pfa-modal .pfa-material-info input{width:100%;min-width:0!important}
:where(body).c-production-auth .pfa .pfa-modal input[readonly]{background:var(--pc-head,#eef4f5);color:inherit;cursor:text}
@container(max-width:860px){
  :where(body).c-production-auth .pfa .pfa-modal .pfa-basics{grid-template-columns:repeat(2,minmax(0,1fr))}
  :where(body).c-production-auth .pfa .pfa-modal .pfa-basics>.pfa-model-field{grid-column:1/-1}
  :where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid,:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid:has(option[value="required"]:checked){grid-template-columns:minmax(0,1fr)}
}
@container(max-width:430px){
  :where(body).c-production-auth .pfa .pfa-modal .pfa-basics{grid-template-columns:minmax(0,1fr)}
  :where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section:nth-child(2)>fieldset{grid-template-columns:minmax(0,1fr)}
}

/* 2026-10-06: distinct editor regions and fitting columns, without nested blur. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-modal .pfa-editor-card>.pfa-section,
:where(body).c-production-auth .pfa .pfa-modal .pfa-editor-card>.pfa-section{
  margin:12px 0 0;padding:16px;border:1px solid var(--line,#cadbd5);border-radius:10px;
  background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.06));
  box-shadow:inset 0 1px rgba(255,255,255,.5);backdrop-filter:none;-webkit-backdrop-filter:none;
}
:where(body).c-production-auth .pfa .pfa-modal .pfa-housing-section>h2,
:where(body).c-production-auth .pfa .pfa-modal .pfa-editor-card>.pfa-section>.pfa-section-head{
  margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line,#cadbd5);
}
:where(body).c-production-auth .pfa .pfa-modal .pfa-housing-section>h2,
:where(body).c-production-auth .pfa .pfa-modal .pfa-editor-card>.pfa-section>.pfa-section-head h2{
  padding-left:10px;border-left:3px solid var(--pc-accent,var(--green,#087c82));line-height:1.4;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-modal .pfa-editor-card .pfa-fitting-card,
:where(body).c-production-auth .pfa .pfa-modal .pfa-editor-card .pfa-fitting-card{
  margin:12px 0 0;padding:12px;border:1px solid var(--line,#cadbd5);border-radius:10px;
  background:rgba(255,255,255,.08);box-shadow:inset 0 1px rgba(255,255,255,.4);
}
:where(body).c-production-auth .pfa .pfa-modal .pfa-fitting-card>.pfa-section-head{
  margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line,#cadbd5);
}
:where(body).c-production-auth .pfa .pfa-modal .pfa-fitting-card>.pfa-section-head strong{font-size:14px}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid{align-items:stretch}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section{
  padding:12px;border:1px solid var(--line,#cadbd5);border-radius:8px;
  background:rgba(255,255,255,.1);overflow:visible;
}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid .pfa-step-head{
  min-height:36px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--line,#cadbd5);
  gap:8px;flex-wrap:wrap;
}
:where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid .pfa-step-head h3{margin:0}
:where(body).c-production-auth .pfa .pfa-modal .pfa-fitting-card>.pfa-more-body{margin-top:12px;padding:12px;border:1px solid var(--line,#cadbd5);border-radius:8px}
@container(max-width:860px){
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-modal .pfa-editor-card>.pfa-section,
  :where(body).c-production-auth .pfa .pfa-modal .pfa-editor-card>.pfa-section{padding:12px}
}
@container(max-width:430px){
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-modal .pfa-editor-card>.pfa-section,
  :where(body).c-production-auth .pfa .pfa-modal .pfa-editor-card>.pfa-section,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-modal .pfa-editor-card .pfa-fitting-card,
  :where(body).c-production-auth .pfa .pfa-modal .pfa-editor-card .pfa-fitting-card,
  :where(body).c-production-auth .pfa .pfa-modal .pfa-staged-grid>section{padding:10px}
}

/* 2026-10-06: consistent dialog fields, with distinct editable/readonly states. */
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal{
  --pfa-field-line:color-mix(in srgb,var(--pc-accent,var(--green,#087c82)) 22%,var(--line,#cadbd5));
}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea){
  min-height:36px;padding:8px 11px;border:1px solid var(--pfa-field-line);border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.48),rgba(255,255,255,.28));
  color:inherit;font-size:13px;line-height:1.4;
  box-shadow:inset 0 1px rgba(255,255,255,.65),0 1px 2px rgba(15,39,71,.04);
  transition:border-color .15s ease,box-shadow .15s ease;
}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input,textarea)::placeholder{color:var(--muted,#69796f);opacity:.85}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea):not([readonly]):not(:disabled):hover{
  border-color:color-mix(in srgb,var(--pc-accent,var(--green,#087c82)) 50%,var(--line,#cadbd5));
}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea):focus{
  border-color:var(--pc-accent,var(--green,#087c82));outline:2px solid color-mix(in srgb,var(--pc-accent,var(--green,#087c82)) 24%,transparent);outline-offset:2px;
  box-shadow:inset 0 1px rgba(255,255,255,.65);
}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input,textarea)[readonly]{
  background:color-mix(in srgb,var(--pc-head,#eef4f5) 70%,transparent);
  border-color:var(--line,#cadbd5);box-shadow:inset 0 1px rgba(255,255,255,.3);cursor:text;
}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input,select,textarea):disabled{opacity:.6;cursor:not-allowed}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input,select,textarea)[aria-invalid="true"]{border-color:#b43e4e;outline-color:rgba(180,62,78,.25)}
@container(max-width:430px){
  :where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),select,textarea){min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  :where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input,select,textarea){transition:none}
}

/* 2026-10-06: compact assembly list, scoped away from editor accessory tables. */
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-scroll :is(th,td){text-align:center;border-right:1px solid var(--line,#cadbd5);border-bottom:1px solid var(--line,#cadbd5)}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-scroll :is(th,td):last-child{border-right:0}
:where(body).c-production-auth .pfa .pfa-list-actions{display:flex;align-items:center;justify-content:center;gap:6px}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-scroll .pfa-list-delete{color:#a53543;border-color:color-mix(in srgb,#a53543 40%,var(--line,#cadbd5));background:rgba(255,240,242,.45)}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-scroll th{padding:6px 10px;line-height:1.4}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-scroll td:not(.pfa-empty){padding:5px 10px;vertical-align:middle;line-height:1.4}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-scroll button{min-height:30px;padding:4px 12px;line-height:1.4;border-radius:6px}
:where(body).c-production-auth .pfa .pfa-list-material{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
:where(body).c-production-auth .pfa .pfa-list-separator{color:var(--muted,#69796f)}
@media(pointer:coarse){
  :where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-scroll button{min-height:44px}
}

/* 2026-10-06: make enabled editable fields identifiable before focus. */
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea):not([readonly]):not(:disabled):not([aria-invalid="true"]){
  background:#fff;
  border:2px solid color-mix(in srgb,var(--pc-accent,var(--green,#087c82)) 85%,#243d42);
  min-height:40px;
  box-shadow:inset 0 2px 4px rgba(15,39,71,.12),0 2px 4px rgba(15,39,71,.1);
}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea):not([readonly]):not(:disabled):not([aria-invalid="true"]):is(:hover,:focus){
  border-color:var(--pc-accent,var(--green,#087c82));
}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),select,textarea):not([readonly]):not(:disabled):not([aria-invalid="true"]):focus{
  outline:3px solid color-mix(in srgb,var(--pc-accent,var(--green,#087c82)) 38%,transparent);outline-offset:2px;
}

/* 2026-10-06: file actions float over content without growing the toolbar/dialog. */
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-list-toolbar{position:relative;z-index:6;overflow:visible}
:where(body).c-production-auth .pfa .pfa-file-menu{position:relative;flex:0 0 auto;overflow:visible}
:where(body).c-production-auth :is(html[data-bq-theme] #app .pfa,.pfa) .pfa-file-menu>.pfa-file-actions{
  position:absolute;top:calc(100% + 6px);right:0;z-index:20;
  width:190px;max-width:calc(100vw - 32px);max-height:min(320px,50dvh);
  display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px;margin:0;
  overflow:auto;overscroll-behavior:contain;border:1px solid var(--line,#cadbd5);border-radius:9px;
  background:var(--pc-head,#f2f6f3);box-shadow:0 10px 28px rgba(15,39,71,.18),inset 0 1px rgba(255,255,255,.65);
}
:where(body).c-production-auth .pfa .pfa-file-menu:not([open])>.pfa-file-actions{display:none}
:where(body).c-production-auth .pfa .pfa-file-actions button{width:100%;text-align:left;white-space:normal}
@media(pointer:coarse){:where(body).c-production-auth .pfa .pfa-file-actions button{min-height:44px}}

:where(body).c-production-auth .raw-picker-field{grid-column:1/-1;position:relative}
:where(body).c-production-auth .raw-option-field{position:relative;min-width:0}
:where(body).c-production-auth .raw-option-control{display:flex;gap:8px;align-items:stretch;min-width:0}
:where(body).c-production-auth .raw-option-control input{flex:1;min-width:0;width:0}
:where(body).c-production-auth .raw-option-control .raw-option-add{flex:0 0 38px;width:38px;padding:0;font-size:22px}
:where(body).c-production-auth .raw-option-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:10;overscroll-behavior:contain;overflow-anchor:none;max-height:220px;overflow:auto;border:1px solid #89b8b4;border-radius:6px;background:var(--surface,#fff);box-shadow:0 6px 18px #123a341a;padding:4px;min-width:0}
:where(body).c-production-auth .raw-option-list[hidden]{display:none}
:where(body).c-production-auth .raw-option-list>button{width:100%;justify-content:space-between;text-align:left;white-space:normal;overflow-wrap:anywhere;height:auto;border:0}
:where(body).c-production-auth .raw-option-list>button[aria-selected=true],:where(body).c-production-auth .raw-option-list>button:hover{background:#e3f3ef}
:where(body).c-production-auth .raw-option-list small{flex-shrink:0;margin-left:8px;font-size:11px;color:#657b76}
:where(body).c-production-auth .raw-option-list p{padding:6px;font-size:12px;white-space:normal}
:where(body).c-production-auth .raw-option-pages{display:flex;gap:8px;align-items:center;justify-content:space-between;padding-top:5px;font-size:12px}
:where(body).c-production-auth .raw-option-pages button{padding:4px 7px;min-height:30px;font-size:12px}
:where(body).c-production-auth .raw-option-overlay{z-index:40}
:where(body).c-production-auth .raw-option-overlay .raw-option-dialog{width:340px;max-width:100%}
:where(body).c-production-auth .raw-option-dialog form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
:where(body).c-production-auth .raw-option-dialog .modal-head{padding:12px 16px;gap:12px}
:where(body).c-production-auth .raw-option-dialog .modal-head h2{font-size:16px}
:where(body).c-production-auth .raw-option-dialog .modal-body{display:grid;gap:8px;padding:14px 16px}
:where(body).c-production-auth .raw-option-dialog .modal-body :is(.inline-info,.error){margin:0;line-height:1.5;overflow-wrap:anywhere}
:where(body).c-production-auth .raw-option-dialog .modal-foot{padding:10px 16px;gap:8px}
:where(body).c-production-auth .raw-option-dialog input{width:100%}
@media(max-width:600px){:where(body).c-production-auth .raw-option-list{max-height:180px}:where(body).c-production-auth .raw-option-dialog .modal-foot{flex-wrap:wrap}}
:where(body).c-production-auth .purchase-raw-options{position:relative;z-index:2;max-height:260px;overflow:auto;background:var(--surface,#fff);border:1px solid #89b8b4;border-radius:8px;box-shadow:0 8px 20px #123a341a;margin-top:4px;padding:4px}
:where(body).c-production-auth .purchase-raw-options[hidden]{display:none}
:where(body).c-production-auth .purchase-raw-options button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;height:auto;padding:10px 12px;text-align:left;border:0;border-radius:4px;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth .purchase-raw-options button span{font-size:12px;font-weight:400;color:#647b79}
:where(body).c-production-auth .purchase-raw-options button[aria-selected=true],:where(body).c-production-auth .purchase-raw-options button:hover{background:#e3f3ef}
:where(body).c-production-auth .purchase-raw-options button:disabled{opacity:.6;cursor:not-allowed}
:where(body).c-production-auth .purchase-raw-options p{margin:8px;font-size:13px}
:where(body).c-production-auth #material-form input[readonly],:where(body).c-production-auth #raw-form input[readonly]{background:#f2f6f5;color:#476460}
:where(body).c-production-auth #raw-query .actions{flex-wrap:wrap;align-items:center}
:where(body).c-production-auth #raw-query input{min-width:180px;flex:1}
:where(body).c-production-auth #raw-query label{display:flex;flex-direction:row;gap:8px;align-items:center;min-width:0;white-space:nowrap}
:where(body).c-production-auth #raw-query :is(input,select,button){height:36px;min-height:36px}
@media(max-width:600px){:where(body).c-production-auth #raw-query .actions>*{width:100%}:where(body).c-production-auth #raw-query input{min-width:0}:where(body).c-production-auth #raw-query label{display:grid;grid-template-columns:3em minmax(0,1fr)}:where(body).c-production-auth #raw-query label select{width:100%;min-width:0}:where(body).c-production-auth .purchase-raw-options{max-height:210px}}
:where(body).c-production-auth #app .content > .raw-materials-footer{align-items:center;flex-wrap:nowrap;gap:8px;overflow-x:auto}
:where(body).c-production-auth .raw-materials-footer > span{margin-left:auto;flex:0 0 auto;white-space:nowrap}
:where(body).c-production-auth .raw-materials-footer > .pager{flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:6px;margin:0;padding:0}
:where(body).c-production-auth .raw-materials-footer .pager label{flex-direction:row;align-items:center;gap:4px;white-space:nowrap}
:where(body).c-production-auth .raw-materials-footer .pager select{width:54px;height:30px;min-height:30px;padding:2px 4px}
:where(body).c-production-auth .raw-materials-footer .pager button{min-height:30px;padding:4px 7px;font-size:12px}
:where(body).c-production-auth .raw-materials-footer .pager > span{white-space:nowrap}

:where(body).c-production-auth .material-dialog .material-form-error{white-space:normal;overflow-wrap:anywhere;min-width:0}
@media(max-width:600px){:where(body).c-production-auth .material-dialog .modal-foot:has(.material-form-error:not([hidden])){flex-wrap:wrap}:where(body).c-production-auth .material-dialog .material-form-error:not([hidden]){flex-basis:100%}}
:where(body).c-production-auth .raw-color-suggestion{grid-column:1/-1;min-width:0;border:1px solid #bfdcd5;background:#f1f8f5;border-radius:8px;padding:12px;display:grid;gap:10px;overflow-wrap:anywhere}
:where(body).c-production-auth .raw-color-suggestion[hidden]{display:none}
:where(body).c-production-auth .raw-color-suggestion :is(h3,p,dl,dd){margin:0}
:where(body).c-production-auth .raw-color-suggestion h3{font-size:14px;line-height:1.5}
:where(body).c-production-auth .raw-color-suggestion p{font-size:13px;line-height:1.6}
:where(body).c-production-auth .raw-color-suggestion[data-state=conflict],:where(body).c-production-auth .raw-color-suggestion[data-state=ambiguous]{border-color:#e7cc92;background:#fff9eb}
:where(body).c-production-auth .raw-color-suggestion[data-state=error]{border-color:#e2baba;background:#fff6f6}
:where(body).c-production-auth .raw-color-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
:where(body).c-production-auth .raw-color-comparison>div{min-width:0;padding:9px 10px;background:var(--surface,#fff);border:1px solid #d8e5e0;border-radius:6px}
:where(body).c-production-auth .raw-color-comparison strong{font-size:12px;color:#47645d}
:where(body).c-production-auth .raw-color-comparison dl{display:grid;grid-template-columns:4em minmax(0,1fr);gap:5px 9px;padding-top:7px;font-size:13px;line-height:1.5}
:where(body).c-production-auth .raw-color-comparison dt{color:#637a74}
:where(body).c-production-auth .raw-color-comparison dd{min-width:0;white-space:pre-wrap}
:where(body).c-production-auth .raw-color-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
:where(body).c-production-auth .raw-color-actions span{font-size:12px;color:#5a736d;min-width:0}
:where(body).c-production-auth .raw-color-actions button,:where(body).c-production-auth .raw-color-suggestion>button{width:auto;min-height:34px;font-size:13px;justify-self:start}
@media(max-width:600px){:where(body).c-production-auth .raw-color-comparison{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .raw-color-suggestion{padding:10px}:where(body).c-production-auth .raw-color-actions span{flex-basis:100%}}

/* 2026-10-09: category parameters share the existing four-theme form surface. */
:where(body).c-production-auth .material-category-fields,:where(body).c-production-auth .purchase-parameters{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
:where(body).c-production-auth .material-category-fields h3,:where(body).c-production-auth .purchase-parameters h3{font-size:14px;margin:0 0 12px}
:where(body).c-production-auth .material-fields [hidden]{display:none!important}
:where(body).c-production-auth .purchase-parameters input[readonly]{background:var(--surface,#f2f6f5)}
@media(max-width:430px){:where(body).c-production-auth .material-category-fields .material-fields,:where(body).c-production-auth .purchase-parameters .material-fields{grid-template-columns:minmax(0,1fr)}}

/* 2026-10-09: narrower raw material editor, constrained by the existing overlay on small screens. */
:where(body).c-production-auth .modal.raw-material-dialog{width:550px;max-width:100%}

/* 2026-10-11: reference pale blue-gray canvas, white editable and gray read-only fields. */
:where(body).c-production-auth #modal-root .modal.material-dialog,
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal.material-dialog{
  background:#ebf1f4;
}
:where(body).c-production-auth #modal-root .material-dialog .modal-body{
  background:#ebf1f4;
}
:where(body).c-production-auth #modal-root .material-dialog :is(.modal-head,.modal-foot),html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .material-dialog :is(.modal-head,.modal-foot){
  background:#f1f7f6;
  border-color:color-mix(in srgb,var(--pc-accent,#087a75) 22%,#d7e3e7);
}
:where(body).c-production-auth #modal-root .material-dialog .material-field :is(input,select,textarea):not([readonly]):not(:disabled){
  background:#fff;color:#183732;
  border-color:#b8d8e8;
  box-shadow:inset 0 1px 2px #153b3010;
}
:where(body).c-production-auth #modal-root .material-dialog .material-field :is(input,select,textarea):is([readonly],:disabled){
  background:#dfe7eb;color:#475866;border-color:#becbd3;
  box-shadow:none;
}
:where(body).c-production-auth #modal-root .material-dialog .material-field :is(input,select,textarea):focus-visible{
  outline:2px solid var(--pc-accent,#087a75);outline-offset:2px;
}
:where(body).c-production-auth #app .catalog-table[data-table-key="raw-materials"] [data-column="vendors"]{width:104px;min-width:84px!important;white-space:normal;overflow-wrap:anywhere}

/* 2026-10-16: compact technical raw editor for brand and material attributes. */
:where(body).c-production-auth #modal-root .raw-material-dialog{width:640px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column}
:where(body).c-production-auth #modal-root .raw-material-dialog .modal-head{padding:16px 20px;flex-shrink:0;align-items:center}
:where(body).c-production-auth #modal-root .raw-material-dialog .modal-head h2{margin:0;font-size:18px}
:where(body).c-production-auth #raw-form{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
:where(body).c-production-auth #raw-form>.modal-body{display:flex;flex-direction:column;gap:16px;padding:16px 20px;min-height:0;overflow:auto}
:where(body).c-production-auth #raw-form .material-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
:where(body).c-production-auth #raw-form .material-field{gap:6px}
:where(body).c-production-auth #raw-form .material-field input,:where(body).c-production-auth #raw-form .material-field select{height:38px;min-height:38px}
:where(body).c-production-auth #raw-form .raw-basic-fields h3,:where(body).c-production-auth #raw-form .material-category-fields h3{font-size:13px;margin:0 0 10px;color:#365e58}
:where(body).c-production-auth #raw-form .material-category-fields{margin:0;padding-top:14px}
:where(body).c-production-auth #raw-form .raw-option-add{width:34px;flex-basis:34px;min-height:38px;font-size:20px}
:where(body).c-production-auth #raw-form .modal-foot{padding:12px 20px;min-height:60px;flex-shrink:0}
:where(body).c-production-auth #raw-form #raw-form-error{margin:0}
@media(max-width:600px){
 :where(body).c-production-auth #modal-root .raw-material-dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 :where(body).c-production-auth #modal-root .raw-material-dialog .modal-head,:where(body).c-production-auth #raw-form>.modal-body,:where(body).c-production-auth #raw-form .modal-foot{padding:14px}
 :where(body).c-production-auth #raw-form .material-fields{grid-template-columns:minmax(0,1fr);gap:12px}
 :where(body).c-production-auth #raw-form .material-field input,:where(body).c-production-auth #raw-form .material-field select{height:44px;min-height:44px}
 :where(body).c-production-auth #raw-form .raw-option-add{width:44px;flex-basis:44px;min-height:44px}
 :where(body).c-production-auth #raw-form .modal-foot button{min-height:44px}
}

:where(body).c-production-auth .raw-transfer-menu{position:relative;flex:0 0 auto}
:where(body).c-production-auth #app #content>.heading:has([data-action="raw-transfer-toggle"][aria-expanded="true"]){position:relative;z-index:8}
:where(body).c-production-auth #app .raw-transfer-menu>button{gap:6px}
:where(body).c-production-auth #app .raw-transfer-options{position:fixed;z-index:30;width:216px;max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain;padding:5px;background:var(--pc-head,var(--surface,#fff));border:1px solid #bdd6d3;border-radius:6px;box-shadow:0 8px 20px #123a3424}
:where(body).c-production-auth #app .raw-transfer-options[hidden],:where(body).c-production-auth #app .raw-download-options[hidden]{display:none!important}
:where(body).c-production-auth #app .raw-transfer-options button{width:100%;justify-content:flex-start;border:0;white-space:normal;text-align:left;gap:7px;min-height:36px}
:where(body).c-production-auth #app .raw-transfer-options button svg:last-child:not(:first-child){margin-left:auto}
:where(body).c-production-auth #app .raw-download-options{margin:3px 0;padding:3px 0 3px 12px;border-left:2px solid var(--pc-accent,#087a75)}
@media(max-width:700px){:where(body).c-production-auth #app .raw-transfer-options button{min-height:44px}}
:where(body).c-production-auth .raw-transfer-overlay .raw-transfer-dialog{width:920px;max-width:100%;max-height:calc(100dvh - 40px);overflow:hidden}
:where(body).c-production-auth .raw-transfer-dialog .modal-head{padding:16px 20px;gap:16px;flex-shrink:0}
:where(body).c-production-auth .raw-transfer-dialog .modal-body{padding:18px 20px;overflow:auto;min-height:0;display:block}
:where(body).c-production-auth .raw-transfer-dialog .modal-foot{padding:12px 20px;gap:8px;flex-shrink:0;flex-wrap:wrap}
:where(body).c-production-auth .raw-transfer-dialog p{white-space:normal;overflow-wrap:anywhere;line-height:1.6;margin:0 0 12px}
:where(body).c-production-auth .raw-transfer-dialog .error{white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth .raw-transfer-dialog label{display:flex;flex-direction:column;gap:6px;min-width:0}
:where(body).c-production-auth .raw-transfer-dialog select,:where(body).c-production-auth .raw-transfer-dialog input{max-width:100%;min-width:0;width:100%}
:where(body).c-production-auth .raw-mapping-head{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:12px 0}
:where(body).c-production-auth .raw-field-mapping{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
:where(body).c-production-auth .raw-transfer-dialog .table-wrap{max-width:100%;overflow:auto;margin:10px 0}
:where(body).c-production-auth .raw-source-preview table,:where(body).c-production-auth .raw-difference{min-width:1050px}
:where(body).c-production-auth .raw-transfer-dialog summary{cursor:pointer;font-size:13px;padding:8px 0}
:where(body).c-production-auth .raw-review-rows{display:grid;gap:14px}
:where(body).c-production-auth .raw-review-row{border:1px solid #b9d3cd;border-radius:8px;padding:12px;min-width:0;background:#f8fbf780}
:where(body).c-production-auth .raw-review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
:where(body).c-production-auth .raw-review-heading strong{overflow-wrap:anywhere;min-width:0}
:where(body).c-production-auth .raw-review-heading label{flex-direction:row;align-items:center;font-size:13px}
:where(body).c-production-auth .raw-review-heading select{max-width:380px;width:auto}
:where(body).c-production-auth .raw-review-heading input[type=checkbox]{width:16px;height:16px;min-height:16px}
:where(body).c-production-auth .raw-difference td.raw-changed{background:#fff0be;color:#664700;font-weight:600}
:where(body).c-production-auth .raw-review-note{color:#8a5900;font-size:12px;margin-top:8px!important}
:where(body).c-production-auth .raw-review-pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:16px}
:where(body).c-production-auth .raw-new-options{margin-bottom:12px}
:where(body).c-production-auth .raw-import-count{font-weight:600}
:where(body).c-production-auth .raw-review-rows{gap:8px}
@media(max-width:600px){
  :where(body).c-production-auth .raw-transfer-overlay{padding:12px}
  :where(body).c-production-auth .raw-transfer-overlay .raw-transfer-dialog{max-height:calc(100dvh - 24px)}
  :where(body).c-production-auth .raw-transfer-dialog .modal-head,:where(body).c-production-auth .raw-transfer-dialog .modal-body,:where(body).c-production-auth .raw-transfer-dialog .modal-foot{padding:12px}
  :where(body).c-production-auth .raw-transfer-dialog .modal-head h2{font-size:17px}
  :where(body).c-production-auth .raw-field-mapping{grid-template-columns:1fr}
  :where(body).c-production-auth .raw-mapping-head{grid-template-columns:1fr}
  :where(body).c-production-auth .raw-review-heading label{width:100%;flex-wrap:wrap}
  :where(body).c-production-auth .raw-review-heading select{width:100%;max-width:100%}
  :where(body).c-production-auth .raw-transfer-dialog .modal-foot button{flex:1 1 auto;white-space:nowrap}
}

:where(body).c-production-auth .raw-transfer-dialog .raw-import-empty-hint{flex:1 1 100%;font-size:13px;line-height:1.5;color:var(--muted,#59736d);overflow-wrap:anywhere}

:where(body).c-production-auth #content>.raw-delete-feedback{margin:0 0 8px;padding:8px 12px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}

:where(body).c-production-auth #app .sidebar-menu-row{position:relative;min-width:0}
:where(body).c-production-auth #app .sidebar-menu-row .nav-button{width:100%;text-align:left}
:where(body).c-production-auth #app .sidebar-menu-editable .nav-button{padding-right:30px;gap:8px}
:where(body).c-production-auth #app .sidebar-order-handle{position:absolute;right:2px;top:2px;bottom:2px;width:26px;min-height:36px;padding:4px;border:0;background:transparent;color:var(--muted);cursor:grab;touch-action:none;user-select:none}
:where(body).c-production-auth #app .sidebar-order-handle svg{width:16px;height:16px;pointer-events:none}
:where(body).c-production-auth #app .sidebar-order-handle:focus-visible{outline:2px solid #087a75;outline-offset:-2px}
:where(body).c-production-auth #app .sidebar-order-handle:disabled{cursor:wait;opacity:.4}
:where(body).c-production-auth #app .sidebar-order-dragging{outline:2px solid #087a75;border-radius:6px;background:#e2f3ef}
:where(body).c-production-auth #app .sidebar-order-controls{margin:6px 18px 0;display:flex;flex-wrap:wrap;gap:4px;font-size:11px;line-height:1.5;color:var(--muted);flex-shrink:0}
:where(body).c-production-auth #app .sidebar-order-controls[hidden]{display:none}
:where(body).c-production-auth #app .sidebar-order-status{width:100%;overflow-wrap:anywhere}
:where(body).c-production-auth #app .sidebar-order-controls button{font-size:11px;min-height:28px;padding:3px 5px;background:transparent}
:where(body).c-production-auth #app .sidebar-order-error{color:#a13a45}
@media(min-width:701px){:where(body).c-production-auth #app .sidebar:has(.sidebar-menu-editable){overflow-y:auto}}
@media(max-width:700px){
  :where(body).c-production-auth #app .sidebar .sidebar-menu{display:flex;flex-wrap:wrap;overflow:visible}
  :where(body).c-production-auth #app .sidebar-menu-row{flex:1 0 auto}
  :where(body).c-production-auth #app .sidebar-menu-editable .sidebar-menu-row{flex:1 0 calc(50% - 5px)}
  :where(body).c-production-auth #app .sidebar-order-controls{margin:4px 14px 8px}
  :where(body).c-production-auth #app .sidebar-menu-editable .nav-button{justify-content:flex-start;min-height:44px}
  :where(body).c-production-auth #app .sidebar-order-handle{width:30px}
}

/* 2026-10-06: technical-process group and its children have independent sortable levels. */
:where(body).c-production-auth #app .sidebar-menu-child{position:relative;min-width:0;width:100%}
:where(body).c-production-auth #app .sidebar-menu-editable .sidebar-submenu .sidebar-menu-child .nav-button{padding-right:32px}
:where(body).c-production-auth #app .sidebar-group-heading{position:relative;min-width:0}
:where(body).c-production-auth #app .sidebar-menu-group>.sidebar-group-heading .sidebar-group-toggle{gap:6px}
:where(body).c-production-auth #app .sidebar-group-toggle>span{flex:1;min-width:0;white-space:normal}
:where(body).c-production-auth #app .sidebar-submenu{display:flex;flex-direction:column;gap:3px;margin:4px 0 6px 13px;padding-left:8px;border-left:1px solid var(--line,#c9dce2)}
:where(body).c-production-auth #app .sidebar-submenu[hidden]{display:none!important}
:where(body).c-production-auth #app .sidebar-menu-editable .sidebar-submenu .nav-button,:where(body).c-production-auth #app .sidebar-submenu .nav-button{padding-left:9px;padding-right:8px;justify-content:flex-start;min-height:40px}
@media(max-width:700px){
  :where(body).c-production-auth #app .sidebar-menu .sidebar-menu-group,:where(body).c-production-auth #app .sidebar-menu-editable .sidebar-menu-group{flex:1 0 100%;width:100%;min-width:0}
  :where(body).c-production-auth #app .sidebar-submenu{margin-left:16px}
  :where(body).c-production-auth #app .sidebar-submenu .nav-button{min-height:44px}
}

:where(body).c-production-auth #app .sidebar-category-group .sidebar-submenu .nav-button{padding-right:8px;width:100%}

/* 2026-10-09: WMS-style child-menu flyout; workspace theme tokens remain authoritative. */
:where(body).c-production-auth #app .sidebar-module-flyout{position:fixed;z-index:60;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:0 14px 14px;border:1px solid var(--pc-line,#c9ddd5);border-radius:12px;color:var(--pc-ink,#17332e);background:color-mix(in srgb,var(--pc-top,#fbfdf8) 94%,transparent);box-shadow:var(--glass-glow),4px 8px 24px var(--pc-shadow,#21483e24);backdrop-filter:blur(18px) saturate(116%);-webkit-backdrop-filter:blur(18px) saturate(116%)}
:where(body).c-production-auth #app .sidebar-module-flyout[hidden]{display:none!important}
:where(body).c-production-auth #app .sidebar-flyout-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:1;min-height:48px;margin-bottom:10px;border-bottom:1px solid var(--pc-line,#c9ddd5);background:var(--pc-top,#fbfdf8)}
:where(body).c-production-auth #app .sidebar-flyout-heading h2{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;line-height:1.5;font-weight:700;color:var(--pc-ink,#17332e)}
:where(body).c-production-auth #app .sidebar-flyout-close{display:flex;align-items:center;justify-content:center;width:34px;min-height:34px;padding:4px;border:0;background:transparent;color:var(--pc-muted,#61736f);flex-shrink:0}
:where(body).c-production-auth #app .sidebar-flyout-close svg{width:16px;height:16px}
:where(body).c-production-auth #app .sidebar-flyout-items{display:grid;gap:8px;min-width:0}
:where(body).c-production-auth #app .sidebar-flyout-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(body).c-production-auth #app .sidebar-flyout-technical{grid-template-columns:minmax(0,1fr)}
:where(body).c-production-auth #app .sidebar-flyout-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--pc-line,#c9ddd5);border-radius:8px;background:color-mix(in srgb,var(--pc-top,#fbfdf8) 75%,transparent);color:var(--pc-ink,#17332e);font-size:13px;font-weight:400;text-align:left;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth #app .sidebar-flyout-item span{min-width:0}
:where(body).c-production-auth #app .sidebar-flyout-label{flex:1}
:where(body).c-production-auth #app .sidebar-flyout-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;border-radius:6px;background:var(--pc-soft,#e2f3ef);color:var(--pc-muted,#61736f)}
:where(body).c-production-auth #app .sidebar-flyout-icon svg,:where(body).c-production-auth #app .sidebar-flyout-heading h2 svg{width:16px;height:16px;flex-shrink:0}
:where(body).c-production-auth #app .sidebar-flyout-heading h2 svg{color:var(--pc-accent,#087a75)}
:where(body).c-production-auth #app .sidebar-flyout-item>svg{width:13px;height:13px;opacity:0;flex-shrink:0}
:where(body).c-production-auth #app .sidebar-flyout-item:is(:hover,:focus-visible,.active),:where(body).c-production-auth #app .sidebar-flyout-close:hover{background:var(--pc-soft,#e2f3ef);color:var(--pc-accent,#087a75)}
:where(body).c-production-auth #app .sidebar-flyout-item:is(:hover,:focus-visible,.active)>svg{opacity:1}
:where(body).c-production-auth #app .sidebar-flyout-item.active{font-weight:700;border-color:var(--pc-accent,#087a75);box-shadow:inset 3px 0 var(--pc-accent,#087a75)}
:where(body).c-production-auth #app .sidebar-flyout-item:is(:hover,:focus-visible,.active) .sidebar-flyout-icon{color:var(--pc-accent,#087a75);background:color-mix(in srgb,var(--pc-accent,#087a75) 12%,var(--pc-top,#fbfdf8))}
:where(body).c-production-auth #app .sidebar-flyout-item:hover{border-color:var(--pc-accent,#087a75)}
:where(body).c-production-auth #app .sidebar-module-flyout button:focus-visible{outline:2px solid var(--pc-accent,#087a75);outline-offset:-2px}
:where(body).c-production-auth #app .sidebar-flyout-editable .sidebar-menu-child .sidebar-flyout-item{padding-right:34px}
:where(body).c-production-auth #app .sidebar-group-open{box-shadow:inset 3px 0 var(--pc-accent,#087a75)}
@media(max-width:700px){
  :where(body).c-production-auth #app .sidebar-module-flyout{border-radius:10px;padding:0 12px 12px}
  :where(body).c-production-auth #app .sidebar-flyout-categories{grid-template-columns:minmax(0,1fr)}
  :where(body).c-production-auth #app .sidebar-flyout-item{min-height:44px;padding-top:10px;padding-bottom:10px}
  :where(body).c-production-auth #app .sidebar-flyout-close{width:44px;min-height:44px}
}

/* glass-primary-menu-alignment:start */
/* 2026-10-26: Only B/C primary menus may move horizontally. Keep the
   independent sorting handle, row bounds and child-menu geometry unchanged. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation{
  --glass-primary-label-width:5.5em;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation > .sidebar-menu-row > .nav-button,html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button{
  display:grid;
  grid-template-columns:17px var(--glass-primary-label-width);
  justify-content:center;
  align-items:center;
  column-gap:8px;
  padding-inline:26px;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation > .sidebar-menu-row > .nav-button > svg,html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button > svg{
  width:17px;
  height:17px;
  /* Move the icon one character left without moving its grid slot or label. */
  position:relative;
  left:-1em;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation > .sidebar-menu-row > .nav-button > span,html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button > span{
  width:var(--glass-primary-label-width);
  min-width:0;
  white-space:nowrap;
  text-align:justify;
  text-align-last:justify;
}
@media(max-width:700px){
  /* Keep additional spacing clear of the wider mobile sorting handles. */
  html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #workspace-navigation{
    --glass-primary-label-width:5.25em;
  }
}
/* glass-primary-menu-alignment:end */

:where(body).c-production-auth .material-picker-popover{position:fixed;z-index:10050;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #9fbfba;border-radius:6px;box-shadow:0 8px 24px #173d342b;color:#23443f;font-size:13px;line-height:1.5;text-align:left}
:where(body).c-production-auth .material-picker-popover p{margin:0;padding:12px;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth .material-picker-popover>button{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;width:100%;height:auto;min-height:36px;text-align:left;padding:9px 12px;border:0;border-bottom:1px solid #e4eeeb;border-radius:0;background:#fff;color:inherit;font:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
:where(body).c-production-auth .material-picker-popover>button strong,:where(body).c-production-auth .material-picker-popover>button small{grid-column:1/-1}
:where(body).c-production-auth .material-picker-popover>button:hover,:where(body).c-production-auth .material-picker-popover>button[aria-selected="true"]{background:#e7f4ef;box-shadow:inset 3px 0 #087c76}
:where(body).c-production-auth .material-picker-popover>button:disabled{opacity:.6;cursor:not-allowed}
:where(body).c-production-auth .material-picker-popover [role="alert"]{color:#b23434}
@media(max-width:430px){:where(body).c-production-auth .material-picker-popover>button{gap:2px 8px;padding:8px 10px;font-size:12px}:where(body).c-production-auth .material-picker-popover>button span:nth-of-type(3){grid-column:1/-1}}

/* 2026-10-31: Real, role-scoped dashboard. Existing shell, palette and typography retained.
   Grid arithmetic: overview 1fr + 2fr + 24px; work panels 3fr + 2fr + 16px = canvas.
   Narrow layouts become one column; no horizontal scrolling or missing row fields. */
:where(body).c-production-auth .dashboard{--home-ink:var(--r-text,var(--text,#263f51));--home-muted:var(--r-muted,var(--muted,#526d80));--home-line:var(--r-line,var(--line,#dce4ea));--home-surface:var(--r-solid,var(--card,#f7fbfe));--home-accent:var(--r-link,var(--primary,#2e6488));display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--home-ink);font-variant-numeric:tabular-nums}
:where(body).c-production-auth .dashboard :is(h1,h2,p,dl,dd,ul){margin:0}
:where(body).c-production-auth .dashboard :is(ul,dl){padding:0;list-style:none}
:where(body).c-production-auth .dashboard button{font:inherit;color:inherit;cursor:pointer;box-shadow:none;border:1px solid transparent;border-radius:6px;background:transparent;min-height:36px;padding:6px 10px;line-height:1.5;white-space:normal}
:where(body).c-production-auth .dashboard button:hover{background:var(--r-hover,#e6eef3)}
:where(body).c-production-auth .dashboard button:active{background:var(--r-hover,#e6eef3)}
:where(body).c-production-auth .dashboard button:focus-visible{outline:2px solid var(--home-accent);outline-offset:2px}
:where(body).c-production-auth .dashboard button:disabled{cursor:default;opacity:.55}
:where(body).c-production-auth .dashboard button[aria-busy=true]{cursor:progress}
:where(body).c-production-auth .dashboard svg{width:16px;height:16px;vertical-align:middle}
:where(body).c-production-auth .dashboard-title{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:4px 0 0}
:where(body).c-production-auth .dashboard-title h1{font-size:22px;line-height:30px;font-weight:650}
:where(body).c-production-auth .dashboard-title p{font-size:12px;color:var(--home-muted);margin-top:3px}
:where(body).c-production-auth .dashboard-freshness{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-freshness>span{display:flex;gap:5px;align-items:center}
:where(body).c-production-auth .dashboard-refresh{width:36px;flex:none}
:where(body).c-production-auth .dashboard-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:24px;padding:20px 24px;background:var(--home-surface);border:1px solid var(--home-line);border-radius:12px}
:where(body).c-production-auth .dashboard-total{display:flex;flex-direction:column;justify-content:center}
:where(body).c-production-auth .dashboard-eyebrow{font-size:13px;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-total-value{font-size:36px;font-weight:500;line-height:46px;margin:4px 0}
:where(body).c-production-auth .dashboard-total-value small{font-size:13px;font-weight:400;margin-left:8px;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-total p{font-size:12px;color:var(--home-muted);line-height:20px}
:where(body).c-production-auth .dashboard-stages{display:flex;flex-direction:column;justify-content:center;gap:12px}
:where(body).c-production-auth .dashboard-stage>div{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:5px}
:where(body).c-production-auth .dashboard-stage strong{font-size:14px;font-weight:500}
:where(body).c-production-auth .dashboard-stage small{font-size:12px;font-weight:400;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-stage progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:5px;border:0;border-radius:2px;overflow:hidden;background:var(--home-line);accent-color:var(--home-accent)}
:where(body).c-production-auth .dashboard-stage progress::-webkit-progress-bar{background:var(--home-line);border-radius:2px}
:where(body).c-production-auth .dashboard-stage progress::-webkit-progress-value{background:var(--home-accent);border-radius:2px}
:where(body).c-production-auth .dashboard-stage progress::-moz-progress-bar{background:var(--home-accent);border-radius:2px}
:where(body).c-production-auth .dashboard-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));border:1px solid var(--home-line);border-radius:12px;background:var(--home-surface);overflow:hidden}
:where(body).c-production-auth .dashboard-stage-metrics{min-width:0;padding:16px 20px;border-right:1px solid var(--home-line)}
:where(body).c-production-auth .dashboard-stage-metrics:last-child{border-right:0}
:where(body).c-production-auth .dashboard-stage-metrics h2{font-size:14px;font-weight:600;line-height:22px;margin-bottom:10px}
:where(body).c-production-auth .dashboard-metric-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px}
:where(body).c-production-auth .dashboard-metric-row dt{min-width:0}
:where(body).c-production-auth .dashboard button.dashboard-metric{font-size:12px;text-align:left;padding:4px 0;min-height:30px;border-radius:0;color:var(--home-muted);border-bottom:1px solid transparent}
:where(body).c-production-auth .dashboard button.dashboard-metric:hover,:where(body).c-production-auth .dashboard button.dashboard-metric[aria-pressed=true]{color:var(--home-accent);border-bottom-color:currentColor;background:transparent}
:where(body).c-production-auth .dashboard-metric-row dd{font-size:18px;font-weight:500;white-space:nowrap;flex:none}
:where(body).c-production-auth .dashboard-metric-row dd small{font-size:12px;font-weight:400;color:var(--home-muted);margin-left:5px}
:where(body).c-production-auth .dashboard-work-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;align-items:start}
:where(body).c-production-auth .dashboard-panel{min-width:0;background:var(--home-surface);border:1px solid var(--home-line);border-radius:12px;overflow:hidden}
:where(body).c-production-auth .dashboard-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--home-line)}
:where(body).c-production-auth .dashboard-panel-head h2{font-size:15px;font-weight:600;line-height:24px}
:where(body).c-production-auth .dashboard-panel-head small{font-size:12px;font-weight:400;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-panel-head h2 small{margin-left:6px}
:where(body).c-production-auth .dashboard-tabs{display:flex;gap:2px;align-items:center}
:where(body).c-production-auth .dashboard-tabs button{font-size:12px;min-height:32px;padding:4px 8px;border-radius:4px}
:where(body).c-production-auth .dashboard-tabs button[aria-pressed=true]{background:var(--r-hover,#e6eef3);color:var(--home-ink)}
:where(body).c-production-auth .dashboard-task-list{max-height:420px;overflow-y:auto}
:where(body).c-production-auth .dashboard-task{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.85fr) auto;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--home-line)}
:where(body).c-production-auth .dashboard-task:last-child{border-bottom:0}
:where(body).c-production-auth .dashboard-record{display:flex;flex-direction:column;gap:3px;min-width:0}
:where(body).c-production-auth .dashboard-record strong{font-size:14px;line-height:20px;font-weight:600;overflow-wrap:anywhere}
:where(body).c-production-auth .dashboard-drawing{font-size:12px;color:var(--home-muted);overflow-wrap:anywhere;line-height:18px}
:where(body).c-production-auth .dashboard-customer{font-size:12px;color:var(--home-muted);line-height:18px;overflow-wrap:anywhere}
:where(body).c-production-auth .dashboard-task-state{display:flex;flex-direction:column;gap:6px;font-size:12px;line-height:18px}
:where(body).c-production-auth .dashboard-issue{color:var(--home-accent)}
:where(body).c-production-auth .dashboard-task-state [data-time-comment]{color:var(--home-muted)}
:where(body).c-production-auth .dashboard-task>button,:where(body).c-production-auth .dashboard-recent-bottom>button{font-size:12px;color:var(--home-accent);padding:5px 0;min-height:32px;text-align:right}
:where(body).c-production-auth .dashboard-recent-list{max-height:420px;overflow-y:auto}
:where(body).c-production-auth .dashboard-recent-item{padding:14px 18px;border-bottom:1px solid var(--home-line)}
:where(body).c-production-auth .dashboard-recent-item:last-child{border-bottom:0}
:where(body).c-production-auth .dashboard-recent-state{display:block;font-size:12px;margin:7px 0 2px;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-recent-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-recent-bottom>span{display:flex;gap:5px;flex-wrap:wrap}
:where(body).c-production-auth .dashboard-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:8px 18px;border-top:1px solid var(--home-line);font-size:12px;color:var(--home-muted)}
:where(body).c-production-auth .dashboard-footer>div{display:flex;gap:4px}
:where(body).c-production-auth .dashboard-footer button{width:36px;border-color:var(--home-line)}
:where(body).c-production-auth .dashboard-filter{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--home-accent);padding:6px 18px;border-bottom:1px solid var(--home-line)}
:where(body).c-production-auth .dashboard-filter button{font-size:12px;display:flex;align-items:center;gap:4px}
:where(body).c-production-auth .dashboard-empty,:where(body).c-production-auth .dashboard-loading{padding:24px 18px;color:var(--home-muted);font-size:13px;text-align:center}
:where(body).c-production-auth .dashboard-error{padding:10px 14px;font-size:13px;border:1px solid var(--home-line);border-radius:8px;color:var(--r-negative,#a83d49)}
:where(body).c-production-auth .dashboard-error[hidden]{display:none}
@media(max-width:1100px){:where(body).c-production-auth .dashboard-work-grid{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .dashboard-recent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}:where(body).c-production-auth .dashboard-recent-item{border-bottom:0}:where(body).c-production-auth .dashboard-recent-item:nth-child(odd){border-right:1px solid var(--home-line)}}
@media(max-width:700px){:where(body).c-production-auth .dashboard{gap:12px}:where(body).c-production-auth .dashboard-title h1{font-size:20px}:where(body).c-production-auth .dashboard-title p{display:none}:where(body).c-production-auth .dashboard-freshness>span{font-size:11px}:where(body).c-production-auth .dashboard-summary{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);padding:16px;gap:16px}:where(body).c-production-auth .dashboard-total-value{font-size:32px}:where(body).c-production-auth .dashboard-breakdown{grid-template-columns:minmax(0,1fr)}:where(body).c-production-auth .dashboard-stage-metrics{padding:12px 16px;border-right:0;border-bottom:1px solid var(--home-line)}:where(body).c-production-auth .dashboard-stage-metrics:last-child{border-bottom:0}:where(body).c-production-auth .dashboard-stage-metrics h2{margin-bottom:4px}:where(body).c-production-auth .dashboard-metric-row{min-height:36px}:where(body).c-production-auth .dashboard button.dashboard-metric{min-height:40px;font-size:13px}:where(body).c-production-auth .dashboard-panel-head{padding:12px 14px;gap:8px}:where(body).c-production-auth .dashboard-tabs button{min-height:40px;padding-inline:8px}:where(body).c-production-auth .dashboard-task{padding:12px 14px;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}:where(body).c-production-auth .dashboard-record{grid-column:1}:where(body).c-production-auth .dashboard-task-state{grid-column:1;gap:3px;margin-top:3px}:where(body).c-production-auth .dashboard-task>button{grid-column:2;grid-row:1 / 3;min-height:44px;max-width:88px}:where(body).c-production-auth .dashboard-recent-list{display:block}:where(body).c-production-auth .dashboard-recent-item{padding:12px 14px;border-bottom:1px solid var(--home-line)}:where(body).c-production-auth .dashboard-recent-item:nth-child(odd){border-right:0}:where(body).c-production-auth .dashboard-recent-bottom>button,:where(body).c-production-auth .dashboard-footer button,:where(body).c-production-auth .dashboard-filter button,:where(body).c-production-auth .dashboard-refresh{min-height:44px;min-width:44px}:where(body).c-production-auth .dashboard-drawing,:where(body).c-production-auth .dashboard-customer,:where(body).c-production-auth .dashboard-task-state,:where(body).c-production-auth .dashboard-recent-state,:where(body).c-production-auth .dashboard-recent-bottom{font-size:12px}:where(body).c-production-auth .dashboard-footer{padding:8px 14px;flex-wrap:wrap}}
/* On phones, actionable records precede the detailed indicator breakdown. */
@media(max-width:700px){:where(body).c-production-auth .dashboard-title{order:0}:where(body).c-production-auth .dashboard-summary{order:1}:where(body).c-production-auth .dashboard-error{order:2}:where(body).c-production-auth .dashboard-work-grid{order:3}:where(body).c-production-auth .dashboard-breakdown{order:4}}
/* The home overview grows with its records; the shared footer follows content. */
:where(body).c-production-auth .business-view.view-home{flex:0 0 auto;height:auto;min-height:0}
:where(body).c-production-auth .business-view.view-home>.content{flex:0 0 auto;height:auto}

/* Shared application dialog palette; browser annotation surfaces are excluded. */
:where(body).c-production-auth :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]),html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]){background:#ebf1f4}
:where(body).c-production-auth :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]) :is(.modal-body,.pfa-modal-body){background:#ebf1f4}
:where(body).c-production-auth :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]) :is(.modal-head,.modal-foot,.pfa-modal-head,.pfa-modal-foot),html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]) :is(.modal-head,.modal-foot,.pfa-modal-head,.pfa-modal-foot){background:#f1f7f6;border-color:#c7dce0}
:where(body).c-production-auth :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([readonly]):not(:disabled){background:#fff!important;border-color:#b8d8e8!important;color:#183732}
:where(body).c-production-auth :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]) :is(input,select,textarea):is([readonly],:disabled):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]){background:#dfe7eb!important;border-color:#becbd3!important;color:#475866!important;box-shadow:none}
:where(body).c-production-auth :is(#app,#modal-root) :is(.modal,.pfa-modal,[role="dialog"]) :is(input,select,textarea):focus-visible{outline:2px solid var(--pc-accent,#087a75);outline-offset:2px}
:where(body).c-production-auth :is(#app,#modal-root) .bq-required-mark{color:#d93025!important;font-weight:700}

:where(body).c-production-auth #modal-root .customer-markup-modal{width:min(700px,calc(100vw - 32px));max-width:700px;max-height:calc(100dvh - 32px);overflow:hidden}
:where(body).c-production-auth #modal-root .customer-markup-modal>form{display:flex;flex-direction:column;max-height:inherit;min-height:0}
:where(body).c-production-auth #modal-root .customer-markup-modal .modal-head,:where(body).c-production-auth #modal-root .customer-markup-modal .modal-foot{flex-shrink:0;gap:12px;padding:12px 18px}
:where(body).c-production-auth #modal-root .customer-markup-modal .modal-body{overflow:auto;min-height:0;padding:16px 18px}
:where(body).c-production-auth .customer-markup-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;min-width:0}
:where(body).c-production-auth .customer-markup-heading span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
:where(body).c-production-auth .customer-markup-fields{display:grid;gap:12px;min-width:0}
:where(body).c-production-auth .customer-markup-mode,:where(body).c-production-auth .customer-markup-rate{display:flex;align-items:center;flex-direction:row;gap:12px}
:where(body).c-production-auth .customer-markup-mode select{width:190px;max-width:100%}
:where(body).c-production-auth .customer-markup-rate input{width:120px}
:where(body).c-production-auth .customer-markup-parameters{display:grid;gap:10px;min-width:0}
:where(body).c-production-auth .customer-markup-note{font-size:12px;color:var(--muted);line-height:1.5;margin:12px 0 0}
:where(body).c-production-auth #modal-root .customer-markup-modal .error:empty{display:none}
:where(body).c-production-auth #modal-root .customer-markup-modal :is(.customer-markup-table,.customer-markup-overrides){max-width:100%;overflow:auto;margin:0}
:where(body).c-production-auth #modal-root .customer-markup-modal table{min-width:0;width:100%;table-layout:fixed}
:where(body).c-production-auth #modal-root .customer-markup-modal th,:where(body).c-production-auth #modal-root .customer-markup-modal td{padding:7px 10px;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth .customer-markup-table th:nth-child(-n+2){width:27%}
:where(body).c-production-auth .customer-markup-table th:last-child{width:64px}
:where(body).c-production-auth .customer-markup-overrides th:last-child{width:46%}
:where(body).c-production-auth #modal-root .customer-markup-modal table input{width:100%;min-width:0;box-sizing:border-box}
:where(body).c-production-auth .customer-markup-parameters>[data-cm-add]{justify-self:start}
:where(body).c-production-auth #modal-root .customer-markup-modal [hidden]{display:none!important}
@media(max-width:600px){:where(body).c-production-auth #modal-root .customer-markup-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}:where(body).c-production-auth #modal-root .customer-markup-modal .modal-head,:where(body).c-production-auth #modal-root .customer-markup-modal .modal-body,:where(body).c-production-auth #modal-root .customer-markup-modal .modal-foot{padding:12px}:where(body).c-production-auth #modal-root .customer-markup-modal h2{font-size:17px;overflow-wrap:anywhere}:where(body).c-production-auth #modal-root .customer-markup-modal .modal-foot{flex-wrap:wrap}:where(body).c-production-auth #modal-root .customer-markup-modal th,:where(body).c-production-auth #modal-root .customer-markup-modal td{padding:6px}:where(body).c-production-auth .customer-markup-table th:nth-child(-n+2){width:27%}:where(body).c-production-auth .customer-markup-table th:last-child{width:54px}:where(body).c-production-auth #modal-root .customer-markup-modal table button{padding:6px;min-width:0}:where(body).c-production-auth .customer-markup-mode{gap:8px}:where(body).c-production-auth .customer-markup-mode select{flex:1;width:auto;min-width:0}}

:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-table table{min-width:520px}
:where(body).c-production-auth .customer-markup-range-note{margin:0}
:where(body).c-production-auth .customer-markup-legacy-note{margin:0;color:var(--warning,#9a5b00)}
:where(body).c-production-auth .customer-markup-empty{text-align:center;color:var(--muted)}
:where(body).c-production-auth #modal-root .customer-markup-modal input[aria-invalid="true"]{border-color:var(--danger,#b42318)}

:where(body).c-production-auth .customer-markup-rule-list{display:grid;gap:10px;min-width:0}
:where(body).c-production-auth .customer-markup-rule{border:1px solid var(--line);border-radius:6px;min-width:0;overflow:hidden}
:where(body).c-production-auth .customer-markup-rule-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:transparent}
:where(body).c-production-auth .customer-markup-rule-head>label{display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0;font-weight:600}
:where(body).c-production-auth .customer-markup-rule-head input{width:auto}
:where(body).c-production-auth .customer-markup-order{display:flex;gap:6px;flex-shrink:0}
:where(body).c-production-auth .customer-markup-rule>.customer-markup-parameters{padding:10px}
:where(body).c-production-auth .customer-markup-priority-note{margin:0}
:where(body).c-production-auth .customer-markup-brand-search{display:grid;gap:6px;min-width:0}
:where(body).c-production-auth .customer-markup-brand-search>label{display:flex;flex-direction:row;gap:8px;align-items:center}
:where(body).c-production-auth .customer-markup-brand-search input[type=search]{flex:1;min-width:0;width:100%}
:where(body).c-production-auth .customer-markup-brand-options{display:grid;max-height:180px;overflow:auto;gap:4px;padding:6px;border:1px solid var(--line)}
:where(body).c-production-auth .customer-markup-rule[data-cm-section="material-brand"] .customer-markup-overrides th:last-child{width:64px}
:where(body).c-production-auth .customer-markup-rule[data-cm-section="material-brand"] .customer-markup-overrides th:nth-child(2){width:40%}
:where(body).c-production-auth .customer-markup-fields>[data-cm-validation]{margin:0}
:where(body).c-production-auth table[data-table-key="quote-customers"] .quote-customer-markup{white-space:normal;overflow-wrap:anywhere;cursor:pointer}
:where(body).c-production-auth table[data-table-key="quote-customers"] .quote-customer-markup-edit{max-width:100%;min-width:0;white-space:normal;cursor:pointer}
:where(body).c-production-auth .quote-customer-markup-lines{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
:where(body).c-production-auth table[data-table-key="quote-customers"] .quote-customer-markup-edit[data-configured="true"]{display:block;width:100%;min-height:24px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:var(--green);font:inherit;line-height:1.5;box-shadow:none}
:where(body).c-production-auth .quote-customer-markup-edit[data-configured="true"] .quote-customer-markup-lines>span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
:where(body).c-production-auth table[data-table-key="quote-customers"] .quote-customer-markup:has([data-configured="true"]):hover,:where(body).c-production-auth table[data-table-key="quote-customers"] .quote-customer-markup:has([data-configured="true"]):focus-within{background:color-mix(in srgb,var(--green) 7%,transparent)}
:where(body).c-production-auth table[data-table-key="quote-customers"] .quote-customer-markup-edit:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:600px){:where(body).c-production-auth .customer-markup-rule-head{flex-wrap:wrap}:where(body).c-production-auth .customer-markup-order{margin-left:auto}:where(body).c-production-auth .customer-markup-rule>.customer-markup-parameters{padding:6px}:where(body).c-production-auth .customer-markup-order button{padding:4px 6px}:where(body).c-production-auth .customer-markup-brand-search>label{flex-wrap:wrap}}

/* 2026-10-23: Compact headers, inline uniform rate and an out-of-flow brand picker. */
:where(body).c-production-auth #modal-root .customer-markup-modal .modal-body{padding:12px 14px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-fields{gap:8px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-list{gap:6px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-head{min-height:38px;padding:5px 8px;gap:6px;flex-wrap:wrap}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;flex:1}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-title>label{display:flex;flex-direction:row;align-items:center;gap:5px;font-weight:600;white-space:nowrap}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-inline-rate{display:inline-flex;align-items:center;gap:4px;flex:none}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-inline-rate input{width:80px;max-width:80px;text-align:center}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-order{margin-left:auto;gap:4px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-list button{min-height:28px;height:28px;padding:3px 8px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-list input:not([type=checkbox]){min-height:28px;height:28px;padding:3px 7px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule>.customer-markup-parameters{padding:6px;gap:6px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule th,:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule td{padding:4px 6px}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-field-error{display:block;margin:3px 0 0;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.35}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-head>.customer-markup-field-error{flex-basis:100%;margin:0}
/* Share the system search surface; clicking an option adds it directly. */
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-picker{inset:auto;margin:0;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:0;max-width:calc(100vw - 24px);padding:4px;overflow:hidden}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-options{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding:0;border:0;gap:0;flex:1}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-options>.customer-markup-brand-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:auto;min-height:36px;box-sizing:border-box;margin:0;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:inherit;font:inherit;box-shadow:none;text-align:left;white-space:normal;cursor:pointer}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-option:not(:disabled):is(:hover,:focus-visible){background:var(--pc-soft,#e8f4f2);color:var(--pc-accent,#087a75)}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-option:disabled{opacity:.6;cursor:default}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-options>p{margin:0;padding:8px 9px;font-size:12px;color:var(--pc-muted,var(--muted,#64736e));overflow-wrap:anywhere}
:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-picker::backdrop{background:transparent}
@media(max-width:700px){:where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-options>.customer-markup-brand-option{min-height:44px}}
@media(max-width:600px){
 :where(body).c-production-auth #modal-root .customer-markup-modal .modal-body{padding:10px}
 :where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-head{padding:3px 6px;gap:4px}
 :where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-title{gap:4px}
 :where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-inline-rate input{width:68px;max-width:68px}
 :where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-list button{min-height:32px;height:32px;padding:3px 6px}
 :where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-rule-list input:not([type=checkbox]){min-height:32px;height:32px}
 :where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-search>label{flex-wrap:nowrap;gap:6px}
 :where(body).c-production-auth #modal-root .customer-markup-modal .customer-markup-brand-search>label input{width:0;min-width:0}
}

/* Customer form layout only; shared dialog theme provides the palette. */
:where(body).c-production-auth #modal-root .customer-modal {
  max-width: 760px;
  max-height: 92vh;
  max-height: min(92vh, calc(100dvh - 48px));
  overflow: hidden;
}
:where(body).c-production-auth #modal-root .customer-modal #customer-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}
:where(body).c-production-auth #modal-root .customer-modal .modal-head,
:where(body).c-production-auth #modal-root .customer-modal .modal-foot { flex-shrink: 0; padding: 18px 28px; }
:where(body).c-production-auth #modal-root .customer-modal .modal-body { min-height: 0; overflow-y: auto; padding: 24px 28px; }
:where(body).c-production-auth #modal-root .customer-modal .customer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}
:where(body).c-production-auth #modal-root .customer-modal .customer-field { min-width: 0; margin: 0; gap: 9px; font-size: 13px; }
:where(body).c-production-auth #modal-root .customer-modal .customer-field-wide { grid-column: 1 / -1; }
:where(body).c-production-auth #modal-root .customer-modal .customer-field > span { line-height: 1.5; }
:where(body).c-production-auth #modal-root .customer-modal .customer-field :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line, #c7dce0);
  border-radius: 6px;
  font: inherit;
  line-height: 1.5;
}
:where(body).c-production-auth #modal-root .customer-modal .customer-field textarea { min-height: 80px; resize: vertical; }
:where(body).c-production-auth #modal-root .customer-modal .customer-field textarea[name="remark"] { min-height: 96px; }
:where(body).c-production-auth #modal-root .customer-modal .customer-status {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line, #c7dce0);
  gap: 9px;
}
:where(body).c-production-auth #modal-root .customer-modal #customer-error { margin: 16px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
:where(body).c-production-auth #modal-root .customer-modal #customer-error:empty { display: none; }
:where(body).c-production-auth #modal-root .customer-modal .modal-foot button { min-height: 40px; }
@media (max-width: 700px) {
  :where(body).c-production-auth #modal-root .customer-modal { max-height: 97vh; max-height: calc(100dvh - 16px); }
  :where(body).c-production-auth #modal-root .customer-modal .modal-head,
  :where(body).c-production-auth #modal-root .customer-modal .modal-foot { padding: 16px; }
  :where(body).c-production-auth #modal-root .customer-modal .modal-body { padding: 20px 16px; }
  :where(body).c-production-auth #modal-root .customer-modal .customer-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  :where(body).c-production-auth #modal-root .customer-modal .customer-field :is(input, textarea), :where(body).c-production-auth #modal-root .customer-modal .modal-foot button { min-height: 44px; }
  :where(body).c-production-auth #modal-root .customer-modal .customer-field textarea { min-height: 80px; }
  :where(body).c-production-auth #modal-root .customer-modal .customer-field textarea[name="remark"] { min-height: 96px; }
  :where(body).c-production-auth #modal-root .customer-modal .customer-status { margin-top: 20px; }
}

:where(body).c-production-auth .bulk-price-dialog{width:880px;max-width:100%}
:where(body).c-production-auth .bulk-price-dialog form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
:where(body).c-production-auth .bulk-price-dialog .modal-body{overflow:auto;min-height:0;overscroll-behavior:contain;display:grid;gap:14px}
:where(body).c-production-auth .bulk-price-dialog .modal-body p{line-height:1.6;overflow-wrap:anywhere}
:where(body).c-production-auth .bulk-price-scope{padding:12px;border:1px solid #c7dce0;border-radius:6px;background:#f1f7f6;font-size:13px}
:where(body).c-production-auth .bulk-price-group{padding:16px;background:#fff;border:1px solid #c7dce0;border-radius:7px;margin-bottom:12px;min-width:0}
:where(body).c-production-auth .bulk-price-group h3{margin:0 0 9px;overflow-wrap:anywhere}
:where(body).c-production-auth .bulk-price-group p{font-size:13px;margin:6px 0;color:#475866}
:where(body).c-production-auth .bulk-price-warning{color:#89571c;font-size:13px}
:where(body).c-production-auth .bulk-price-entry{margin:12px 0;max-width:280px}
:where(body).c-production-auth .bulk-price-entry input{width:100%}
:where(body).c-production-auth .bulk-price-group summary{cursor:pointer;font-size:13px;line-height:1.6}
:where(body).c-production-auth .bulk-price-table{overflow:auto;margin-top:10px;max-height:300px;overscroll-behavior:contain}
:where(body).c-production-auth .bulk-price-table table{width:100%;min-width:440px;border-collapse:collapse;font-size:13px}
:where(body).c-production-auth .bulk-price-table :is(th,td){padding:8px;border:1px solid #d7e3e7;text-align:left}
:where(body).c-production-auth .bulk-price-table th{background:#f1f7f6;position:sticky;top:0}
:where(body).c-production-auth .bulk-price-review{font-size:13px;line-height:1.6}
:where(body).c-production-auth .bulk-price-dialog [hidden]{display:none!important}
@media(max-width:600px){:where(body).c-production-auth .bulk-price-group{padding:12px}:where(body).c-production-auth .bulk-price-dialog .modal-foot{flex-wrap:wrap}:where(body).c-production-auth .bulk-price-dialog .modal-foot button{flex:1;min-width:0}:where(body).c-production-auth .bulk-price-entry{max-width:none}}

/* 2026-10-12: independent price-maintenance workspace. */
:where(body).c-production-auth #app .price-page-content{padding:14px;border:1px solid var(--pc-line,#c7dce0);border-radius:10px;background:var(--pc-top,#f1f7f6);min-width:0}
:where(body).c-production-auth #app .price-page-content .actions,:where(body).c-production-auth #app .price-page-selection,:where(body).c-production-auth #app .price-page-pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
:where(body).c-production-auth #app .price-page-content input:not([type=checkbox]),:where(body).c-production-auth #app .price-page-content select{background:#fff;border:1px solid #b7d5e3;border-radius:5px;min-height:36px;padding:6px 9px;max-width:100%;box-sizing:border-box}
:where(body).c-production-auth #app .price-page-content input:focus-visible,:where(body).c-production-auth #app .price-page-content select:focus-visible{outline:2px solid var(--pc-accent,#087a75);outline-offset:1px}
:where(body).c-production-auth #app .price-page-content .notice{padding:10px;font-size:13px}
:where(body).c-production-auth #app .price-page-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 32px;margin-bottom:10px}
:where(body).c-production-auth #app .price-page-toolbar form{min-width:0}
:where(body).c-production-auth #app .price-page-selection{margin:0}
:where(body).c-production-auth #app .price-page-pager{justify-content:flex-end;margin-top:10px;font-size:13px}
:where(body).c-production-auth #app .price-history-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end;margin:10px 0}
:where(body).c-production-auth #app .price-history-filters label{display:flex;flex-direction:column;gap:4px;font-size:12px}
:where(body).c-production-auth #app .price-history-batches>details{margin:8px 0;border:1px solid var(--pc-line,#c7dce0);border-radius:7px;background:#fff;padding:10px;min-width:0}
:where(body).c-production-auth #app .price-history-batches summary{cursor:pointer;line-height:1.7;overflow-wrap:anywhere;font-size:13px}
:where(body).c-production-auth #app .price-history-batches [data-price-detail]{margin-top:10px}
:where(body).c-production-auth #app .price-page-content table{width:100%;min-width:650px;border-collapse:collapse;font-size:13px}
:where(body).c-production-auth #app .price-page-content :is(th,td){padding:8px;text-align:left;border:1px solid var(--pc-line,#c7dce0)}
:where(body).c-production-auth #app .price-page-content th{background:var(--pc-soft,#e2f3ef)}
@media(max-width:600px){:where(body).c-production-auth #app .price-page-content{padding:10px}:where(body).c-production-auth #app .price-history-filters>*{flex:1 1 140px;min-width:0}:where(body).c-production-auth #app .price-page-content button{min-height:40px}:where(body).c-production-auth #app .price-page-content [data-price-search] input{flex:1;min-width:0}}

@media(max-width:600px){:where(body).c-production-auth #app .price-page-toolbar{gap:10px 12px}:where(body).c-production-auth #app .price-page-toolbar form{flex:1 1 100%}:where(body).c-production-auth #app .price-page-selection{justify-content:flex-start}}

/* 2026-10-12: history entry at the right of the query toolbar. */
:where(body).c-production-auth #app .price-page-history-entry{margin-left:auto;flex-shrink:0}

/* Price range and calendar date stay readable inside the horizontal table scroller. */
:where(body).c-production-auth #app .price-page-content [data-price-main]>.table-wrap table{min-width:900px}
:where(body).c-production-auth #app .price-page-content [data-price-main]>.table-wrap :is(th,td):nth-last-child(-n+2){white-space:nowrap}

/* Reference-style return action; colors follow the selected theme. */
:where(body).c-production-auth #app button.price-page-back{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 12px;border:1px solid var(--pc-accent,#087a75);border-radius:4px;background:var(--pc-soft,#e2f3ef);color:var(--pc-deep,#075f5b);font-weight:600;white-space:nowrap}
:where(body).c-production-auth #app button.price-page-back svg{width:16px;height:16px;flex-shrink:0}
:where(body).c-production-auth #app button.price-page-back:focus-visible{outline:2px solid var(--pc-accent,#087a75);outline-offset:2px}

/* 2026-10-12: return action precedes the page title on the left. */
:where(body).c-production-auth #app .heading.price-page-heading{justify-content:flex-start;align-items:center;gap:16px;flex-wrap:wrap}
:where(body).c-production-auth #app .price-page-heading .price-page-back{flex-shrink:0}

/* 2026-10-12: pagination labels, size selector and navigation share one line. */
:where(body).c-production-auth #app .price-page-pager{flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;min-width:0}
:where(body).c-production-auth #app .price-page-pager>*{flex:0 0 auto}
:where(body).c-production-auth #app .price-page-pager>label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0;white-space:nowrap}
:where(body).c-production-auth #app .price-page-pager>label>select{width:auto;flex:0 0 auto;margin:0}
@media(max-width:600px){:where(body).c-production-auth #app .price-page-pager{justify-content:flex-start;gap:6px}}

/* 2026-10-12: compact batch history summary; source snapshots remain unchanged. */
:where(body).c-production-auth #app .price-page-content .price-history-summary-table{min-width:560px}
:where(body).c-production-auth #app .price-history-summary-table td:first-child{min-width:200px}
:where(body).c-production-auth #app .price-history-summary-table .price-history-basis{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--pc-deep,#475866);opacity:.8;overflow-wrap:anywhere}
:where(body).c-production-auth #app .price-history-summary-table :is(th,td):nth-child(n+3){white-space:nowrap}

/* 2026-10-12: page title occupies the row below the return button. */
:where(body).c-production-auth #app .heading.price-page-heading{gap:10px}
:where(body).c-production-auth #app .price-page-heading>h1{flex:0 0 100%;width:100%;margin:0}

:where(body).c-production-auth #customer-sales-prices > .sp-heading{min-height:50px;padding:8px 0;gap:10px 16px}
:where(body).c-production-auth #customer-sales-prices .sp-heading-title{display:flex;align-items:center;gap:10px;min-width:0}
:where(body).c-production-auth #customer-sales-prices .sp-heading-title > .back{margin:0;min-width:0;flex:0 1 auto;white-space:normal}
:where(body).c-production-auth #customer-sales-prices .sp-heading-title h1{margin:0;flex:0 0 auto;line-height:1.3;white-space:nowrap}
:where(body).c-production-auth #customer-sales-prices .catalog-query{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
:where(body).c-production-auth #customer-sales-prices .catalog-query label{display:flex;flex-direction:column;gap:6px;min-width:220px}
:where(body).c-production-auth #customer-sales-prices .catalog-query input[name=q]{width:280px;max-width:100%}
:where(body).c-production-auth #customer-sales-prices .sp-selection{margin:8px 0;gap:12px;flex-wrap:wrap}
:where(body).c-production-auth #customer-sales-prices .sp-selection label{display:flex;flex-direction:row;align-items:center;gap:6px}
:where(body).c-production-auth #customer-sales-prices input[type=checkbox]{width:18px;height:18px}
:where(body).c-production-auth #customer-sales-prices table{min-width:1000px;width:100%}
:where(body).c-production-auth #customer-sales-prices a[aria-disabled=true]{pointer-events:none;opacity:.5}
:where(body).c-production-auth .sp-modal{width:min(900px,calc(100vw - 32px));max-width:900px}
:where(body).c-production-auth .sp-modal .sp-fields{display:grid;gap:16px}
:where(body).c-production-auth .sp-modal [hidden]{display:none!important}
:where(body).c-production-auth .sp-modal .sp-fields label{display:flex;flex-direction:column;gap:6px}
:where(body).c-production-auth .sp-modal .sp-fields input,:where(body).c-production-auth .sp-modal .sp-fields select,:where(body).c-production-auth .sp-modal .sp-fields textarea{width:100%;min-width:0}
:where(body).c-production-auth .sp-modal .sp-fields .actions input{flex:1}
:where(body).c-production-auth .sp-modal .sp-preview{max-height:52vh;overflow:auto}
:where(body).c-production-auth .sp-modal .sp-preview table{min-width:650px;width:100%}
:where(body).c-production-auth .sp-modal .sp-preview th{position:sticky;top:0;background:var(--surface,#edf2f4)}
:where(body).c-production-auth .sp-modal p[data-sp-material-info]{overflow-wrap:anywhere;margin:0}
@media(max-width:600px){:where(body).c-production-auth #customer-sales-prices .heading{align-items:stretch;flex-direction:column}:where(body).c-production-auth #customer-sales-prices .heading .actions{flex-wrap:wrap}:where(body).c-production-auth #customer-sales-prices .catalog-query label,:where(body).c-production-auth #customer-sales-prices .catalog-query>.actions{width:100%;min-width:0}:where(body).c-production-auth #customer-sales-prices .catalog-query input[name=q]{width:100%}:where(body).c-production-auth #customer-sales-prices .catalog-query>.actions{flex-wrap:wrap}:where(body).c-production-auth #customer-sales-prices .pager{flex-wrap:wrap}:where(body).c-production-auth .sp-modal{width:calc(100vw - 24px)}:where(body).c-production-auth .sp-modal .modal-body{padding:16px}:where(body).c-production-auth .sp-modal select{max-width:100%}}

:where(body).c-production-auth #customer-sales-prices [hidden]{display:none!important}
:where(body).c-production-auth #customer-sales-prices .sp-entry-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:12px 0}
:where(body).c-production-auth #customer-sales-prices .sp-entry-toolbar .actions{flex-wrap:wrap;gap:8px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-wrap{max-width:100%;overflow:auto}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table{min-width:1000px;table-layout:fixed;width:100%}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(1){width:52px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(2){width:100px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(3){width:180px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(4){width:70px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(5){width:110px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(6){width:60px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(7){width:150px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(8){width:100px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(9){width:110px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table th:nth-child(10){width:70px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table td{vertical-align:top;padding:8px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table input{width:100%;min-width:0;box-sizing:border-box}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table input[readonly]{color:var(--muted);background:var(--surface,#f4f8f7)}
:where(body).c-production-auth #customer-sales-prices .sp-entry-table input[aria-invalid=true]{border-color:#b23434}
:where(body).c-production-auth #customer-sales-prices .sp-row-error{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;margin-top:4px}
:where(body).c-production-auth #customer-sales-prices [data-sp-entry-error]:empty,:where(body).c-production-auth #customer-sales-prices .sp-row-error:empty{display:none}
@media(max-width:600px){:where(body).c-production-auth #customer-sales-prices .sp-entry-toolbar{align-items:stretch;flex-direction:column}:where(body).c-production-auth #customer-sales-prices .sp-entry-toolbar .actions{width:100%;justify-content:flex-end}}

:where(body).c-production-auth .sp-purchase-modal .sp-purchase-wrap{max-width:100%;max-height:52vh;overflow:auto}
:where(body).c-production-auth .sp-purchase-modal table{min-width:950px;width:100%}
:where(body).c-production-auth .sp-purchase-modal .modal-foot{flex-wrap:wrap;gap:8px}
:where(body).c-production-auth .sp-purchase-modal .pager{flex-wrap:wrap;margin:0;min-width:0}

/* Quotation customer rows open the same editor above the unchanged list. */
body.c-production-auth:has(#modal-root > [data-sp-library-dialog]){overflow:hidden}
:where(body).c-production-auth #modal-root .sp-library-modal{width:min(1120px,calc(100vw - 32px));max-width:1120px;max-height:calc(100dvh - 40px)}
:where(body).c-production-auth #modal-root .sp-library-modal > .modal-head{padding:12px 16px;gap:12px;flex-shrink:0}
:where(body).c-production-auth #modal-root .sp-library-modal > .modal-head h2{font-size:17px;line-height:1.4}
:where(body).c-production-auth #modal-root .sp-library-body{padding:14px 16px;min-width:0;min-height:0;overscroll-behavior:contain}
:where(body).c-production-auth #modal-root .sp-library-body > #customer-sales-prices{display:flex;flex-direction:column;gap:14px;min-width:0}
:where(body).c-production-auth #modal-root .sp-library-body .sp-heading{margin:0;padding:0;min-height:0;justify-content:flex-end}
:where(body).c-production-auth #modal-root .sp-library-body .catalog-query{margin:0;padding:0;gap:10px}
:where(body).c-production-auth #modal-root .sp-library-body :is(.sp-selection,.pager){margin:0}
:where(body).c-production-auth #modal-root .sp-library-body .pager{padding-top:0}
:where(body).c-production-auth #modal-root .sp-library-body .empty{min-height:96px;padding:28px 16px}
:where(body).c-production-auth #modal-root .sp-library-body .table-wrap{max-width:100%;min-width:0}
@media(max-width:600px){
  :where(body).c-production-auth #modal-root .sp-library-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  :where(body).c-production-auth #modal-root .sp-library-modal > .modal-head{padding:10px 12px}
  :where(body).c-production-auth #modal-root .sp-library-body{padding:12px}
  :where(body).c-production-auth #modal-root .sp-library-modal button{min-height:44px}
  :where(body).c-production-auth #modal-root .sp-library-body .sp-heading > .actions{justify-content:flex-end}
}

/* Each price-library module has its own surface in both page and dialog mode. */
:where(body).c-production-auth #customer-sales-prices{display:flex;flex-direction:column;gap:14px;min-width:0}
:where(body).c-production-auth #customer-sales-prices > :is(.sp-heading,.sp-query-card,.sp-selection,[data-sp-list],[data-sp-pager]){
  margin:0;
  padding:12px 14px;
  min-width:0;
  border:1px solid #c5d9d2;
  border-radius:10px;
  background:rgba(255,255,255,.94);
  box-shadow:0 3px 12px rgba(24,65,52,.07);
}
:where(body).c-production-auth #customer-sales-prices > .sp-query-card{display:flex;flex-direction:column;gap:10px}
:where(body).c-production-auth #customer-sales-prices > .sp-query-card > .catalog-query{padding:0;margin:0}
:where(body).c-production-auth #customer-sales-prices > [data-sp-list]{padding:0;overflow:hidden}
:where(body).c-production-auth #customer-sales-prices > [data-sp-list] > .table-wrap{border:0;border-radius:inherit}
:where(body).c-production-auth #customer-sales-prices > [data-sp-pager]{padding:10px 14px;min-height:48px}
:where(body).c-production-auth #customer-sales-prices > [data-sp-pager]:empty{display:none}
:where(body).c-production-auth #customer-sales-prices .empty{min-height:132px;padding:36px 16px}
:where(body).c-production-auth #customer-sales-prices .sp-entry-toolbar{margin:0;padding:10px 12px}
:where(body).c-production-auth #modal-root .sp-library-body .sp-heading{padding:10px 12px}
:where(body).c-production-auth #modal-root .sp-library-body .pager{padding:10px 12px}
@media(max-width:600px){
  :where(body).c-production-auth #customer-sales-prices > :is(.sp-heading,.sp-query-card,.sp-selection,[data-sp-pager]){padding:10px}
}

/* Compact, grouped transfer actions use the existing theme and line icons. */
:where(body).c-production-auth #customer-sales-prices .sp-transfer-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-trigger[aria-expanded=true]{border-color:var(--accent,#087f7c);background:var(--accent-soft,#e5f3f2)}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-trigger svg{width:16px;height:16px;flex:none}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-trigger svg:last-child{width:14px;height:14px}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-menu{position:fixed;z-index:1450;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;margin:0;padding:6px;border:1px solid var(--line,#cbd5df);border-radius:12px;background:var(--card,#fff);box-shadow:0 10px 30px #162a3b24;overflow:auto}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-menu [role=menuitem]{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:36px;width:100%;box-sizing:border-box;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;text-decoration:none;font:inherit;white-space:nowrap;cursor:pointer}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-menu [role=menuitem]:is(:hover,:focus-visible){background:var(--accent-soft,#e5f3f2);outline:0}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-menu [role=menuitem]:is(:disabled,[aria-disabled=true]){opacity:.45;cursor:default}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-menu [role=menuitem]:is(:disabled,[aria-disabled=true]):hover{background:transparent}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-menu svg{width:16px;height:16px;flex:none;color:var(--muted,#60736f)}
:where(body).c-production-auth #customer-sales-prices .sp-transfer-divider{height:1px;flex:none;background:var(--line,#dce5e1);margin:4px 4px}
@media(max-width:600px){:where(body).c-production-auth #customer-sales-prices .sp-transfer-menu [role=menuitem]{min-height:44px}}

/* Keep the customer selector at the left of the action card, without a visible caption. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app,#modal-root) #customer-sales-prices > .sp-heading > .sp-customer-select{flex:0 1 240px;width:240px;min-width:0;max-width:100%;margin-right:auto}
@media(max-width:600px){html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app,#modal-root) #customer-sales-prices > .sp-heading > .sp-customer-select{flex:0 1 auto;width:100%;margin-right:0}}

/* Purchase references stay on one quiet line below the sales price. */
:where(body).c-production-auth #customer-sales-prices .sp-purchase-reference{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;max-width:100%;margin-top:4px;font-size:12px;line-height:20px;color:var(--muted);white-space:nowrap}
:where(body).c-production-auth #customer-sales-prices .sp-purchase-reference [data-sp-purchase-status]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(body).c-production-auth #customer-sales-prices .sp-purchase-reference [data-sp-purchase-separator]{flex:none}
:where(body).c-production-auth #customer-sales-prices .sp-purchase-reference > .sp-reference-action,
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app,#modal-root) #customer-sales-prices .sp-purchase-reference > .sp-reference-action{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:0;max-width:none;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--accent,#087f7c);font:inherit;line-height:inherit;white-space:nowrap;cursor:pointer}
:where(body).c-production-auth #customer-sales-prices .sp-purchase-reference > .sp-reference-action:hover{text-decoration:underline}
:where(body).c-production-auth #customer-sales-prices .sp-purchase-reference > .sp-reference-action:focus-visible{outline:2px solid var(--accent,#087f7c);outline-offset:2px}

:where(body).c-production-auth .quote-supplier-dialog{width:min(840px,calc(100vw - 24px));max-width:840px}
:where(body).c-production-auth .quote-supplier-query{display:flex;gap:8px;align-items:center;margin-bottom:12px}
:where(body).c-production-auth .quote-supplier-query input{min-width:0;flex:1}
:where(body).c-production-auth .quote-supplier-current{font-size:13px;margin:8px 0 14px;overflow-wrap:anywhere}
:where(body).c-production-auth .quote-supplier-choices{border:0;padding:0;margin:0;min-width:0}
:where(body).c-production-auth .quote-supplier-choices legend{font-size:13px;margin-bottom:8px}
:where(body).c-production-auth .quote-supplier-choice{display:flex;flex-direction:row;gap:12px;align-items:flex-start;padding:12px;margin:0 0 8px;border:1px solid var(--border,#c7dcda);border-radius:8px;cursor:pointer}
:where(body).c-production-auth .quote-supplier-choice:has(input:checked){outline:2px solid var(--primary,#087a75);outline-offset:-2px}
:where(body).c-production-auth .quote-supplier-choice>input{width:20px;height:20px;flex:0 0 20px;margin-top:2px}
:where(body).c-production-auth .quote-supplier-choice>span{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}
:where(body).c-production-auth .quote-supplier-choice strong small,:where(body).c-production-auth .quote-supplier-choice small{font-weight:400;font-size:12px}
:where(body).c-production-auth .quote-supplier-dialog .pager{flex-wrap:wrap;margin-top:12px}
:where(body).c-production-auth .quote-supplier-cell{min-width:132px}
:where(body).c-production-auth .quote-supplier-cell>span{display:block;overflow-wrap:anywhere}
:where(body).c-production-auth .quote-supplier-cell>button{margin-top:5px;font-size:12px;padding:3px 8px;min-height:28px}
@media(max-width:600px){:where(body).c-production-auth .quote-supplier-dialog{width:calc(100vw - 16px)}:where(body).c-production-auth .quote-supplier-choice{padding:10px;gap:8px}:where(body).c-production-auth .quote-supplier-dialog .modal-foot{flex-wrap:wrap}:where(body).c-production-auth .quote-supplier-dialog button,:where(body).c-production-auth .quote-supplier-cell>button{min-height:40px}}
:where(body).c-production-auth .quote-batch-dialog{width:min(1080px,calc(100vw - 24px));max-width:1080px}
:where(body).c-production-auth .quote-batch-intro{font-size:13px;margin:0 0 12px}
:where(body).c-production-auth .quote-batch-section{font-size:15px;margin:16px 0 8px}
:where(body).c-production-auth .quote-batch-group{margin:0 0 18px}
:where(body).c-production-auth .quote-batch-group-head{font-size:13px;margin:0 0 6px;overflow-wrap:anywhere}
:where(body).c-production-auth .quote-batch-group-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0;font-size:13px}
:where(body).c-production-auth .quote-batch-group-actions button{min-height:28px;padding:2px 10px;font-size:12px}
:where(body).c-production-auth .quote-batch-table{min-width:0;font-size:13px}
:where(body).c-production-auth .quote-batch-table td,:where(body).c-production-auth .quote-batch-table th{padding:6px 10px;white-space:nowrap}
:where(body).c-production-auth .quote-batch-table td:nth-child(2){white-space:normal;max-width:360px}
:where(body).c-production-auth .quote-batch-table label{display:inline-flex;flex-direction:row;align-items:center;gap:4px;cursor:pointer}
:where(body).c-production-auth .quote-batch-table label small{font-size:11px}
:where(body).c-production-auth .quote-batch-count{margin-right:auto;font-size:13px}
:where(body).c-production-auth .quote-batch-dialog .modal-foot{flex-wrap:wrap}
:where(body).c-production-auth .quote-batch-dialog .modal-foot .error{flex-basis:100%;margin:0;order:-1}
@media(max-width:700px){:where(body).c-production-auth .quote-batch-dialog{width:calc(100vw - 16px)}:where(body).c-production-auth .quote-batch-table td:nth-child(2){min-width:140px}:where(body).c-production-auth .quote-batch-dialog button{min-height:40px}}

/* Foundation lists share the customer toolbar, table and footer. */
:where(body).c-production-auth #content .master-data-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}
:where(body).c-production-auth #content .master-data-table [data-column="name"] {
  width: auto;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
:where(body).c-production-auth #content .master-data-table [data-column="active"] { width: 90px; white-space: nowrap; }
:where(body).c-production-auth #content > .master-list-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}
:where(body).c-production-auth .master-list-footer > span { margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
:where(body).c-production-auth .master-list-footer > .pager { flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
:where(body).c-production-auth .master-list-footer .pager label { flex-direction: row; align-items: center; gap: 4px; white-space: nowrap; }
:where(body).c-production-auth .master-list-footer .pager select { width: 54px; height: 30px; min-height: 30px; padding: 2px 4px; }
:where(body).c-production-auth .master-list-footer .pager button { min-height: 30px; padding: 4px 7px; font-size: 12px; }
:where(body).c-production-auth .master-list-footer .pager > span { white-space: nowrap; }

/* A single name field needs a compact dialog, including at desktop widths. */
:where(body).c-production-auth #modal-root .modal.master-data-modal {
  width: calc(100vw - 32px);
  max-width: 440px;
  min-width: 0;
  max-height: 92vh;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
:where(body).c-production-auth #modal-root .master-data-modal > form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; overflow: hidden; }
:where(body).c-production-auth #modal-root .master-data-modal .modal-head { flex-shrink: 0; padding: 14px 18px; gap: 12px; }
:where(body).c-production-auth #modal-root .master-data-modal .modal-head h2 { font-size: 16px; line-height: 1.4; }
:where(body).c-production-auth #modal-root .master-data-modal .master-data-close { width: 28px; height: 28px; min-height: 28px; padding: 0; font-size: 20px; line-height: 1; }
:where(body).c-production-auth #modal-root .master-data-modal .modal-body { min-height: 0; overflow-y: auto; padding: 18px; }
:where(body).c-production-auth #modal-root .master-data-modal .modal-body > label:not(.check) { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; }
:where(body).c-production-auth #modal-root .master-data-modal input[name="name"] { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border-radius: 6px; font-size: 14px; font-weight: 400; }
:where(body).c-production-auth #modal-root .master-data-modal .master-data-active { margin: 14px 0 0; gap: 8px; font-size: 13px; }
:where(body).c-production-auth #modal-root .master-data-modal [data-md-impact] { margin-top: 14px; padding: 10px 12px; border: 1px solid #b8d3d6; border-radius: 6px; background: #f3f8f9; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
:where(body).c-production-auth #modal-root .master-data-modal .error { margin: 12px 0 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
:where(body).c-production-auth #modal-root .master-data-modal .modal-foot { flex-shrink: 0; padding: 12px 18px; gap: 8px; }
:where(body).c-production-auth #modal-root .master-data-modal .modal-foot button { min-height: 34px; min-width: 72px; padding: 6px 14px; font-size: 13px; }
@media (max-width: 480px) {
  :where(body).c-production-auth #content .master-data-table [data-column="active"] { width: 64px; }
  :where(body).c-production-auth #modal-root .master-data-modal .modal-foot button { min-height: 40px; }
}

/* Independent creation and the existing brand directory share one workspace. */
:where(body).c-production-auth #modal-root .modal.master-data-modal.brand-manager-modal { max-width: 640px; display: flex; flex-direction: column; }
:where(body).c-production-auth #modal-root .brand-manager-modal > .modal-body { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; }
:where(body).c-production-auth #modal-root .brand-manager-modal :is(.modal-head, .modal-foot, [data-bm-create]) { flex-shrink: 0; }
:where(body).c-production-auth #modal-root .brand-manager-modal [data-bm-create] > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
:where(body).c-production-auth #modal-root .brand-manager-modal :is(.brand-manager-entry, .brand-manager-search) { display: flex; align-items: center; gap: 8px; margin: 0; }
:where(body).c-production-auth #modal-root .brand-manager-modal :is(.brand-manager-entry, .brand-manager-search) input { flex: 1 1 0; width: 0; min-width: 0; }
:where(body).c-production-auth #modal-root .brand-manager-modal :is(.brand-manager-entry, .brand-manager-search) button { flex-shrink: 0; min-height: 36px; padding: 6px 14px; font-size: 13px; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-existing { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
:where(body).c-production-auth #modal-root .brand-manager-modal h3 { margin: 0; font-size: 13px; font-weight: 600; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-results { max-height: min(36dvh, 300px); overflow-y: auto; flex-shrink: 1; min-height: 0; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table :is(th, td) { padding: 6px 8px; border: 1px solid var(--pc-border, #d3e3df); text-align: center; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table th { position: sticky; top: 0; background: var(--pc-surface, #f5f9f8); font-size: 12px; font-weight: 600; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) .brand-manager-modal .brand-manager-table { table-layout: fixed; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) .brand-manager-modal .brand-manager-table td:first-child { max-width: none; white-space: normal !important; overflow-wrap: anywhere !important; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table :is(th, td):nth-child(2) { width: 64px; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table :is(th, td):last-child { width: 72px; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table button { min-height: 30px; padding: 4px 10px; font-size: 13px; }
:where(body).c-production-auth #modal-root .brand-manager-modal .foundation-status[data-active="0"] { color: var(--pc-muted, #60736e); }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-status { margin: 0; font-size: 12px; color: var(--pc-muted, #60736e); }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-pager { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-pager > span { white-space: nowrap; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-pager > span:first-child { margin-right: auto; }
:where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-pager button { min-width: 32px; min-height: 30px; padding: 4px 8px; }
@media (max-width: 480px) {
  :where(body).c-production-auth #modal-root .brand-manager-modal :is(.brand-manager-entry, .brand-manager-search) button, :where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table button, :where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-pager button { min-height: 44px; }
  :where(body).c-production-auth #modal-root .brand-manager-modal .brand-manager-table :is(th, td) { padding: 4px; }
}

/* Procurement vendor picker remains separate from the maintenance dialog. */
:where(body).c-production-auth .master-vendor-options .master-vendor-option-name{display:inline;font-weight:600}
:where(body).c-production-auth .master-vendor-options .master-vendor-option-brands{display:inline;font-weight:400;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth .master-vendor-options .master-vendor-brand-match{font-weight:700;color:var(--pc-accent,#087f7c)}
:where(body).c-production-auth .master-vendor-field{position:relative}:where(body).c-production-auth .master-vendor-options{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:270px;overflow:auto;background:#fff;border:1px solid #94a3b8;border-radius:8px;box-shadow:0 8px 24px #172b4d26;padding:5px}:where(body).c-production-auth .master-vendor-options[hidden]{display:none}:where(body).c-production-auth .master-vendor-options>[role=option]{display:block;width:100%;text-align:left;border:0;border-radius:4px;padding:9px;background:white;white-space:normal;overflow-wrap:anywhere}:where(body).c-production-auth .master-vendor-options>[role=option]:hover,:where(body).c-production-auth .master-vendor-options>[aria-selected=true]{background:#e3eefb}:where(body).c-production-auth .master-vendor-options .actions{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:12px}:where(body).c-production-auth .master-vendor-options .actions button{padding:5px}:where(body).c-production-auth .master-vendor-options p{padding:8px;line-height:1.5}

/* 2026-10-24: Supplier page-size values align left, with space for the arrow.
   Other lists retain their existing numeric alignment and native behavior. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content:has(.master-vendor-table) .master-list-footer select[data-md-size] {
  text-align: start; text-align-last: start;
  padding-inline-start: 8px; padding-inline-end: 16px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content:has(.master-vendor-table) .master-list-footer select[data-md-size] > option {
  text-align: start;
}

:where(body).c-production-auth .vendor-brand-quick{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
:where(body).c-production-auth .vendor-brand-quick .modal-body{overflow:auto;min-height:0;display:block}
:where(body).c-production-auth .vendor-brand-quick .vq-supplier{font-size:16px;font-weight:600;margin:0 0 8px}
:where(body).c-production-auth .vq-search{display:flex;gap:8px;margin-top:16px}:where(body).c-production-auth .vq-search input{flex:1;min-width:0}
:where(body).c-production-auth .vq-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px;max-height:176px;overflow:auto;margin-top:8px;padding:8px;border:1px solid var(--line,#d5dfe7);border-radius:8px}
:where(body).c-production-auth .vq-option{display:flex;align-items:center;gap:8px;padding:6px;min-width:0;cursor:pointer}:where(body).c-production-auth .vq-option span{overflow-wrap:anywhere}:where(body).c-production-auth .vq-option input{width:16px;height:16px;flex:0 0 auto}
:where(body).c-production-auth .vq-search-footer,:where(body).c-production-auth .vq-selection-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0;font-size:13px}
:where(body).c-production-auth .vq-batch-label{display:flex;flex-direction:column;gap:6px;margin-top:16px}:where(body).c-production-auth .vq-batch-label textarea{width:100%;resize:vertical;min-height:64px}
:where(body).c-production-auth .vq-batch-actions{display:flex;justify-content:flex-end;gap:8px;margin:8px 0 18px}
:where(body).c-production-auth .vq-selected{overflow:auto;border:1px solid var(--line,#d5dfe7);border-radius:8px;max-height:280px}:where(body).c-production-auth .vq-selected table{width:100%;border-collapse:collapse}:where(body).c-production-auth .vq-selected th,:where(body).c-production-auth .vq-selected td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--line,#d5dfe7)}:where(body).c-production-auth .vq-selected th{position:sticky;top:0;background:var(--panel,#f5f8fb);z-index:1}:where(body).c-production-auth .vq-selected td:first-child{overflow-wrap:anywhere}:where(body).c-production-auth .vq-selected select{min-width:92px}:where(body).c-production-auth .vq-draft{margin-left:8px;color:var(--primary,#315c76)}:where(body).c-production-auth .vq-empty{padding:12px;margin:0}
:where(body).c-production-auth .master-brand-filter{display:flex;gap:8px;align-items:center;font-size:13px;margin:8px 0}:where(body).c-production-auth .master-brand-filter select{min-width:110px}
@media(max-width:600px){:where(body).c-production-auth .vq-results{grid-template-columns:repeat(2,minmax(0,1fr))}:where(body).c-production-auth .vq-selection-title{align-items:flex-start}:where(body).c-production-auth .vq-selected th,:where(body).c-production-auth .vq-selected td{padding:8px}:where(body).c-production-auth .vendor-brand-quick .modal-body{padding:14px}}

/* The React presentation keeps the business classes on cloned modal pieces. */
:where(body).c-production-auth .modal-business .vq-search{display:flex;gap:8px;align-items:center;margin-top:16px}:where(body).c-production-auth .modal-business .vq-search>.business-field{flex:1;min-width:0;margin:0}:where(body).c-production-auth .modal-business .vq-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px;max-height:176px;overflow:auto;padding:8px}:where(body).c-production-auth .modal-business .vq-selection-title{display:flex;justify-content:space-between;gap:12px;margin-top:18px}:where(body).c-production-auth .modal-business .vq-batch-actions{display:flex;justify-content:flex-end;gap:8px;margin:8px 0 18px}:where(body).c-production-auth .modal-business .vq-batch-label{margin-top:12px}:where(body).c-production-auth .modal-business .vq-selected{max-height:250px;overflow:auto}:where(body).c-production-auth .modal-business .vq-option{display:flex;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere;padding:5px 0}
@media(max-width:600px){:where(body).c-production-auth .modal-business .vq-results{grid-template-columns:repeat(2,minmax(0,1fr))}:where(body).c-production-auth .modal-business .vq-selected{max-height:210px}}

:where(body).c-production-auth .modal-business .legacy-piece.modal.vendor-brand-quick{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 130px)!important;width:100%}
:where(body).c-production-auth .modal-business .vendor-brand-quick>.legacy-piece.modal-body{flex:1;min-height:0;overflow:auto!important;padding:0 2px 12px}
:where(body).c-production-auth .modal-business .vendor-brand-quick>.legacy-piece.modal-foot{flex:none;display:flex;justify-content:flex-end;gap:8px;padding:12px 0 0;margin:0;border-top:1px solid var(--border,#d5dfe7)}
:where(body).c-production-auth .modal-business .vq-search>.control-host{flex:1;min-width:0}:where(body).c-production-auth .modal-business .vq-search>.control-host input{width:100%}
:where(body).c-production-auth .business-view .business-field.master-brand-filter{margin:6px 0 10px;display:inline-flex}
:where(body).c-production-auth .business-view .master-brand-filter .ant-form-item-row{display:flex;flex-direction:row;align-items:center;gap:8px}
:where(body).c-production-auth .business-view .master-brand-filter .ant-form-item-label{padding:0;flex:none}
:where(body).c-production-auth .business-view .master-brand-filter .ant-form-item-control{flex:none;min-width:110px}
:where(body).c-production-auth .modal-business .vendor-brand-quick .vq-supplier{margin:0 0 6px;font-size:15px}
:where(body).c-production-auth .modal-business .vendor-brand-quick>.modal-body>.foundation-muted{margin:0 0 10px;line-height:1.5}
:where(body).c-production-auth .modal-business .vq-search{margin-top:0}:where(body).c-production-auth .modal-business .vq-search-footer{margin:4px 0}
:where(body).c-production-auth .modal-business .vq-batch-label{margin-top:8px;gap:4px}:where(body).c-production-auth .modal-business .vq-batch-label textarea{min-height:48px;height:48px}
:where(body).c-production-auth .modal-business .vq-batch-actions{margin:6px 0 10px}:where(body).c-production-auth .modal-business .vq-selection-title{margin:8px 0}

/* Supplier brand maintenance. Shared master-list and procurement picker styles stay independent. */
:where(body).c-production-auth #content .master-vendor-table{width:100%;min-width:0!important;table-layout:fixed}
:where(body).c-production-auth #content .master-vendor-table [data-column="name"]{width:24%;max-width:none;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth #content .master-vendor-table [data-column="brands"]{width:auto;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth #content .master-vendor-table [data-column="active"]{width:90px;white-space:nowrap}
:where(body).c-production-auth #app #content > .foundation-table-wrap .master-vendor-table .vendor-brand-name{display:inline;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth .vendor-brand-name+.vendor-brand-name::before{content:"\3001"}
:where(body).c-production-auth .vendor-brands-heading{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}
:where(body).c-production-auth .vendor-brands-heading h3{margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
:where(body).c-production-auth .vendor-brands-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #b6d2d1}
:where(body).c-production-auth .vendor-brands-row>span{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth .vendor-brands-row>.actions{flex:0 0 auto;gap:6px}
:where(body).c-production-auth .vendor-brands-row button{white-space:nowrap}
:where(body).c-production-auth .vendor-brands-list{margin-bottom:16px}
:where(body).c-production-auth #modal-root [data-brand-results]{max-height:45vh;overflow:auto;margin-top:12px}
@media(max-width:480px){:where(body).c-production-auth .vendor-brands-row{align-items:flex-start;flex-wrap:wrap}:where(body).c-production-auth .vendor-brands-row>span{flex-basis:100%}:where(body).c-production-auth .vendor-brands-heading h3{flex-basis:100%}:where(body).c-production-auth #content .master-vendor-table [data-column="name"]{width:24%}:where(body).c-production-auth #content .master-vendor-table [data-column="active"]{width:64px}}
/* Keep the fixed 180px action column from squeezing brands on phones. Scroll only the table. */
@media(max-width:640px){:where(body).c-production-auth #content .master-vendor-table{min-width:640px!important}:where(body).c-production-auth .vendor-brands-modal .modal-body{min-width:0}}

/* A supplier detail follows its content; empty associations must not fill the screen. */
:where(body).c-production-auth #modal-root .modal.vendor-brands-modal {
  width: calc(100vw - 32px);
  max-width: 600px;
  height: auto;
  min-height: 0;
  max-height: 92vh;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
:where(body).c-production-auth #modal-root .vendor-brands-modal .modal-head,
:where(body).c-production-auth #modal-root .vendor-brands-modal .modal-foot { flex-shrink: 0; padding: 12px 18px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .modal-head { gap: 12px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .modal-head h2 { font-size: 16px; line-height: 1.4; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .modal-head [data-vb-close] { width: 28px; height: 28px; min-height: 28px; padding: 0; font-size: 20px; line-height: 1; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .modal-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 16px 18px; overflow-y: auto; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading { gap: 8px; margin: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading h3 { font-size: 14px; line-height: 1.45; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading:first-child > span { padding: 3px 7px; border: 1px solid var(--line, #c7dce0); border-radius: 4px; font-size: 12px; line-height: 1.4; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading button,
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-row button { min-height: 32px; padding: 5px 10px; font-size: 12px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-list { margin: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-row { gap: 10px; padding: 9px 0; font-size: 13px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-row:last-child { border-bottom: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-list > .empty { min-height: 0; margin: 0; padding: 16px 12px; border: 1px dashed var(--line, #c7dce0); border-radius: 6px; font-size: 12px; line-height: 1.5; }
:where(body).c-production-auth #modal-root .vendor-brands-modal [data-vb-error] { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .modal-foot button { min-width: 72px; min-height: 34px; padding: 6px 14px; font-size: 13px; }
@media (max-width: 480px) {
  :where(body).c-production-auth #modal-root .vendor-brands-modal .modal-head,
  :where(body).c-production-auth #modal-root .vendor-brands-modal .modal-foot { padding: 12px 16px; }
  :where(body).c-production-auth #modal-root .vendor-brands-modal .modal-body { padding: 14px 16px; }
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading h3 { flex-basis: auto; }
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading:first-child h3 { flex-basis: 100%; }
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading:first-child [data-vb-edit] { margin-left: auto; }
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading button,
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-row button,
  :where(body).c-production-auth #modal-root .vendor-brands-modal .modal-foot button { min-height: 36px; }
}

/* 2026-10-21: Supplier details edit in place; rename impact stays in the same dialog. */
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-details-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-details-fields > input[name="name"] { flex: 1 1 180px; min-width: 0; width: 100%; font-size: 14px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-details-active { flex: 0 0 auto; margin: 0; gap: 5px; font-size: 12px; white-space: nowrap; }
:where(body).c-production-auth #modal-root .vendor-brands-modal [data-vb-impact] { margin: 0; padding: 8px 10px; border: 1px solid var(--line, #c7dce0); border-radius: 6px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
:where(body).c-production-auth #modal-root .vendor-brands-modal [hidden] { display: none !important; }
@media (max-width: 480px) {
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-details-fields > input[name="name"] { flex-basis: 100%; }
}

/* 2026-10-21: Purchase-style supplier selection and compact optional brand selection. */
:where(body).c-production-auth #content .master-vendor-table [data-column="select"] { width: 40px; min-width: 40px; max-width: 40px; }
:where(body).c-production-auth #content .list-batch-actions:has([data-md-delete]) [data-md-delete-error] { flex-basis: 100%; margin: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-compact { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-control { flex: 1; min-width: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal [data-vb-brand-select] { width: 100%; min-width: 0; font-size: 12px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-tag { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; border: 1px solid var(--line, #c7dce0); border-radius: 5px; background: var(--surface, #f5f8f8); }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-tag > button { border: 0; background: transparent; min-height: 26px; height: auto; padding: 3px 6px; font-size: 12px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-remove { flex: 0 0 26px; width: 26px; color: #a43b49; }
@media (max-width: 480px) { :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-tag > button { min-height: 36px; } }

/* 2026-10-21: Searchable brand choices stay inside the supplier dialog. */
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-tags:empty { display: none; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-picker {
  margin-top: 6px; padding: 10px; border: 1px solid var(--line, #c7dce0);
  border-radius: 8px; background: var(--surface, #fff); min-width: 0;
  box-shadow: 0 6px 20px rgb(20 50 55 / 10%);
}
:where(body).c-production-auth #modal-root .vendor-brands-modal [data-vb-brand-search] { width: 100%; min-width: 0; margin: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-options { max-height: min(260px, 34dvh); overflow-y: auto; overscroll-behavior: contain; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-option {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  margin: 0; padding: 7px 5px; font-size: 12px; line-height: 1.5; cursor: pointer;
}
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-option:hover { background: var(--hover, rgb(0 110 110 / 6%)); }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-option > input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-option > span { min-width: 0; overflow-wrap: anywhere; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-option:has(input:disabled) { cursor: default; opacity: .65; }
:where(body).c-production-auth #modal-root .vendor-brands-modal [data-vb-picker-status] { margin: 8px 4px; font-size: 12px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-picker-actions > span { flex: 1; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-picker-actions button { min-height: 30px; padding: 4px 9px; font-size: 12px; }
@media (max-width: 480px) {
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-option { min-height: 36px; }
  :where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brand-picker-actions button { min-height: 36px; }
}

/* 2026-10-20: Restore original table type scale: body 13px, header and annotations 12px. */
/* Selected concept 3: familiar green cards, complete grids and opaque data.
   Explicit page markers preserve procurement, quotations and saved layouts. */
:where(body).c-production-auth #app #content:has(> .foundation-heading) {
  --foundation-gap: 8px;
  --foundation-border: #bfd8cd;
  --foundation-grid: #b1cbc1;
  --foundation-shadow: 0 6px 20px rgba(16, 61, 57, .09),
    inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(47, 150, 166, .12);
  gap: var(--foundation-gap);
  font-variant-numeric: tabular-nums;
}
:where(body).c-production-auth #app #content > :is(.foundation-heading, .foundation-table-wrap, .foundation-footer) {
  border: 1px solid var(--foundation-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--foundation-shadow);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}
:where(body).c-production-auth #app #content > .foundation-heading {
  min-height: 0;
  padding: 14px 18px;
  gap: 12px;
}
:where(body).c-production-auth #app #content > .foundation-heading > .module-heading {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--foundation-border);
  line-height: 1.5;
}
:where(body).c-production-auth #app #content > .foundation-heading :is(h1.module-heading, .module-heading h1) { font-size: 20px; color: #183732; }
:where(body).c-production-auth #app #content > .foundation-heading > .catalog-query { flex-basis: 360px; }
:where(body).c-production-auth #app #content > .foundation-heading .actions { gap: 8px; }
:where(body).c-production-auth #app #content > .foundation-heading .actions input[name="q"] {
  flex: 1 1 180px;
  width: 100%;
  max-width: none;
  min-width: 0;
}
:where(body).c-production-auth #app #content > .foundation-heading :is(button, input, select) {
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
}
:where(body).c-production-auth #app #content > .foundation-heading button { padding: 6px 12px; white-space: nowrap; }
:where(body).c-production-auth #app #content > .foundation-heading button svg { width: 16px; height: 16px; }
:where(body).c-production-auth #app #content > .foundation-heading .table-settings-corner { top: 12px; right: 14px; }
:where(body).c-production-auth #app #content > .foundation-heading .table-settings-button { width: 32px; min-height: 32px; padding: 7px; }
:where(body).c-production-auth #app #content > .foundation-heading .list-filters {
  width: min(320px, 100%);
  padding: 12px;
  border-radius: 8px;
  border-color: var(--foundation-border);
}
:where(body).c-production-auth #app #content > .foundation-heading .list-filters label { grid-template-columns: 90px minmax(0, 1fr); }
:where(body).c-production-auth #app #content > .foundation-table-wrap {
  overflow: auto;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table :is(th, td) {
  height: 42px;
  padding: 5px 12px;
  border: 1px solid var(--foundation-grid);
  background: #fff;
  color: #183732;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
:where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table thead th {
  height: 42px;
  background: #e9f3ee;
  color: #183732;
  font-size: 12px;
  font-weight: 600;
}
:where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table td[data-column="name"] { font-weight: 400; }
:where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table td[data-column="address"] { line-height: 1.65; }
:where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table td[data-column="phone"] { white-space: nowrap; }
:where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table tbody tr:hover td {
  background-color: #edf7f2;
}
:where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table tbody .table-action-button {
  height: 30px;
  min-height: 30px;
  padding: 3px 12px;
  border: 1px solid #c2d4ca;
  border-radius: 5px;
  background: #fff;
  color: #24483d;
  font-size: 12px;
}
:where(body).c-production-auth #app #content > .foundation-table-wrap .vendor-brand-name {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
}
:where(body).c-production-auth .foundation-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #c9ddd6;
  border-radius: 4px;
  color: #286856;
  background: #edf6f0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}
:where(body).c-production-auth .foundation-status[data-active="0"] { color: #646d72; background: #f0f2f3; border-color: #d8dfe1; }
:where(body).c-production-auth #app #content > .foundation-table-wrap .foundation-status {
  padding: 0;
  border: 0;
  background: transparent;
  color: #183732;
  font-size: 12px;
}
:where(body).c-production-auth #app #content > .foundation-table-wrap .foundation-status[data-active="0"] { color: #657269; }
:where(body).c-production-auth .foundation-muted { color: #64736b; font-size: 12px; }
:where(body).c-production-auth #app #content > .foundation-table-wrap .empty { min-height: 88px; padding: 28px 16px; font-size: 13px; }
:where(body).c-production-auth #app #content > .foundation-footer { padding: 10px 16px; gap: 8px; font-size: 13px; min-height: 50px; }
:where(body).c-production-auth #app #content > .foundation-footer > span { margin-left: 0; color: var(--pc-muted, #667b75); }
:where(body).c-production-auth #app #content > .foundation-footer > .pager { margin-left: auto; gap: 8px; }
:where(body).c-production-auth #app #content > .foundation-footer .pager :is(button, select) { min-height: 30px; height: 30px; border-radius: 5px; }
:where(body).c-production-auth #app #content > .foundation-footer .pager > span { min-width: 38px; text-align: center; }

/* Three dialog sizes, one set of field, spacing and focus rules. */
:where(body).c-production-auth #modal-root .modal:is(.master-data-modal, .customer-modal, .vendor-brands-modal) {
  width: calc(100vw - 32px);
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: calc(100dvh - 32px);
  border: 1px solid #d3e3df;
  border-radius: 12px;
  box-shadow: 0 20px 70px #173e3a30, inset 0 1px 0 #fff;
  overflow: hidden;
}
:where(body).c-production-auth #modal-root .modal.master-data-modal { max-width: 440px; }
:where(body).c-production-auth #modal-root .modal.vendor-brands-modal { max-width: 560px; }
:where(body).c-production-auth #modal-root .modal.customer-modal { max-width: 640px; }
:where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) :is(.modal-head, .modal-foot) {
  padding: 12px 16px;
  gap: 8px;
  background: #f5f9f8;
  border-color: #d6e3df;
}
:where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) .modal-head h2 { font-size: 16px; line-height: 1.5; }
:where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) .modal-head button {
  width: 30px; height: 30px; min-height: 30px; padding: 4px;
}
:where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) .modal-body { padding: 16px; background: #f0f6f5; }
:where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal) .modal-body label:not(.check) { font-size: 12px; gap: 6px; }
:where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal) .modal-body :is(input:not([type="checkbox"]), textarea) {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cbded8;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}
:where(body).c-production-auth #modal-root .customer-modal .customer-fields { gap: 12px 16px; }
:where(body).c-production-auth #modal-root .customer-modal .customer-field textarea { min-height: 56px; }
:where(body).c-production-auth #modal-root .customer-modal .customer-field textarea[name="remark"] { min-height: 64px; }
:where(body).c-production-auth #modal-root .customer-modal .customer-status { margin-top: 14px; padding-top: 10px; font-size: 13px; }
:where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) .modal-foot button { min-height: 34px; padding: 6px 14px; font-size: 13px; }
:where(body).c-production-auth #modal-root .master-data-modal .modal-body > p:not(.error) { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #60736e; }
:where(body).c-production-auth #modal-root .master-data-modal [data-brand-results] { max-height: min(36dvh, 300px); margin-top: 10px; overflow-y: auto; }
:where(body).c-production-auth #modal-root .master-data-modal .vendor-brands-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading:first-child { padding-bottom: 12px; border-bottom: 1px solid #d6e3df; }
:where(body).c-production-auth #modal-root .vendor-brands-modal .vendor-brands-heading:first-child > .foundation-status { padding: 2px 8px; border-color: #c9ddd6; }
/* Customer column preferences remain the existing editor and saved model. */
body.c-production-auth:has(#content > .foundation-heading) #modal-root .table-settings-overlay .modal {
  width: calc(100vw - 32px);
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  border-radius: 12px;
}
body.c-production-auth:has(#content > .foundation-heading) #modal-root .table-settings-overlay :is(.modal-head, .modal-foot) { padding: 12px 16px; }
body.c-production-auth:has(#content > .foundation-heading) #modal-root .table-settings-overlay .modal-body { padding: 12px 16px; }
:where(body).c-production-auth #app #content:has(> .foundation-heading) :is(button, input, select):focus-visible, :where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) :is(button, input, textarea, select):focus-visible {
  outline: 2px solid var(--pc-accent, #087f7c);
  outline-offset: 2px;
}
@supports not (backdrop-filter: blur(1px)) {
  :where(body).c-production-auth #app #content > :is(.foundation-heading, .foundation-table-wrap, .foundation-footer) { background: #f7faf7; }
}
@media (max-width: 700px) {
  :where(body).c-production-auth #app #content > .foundation-heading { padding: 12px; gap: 10px; }
  :where(body).c-production-auth #app #content > .foundation-heading > .catalog-query { flex: 1 1 100%; order: 3; }
  :where(body).c-production-auth #app #content > .foundation-heading > .module-heading { flex: 1 1 auto; width: auto; padding-bottom: 0; border-bottom: 0; }
  :where(body).c-production-auth #app #content > .foundation-heading > button { margin-left: 0; }
  :where(body).c-production-auth #app #content > .foundation-heading:has(.table-settings-corner) > .module-heading { padding-right: 0; }
  :where(body).c-production-auth #app #content > .foundation-heading:has(.table-settings-corner) > button { margin-right: 40px; }
  :where(body).c-production-auth #app #content > .foundation-heading :is(button, input, select) { min-height: 44px; }
  :where(body).c-production-auth #app #content > .foundation-heading .actions input[name="q"] { flex-basis: 100%; }
  :where(body).c-production-auth #app #content > .foundation-heading .actions { flex-wrap: wrap; }
  :where(body).c-production-auth #app #content > .foundation-heading .table-settings-corner { top: 12px; right: 12px; }
  :where(body).c-production-auth #app #content > .foundation-heading .table-settings-button { width: 36px; min-height: 44px; }
  :where(body).c-production-auth #app #content > .foundation-table-wrap .catalog-table tbody .table-action-button { min-height: 44px; height: auto; }
  :where(body).c-production-auth #app #content > .foundation-footer { padding: 8px; gap: 6px; }
  :where(body).c-production-auth #app #content > .foundation-footer > .pager { gap: 6px; }
  :where(body).c-production-auth #app #content > .foundation-footer .pager :is(button, select) { min-height: 44px; height: 44px; }
  :where(body).c-production-auth #modal-root .customer-modal .customer-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  :where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) :is(.modal-head, .modal-foot) { padding: 10px 14px; }
  :where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) .modal-body { padding: 14px; }
  :where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) :is(button, input:not([type="checkbox"]), textarea) { min-height: 44px; }
  :where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal) .modal-body :is(input:not([type="checkbox"]), textarea), :where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) .modal-foot button, :where(body).c-production-auth #modal-root .vendor-brands-modal :is(.vendor-brands-heading, .vendor-brands-row) button { min-height: 44px; }
  :where(body).c-production-auth #modal-root .modal:is(.master-data-modal, .customer-modal, .vendor-brands-modal) .modal-head button { width: 44px; height: 44px; min-height: 44px; }
  :where(body).c-production-auth #modal-root .customer-modal .customer-status,
  :where(body).c-production-auth #modal-root .master-data-modal .master-data-active { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(body).c-production-auth #app #content:has(> .foundation-heading) *,
  :where(body).c-production-auth #modal-root :is(.master-data-modal, .customer-modal, .vendor-brands-modal) * { transition: none; }
}

/* 2026-10-19: Page pagination uses remaining space, then follows long lists.
   Keep dialog/picker pagination local and never cover table rows. */
:where(body).c-production-auth #app .layout { min-height: 100dvh; }
:where(body).c-production-auth #app .main:has(> #content) {
  display: flex;
  flex-direction: column;
}
:where(body).c-production-auth #app .main > :is(.topbar, .workspace-strip) { flex-shrink: 0; }
:where(body).c-production-auth #app .main > #content {
  flex: 1 0 auto;
  min-height: 0;
  margin-block: 0;
}
:where(body).c-production-auth #app #content > * { flex-shrink: 0; }

/* Direct page footers: master data, materials, procurement, BOM, quotes, team. */
:where(body).c-production-auth #app #content > :is(.catalog-footer, .pager) {
  margin-top: auto;
}

/* 2026-10-23: Keep counts, page sizes and navigation on the same line.
   Preserve existing alignment; narrow footers scroll within their own card. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .catalog-footer {
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
}
:where(body).c-production-auth :is(#app, #modal-root) .catalog-footer > span {
  flex-shrink: 0;
}
:where(body).c-production-auth :is(#app, #modal-root) .catalog-footer > .pager {
  flex-basis: auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
  min-width: max-content;
  overflow-x: visible;
}

/* 2026-10-23: Totals occupy the footer's left edge. Automatic space belongs
   after the total, so existing end-aligned navigation keeps its right edge. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) [data-pagination-total] {
  margin-inline-start: 0;
  margin-inline-end: auto;
  flex: 0 0 auto;
  text-align: start;
  white-space: nowrap;
}
/* The purchase picker owns a pager and a separate cancel button. */
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal-foot > .pager[data-sp-purchase-pager]:has(> [data-pagination-total]) {
  flex-grow: 1;
}
/* These pages already keep their controls at the start on mobile. */
@media (max-width: 700px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .price-page-pager > [data-pagination-total] {
    margin-inline-end: 0;
  }
}

/* Full statistics remain accessible and in the tooltip on compact footers. */
:where(body).c-production-auth :is(#app, #modal-root) :is(.pagination-total-compact, .pagination-page-compact, .pagination-nav-icon) {
  display: none;
}
@media (max-width: 480px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .catalog-footer:has(> .catalog-count) :is(.pagination-total-full, .pagination-page-full) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .catalog-footer:has(> .catalog-count) :is(.pagination-total-compact, .pagination-page-compact) {
    display: inline;
  }
}
@media (max-width: 359px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .catalog-footer,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .catalog-footer > .pager,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .catalog-footer > .pager > label {
    gap: 1px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .catalog-footer > .pager select {
    width: 60px;
    min-width: 60px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .catalog-footer > .pager > button.icon {
    width: 28px;
    min-width: 28px;
    padding-inline: 5px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .catalog-footer .pagination-page-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .catalog-footer .pagination-page-compact {
    display: inline;
  }
}
@media (max-width: 379px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .pagination-nav > .pagination-nav-label {
    display: none;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .pagination-nav > .pagination-nav-icon {
    display: block;
    width: 16px;
    height: 16px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.catalog-footer, .price-page-pager) button.pagination-nav {
    width: 28px;
    min-width: 28px;
    justify-content: center;
  }
}

/* 2026-10-23: Apply the same single-row behavior to other page and picker
   pagers. Keep their own justification, margins and control sizes. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
  .pager:not(.catalog-footer > .pager), .price-page-pager,
  .pfa-pager, .pt-pager, .pending-bom-pager, .raw-review-pager,
  .dashboard-footer, .master-transfer-pages, .raw-option-pages,
  .actions:has(> [data-vendor-page]),
  .pfa-actions:has(> [data-pfa="combo-search-prev"]),
  .modal-foot:has(> .pager, > .review-pagination, > [data-ir="prev"], > [data-at="prev"], > [data-action="catalog-import-page"])
) {
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
  overflow-x: auto;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
  .pager:not(.catalog-footer > .pager), .price-page-pager,
  .pfa-pager, .pt-pager, .pending-bom-pager, .raw-review-pager,
  .dashboard-footer, .master-transfer-pages, .raw-option-pages,
  .actions:has(> [data-vendor-page]),
  .pfa-actions:has(> [data-pfa="combo-search-prev"]),
  .modal-foot:has(> .pager, > .review-pagination, > [data-ir="prev"], > [data-at="prev"], > [data-action="catalog-import-page"])
) > * {
  flex-shrink: 0;
  white-space: nowrap;
}
/* Keep right alignment when everything fits, and keep the first control
   reachable when a narrow row needs horizontal scrolling. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
  .pager:not(.catalog-footer > .pager),
  .pfa-pager, .pt-pager, .raw-review-pager, .master-transfer-pages,
  .modal-foot:has(> .pager, > .review-pagination, > [data-ir="prev"], > [data-at="prev"], > [data-action="catalog-import-page"])
), html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.pending-bom-panel .pending-bom-pager, .dashboard-footer) {
  justify-content: safe flex-end;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager {
  justify-content: safe flex-end;
}
/* Price history/group pages already use left alignment on mobile. */
@media (max-width: 700px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .price-page-pager {
    justify-content: flex-start;
  }
}
/* Review range labels used to occupy a full mobile row. */
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal-foot:has(> [data-ir="prev"], > [data-at="prev"]) > .import-review-range {
  width: auto;
}

/* 2026-10-23: Keep every page-size value centered in pages and dialogs.
   Equal side padding reserves the arrow space without shifting the value. */
:where(body).c-production-auth :is(#app, #modal-root) select:is(
  #raw-page-size, #catalog-page-size, #customer-page-size,
  [name="pageSize"], [data-md-size], [data-price-page-size], [aria-label*="每页"]
) {
  text-align: center;
  text-align-last: center;
  padding-inline: 16px;
  padding-block: 0;
  line-height: normal;
  vertical-align: middle;
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23627070' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 6px;
  background-position: right 5px center;
}
:where(body).c-production-auth :is(#app, #modal-root) select:is(#catalog-page-size, [data-price-page-size]) {
  min-width: var(--bq-page-size-min-width, 86px);
}
:where(body).c-production-auth :is(#app, #modal-root) select:is(
  #raw-page-size, #catalog-page-size, #customer-page-size,
  [name="pageSize"], [data-md-size], [data-price-page-size], [aria-label*="每页"]
) option {
  text-align: center;
}

/* 2026-10-23: Fit price-page pagination within a narrow row. Keep existing
   alignment, font sizes, control heights and balanced numeric padding. */
@media (max-width: 480px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager {
    gap: 4px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager > label {
    gap: 4px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager > label > select[data-price-page-size] {
    --bq-page-size-min-width: 64px;
    width: 64px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager > button {
    padding-inline: 4px;
  }
}

@media (max-width: 359px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager > label {
    gap: 1px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .price-page-pager > button {
    padding-inline: 1px;
  }
}

/* Review controls remain in their original desktop flex flow. */
:where(body).c-production-auth :is(#app, #modal-root) :is(.review-pagination, .review-actions) {
  display: contents;
}
:where(body).c-production-auth :is(#app, #modal-root) .ai-transfer-dialog .review-actions > label {
  display: flex;
  align-items: center;
  font-size: 12px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal .modal-foot:has(> .review-pagination) {
  flex-shrink: 0;
}
/* Full action names remain available through labels and tooltips. */
:where(body).c-production-auth :is(#app, #modal-root) .modal-foot :is(.review-short-label, .review-page-icon) {
  display: none;
}
:where(body).c-production-auth :is(#app, #modal-root) .modal-foot button > :is(.review-full-label, .review-short-label) {
  margin: 0;
}
/* 2026-10-23: Compact pagination only, retaining each component's own alignment.
   Review navigation and confirmation actions stay in the same row. */
@media (max-width: 480px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
    .catalog-footer, .pager, .price-page-pager, .pfa-pager, .pt-pager,
    .pending-bom-pager, .raw-review-pager, .dashboard-footer,
    .master-transfer-pages, .raw-option-pages, .review-pagination,
    .actions:has(> [data-vendor-page]),
    .pfa-actions:has(> [data-pfa="combo-search-prev"]),
    .modal-foot:has(> [data-sp-purchase-pager])
  ) {
    gap: 4px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
    .catalog-footer, .pager, .price-page-pager, .pfa-pager, .pt-pager,
    .pending-bom-pager, .raw-review-pager, .dashboard-footer,
    .master-transfer-pages, .raw-option-pages, .review-pagination,
    .actions:has(> [data-vendor-page]),
    .pfa-actions:has(> [data-pfa="combo-search-prev"]),
    .modal-foot:has(> [data-sp-purchase-pager])
  ) > label {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
    .catalog-footer, .pager, .price-page-pager, .pfa-pager, .pt-pager,
    .pending-bom-pager, .raw-review-pager, .dashboard-footer,
    .master-transfer-pages, .raw-option-pages, .review-pagination,
    .actions:has(> [data-vendor-page]),
    .pfa-actions:has(> [data-pfa="combo-search-prev"]),
    .modal-foot:has(> [data-sp-purchase-pager])
  ) > button:not(.icon) {
    padding-inline: 4px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.catalog-footer, .pager, .price-page-pager) select {
    --bq-page-size-min-width: 64px;
    width: 64px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal .modal-foot:has(> .review-pagination) {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 4px;
    overflow-x: visible;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-foot > .review-pagination, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-foot > .review-actions {
    display: contents;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .review-pagination > :is(.import-review-range, span:first-child) {
    width: auto;
    margin-right: auto;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.review-pagination, .review-actions) > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.review-pagination, .review-actions) > button {
    min-width: 0;
    padding-inline: 4px;
    gap: 0;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .review-pagination > button {
    min-width: 20px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .review-actions > label {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .review-actions > label > input[type="checkbox"] {
    width: 14px;
    margin: 0;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-foot .review-full-label {
    display: none;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-foot .review-short-label {
    display: inline;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-foot .import-review-range {
    position: relative;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-foot .import-review-range > .review-full-label {
    display: inline;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-foot .review-page-icon {
    display: block;
    width: 12px;
    height: 12px;
  }
}
@media (max-width: 359px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
    .catalog-footer, .pager, .price-page-pager, .pfa-pager, .pt-pager,
    .pending-bom-pager, .raw-review-pager, .dashboard-footer,
    .master-transfer-pages, .raw-option-pages, .review-pagination,
    .actions:has(> [data-vendor-page]),
    .pfa-actions:has(> [data-pfa="combo-search-prev"]),
    .modal-foot:has(> [data-sp-purchase-pager])
  ), html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.catalog-footer, .pager, .price-page-pager) > label {
    gap: 1px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(
    .catalog-footer, .pager, .price-page-pager, .pfa-pager, .pt-pager,
    .pending-bom-pager, .raw-review-pager, .dashboard-footer,
    .master-transfer-pages, .raw-option-pages, .review-pagination,
    .actions:has(> [data-vendor-page]),
    .pfa-actions:has(> [data-pfa="combo-search-prev"]),
    .modal-foot:has(> [data-sp-purchase-pager])
  ) > button:not(.icon) {
    padding-inline: 1px;
  }
}

@media (max-width: 359px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal .modal-foot:has(> .review-pagination) {
    gap: 1px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.review-pagination, .review-actions) > button {
    padding-inline: 1px;
  }
}

/* These workspaces own their page lists inside a single content section. */
:where(body).c-production-auth #app #content > :is(
  #customer-sales-prices,
  .price-page-content:has(> [data-price-main] > .price-page-pager),
  .pfa:has(> .pfa-pager),
  .process-trial:has(> .pt-pager)
) {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
}
:where(body).c-production-auth #app #content > :is(#customer-sales-prices, .pfa, .process-trial) > * {
  flex-shrink: 0;
}
:where(body).c-production-auth #app #content > .price-page-content:has(> [data-price-main] > .price-page-pager) > [data-price-main] {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
}
:where(body).c-production-auth #app #content > .price-page-content > [data-price-main] > * { flex-shrink: 0; }
:where(body).c-production-auth #app #content > #customer-sales-prices > [data-sp-pager],
:where(body).c-production-auth #app #content > .price-page-content > [data-price-main] > .price-page-pager,
:where(body).c-production-auth #app #content > .pfa > .pfa-pager,
:where(body).c-production-auth #app #content > .process-trial > .pt-pager {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 10px;
}

@media (max-width: 700px) {
  :where(body).c-production-auth #app .layout:has(> .main > #content) {
    display: flex;
    flex-direction: column;
  }
  :where(body).c-production-auth #app .layout > .sidebar { flex-shrink: 0; }
  :where(body).c-production-auth #app .main:has(> #content) {
    flex: 1 0 auto;
    min-height: 0;
  }
}

/* 2026-10-21: Shared Apple control metrics for all four themes.
   Keep this at the former Apple geometry layer, before component overrides.
   Existing component rules own heights, padding, responsive widths and compact
   table/icon controls; query-controls.css retains joined corners and 42px submit.
   Share the system font metrics so auto-sized text buttons occupy the same space. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(input, select, textarea, button) {
  border-radius: 7px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth :is(.auth-field input, .auth-field select) {
  border-width: 1px;
  border-style: solid;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab :is(.workspace-tab-main, .workspace-tab-close), html:has(:where(body).c-production-auth)[data-bq-theme] #app .content .actions > :is(button, .button):not(:disabled):hover, html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal-foot > :is(button, .button):not(:disabled):hover {
  transform: none;
}

/* 2026-10-21: Apple table metrics shared by all four themes.
   Module styles already share row heights, cell padding and responsive layouts.
   Keep those rules (and natural multi-line row growth), while giving every table
   the same border occupancy, header weight and numeric metrics as Apple.
   Load at the original Apple metrics layer before component overrides. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) table {
  font-variant-numeric: tabular-nums;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) table :is(th, td) {
  border-width: 1px;
  border-style: solid;
  border-color: var(--theme-card-grid, var(--pc-line));
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) table thead th {
  font-weight: 600;
}

/* 2026-10-21: Shared minimal-theme presentation for all four palettes.
   Layout/density, typography, controls and tables remain in their shared files.
   Palettes own colors and decorative backgrounds; these remaining surface and
   focus metrics must not depend on the selected theme. */
html:has(:where(body).c-production-auth)[data-bq-theme] {
  --apple-gap: var(--ui-card-gap);
  --apple-radius: 12px;
  --apple-shadow: 0 3px 14px rgba(29, 29, 31, .045);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app {
  --card-shadow: var(--apple-shadow);
  --glass-card-gap: var(--apple-gap);
  --glass-shadow: var(--apple-shadow);
  --glass-glow: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.sidebar, .sidebar nav, .profile-trigger,
  .workspace-strip, .workspace-tab, .profile-center-panel, .sidebar-module-flyout) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .nav-button:is(:hover, .active) { box-shadow: none; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab.active { box-shadow: inset 0 2px var(--pc-accent); }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--pc-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--pc-soft);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .sp-card { box-shadow: var(--apple-shadow); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel { box-shadow: 0 12px 32px rgba(29, 29, 31, .12); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar-module-flyout { box-shadow: 0 12px 32px rgba(29, 29, 31, .1); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth :is(.auth-panel, .auth-brand) {
  border-width: 1px;
  border-style: solid;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(29, 29, 31, .06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth :is(h1, h2, label, .auth-remember, .auth-brand p,
  .auth-brand h2, .auth-subtitle, .auth-note, .company-choice-list legend, .company-choice-name) {
  text-shadow: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth .auth-submit,
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth :is(.auth-field input, .auth-field select) { box-shadow: none; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth :is(.auth-hero-brand, .auth-hero-system, .auth-hero-tagline) {
  text-shadow: none;
  filter: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth :is(.auth-hero-intro, .auth-hero-benefit) { text-shadow: none; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth :is(.company-choice-option, .auth-choices button) {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 2026-10-21: Minimal palette in the saved lychee slot. Only colors and
   decorative backgrounds live here; shared files own layout, type and metrics. */
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] {
  --apple-grid: #cbd1d8;
  background: #f5f5f7;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app {
  --card-canvas: #f5f5f7;
  --card-border: #d5d9df;
  --glass-line: #d5d9df;
  --glass-surface: #fff;
  --glass-strong: #fff;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app :is(.layout, .main, #content) { background: #f5f5f7; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .main::before { content: none; animation: none; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .sidebar { background: #fff; border-right-color: #e2e4e8; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .sidebar .brand { border-color: #eceef1; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .sidebar .brand-label { color: #183c40; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .sidebar nav { background: #fff; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .sidebar-art { background: none; mask-image: none; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .nav-button { color: #525961; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .nav-button:is(:hover, .active) {
  color: var(--pc-deep); background: var(--pc-soft); border-color: transparent;
  border-left-color: var(--pc-accent);
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .profile-trigger { background: #fafafb; border-color: #eceef1; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .workspace-strip { background: #f5f5f7; border-color: #e2e4e8; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .workspace-tab { background: #fafafb; border-color: #e4e6e9; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .workspace-tab.active { background: #fff; border-color: #e0e4e8; }
/* Business card surfaces and split toolbars are shared in theme-cards.css. */
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app #content :is(.heading h1, h1.module-heading,
  .module-heading h1, .pfa-module-heading h1, .pt-header h1) { color: #1d1d1f; }
/* Visible full grids and solid sticky cells on all data-heavy surfaces. */
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] :is(#app, #modal-root) table :is(th, td) {
  border-color: var(--apple-grid); color: #1d1d1f; background: #fff;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] :is(#app, #modal-root) table thead th { background: #f2f4f5; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app #content > .foundation-table-wrap .catalog-table :is(th, td) { color: #1d1d1f; border-color: var(--apple-grid); background: #fff; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app #content > .foundation-table-wrap .catalog-table thead th { background: #f2f4f5; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] :is(#app, #modal-root) table tbody tr:hover > td { background: #f0f7f6; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .table-wrap > table [data-column="actions"] { background: #fff; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .table-wrap > table thead [data-column="actions"] { background: #f2f4f5; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .table-wrap > table tbody tr:hover > [data-column="actions"] { background: #f0f7f6; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app #content > .foundation-table-wrap .catalog-table tbody tr:hover > td { background: #f0f7f6; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] :is(#app, #modal-root) :is(input, select, textarea) {
  background: #fff; color: #1d1d1f; border-color: #cbd1d8;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] :is(#app, #modal-root) :is(input, select, textarea):is(:disabled, [readonly]) {
  background: #f2f4f5; color: #6e6e73;
}

html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #modal-root .overlay { background: rgba(29, 29, 31, .3); }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #modal-root :is(.modal-head, .pfa-modal-head) h2 { color: #1d1d1f; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #modal-root .sp-card { background: #fff; border-color: #d5d9df; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app #profile-center-panel { background: #fff; border-color: #d5d9df; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .sidebar-module-flyout { background: #fff; border-color: #d5d9df; }

/* The same selected browser-local skin also applies to CRM entry surfaces. */
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth { background: #f5f5f7; color: #1d1d1f; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-scene, .auth-stars) { display: none; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth::before,
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth::after { content: none; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-panel, .auth-brand) {
  background: #fff; border-color: #e0e3e7;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(h1, h2, label, .auth-remember, .auth-brand p,
  .auth-brand h2, .auth-subtitle, .auth-note, .company-choice-list legend, .company-choice-name) { color: #1d1d1f; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-secondary, .auth-consent button) { color: var(--pc-deep); }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-submit { background: var(--pc-accent); border-color: var(--pc-accent); color: #fff; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-submit:hover { background: var(--pc-deep); }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-hero-brand, .auth-hero-system, .auth-hero-tagline) {
  background: none; color: #1d1d1f; -webkit-text-fill-color: currentColor;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-hero-brand { color: var(--pc-deep); }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-hero-intro, .auth-hero-benefit) { color: #6e6e73; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-field input, .auth-field select) {
  background: #fff; color: #1d1d1f; border-color: #cbd1d8;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-field input, .auth-field select)::placeholder { color: #73777e; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-password-toggle { color: #6e6e73; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-field input[aria-invalid="true"] { border-color: #b33448; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-panel-brand { color: var(--pc-deep); }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.auth-consent, .auth-optional-mark) { color: #6e6e73; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-required-mark { color: #b33448; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .auth-sms-row button { color: var(--pc-deep); background: #fff; border-color: #cbd1d8; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth :is(.company-choice-option, .auth-choices button) {
  background: #fff; color: #1d1d1f; border-color: #cbd1d8;
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .company-choice-option:has(input:checked) { background: var(--pc-soft); border-color: var(--pc-accent); }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .company-choice-hint { color: #6e6e73; }
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] #app .crm-auth .company-choice-error { color: #b33448; }


/* 2026-10-20: Apple-style business cards shared by the four existing themes.
   Theme palettes/wallpapers, type, controls, dimensions and drag positioning
   stay with their current owners. card-spacing.css follows with compact 2px gaps. */
html:has(:where(body).c-production-auth)[data-bq-theme] {
  --theme-card-radius: 12px;
  --theme-dialog-radius: 16px;
  --theme-card-shadow: 0 3px 14px rgba(29, 29, 31, .045);
  --theme-card-grid: var(--pc-line);
  --theme-card-hover: var(--pc-soft);
}
html:has(:where(body).c-production-auth)[data-bq-theme="lychee"] {
  --theme-card-grid: var(--apple-grid);
  --theme-card-hover: #f0f7f6;
}
/* Shared desktop navigation metrics are the existing three-theme baseline.
   Colors/glass/photographs remain theme-owned; mobile uses the common menu. */
@media (min-width: 701px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand { height: 70px; gap: 1px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar nav {
    margin: 8px 10px 0; padding: 8px; gap: 3px; border-width: 1px;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip { height: 40px; padding-inline: 14px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab { height: 34px; border-radius: 5px 5px 0 0; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar nav { margin: 8px 7px 0; padding: 6px; }
}
/* Restrict legacy glass tokens to business content. Sidebar and tabs retain
   each theme's existing treatment; no shell-level variables are replaced. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content,
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal, .pfa-modal) {
  --card-border: var(--pc-line);
  --card-shadow: var(--theme-card-shadow);
  --glass-surface: var(--pc-surface);
  --glass-strong: var(--pc-surface);
  --glass-line: var(--pc-line);
  --glass-shadow: var(--theme-card-shadow);
  --glass-glow: none;
  --foundation-border: var(--pc-line);
  --foundation-grid: var(--theme-card-grid);
  --foundation-shadow: var(--theme-card-shadow);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > :is(.heading, .section-line, .stats,
  .bom-meta, .bom-detail-toolbar, .catalog-query, .settings, .table-wrap,
  .pager, .catalog-footer, .list-batch-actions, .loading, .empty,
  .markup-applied, .quote-readonly-note, .profile-page-card), html:has(:where(body).c-production-auth)[data-bq-theme] #app #content :is(.dashboard-card, .dashboard-panel,
  .dashboard-hero, .dashboard-summary, .home-card, .pfa-panel, .pfa-editor-card, .pfa-section,
  .pfa-fitting-card, .pfa-scroll, .pfa-header, .pfa-search, .pfa-pager,
  .pt-heading, .pt-panel, .pt-editor, .pt-scroll, .pt-empty, .pt-pager,
  .pt-overview > div, .price-page-toolbar, .price-page-query,
  .price-page-scroll, .price-page-pager, .qc-page-head, .qc-picker, .qc-controls), html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) #customer-sales-prices > .sp-card, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa-modal :is(
  .pfa-panel, .pfa-editor-card, .pfa-section, .pfa-fitting-card, .pfa-staged-grid > section), html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .bulk-price-group {
  border: 1px solid var(--pc-line);
  border-radius: var(--theme-card-radius);
  background: var(--pc-surface);
  box-shadow: var(--theme-card-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Keep warning/error fills and text semantic while removing glass effects. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > :is(.notice, .page-error) {
  border-radius: var(--theme-card-radius);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Existing controls keep their DOM/event targets. A background grid item
   visually groups query/actions; the title receives a separate surface. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query),
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar:has(> .pfa-search) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ui-card-gap, 2px) 0;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query)::before,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar:has(> .pfa-search)::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: stretch;
  border: 1px solid var(--pc-line);
  border-radius: var(--theme-card-radius);
  background: var(--pc-surface);
  box-shadow: var(--theme-card-shadow);
  z-index: -1;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query) > .module-heading,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-module-heading {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  border: 1px solid var(--pc-line);
  border-radius: var(--theme-card-radius);
  background: var(--pc-surface);
  box-shadow: var(--theme-card-shadow);
  flex-basis: auto;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > .catalog-query,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-search {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > .actions:not(.table-settings-corner),
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > button,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-actions {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: center;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > .toolbar-note { grid-column: 1 / -1; }

/* Opaque data surfaces and full grids, without altering type or semantic cell
   fills (missing prices, differences and validation remain module-owned). */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) :is(
  .table-wrap, .pfa-scroll, .pt-scroll, .dashboard-scroll, .price-page-scroll,
  .sp-entry-wrap, .sp-preview, .sp-purchase-wrap) > table {
  background: var(--pc-surface);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) :is(
  .table-wrap, .pfa-scroll, .pt-scroll, .dashboard-scroll, .price-page-scroll,
  .sp-entry-wrap, .sp-preview, .sp-purchase-wrap) > table :is(th, td) {
  border: 1px solid var(--theme-card-grid);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) :is(
  .table-wrap, .pfa-scroll, .pt-scroll, .dashboard-scroll, .price-page-scroll,
  .sp-entry-wrap, .sp-preview, .sp-purchase-wrap) > table thead th, html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .foundation-table-wrap .catalog-table thead th {
  background: var(--pc-head);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .foundation-table-wrap .catalog-table tbody tr:hover > td,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .table-wrap > table tbody tr:hover > [data-column="actions"] {
  background: var(--theme-card-hover);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .table-wrap > table tbody [data-column="actions"] {
  background: var(--pc-surface);
}

/* Both portal dialogs and custom in-page fitting overlays share the surface.
   No overflow, transform, positioning, width or height rules: dragging and
   fixed-position material pickers continue to use their existing geometry. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal, .pfa-modal), html:has(:where(body).c-production-auth)[data-bq-theme] #app #profile-center-panel {
  border: 1px solid var(--pc-line);
  border-radius: var(--theme-dialog-radius);
  background: var(--pc-surface);
  box-shadow: 0 20px 60px rgba(29, 29, 31, .16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal, .pfa-modal) :is(
  .modal-head, .modal-foot, .pfa-modal-head, .pfa-modal-foot) {
  border-color: var(--pc-line);
  background: var(--pc-surface);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal, .pfa-modal) :is(.modal-body, .pfa-modal-body) {
  background: var(--pc-surface);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa-modal-head { border-radius: 15px 15px 0 0; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa-modal-foot { border-radius: 0 0 15px 15px; }

@media (max-width: 700px) {
  /* Existing mobile label line box is 15px * 1.25. Keep Apple's 17px type
     inside that shared line box so the top navigation remains 64px high. */
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand-label { line-height: 18.75px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query),
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar:has(> .pfa-search) { grid-template-columns: minmax(0, 1fr); }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query)::before,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar:has(> .pfa-search)::before { grid-row: 2 / 4; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > .actions:not(.table-settings-corner),
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > button,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-actions { grid-column: 1; grid-row: 3; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > button { justify-self: start; }
}

/* 2026-10-20: Shared 2px card spacing and compact card padding in every theme.
   Font sizes, field/button dimensions and bottom-pager auto placement remain
   owned by their existing modules. */
:root:has(:where(body).c-production-auth) {
  --ui-card-gap: 2px;
  --ui-card-pad-block: 8px;
  --ui-card-pad-inline: 12px;
  --ui-page-padding: 8px 12px 20px;
}
html:has(:where(body).c-production-auth) #app {
  --glass-card-gap: var(--ui-card-gap);
  --dashboard-card-gap: var(--ui-card-gap);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content {
  --foundation-gap: var(--ui-card-gap);
  gap: var(--ui-card-gap);
  padding: var(--ui-page-padding);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > :is(.dashboard, .pfa, .process-trial,
  .price-page-content, #customer-sales-prices), html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .price-page-content > [data-price-main], html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .sp-library-body > #customer-sales-prices {
  gap: var(--ui-card-gap);
}
/* Standalone and dialog prices share the same card stack. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) #customer-sales-prices {
  gap: var(--ui-card-gap);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > :is(.pfa, .process-trial) {
  display: flex;
  flex-direction: column;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > :is(.pfa, .process-trial) > :is(
  .pfa-header, .pfa-search, .pfa-scroll, .pfa-panel, .pfa-section,
  .pt-heading, .pt-panel, .pt-editor, .pt-scroll, .pt-overview, .pt-plan-list
) { margin-block: 0; }

/* Split title/query cards share the same grid in all four themes. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query),
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar:has(> .pfa-search) {
  row-gap: var(--ui-card-gap);
}

/* Card collections inside technical editors and price-history dialogs. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.pt-overview, .pfa-staged-grid) {
  gap: var(--ui-card-gap);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-editor-card > .pfa-section, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-editor-card .pfa-fitting-card {
  margin-block: var(--ui-card-gap) 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-editor-card {
  margin-block: var(--ui-card-gap);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .bulk-price-dialog .modal-body {
  gap: var(--ui-card-gap);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .bulk-price-group { margin-bottom: 0; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .price-history-batches > details { margin-block: var(--ui-card-gap); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .price-page-toolbar { margin-block: 0; }

/* Compact surfaces, without changing data-cell or control padding. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > :is(.heading, .section-line, .catalog-query,
  .bom-meta, .bom-detail-toolbar, .settings, .list-batch-actions, .notice,
  .markup-applied, .quote-readonly-note, .profile-page-card), html:has(:where(body).c-production-auth)[data-bq-theme] #app #content :is(.dashboard-head, .pfa-header, .pfa-panel, .pt-panel,
  .pt-editor, .price-page-toolbar, .price-page-query) {
  padding: var(--ui-card-pad-block) var(--ui-card-pad-inline);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading { align-items: center; min-height: 48px; gap: 8px; }
/* Reserve the settings corner for the entire header, including right-side
   actions. Title-only padding lets save/download buttons run underneath it. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.has-table-settings-corner {
  padding-inline-end: calc(var(--ui-card-pad-inline) + var(--table-settings-corner-width, 44px));
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar { min-height: 0; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading > .module-heading {
  display: flex; align-items: center; min-height: 0; padding-block: 3px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading .table-settings-corner { top: 6px; right: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > :is(.catalog-footer, .pager) { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .stats { padding-block: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .stats .stat { padding-inline: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .dashboard details > summary { padding: 6px 12px; min-height: 36px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .dashboard-shortcuts .dashboard-actions { padding: 0 12px 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .price-page-content { padding: 10px 12px; }
/* The fitting list keeps each theme's existing header type size. Use the
   common 13px * 1.4 line box so its grid rows still have identical density. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-scroll > table thead th { line-height: 18.2px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) .pfa-modal .pfa-scroll > table tbody td {
  line-height: 18px;
}

/* Shared title/query rows are separate visual cards in the same grid. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query),
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar:has(> .pfa-search) {
  padding: 0; gap: var(--ui-card-gap) 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query) > .module-heading,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-module-heading {
  display: flex; align-items: center; min-height: 48px; padding: 8px 12px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > .catalog-query,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-search {
  padding: 8px 12px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > .actions:not(.table-settings-corner),
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-actions { padding: 8px 12px 8px 0; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > button { margin: 8px 12px 8px 0; }

html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) #customer-sales-prices > :is(
  .sp-heading, .sp-query-card, .sp-selection, [data-sp-pager]
) { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .sp-library-body { padding: 10px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal-head, .modal-foot, .pfa-modal-head, .pfa-modal-foot) { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal-body, .pfa-modal-body) { padding: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .bulk-price-group { padding: 10px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth .auth-panel { padding: 24px; }

@media (max-width: 700px) {
  :root:has(:where(body).c-production-auth) { --ui-page-padding: 6px 8px 16px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading { min-height: 52px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar { min-height: 0; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading .table-settings-corner { top: 4px; right: 12px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar:has(> .catalog-query) > .module-heading,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-module-heading { min-height: 52px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > .actions:not(.table-settings-corner),
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .pfa-list-toolbar > .pfa-actions { padding: 0 12px 8px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .heading.module-toolbar > button { margin: 0 12px 8px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .dashboard details > summary { min-height: 44px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .crm-auth .auth-panel { padding: 20px; }
}

/* 2026-10-20: Complete the remaining custom page/editor surfaces. These rules
   deliberately leave typography, controls, table cells and diagram sizing alone. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-editor-card > .pfa-section, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-editor-card .pfa-fitting-card {
  margin-block: var(--ui-card-gap) 0;
  padding: var(--ui-card-pad-block) var(--ui-card-pad-inline);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-staged-grid, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-staged-grid:has(option[value="required"]:checked) {
  gap: var(--ui-card-gap);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-staged-grid > section {
  padding: 8px 12px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-housing-section > h2, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-editor-card > .pfa-section > .pfa-section-head, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal .pfa-fitting-card > .pfa-section-head {
  margin-bottom: 8px; padding-bottom: 6px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .material-dialog .modal-body, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) #raw-form > .modal-body { gap: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .material-section + .material-section { padding-top: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .material-section-heading { margin-bottom: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .material-fields { gap: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.bom-meta-fields, .published-bom-fields, .mapping) { gap: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .map-top { gap: 12px; margin-bottom: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .form-options { gap: 12px; margin-top: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .preview { margin-top: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .duplicate-groups { gap: var(--ui-card-gap); }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .duplicate-group { padding: 8px 12px; }

html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial > :is(.pt-heading, .pt-toolbar, .pt-tabs, .pt-banner, .pt-section-head, .pt-pager) {
  margin-block: 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial :is(.pt-heading, .pt-toolbar) { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-heading > .pt-module-heading { display: flex; align-items: center; padding-block: 3px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-overview > div { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-empty { padding: 24px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-empty > svg { margin-bottom: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-empty p { margin-block: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-flow { margin-top: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-tabs { padding-block: 6px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial :is(.pt-section-head, .pt-editor-head) { margin-bottom: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-editor-foot { margin-top: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-form-grid { gap: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial :is(.pt-columns, .pt-connectors) { gap: var(--ui-card-gap); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-section-spaced { margin-top: var(--ui-card-gap); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-panel { margin-block: var(--ui-card-gap); }
/* Direct children already participate in the shared 2px flex stack. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .process-trial > .pt-panel { margin-block: 0; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-operation-stages { margin-bottom: 8px; }

html:has(:where(body).c-production-auth)[data-bq-theme] #app .qc-page :is(.qc-page-head, .qc-picker, .qc-controls) { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .qc-page .qc-controls { gap: 10px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .qc-page .qc-picker-query { gap: 8px 12px; margin-block: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .qc-page .qc-search { margin-bottom: 8px; }

html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .profile-page-card { gap: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .profile-form-grid { gap: 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .account-set-list { gap: var(--ui-card-gap); }
html:has(:where(body).c-production-auth)[data-bq-theme] #app :is(.account-set-item, .account-set-current) { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .settings label { margin-block: 10px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .settings .note { margin-block: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .settings .divider { margin-block: 12px; }

/* Section notices and material footers must not retain legacy empty gutters. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content :is(.bom-unlinked, .team-notice), html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial .pt-banner, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa-notice { padding: 8px 12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .material-dialog .modal-foot, html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) #raw-form .modal-foot { min-height: 0; flex-shrink: 0; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) #raw-form .material-category-fields { padding-top: 8px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .quote-supplier-choice {
  padding: 8px 12px; margin-bottom: var(--ui-card-gap);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .quote-supplier-current { margin-bottom: 8px; }

/* The custom process header uses the same surface as other module titles. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app .process-trial > .pt-heading {
  background: var(--glass-surface, #fff);
  border: 1px solid var(--glass-line, var(--line));
  border-radius: var(--theme-card-radius, 12px);
  box-shadow: var(--glass-shadow, none);
}

/* 2026-10-20: A narrower fitting editor; existing container queries handle
   field wrapping. Keep the current type scale and 2px section spacing. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .pfa .pfa-modal {
  width: min(980px, 100%);
}

/* 2026-10-23: Center every shared metric strip, including customer groups, quote lists and quote details. */
:where(body).c-production-auth #app #content > .stats > .stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
:where(body).c-production-auth #app #content > .stats > .stat strong { text-align: center; }

/* Keep nested customer-price titles on the same vertical center as their actions. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #customer-sales-prices > .sp-heading { align-items: center; }

/* 2026-10-23: Dialog titles and actions share their row's vertical center,
   including fitting overlays and wrapped mobile action rows. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal-head, .pfa-modal-head, .modal-foot, .pfa-modal-foot), html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal-head, .pfa-modal-head) > :is(.actions, .pfa-actions, .customer-markup-heading, .table-settings-corner) {
  align-items: center;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal-head, .pfa-modal-head) :is(h1, h2, h3) {
  min-width: 0; margin-block: 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) :is(.modal-head, .pfa-modal-head) > button {
  flex-shrink: 0;
}
/* Keep supporting copy below the title row, so the close control aligns with
   the title itself. Subgrid retains the existing semantic title/copy group. */
@supports (grid-template-rows: subgrid) {
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-head:has(> div > h2 + p) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 0;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-head > div:has(> h2 + p) {
    display: grid; grid-template-rows: subgrid; grid-column: 1; grid-row: 1 / span 2; row-gap: 0;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-head > div:has(> h2 + p) > h2 {
    grid-row: 1; align-self: center;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-head > div:has(> h2 + p) > p {
    grid-row: 2;
  }
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) .modal-head:has(> div > h2 + p) > :is(button, .actions, .table-settings-corner) {
    grid-column: 2; grid-row: 1;
  }
}

/* 2026-10-24: Title text, actions and settings share normal row alignment.
   The old reserved-height title and absolute corner drifted in detail pages,
   foundation headers, wrapped titles and headers with differently sized tools. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner {
  flex-direction: row; flex-wrap: wrap;
  padding-inline-end: var(--ui-card-pad-inline);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner > :is(h1, div:has(h1)):not(.table-settings-corner) {
  flex: 1 1 120px; min-width: 0; min-height: 0; padding-inline-end: 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner > .table-settings-corner {
  position: static; inset: auto; flex: none; align-self: center; order: 1; margin: 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner > .actions:empty { display: none; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner > .toolbar-note {
  order: 3; flex-basis: 100%;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .dashboard-head,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .qc-page-head { align-items: center; }
@media (max-width: 700px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner > :is(h1, div:has(h1)):not(.table-settings-corner) { order: 0; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner > .table-settings-corner { order: 1; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content.content > .heading.has-table-settings-corner > .actions:not(.table-settings-corner) {
    order: 2; flex-basis: 100%;
  }
}

/* Only title bars initiate dragging; body scrolling and controls stay native. */
:where(body).c-production-auth :is(#app, #modal-root, #c-root, .ant-modal-root, .ant-drawer) :is(.modal-head, .modal-header, .pfa-modal-head, .profile-center-eyebrow, .ant-modal-header, .ant-modal-confirm-title, .ant-drawer-header, .auth-legal-dialog>header) {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
html:has(:where(body).c-production-auth).bq-modal-dragging, html:has(:where(body).c-production-auth).bq-modal-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
/* Large dialogs may cross the viewport edge without growing page scrollbars. */
:where(body).c-production-auth :is(#app, #modal-root) :is(.overlay, .pfa-overlay):has(> [data-bq-modal-moved]) {
  overflow: clip;
}

/* Dialog content remains selectable; only the title initiates window movement. */
:where(body).c-production-auth :is(.ant-modal-body,.ant-drawer-body,.modal-body){user-select:text}
:where(body).c-production-auth .ant-modal[data-bq-modal-moved]{margin-bottom:0}
:where(body).c-production-auth .ant-drawer-content-wrapper[data-bq-modal-moved]{transition:none!important}

:where(body).c-production-auth .master-transfer-menu{position:fixed;z-index:1300;padding:6px;border:1px solid var(--line,#cbd5df);border-radius:10px;background:var(--card,#fff);box-shadow:0 8px 28px #162a3b26;overflow:auto}
:where(body).c-production-auth .master-transfer-menu[hidden]{display:none}
:where(body).c-production-auth .master-transfer-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 12px;white-space:nowrap}
:where(body).c-production-auth .master-transfer-menu button:hover,:where(body).c-production-auth .master-transfer-menu button:focus-visible{background:var(--accent-soft,#e5f3f2)}
:where(body).c-production-auth #modal-root .master-transfer-dialog{width:min(850px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
:where(body).c-production-auth .master-transfer-dialog .modal-body{overflow:auto;min-height:0}
:where(body).c-production-auth .master-transfer-dialog .modal-body>label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}
:where(body).c-production-auth .master-transfer-dialog .modal-body>label[hidden]{display:none}
:where(body).c-production-auth .master-transfer-dialog input[type=file]{width:100%;max-width:100%}
:where(body).c-production-auth .master-transfer-dialog .master-transfer-note,:where(body).c-production-auth .master-transfer-summary{margin:0 0 10px}
:where(body).c-production-auth .master-transfer-dialog .table-wrap{max-height:45vh;overflow:auto}
:where(body).c-production-auth .master-transfer-dialog table{width:100%;border-collapse:collapse;min-width:560px}
:where(body).c-production-auth .master-transfer-dialog th,:where(body).c-production-auth .master-transfer-dialog td{padding:7px 9px;border:1px solid var(--line,#cbd5df);text-align:left;overflow-wrap:anywhere}
:where(body).c-production-auth .master-transfer-dialog th{position:sticky;top:0;background:var(--card,#fff)}
:where(body).c-production-auth .master-transfer-dialog [data-mt-status=error]{color:var(--danger,#b42318)}
:where(body).c-production-auth .master-transfer-pages{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
@media(max-width:600px){:where(body).c-production-auth .master-transfer-dialog .modal-foot{flex-wrap:wrap}:where(body).c-production-auth .master-transfer-dialog .modal-head h2{font-size:18px}:where(body).c-production-auth .master-transfer-dialog .modal-body{padding:12px}}

/* WMS-style joined search + query. Entry controls and business scopes stay separate. */
:root:has(:where(body).c-production-auth){--query-keyword-width:280px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .query-searchbar{
  display:flex;align-items:stretch;flex:0 1 322px;width:322px;max-width:100%;min-width:0;gap:0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) input.query-keyword[data-query-keyword]{
  flex:1 1 0;width:var(--query-keyword-width);max-width:var(--query-keyword-width);min-width:0;box-sizing:border-box;
  border-top-right-radius:0;border-bottom-right-radius:0;margin:0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .query-searchbar>.query-submit{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;min-width:42px;max-width:42px;
  height:auto;min-height:0;margin:0;padding:0 10px;border-top-left-radius:0;border-bottom-left-radius:0;transform:none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .query-submit svg{flex:0 0 16px;width:16px;height:16px}
/* Labeled filters and the joined search share the same control baseline. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) form.query-form{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) form.query-form>.actions{min-width:0;max-width:100%;flex-wrap:wrap}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) :is(.qc-search,.bom-detail-search){min-width:0;max-width:100%;flex-wrap:wrap}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .qc-search{display:block}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) label:has(>input.query-keyword){min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content>.query-form{width:100%;margin:0;padding:8px 12px;box-sizing:border-box}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content>.query-form .query-keyword{height:36px;min-height:36px}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .query-page-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:48px;padding:8px 12px}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .query-page-heading.has-table-settings-corner{padding-right:calc(12px + var(--table-settings-corner-width,44px))}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .query-page-heading>:is(.module-heading,.pfa-module-heading,.pt-module-heading){display:flex;align-items:center;flex:1 1 120px;min-width:0;min-height:32px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .query-page-heading :is(h1.module-heading,.module-heading h1){font-size:18px}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .query-page-heading>:is(.actions,.pfa-actions,.pt-actions){flex:0 1 auto;max-width:100%;padding:0;justify-content:flex-end}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .query-form>.list-query-error{flex-basis:100%}
@media(max-width:700px){
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content>.query-form .query-keyword{height:44px;min-height:44px}
  /* A 44px settings control shares the 32px title row center. */
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .query-page-heading>.table-settings-corner{top:2px}
}

/* One list surface: existing selection/actions on the left, search on the right.
   Forms remain intact and batch actions remain outside their submit scope.
   Density is scoped here: 70% vertical geometry and 80% of each text role. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar{
  --list-toolbar-control-height:25.2px;
  display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:5.6px 8px;min-width:0;min-height:0;width:100%;max-width:100%;
  margin:0;padding:5.3px var(--ui-card-pad-inline,12px);box-sizing:border-box;font-size:10.4px;line-height:1.4;
  border:1px solid var(--pc-line);border-radius:var(--theme-card-radius,12px);
  background:var(--pc-surface);box-shadow:var(--theme-card-shadow);backdrop-filter:none;
}
/* Keep the compact padding when the wrapper also has a module card class. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar:has(>form.query-form){padding-block:5.3px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>form.query-form{
  display:flex;flex:1 1 322px;flex-wrap:wrap;align-items:center;gap:5.6px 8px;min-width:0;max-width:100%;
  width:auto;margin:0;padding:0;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>form.query-form>.actions:has(>.query-searchbar){
  flex:0 1 322px;width:322px;min-width:0;max-width:100%;margin-left:auto;gap:0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar .query-searchbar{margin-left:auto}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar input.query-keyword{max-width:none;height:var(--list-toolbar-control-height);min-height:var(--list-toolbar-control-height);padding-block:2px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>.list-toolbar-left,html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar .batch-actions{
  display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-start;
  gap:5.6px 8px;min-width:0;max-width:100%;width:auto;margin:0;padding:0;border:0;background:transparent;box-shadow:none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>.list-toolbar-left:has(>[role="alert"]:not([hidden])),html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>form:has(>.list-query-error:not([hidden])){flex-basis:100%}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar :is(.list-query-error,[data-md-delete-error]){flex-basis:100%;margin:0;overflow-wrap:anywhere}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>.bom-detail-controls{margin-left:0;max-width:100%}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar :is(input,button,select,label){font-size:10.4px;line-height:1.4}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar :is(span,p){font-size:inherit}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar h3{font-size:12px;line-height:1.4}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>form.query-form>label{row-gap:4.2px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar .batch-actions>span{color:var(--muted);font-size:9.6px;overflow-wrap:anywhere}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar .sp-selection label{display:flex;align-items:center;flex-direction:row;gap:6px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar :is(button,select){height:var(--list-toolbar-control-height);min-height:var(--list-toolbar-control-height);padding-block:2px;box-sizing:border-box}
@media(max-width:700px){
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar .actions button{font-size:9.6px}
}
@media(max-width:600px){
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar{--list-toolbar-control-height:30.8px;flex-direction:column;align-items:stretch}
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>form.query-form{flex:0 1 auto;width:100%}
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>form.query-form>:is(label,.actions){flex-basis:100%;width:100%;min-width:0}
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar>form.query-form>.actions:has(>.query-searchbar){flex:0 1 100%;width:100%;margin-left:0}
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar .query-searchbar{flex:1 1 100%;width:100%;margin-left:0}
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .list-toolbar :is(input.query-keyword,button,select){height:var(--list-toolbar-control-height);min-height:var(--list-toolbar-control-height)}
}

/* 2026-10-21: Share the existing Apple font sizes across all four themes.
   Keep each component's hierarchy, responsive rules, colors and font family. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar .brand-label { font-size:17px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content :is(.heading h1, h1.module-heading,
  .module-heading h1, .pfa-module-heading h1, .pt-header h1) { font-size:18px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) table { font-size:13px; }
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app, #modal-root) table thead th { font-size:12px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .heading :is(button, input, select), html:has(:where(body).c-production-auth)[data-bq-theme] #app #content > .catalog-query :is(button, input, select) { font-size:13px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root :is(.modal-head, .pfa-modal-head) h2 { font-size:16px; }

/* Shared compact review geometry: all four imports and all theme palettes. */
:where(body).c-production-auth #modal-root .import-review-dialog{width:min(1180px,calc(100vw - 24px));max-width:min(1180px,calc(100vw - 24px));max-height:calc(100dvh - 24px);font-size:13px;line-height:1.4}
:where(body).c-production-auth #modal-root .import-review-dialog .modal-head,:where(body).c-production-auth #modal-root .import-review-dialog .modal-foot{padding:8px 12px;gap:8px;flex-shrink:0}
:where(body).c-production-auth #modal-root .import-review-dialog .modal-head>div{min-width:0}
:where(body).c-production-auth #modal-root .import-review-dialog .modal-head p{margin:3px 0 0;font-size:12px;overflow-wrap:anywhere;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth #modal-root .import-review-dialog .modal-body{padding:8px 12px;overflow:auto;min-height:100px}
:where(body).c-production-auth #modal-root .import-review-dialog :is(button,input,select){min-height:32px;height:32px;padding:4px 8px;font-size:13px;line-height:1.4;max-width:100%;box-shadow:none}
:where(body).c-production-auth #modal-root .import-review-dialog button:disabled{cursor:default}
:where(body).c-production-auth #modal-root .import-review-dialog .modal-head>button{width:32px;flex:none}
:where(body).c-production-auth .import-review-toolbar,:where(body).c-production-auth .import-review-status-filters,:where(body).c-production-auth .import-review-actions,:where(body).c-production-auth .import-review-search{display:flex;align-items:center;gap:6px}
:where(body).c-production-auth .import-review-toolbar{flex-wrap:wrap;justify-content:space-between;margin-bottom:8px}
:where(body).c-production-auth .import-review-status-filters{flex-wrap:wrap;min-width:0}
:where(body).c-production-auth .import-review-actions{flex-wrap:wrap}
:where(body).c-production-auth #modal-root .import-review-status-filters button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:inherit}
:where(body).c-production-auth #modal-root .import-review-status-filters button[aria-pressed="true"]{border-bottom-color:var(--pc-accent,var(--primary,#087f80));color:var(--pc-accent,var(--primary,#087f80));font-weight:600}
:where(body).c-production-auth #modal-root .import-review-actions button[aria-pressed="true"]{border-color:var(--pc-accent,var(--primary,#087f80));color:var(--pc-accent,var(--primary,#087f80))}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-message{margin:0 0 8px;padding:6px 8px;background:var(--pc-soft,#f4f7f7);overflow-wrap:anywhere}
/* Fixed columns consume 188px; the material and comparison columns share the rest. */
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0;font-size:13px;font-variant-numeric:tabular-nums}
:where(body).c-production-auth .ir-col-index{width:60px}:where(body).c-production-auth .ir-col-status{width:68px}:where(body).c-production-auth .ir-col-source{width:31%}:where(body).c-production-auth .ir-col-choice{width:30%}:where(body).c-production-auth .ir-col-more{width:60px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table :is(th,td){border:0;border-bottom:1px solid var(--pc-line,var(--line,#dce3e5));padding:7px 6px;text-align:left;vertical-align:middle;background:var(--pc-surface,#fff);color:inherit;white-space:normal;overflow-wrap:anywhere;line-height:20px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table th{position:sticky;top:0;z-index:1;height:32px;padding-top:4px;padding-bottom:4px;font-size:12px;font-weight:500;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table .import-review-index{text-align:right;padding-right:12px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table th:first-child{text-align:right;padding-right:12px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-row{height:58px}
:where(body).c-production-auth .import-review-identity{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
:where(body).c-production-auth .import-review-identity strong{font-weight:600;overflow-wrap:anywhere}
:where(body).c-production-auth .import-review-identity span,:where(body).c-production-auth .import-review-meta{color:var(--pc-muted,var(--muted,#59646c));font-size:12px}
:where(body).c-production-auth .import-review-meta{line-height:18px;overflow-wrap:anywhere}
:where(body).c-production-auth .import-review-meta-item{display:inline-block;max-width:100%;vertical-align:top}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-choice select{width:100%;min-width:0;text-overflow:ellipsis}
/* Override the shared modal skin only for unresolved review choices. */
:where(body).c-production-auth #modal-root .modal.import-review-dialog .import-review-table .import-review-row .import-review-choice select[data-ir-choice].is-unresolved{background:#fff4df!important;border-color:#c47a16!important;color:#80500e!important}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-choice select.is-unresolved option{background:var(--pc-surface,#fff);color:var(--pc-text,#20352e)}
:where(body).c-production-auth .import-review-state{display:inline-block;white-space:nowrap;font-size:12px;line-height:22px}
:where(body).c-production-auth .import-review-state.is-matched{color:var(--pc-accent,#087f80)}
:where(body).c-production-auth .import-review-state.is-pending{color:var(--warning-ink,#8a5415)}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-differences{font-size:12px;color:var(--danger,#a13e48);line-height:18px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-more{text-align:right}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-more button{background:transparent;border-color:transparent;padding-inline:4px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-detail-row>td{padding:0 6px 8px}
:where(body).c-production-auth .import-review-details{padding:8px 10px;background:var(--pc-soft,#f4f7f7)}
:where(body).c-production-auth .import-review-details dl{margin:0;display:grid;gap:5px}
:where(body).c-production-auth .import-review-details dl>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px}
:where(body).c-production-auth .import-review-details dt{color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth .import-review-details dd{margin:0;overflow-wrap:anywhere}
:where(body).c-production-auth .import-review-search{margin-top:8px}
:where(body).c-production-auth .import-review-search input{flex:1;min-width:0}
:where(body).c-production-auth #modal-root .import-review-dialog .modal-foot{flex-wrap:wrap}
:where(body).c-production-auth .import-review-range{margin-right:auto;color:var(--pc-muted,var(--muted,#59646c));font-size:12px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-empty{text-align:center;padding:20px 8px}
:where(body).c-production-auth .import-review-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}
@media(max-width:700px){
  :where(body).c-production-auth #modal-root .import-review-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  :where(body).c-production-auth #modal-root .import-review-dialog .modal-body{padding:8px}
  :where(body).c-production-auth #modal-root .import-review-dialog :is(button,input,select){min-height:44px;height:44px}
  :where(body).c-production-auth .import-review-toolbar{gap:6px}:where(body).c-production-auth .import-review-status-filters{flex-wrap:nowrap;overflow-x:auto;width:100%}:where(body).c-production-auth .import-review-actions{width:100%}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-table colgroup,:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table thead{display:none}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-table,:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table tbody{display:block}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-row{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;height:auto;padding:6px 0;border-bottom:1px solid var(--pc-line,var(--line,#dce3e5));gap:4px 0}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-row>td{border:0;padding:0 4px;min-width:0}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-row .import-review-index{text-align:left;grid-column:1;grid-row:1;padding:0 4px}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-row .import-review-index::before{content:"行 "}
  :where(body).c-production-auth .import-review-row>td:nth-child(2){grid-column:2;grid-row:1}
  :where(body).c-production-auth .import-review-source{grid-column:1/-1;grid-row:2}
  :where(body).c-production-auth .import-review-choice{grid-column:1/-1;grid-row:3}
  :where(body).c-production-auth .import-review-differences{grid-column:1/-1;grid-row:4}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-differences.is-empty{display:none}
  :where(body).c-production-auth .import-review-more{grid-column:3;grid-row:1}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-more button{min-height:44px;height:44px}
  :where(body).c-production-auth .import-review-detail-row{display:block}:where(body).c-production-auth .import-review-detail-row>td{display:block}
  :where(body).c-production-auth .import-review-details dl>div{grid-template-columns:56px minmax(0,1fr);gap:6px}
  :where(body).c-production-auth .import-review-range{width:100%}
  :where(body).c-production-auth #modal-root .import-review-dialog .modal-foot{gap:6px}
}
:where(body).c-production-auth .mapping .import-technical-mapping{grid-column:1/-1}:where(body).c-production-auth .import-technical-mapping>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:8px}
/* Shared search popup and browser-local import drafts, 2026-10-22. */
:where(body).c-production-auth #modal-root>[hidden]{display:none!important}
:where(body).c-production-auth #modal-root .import-review-dialog .material-picker-popover>button{height:auto;min-height:36px;padding:9px 12px}
:where(body).c-production-auth #modal-root .import-review-dialog .modal-foot{flex-wrap:wrap}
:where(body).c-production-auth .import-draft-list{display:grid;gap:8px;margin-top:12px}
:where(body).c-production-auth .import-draft-list article{padding:8px;border-bottom:1px solid var(--pc-line,var(--line,#dce3e5));overflow-wrap:anywhere}
:where(body).c-production-auth .import-draft-list article p{margin:4px 0;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth .import-draft-list article button+button{margin-left:6px}
:where(body).c-production-auth .import-draft-overlay .modal{width:min(640px,calc(100vw - 24px))}

/* 2026-10-24: One compact review language for every AI import. */
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-row{height:40px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table :is(th,td){padding-block:4px;line-height:18px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-table .import-review-index{padding-right:8px}
:where(body).c-production-auth #modal-root .import-review-dialog .ir-col-index{width:44px}
:where(body).c-production-auth #modal-root .import-review-dialog .ir-col-status{width:76px}
:where(body).c-production-auth #modal-root .import-review-dialog .ir-col-source{width:34%}
:where(body).c-production-auth #modal-root .import-review-dialog .ir-col-choice{width:30%}
:where(body).c-production-auth #modal-root .import-review-dialog .ir-col-more{width:48px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-identity{display:block;line-height:20px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-identity>span{margin-left:6px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-identity strong{font-size:13px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-progress{font-size:12px;white-space:nowrap;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-differences button{height:auto;min-height:24px;padding:0 3px;border:0;background:transparent;color:inherit;font-size:12px;white-space:nowrap}
@media(min-width:701px){
  :where(body).c-production-auth #modal-root .import-review-dialog .modal-head>div{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap}
  :where(body).c-production-auth #modal-root .import-review-dialog .modal-head h2,:where(body).c-production-auth #modal-root .import-review-dialog .modal-head p{margin:0}
}
@media(max-width:700px){
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-row{height:auto;padding-block:4px}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-identity{line-height:20px}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-table .import-review-index{padding-right:4px}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-differences button{min-height:32px}
}
/* Narrow review rows keep status with the identity instead of reserving a line. */
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-mobile-state{display:none}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .import-review-dialog table.import-review-table{table-layout:fixed}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .import-review-dialog table.import-review-table :is(th,td){white-space:normal!important;overflow-wrap:anywhere!important}
@media(max-width:700px){
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-row>td:nth-child(2){display:none}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-table .import-review-row>td{padding:0 4px}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-source{grid-column:2;grid-row:1}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-choice{grid-row:2}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-differences{grid-row:3}
  :where(body).c-production-auth #modal-root .import-review-dialog .import-review-mobile-state{display:inline;color:var(--pc-accent,var(--primary,#087f80));font-size:12px}
}
@media(min-width:701px){
  html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .import-review-dialog .modal-head>div{display:flex!important;align-items:center;gap:6px 12px;flex-wrap:wrap}
}

/* Persistent row counts use actual decisions, independently of AI batch completion. */
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing{display:flex;flex-direction:column;gap:3px;width:184px;flex:0 1 184px;min-width:160px;max-width:100%;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing>span{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing b{font-weight:600;color:var(--pc-text,var(--text,#20352e))}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing>span>span{margin-left:auto;color:var(--pc-accent,var(--primary,#087f80));font-weight:600}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing progress{display:block;appearance:none;width:100%;height:5px;min-height:5px;border:0;border-radius:3px;overflow:hidden;background:var(--pc-line,var(--line,#dce3e5));color:var(--pc-accent,var(--primary,#087f80));accent-color:var(--pc-accent,var(--primary,#087f80))}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing progress::-webkit-progress-bar{background:var(--pc-line,var(--line,#dce3e5));border-radius:3px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing progress::-webkit-progress-value{background:var(--pc-accent,var(--primary,#087f80));border-radius:3px}
:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing progress::-moz-progress-bar{background:var(--pc-accent,var(--primary,#087f80));border-radius:3px}
@media(max-width:700px){:where(body).c-production-auth #modal-root .import-review-dialog .import-review-processing{flex:1 1 160px}}
:where(body).c-production-auth .import-review-machine-count{font-size:12px;line-height:1.5;margin:4px 0;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth .import-review-proposals{min-width:0;font-size:12px;display:grid;gap:5px}
:where(body).c-production-auth .import-review-proposals label{display:flex;gap:5px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}
:where(body).c-production-auth .import-review-proposals input[type=checkbox]{width:16px;height:16px;flex:none}
:where(body).c-production-auth .import-review-proposals small{display:block;overflow-wrap:anywhere}
:where(body).c-production-auth #modal-root .import-review-fill-choice{display:flex;flex-direction:row;align-items:center;gap:5px;font-size:12px;line-height:18px;margin:4px 0;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth #modal-root .import-review-fill-choice input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:none;margin:0}

/* Raw-material confirmation batches: shared geometry across all themes. */
:where(body).c-production-auth .raw-batch-dialog{width:min(1440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);position:relative}:where(body).c-production-auth .raw-batch-dialog .modal-head>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(body).c-production-auth .raw-batch-dialog .modal-body{min-height:0;overflow:auto}:where(body).c-production-auth .raw-batch-selection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0}:where(body).c-production-auth .raw-batch-selection label{display:flex;align-items:center;gap:6px}:where(body).c-production-auth .raw-batch-table-wrap{overflow:auto;max-height:58dvh}:where(body).c-production-auth .raw-batch-table{width:100%;min-width:1050px;table-layout:fixed}:where(body).c-production-auth .raw-batch-table th:nth-child(1){width:48px}:where(body).c-production-auth .raw-batch-table th:nth-child(2){width:52px}:where(body).c-production-auth .raw-batch-table th:nth-child(3){width:235px}:where(body).c-production-auth .raw-batch-table th:nth-child(4){width:80px}:where(body).c-production-auth .raw-batch-table th:nth-child(5),:where(body).c-production-auth .raw-batch-table th:nth-child(6){width:96px}:where(body).c-production-auth .raw-batch-table th:nth-child(8){width:90px}:where(body).c-production-auth .raw-batch-table th:nth-child(9){width:106px}:where(body).c-production-auth .raw-batch-table td{overflow-wrap:anywhere;vertical-align:middle}:where(body).c-production-auth .raw-batch-name,:where(body).c-production-auth .raw-batch-row small{display:block;font-size:12px;opacity:.75}:where(body).c-production-auth .raw-batch-params{font-size:13px}:where(body).c-production-auth .raw-batch-state.confirmed{color:var(--primary,#1675dc)}:where(body).c-production-auth .raw-batch-state.blocked{color:var(--danger,#bc3244)}:where(body).c-production-auth .raw-batch-state.imported{opacity:.65}:where(body).c-production-auth .raw-batch-edit>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}:where(body).c-production-auth .raw-batch-edit label{display:flex;flex-direction:column;gap:4px;text-align:left}:where(body).c-production-auth .raw-batch-edit input{width:100%;min-width:0;box-sizing:border-box}:where(body).c-production-auth .raw-batch-detail dl>div{display:flex;gap:14px;text-align:left;margin:8px 0}:where(body).c-production-auth .raw-batch-detail dt{flex:0 0 85px}:where(body).c-production-auth .raw-batch-detail dd{margin:0;overflow-wrap:anywhere}:where(body).c-production-auth .raw-batch-dialog .modal-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:where(body).c-production-auth .raw-batch-dialog .modal-foot>span:first-child{margin-right:auto}:where(body).c-production-auth .raw-batch-preview{position:absolute;inset:0;z-index:10;background:var(--pc-surface,var(--panel,#f2f7fc));color:var(--pc-text,inherit);border-radius:inherit;overflow:auto;padding:20px;box-sizing:border-box}:where(body).c-production-auth .raw-batch-preview .table-wrap{max-height:60dvh;overflow:auto}:where(body).c-production-auth .raw-batch-preview table{min-width:900px;width:100%}:where(body).c-production-auth .raw-batch-preview button{margin:12px 8px 0 0}:where(body).c-production-auth .raw-batch-dialog .import-review-completion{display:grid;grid-template-columns:1fr auto;min-width:180px}:where(body).c-production-auth .raw-batch-dialog .import-review-completion progress{grid-column:1/-1;width:100%}
@media(max-width:600px){:where(body).c-production-auth .raw-batch-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}:where(body).c-production-auth .raw-batch-dialog .modal-head{flex-wrap:wrap;gap:6px;padding:12px}:where(body).c-production-auth .raw-batch-dialog .modal-head h2{font-size:17px}:where(body).c-production-auth .raw-batch-dialog .modal-head>span{flex-basis:calc(100% - 44px);font-size:12px;order:2}:where(body).c-production-auth .raw-batch-dialog .modal-head>button{margin-left:auto}:where(body).c-production-auth .raw-batch-dialog .modal-body{padding:10px}:where(body).c-production-auth .raw-batch-dialog .import-review-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px}:where(body).c-production-auth .raw-batch-dialog .import-review-filters{display:flex;gap:4px;flex-wrap:wrap}:where(body).c-production-auth .raw-batch-dialog .import-review-filters button{padding:6px 9px;min-height:36px;font-size:13px}:where(body).c-production-auth .raw-batch-dialog .import-review-actions{justify-content:space-between;flex-wrap:wrap}:where(body).c-production-auth .raw-batch-dialog .modal-foot{padding:10px;gap:6px}:where(body).c-production-auth .raw-batch-dialog .modal-foot button{min-height:36px;padding:6px 9px;font-size:13px}:where(body).c-production-auth .raw-batch-table-wrap{max-height:48dvh}:where(body).c-production-auth .raw-batch-selection{font-size:13px;gap:6px}:where(body).c-production-auth .raw-batch-selection button{font-size:13px;padding:6px 8px}:where(body).c-production-auth .raw-batch-preview{padding:12px}}
:where(body).c-production-auth #modal-root .raw-batch-dialog .raw-batch-selection label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap}:where(body).c-production-auth #modal-root .raw-batch-dialog .raw-batch-selection input[type="checkbox"]{width:16px;height:16px;min-height:16px;margin:0;flex:none}:where(body).c-production-auth #modal-root .raw-batch-dialog .raw-batch-preview{background:var(--pc-canvas,#f2f7fc)}

:where(body).c-production-auth #modal-root .raw-batch-dialog[data-loading="true"] .import-review-actions{display:none!important}

:where(body).c-production-auth #modal-root .raw-batch-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}:where(body).c-production-auth #modal-root .raw-batch-preview-head h3{min-width:0;margin:0}:where(body).c-production-auth #modal-root .raw-batch-preview .raw-batch-preview-close{flex:none;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;margin:0;line-height:1}

/* Import field guidance is display-only; server validation remains authoritative. */
:where(body).c-production-auth #modal-root .raw-batch-edit .raw-batch-field>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
:where(body).c-production-auth #modal-root .raw-batch-edit .raw-batch-required{font-size:11px;font-weight:400;color:var(--danger,#bc3244)}
:where(body).c-production-auth #modal-root .modal.import-review-dialog.raw-batch-dialog .raw-batch-edit .raw-batch-field.needs-attention :is(input,select)[aria-invalid="true"]:not(:disabled){border-color:var(--danger,#bc3244)!important}
:where(body).c-production-auth #modal-root .raw-batch-edit .raw-batch-field-hint{font-size:12px;line-height:1.4;color:var(--danger,#bc3244);overflow-wrap:anywhere}

/* Recommended import outcomes share one compact line across material scenarios. */
:where(body).c-production-auth #modal-root .import-review-plan-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin:4px 0 6px;font-size:13px;line-height:20px}
:where(body).c-production-auth #modal-root .import-review-plan-summary :is(strong,span){white-space:nowrap}
:where(body).c-production-auth #modal-root .import-review-plan-summary span{color:var(--pc-muted,var(--muted))}

/* One processing action leads directly to the existing final save preview. */
:where(body).c-production-auth .import-auto-result{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin:4px 0 8px;font-size:13px;line-height:20px}
:where(body).c-production-auth .import-auto-result :is(strong,span){white-space:nowrap}
:where(body).c-production-auth .import-auto-result span{color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth .import-auto-leftovers{margin:4px 0 8px;font-size:12px}
:where(body).c-production-auth .import-auto-leftovers p{margin:4px 0;overflow-wrap:anywhere}
:where(body).c-production-auth .import-auto-changes{margin:4px 0 8px;font-size:12px}
:where(body).c-production-auth .import-auto-change-pages{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:4px}
:where(body).c-production-auth .import-auto-change-table{width:100%;table-layout:fixed}
:where(body).c-production-auth .import-auto-change-table :is(th,td){padding:4px 6px;overflow-wrap:anywhere;white-space:normal}
:where(body).c-production-auth .import-auto-change-table th:first-child{width:52px}
:where(body).c-production-auth .import-auto-change-table th:nth-child(2){width:110px}
@media(max-width:700px){:where(body).c-production-auth .import-auto-change-table th:nth-child(2){width:76px}:where(body).c-production-auth .import-auto-change-table th:first-child{width:36px}}

/* Final one-click previews keep source controls optional and expose only active actions. */
:where(body).c-production-auth #modal-root .master-transfer-dialog [hidden]{display:none!important}
:where(body).c-production-auth .master-transfer-source{margin-bottom:12px;min-width:0}
:where(body).c-production-auth .master-transfer-source>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
:where(body).c-production-auth .master-transfer-source[open]>summary{margin-bottom:10px}
:where(body).c-production-auth .master-transfer-source>label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}

/* One shared original / proposed comparison for every AI import. */
:where(body).c-production-auth .value-review-table{width:100%;table-layout:fixed;border-collapse:collapse}
:where(body).c-production-auth .value-review-table th,:where(body).c-production-auth .value-review-table td{vertical-align:top;text-align:left}
:where(body).c-production-auth .value-review-table th:first-child{width:38px}:where(body).c-production-auth .value-review-table .value-review-location{width:120px}:where(body).c-production-auth .value-review-table .value-review-actions{width:126px}
:where(body).c-production-auth .value-review-field{display:grid;grid-template-columns:66px minmax(0,1fr);gap:6px;align-items:center;min-height:32px;margin:0 0 4px;text-align:left}
:where(body).c-production-auth .value-review-field small{color:var(--pc-muted,var(--muted));font-size:12px;overflow-wrap:anywhere}
:where(body).c-production-auth .value-review-field>span{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
:where(body).c-production-auth #modal-root .value-review-field input{width:100%;min-width:0;margin:0;border:1px solid transparent;background:transparent;color:inherit;text-align:left;cursor:text}
:where(body).c-production-auth #modal-root .value-review-field input:not([readonly]){background:var(--card,#fff);border-color:var(--line,#cbd5df)}
:where(body).c-production-auth #modal-root .value-review-field.is-changed input{color:var(--pc-accent,var(--primary));font-weight:600}
:where(body).c-production-auth #modal-root .value-review-field.needs-attention input{border-color:var(--danger,#b42318)}
:where(body).c-production-auth .value-review-manual{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
:where(body).c-production-auth .value-review-location strong,:where(body).c-production-auth .value-review-location small{display:block;overflow-wrap:anywhere}:where(body).c-production-auth .value-review-location small{font-size:12px;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth .value-review-actions button{display:block;width:100%;margin:4px 0}:where(body).c-production-auth .value-review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0}
:where(body).c-production-auth .value-review-error{display:block;color:var(--danger,#b42318);font-size:12px;overflow-wrap:anywhere;margin-top:4px}
@media(max-width:650px){:where(body).c-production-auth .value-review-table{min-width:670px}:where(body).c-production-auth .value-review-table .value-review-location{width:90px}:where(body).c-production-auth .value-review-field{grid-template-columns:58px minmax(0,1fr)}}
:where(body).c-production-auth #modal-root .value-review-table th:first-child{width:38px}
:where(body).c-production-auth #modal-root .value-review-table th.value-review-location{width:120px}
:where(body).c-production-auth #modal-root .value-review-table th.value-review-actions{width:138px}
:where(body).c-production-auth #modal-root .raw-batch-table.value-review-table{min-width:710px}
:where(body).c-production-auth #modal-root .raw-batch-table.value-review-table th:nth-child(3),:where(body).c-production-auth #modal-root .raw-batch-table.value-review-table th:nth-child(4){width:auto}
:where(body).c-production-auth #modal-root .value-review-table td .value-review-field{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:6px;margin:0 0 4px;min-height:32px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .value-review-table td .value-review-field{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:6px;margin:0 0 4px;min-height:32px}
:where(body).c-production-auth #modal-root .value-review-field>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where(body).c-production-auth #modal-root .value-review-field input[readonly]{background:transparent;border-color:transparent;box-shadow:none;font-weight:inherit;padding-inline:4px}
:where(body).c-production-auth #modal-root .value-review-table .value-review-field input[readonly]{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
/* Keep the recommendation dense; unchanged fields live in the expandable source details. */
:where(body).c-production-auth #modal-root .value-review-table th.value-review-identity{width:32%}
:where(body).c-production-auth #modal-root .value-review-table td.value-review-identity{text-align:left;min-width:0}
:where(body).c-production-auth #modal-root .value-review-record{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}
:where(body).c-production-auth #modal-root .value-review-source{display:inline-block;color:var(--pc-muted,var(--muted));font-size:12px;white-space:nowrap;margin-right:8px}
:where(body).c-production-auth #modal-root .value-review-details{display:inline-block;vertical-align:top;margin:0 8px 0 0;font-size:12px;text-align:left}
:where(body).c-production-auth #modal-root .value-review-details>summary{white-space:nowrap;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth #modal-root .value-review-details[open]{display:block;margin-top:4px}
:where(body).c-production-auth #modal-root .value-review-detail-field{display:flex;gap:8px;margin:4px 0}
:where(body).c-production-auth #modal-root .value-review-detail-field small{flex:none;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth #modal-root .value-review-detail-field span{min-width:0;overflow-wrap:anywhere;white-space:normal}
:where(body).c-production-auth #modal-root .value-review-change{display:flex;align-items:center;gap:6px;min-width:0;min-height:28px;margin:0;text-align:left;white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-change>small{flex:none;font-size:11px;color:var(--pc-accent,var(--primary));font-weight:600}
:where(body).c-production-auth #modal-root .value-review-change .value-review-label{flex:none;font-size:12px;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth #modal-root .value-review-before{flex:0 1 42%;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--pc-muted,var(--muted));font-size:12px;text-decoration:line-through}
:where(body).c-production-auth #modal-root .value-review-change>strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--pc-accent,var(--primary));font-size:13px;font-weight:600}
:where(body).c-production-auth #modal-root .value-review-unchanged{color:var(--pc-muted,var(--muted));font-size:12px;white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-editor input{flex:1;min-width:0;width:0;margin:0;text-align:left}
:where(body).c-production-auth #modal-root .value-review-editor.needs-attention input{border-color:var(--danger,#b42318)}
:where(body).c-production-auth #modal-root .value-review-actions>button{font-size:12px;white-space:nowrap;padding:4px 8px;min-height:28px}
:where(body).c-production-auth #modal-root .value-review-table .value-review-actions select{max-width:100%;font-size:12px}
:where(body).c-production-auth #modal-root [data-value-all],:where(body).c-production-auth #modal-root [data-mv-all],:where(body).c-production-auth #modal-root [data-action="save-all"]{white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-table th.value-review-actions{width:184px}
:where(body).c-production-auth #modal-root .value-review-table td{padding:8px;vertical-align:middle}
:where(body).c-production-auth #modal-root .value-review-record{text-align:left}
:where(body).c-production-auth #modal-root .value-review-actions .value-review-manual{display:inline-flex;margin:0;vertical-align:middle}
:where(body).c-production-auth #modal-root .value-review-actions>button{display:inline-block;width:auto;margin:0 0 0 6px;vertical-align:middle}
:where(body).c-production-auth #modal-root .value-review-table td.value-review-actions{white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-overview{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin:8px 0;font-size:13px}
:where(body).c-production-auth #modal-root .value-review-overview>span{color:var(--pc-muted,var(--muted));white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-empty{margin:12px 0;color:var(--pc-muted,var(--muted));font-size:13px}
:where(body).c-production-auth #modal-root .value-review-collapsed{margin:10px 0;font-size:13px}
:where(body).c-production-auth #modal-root .value-review-collapsed>summary{cursor:pointer;color:var(--pc-muted,var(--muted));line-height:24px}
:where(body).c-production-auth #modal-root .value-review-collapsed[open]>summary{margin-bottom:6px}
:where(body).c-production-auth #modal-root .value-review-group-pages{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px;font-size:12px}
@media(max-width:700px){
 html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal.import-review-dialog .modal-foot{flex-wrap:wrap;gap:6px}
 html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal.import-review-dialog .modal-foot>.review-pagination,
 html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal.import-review-dialog .modal-foot>.review-actions{display:flex;flex:1 1 100%;min-width:0;max-width:100%;gap:6px;flex-wrap:wrap;align-items:center}
 html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal.import-review-dialog .review-actions{justify-content:flex-end}
 html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal.import-review-dialog .review-actions>:is([data-value-all],[data-mv-all]){flex:1 1 100%;min-width:0}
}
@media(max-width:700px){
 :where(body).c-production-auth #modal-root .import-review-dialog table.value-review-table{display:table;min-width:710px}
 :where(body).c-production-auth #modal-root .import-review-dialog table.value-review-table thead{display:table-header-group}
 :where(body).c-production-auth #modal-root .import-review-dialog table.value-review-table tbody{display:table-row-group}
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .value-review-table{display:table;min-width:710px}
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .value-review-table thead{display:table-header-group}
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .value-review-table tbody{display:table-row-group}
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .value-review-table tr{display:table-row}
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .value-review-table td{display:table-cell}
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .value-review-table td:last-child{display:table-cell}
}

/* Brand identity review: problems are red; source-backed recognition stays readable. */
:where(body).c-production-auth #modal-root .raw-identity-hint{display:block;max-width:38ch;margin-top:3px;color:var(--warning,#925b13);font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;text-align:left}
:where(body).c-production-auth #modal-root .raw-identity-hint.is-invalid,:where(body).c-production-auth #modal-root .raw-identity-value.is-invalid{color:var(--danger,#bc3244);font-weight:600}
:where(body).c-production-auth #modal-root .raw-identity-value.needs-review{color:var(--warning,#925b13);font-weight:600}
:where(body).c-production-auth #modal-root .raw-batch-edit .raw-batch-field-hint.is-review{color:var(--warning,#925b13)}
:where(body).c-production-auth #modal-root .modal.import-review-dialog.raw-batch-dialog .raw-batch-edit .raw-batch-field.needs-review :is(input,select):not(:disabled){border-color:var(--warning,#925b13)!important}

:where(body).c-production-auth #modal-root .modal.import-review-dialog .raw-identity-hint{opacity:1;font-weight:600;text-align:left!important}
:where(body).c-production-auth #modal-root .modal.import-review-dialog .raw-identity-hint[data-identity-kind="recognized"]{color:var(--pc-muted,var(--muted,#475569));font-weight:500}
:where(body).c-production-auth #modal-root .modal.import-review-dialog .raw-identity-hint[data-identity-kind="review"]{padding:4px 6px;border-inline-start:3px solid currentColor;background:color-mix(in srgb,var(--warning,#925b13) 9%,transparent);border-radius:3px}
:where(body).c-production-auth #modal-root .modal.import-review-dialog .value-review-change.needs-attention{border-inline-start:3px solid var(--danger,#bc3244);padding-inline-start:6px;background:color-mix(in srgb,var(--danger,#bc3244) 8%,transparent)}
:where(body).c-production-auth #modal-root .modal.import-review-dialog .value-review-change.needs-attention :is(small,strong){color:var(--danger,#bc3244)}

/* A review sheet: changes lead, editing is explicit, optional actions stay folded. */
:where(body).c-production-auth #modal-root .value-review-edit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0 12px;min-width:0;text-align:left}
:where(body).c-production-auth #modal-root .modal .value-review-table th.value-review-actions{width:144px}
:where(body).c-production-auth #modal-root .modal .value-review-table td.value-review-actions{white-space:normal;text-align:left}
:where(body).c-production-auth #modal-root .modal .value-review-actions>.value-review-manual{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:32px;margin:0;padding:4px 12px;font-size:13px}
:where(body).c-production-auth #modal-root .modal .value-review-manual[aria-pressed="true"]{color:var(--pc-accent,var(--primary));border-color:currentColor}
:where(body).c-production-auth #modal-root .value-review-menu{display:inline-block;vertical-align:middle;margin:0 0 0 4px;font-size:13px;text-align:left;position:relative}
:where(body).c-production-auth #modal-root .value-review-menu>summary{display:list-item;cursor:pointer;min-height:32px;line-height:32px;padding:0 6px;color:var(--pc-muted,var(--muted));white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-menu>div{display:grid;gap:4px;padding-top:4px}
:where(body).c-production-auth #modal-root .value-review-menu>div>button{display:block;width:100%;min-height:32px;margin:0;font-size:12px;white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-menu>summary:focus-visible{outline:2px solid var(--pc-accent,var(--primary));outline-offset:2px;border-radius:4px}
:where(body).c-production-auth #modal-root .modal-foot .value-review-menu>div{position:absolute;bottom:100%;right:0;z-index:5;min-width:140px;padding:8px;background:var(--pc-surface,var(--card,#fff));border:1px solid var(--line,#cbd5df);border-radius:6px}
:where(body).c-production-auth #modal-root .modal .raw-identity-summary{font-size:12px;margin-top:4px;text-align:left;color:var(--warning,#925b13)}
:where(body).c-production-auth #modal-root .raw-identity-summary>summary{cursor:pointer;line-height:24px}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal .value-review-table .value-review-editor{display:grid;grid-template-columns:100px minmax(120px,1fr);align-items:center;gap:8px;white-space:normal;margin:4px 0}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal .value-review-table .value-review-editor>small{font-weight:400;color:var(--pc-muted,var(--muted));text-align:left;white-space:normal}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal .value-review-table .value-review-editor>:is(input,select){width:100%!important;min-width:0;max-width:100%;min-height:34px;margin:0;padding:6px 8px;box-sizing:border-box;text-align:left}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .raw-batch-dialog .raw-batch-edit>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start;text-align:left}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .raw-batch-dialog .raw-batch-edit .raw-batch-field{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;margin:0;text-align:left}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .raw-batch-dialog .raw-batch-edit .raw-batch-field>:is(input,select){width:100%!important;min-width:0;max-width:100%;box-sizing:border-box;min-height:36px;margin:0;padding:6px 8px;text-align:left}
:where(body).c-production-auth #modal-root .raw-batch-edit>button{margin-top:12px}
@media(max-width:700px){
 html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .raw-batch-dialog .raw-batch-edit>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 :where(body).c-production-auth #modal-root .modal .value-review-actions>.value-review-manual,:where(body).c-production-auth #modal-root .value-review-menu>summary{min-height:40px}
 :where(body).c-production-auth #modal-root .value-review-menu>summary{line-height:40px}
}

/* A compound file value is a proposal until the operator adopts it into the draft. */
:where(body).c-production-auth #modal-root .raw-identity-proposal{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:6px 0;padding:6px 8px;border:1px solid var(--warning,#925b13);border-radius:6px;color:var(--pc-text,var(--text,#26364a));background:color-mix(in srgb,var(--warning,#925b13) 7%,transparent);font-size:12px;white-space:normal;overflow-wrap:anywhere;text-align:left}
:where(body).c-production-auth #modal-root .raw-identity-proposal button{flex:none;min-height:32px;padding:4px 8px;font-size:12px;white-space:normal}

/* Keep review columns anchored together; other grid tables retain their alignment. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table{display:table;table-layout:fixed;min-width:710px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table thead{display:table-header-group}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table tbody{display:table-row-group}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table tr{display:table-row}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table :is(th,td){display:table-cell;vertical-align:top}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table th{vertical-align:middle}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table :is(th:nth-child(2),th:nth-child(3),td.value-review-identity){text-align:left!important}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table .value-review-identity>.value-review-source{display:inline-block;vertical-align:top;margin:0 8px 0 0;text-align:left!important}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table .value-review-record{line-height:32px}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .modal table.value-review-table th.value-review-actions{width:168px}
:where(body).c-production-auth #modal-root .value-review-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:4px 6px;min-width:0;text-align:left}
html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal .value-review-row-actions>.value-review-manual{grid-column:1;grid-row:1;display:flex;justify-content:center;width:100%;min-height:32px;box-sizing:border-box;margin:0;padding:4px 6px;white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-row-actions>.value-review-menu{grid-column:2;grid-row:1;width:100%;min-width:0;margin:0}
:where(body).c-production-auth #modal-root .value-review-row-actions>.value-review-menu>summary{box-sizing:border-box;list-style-position:inside;text-align:center;padding:0 2px}
:where(body).c-production-auth #modal-root .value-review-row-actions>:is([data-action="save-inline"],[data-mv-save],[data-value-save]){grid-column:1;grid-row:2;width:100%;box-sizing:border-box;min-height:32px;margin:0;padding:4px 6px;white-space:nowrap}
:where(body).c-production-auth #modal-root .value-review-row-actions>select{grid-column:1/-1;grid-row:3;width:100%;min-width:0;box-sizing:border-box;margin:0}
:where(body).c-production-auth #modal-root .value-review-row-actions>.value-review-error{grid-column:1/-1;margin:0;white-space:normal}
:where(body).c-production-auth #modal-root .value-review-row-actions .value-review-menu>div>button{box-sizing:border-box;padding:4px 3px}
:where(body).c-production-auth #modal-root .value-review-change:not(.value-review-editor){display:grid;grid-template-columns:36px 92px minmax(0,1fr) 16px minmax(0,1fr);align-items:center;column-gap:6px}
:where(body).c-production-auth #modal-root .value-review-change:not(.value-review-editor)>small{grid-column:1;grid-row:1}
:where(body).c-production-auth #modal-root .value-review-change:not(.value-review-editor)>.value-review-label{grid-column:2;grid-row:1;min-width:0;white-space:normal}
:where(body).c-production-auth #modal-root .value-review-change:not(.value-review-editor)>.value-review-before{grid-column:3;grid-row:1}
:where(body).c-production-auth #modal-root .value-review-change:not(.value-review-editor)>[aria-hidden]{grid-column:4;grid-row:1;text-align:center}
:where(body).c-production-auth #modal-root .value-review-change:not(.value-review-editor)>strong{grid-column:5;grid-row:1}
:where(body).c-production-auth #modal-root .modal table.value-review-table .value-review-change.needs-attention{border-inline-start:0;padding-inline-start:0;box-shadow:-3px 0 0 var(--danger,#bc3244)}
@media(max-width:700px){
 :where(body).c-production-auth #modal-root .value-review-change:not(.value-review-editor){grid-template-columns:36px 72px minmax(0,1fr) 12px minmax(0,1fr);column-gap:4px}
 html:has(:where(body).c-production-auth)[data-bq-theme] #modal-root .modal .value-review-row-actions>.value-review-manual,:where(body).c-production-auth #modal-root .value-review-row-actions>:is([data-action="save-inline"],[data-mv-save],[data-value-save]){min-height:40px}
}

:where(body).c-production-auth .ai-transfer-overlay{z-index:1600}
:where(body).c-production-auth .ai-transfer-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-bottom:8px}
:where(body).c-production-auth .ai-transfer-mapping label{display:flex;flex-direction:column;gap:3px;min-width:0}
:where(body).c-production-auth .ai-transfer-note{margin:4px 0 8px;color:var(--pc-muted,var(--muted,#59646c));font-size:12px}
:where(body).c-production-auth .ai-transfer-issues{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
:where(body).c-production-auth .ai-transfer-issues th,:where(body).c-production-auth .ai-transfer-issues td{padding:6px;text-align:left;vertical-align:top;border-bottom:1px solid var(--pc-line,var(--line,#dce3e5));overflow-wrap:anywhere}
:where(body).c-production-auth .ai-transfer-issues th:first-child{width:18%}:where(body).c-production-auth .ai-transfer-issues th:nth-child(2){width:13%}:where(body).c-production-auth .ai-transfer-issues th:last-child{width:120px}
:where(body).c-production-auth .ai-transfer-issues td label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:none;margin:4px}
:where(body).c-production-auth .ai-transfer-dialog .modal-foot>label{display:flex;align-items:center;font-size:12px}
@media(max-width:700px){:where(body).c-production-auth .ai-transfer-mapping{grid-template-columns:repeat(2,minmax(0,1fr))}:where(body).c-production-auth .ai-transfer-issues{min-width:520px}:where(body).c-production-auth .ai-transfer-dialog .table-wrap{overflow:auto}}

:where(body).c-production-auth .ai-transfer-original{margin-top:4px;font-size:12px;line-height:1.5}:where(body).c-production-auth .ai-transfer-original summary{cursor:pointer;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues :is(th,td){padding:7px 6px;text-align:left;vertical-align:middle;border:0;border-bottom:1px solid var(--pc-line,var(--line,#dce3e5));background:var(--pc-surface,#fff);color:inherit;line-height:20px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues th{font-size:12px;font-weight:500;color:var(--pc-muted,var(--muted,#59646c));padding-block:4px;height:32px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues td label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:4px;margin:0;white-space:nowrap}

/* Supplier names remain readable without expanding the existing dialog. */
:where(body).c-production-auth .ai-transfer-mapping-summary{margin:6px 0 10px;min-width:0}
:where(body).c-production-auth .ai-transfer-name-preview{margin:6px 0;font-size:12px}
:where(body).c-production-auth .ai-transfer-name-preview summary{cursor:pointer;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth .ai-transfer-name-preview table{width:100%;border-collapse:collapse;table-layout:fixed}
:where(body).c-production-auth .ai-transfer-name-preview th:first-child{width:52px}
:where(body).c-production-auth .ai-transfer-name-preview :is(th,td){padding:5px 8px;overflow-wrap:anywhere;border-bottom:1px solid var(--pc-line,var(--line,#dce3e5))}
:where(body).c-production-auth .ai-transfer-remember{display:flex;flex-direction:row;align-items:center;gap:4px;font-size:12px;line-height:1.5;min-width:0}
:where(body).c-production-auth .ai-transfer-remember input{flex:none}

/* Compact common checks: supplier/customer/material-name, process Excel and JSON. */
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-fields{margin:0 0 6px;font-size:12px}
:where(body).c-production-auth .ai-transfer-fields>summary{cursor:pointer;color:var(--pc-muted,var(--muted,#59646c));padding:4px 0}
:where(body).c-production-auth .ai-transfer-fields .ai-transfer-mapping{margin-top:6px;gap:6px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-filters{display:flex;align-items:center;gap:6px;margin:4px 0}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues :is(th,td){padding-block:4px;line-height:20px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-identity{margin-left:6px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issue-message{display:inline-block;max-width:calc(100% - 42px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-original{display:inline-block;margin:0 0 0 5px;vertical-align:middle}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-original[open]{display:block;margin:4px 0;white-space:normal}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-original p{margin:4px 0;overflow-wrap:anywhere}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-progress{margin:4px 0;font-size:12px;color:var(--pc-muted,var(--muted,#59646c))}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-mapping-summary{margin:4px 0 6px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues td:last-child>label{display:inline-flex;margin-right:6px}
@media(max-width:700px){
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues{min-width:0}
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues thead{display:none}
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues tbody{display:block}
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--pc-line,var(--line,#dce3e5));padding:4px 0}
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues td{min-width:0;border:0;padding:2px 4px}
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues td:nth-child(3),:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues td:last-child{grid-column:1/-1}
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues td:last-child{display:flex;flex-wrap:wrap;gap:6px}
  :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues td:last-child label{min-height:40px}
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .ai-transfer-dialog table.ai-transfer-issues{table-layout:fixed}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content,#modal-root) .ai-transfer-dialog table.ai-transfer-issues :is(th,td){white-space:normal!important;overflow-wrap:anywhere!important}
@media(min-width:701px){:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-issues th:last-child{width:168px}}

/* All common AI file checks retain their checked-row progress after batches stop. */
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-toolbar .ai-transfer-filters{margin:0;width:auto}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-toolbar .import-review-processing{flex-basis:248px}
@media(max-width:700px){:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-toolbar .import-review-processing{flex-basis:100%}}

/* Reviewable, scoped proposals share the existing compact import geometry. */
:where(body).c-production-auth .ai-transfer-assistance{margin:6px 0;font-size:12px;min-width:0}
:where(body).c-production-auth .ai-transfer-assistance>summary{cursor:pointer;padding:5px 0;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth .ai-transfer-proposal-tools{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0}
:where(body).c-production-auth .ai-transfer-proposals{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}
:where(body).c-production-auth #modal-root .ai-transfer-proposals :is(th,td){padding:5px 6px;vertical-align:middle;border-bottom:1px solid var(--pc-line,var(--line));overflow-wrap:anywhere;text-align:left;line-height:20px}
:where(body).c-production-auth .ai-transfer-proposals th:first-child{width:16%}:where(body).c-production-auth .ai-transfer-proposals th:last-child{width:50px}
:where(body).c-production-auth .ai-transfer-proposals a{color:var(--primary,#008080)}
:where(body).c-production-auth .ai-transfer-assistance>details>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 0}
@media(max-width:700px){
 :where(body).c-production-auth .ai-transfer-proposals{min-width:0}:where(body).c-production-auth .ai-transfer-proposals thead{display:none}:where(body).c-production-auth .ai-transfer-proposals :is(tbody,tr){display:block}
 :where(body).c-production-auth #modal-root .ai-transfer-proposals td{display:block;padding:3px 6px;border:0}
 :where(body).c-production-auth .ai-transfer-proposals tr{padding:5px 0;border-bottom:1px solid var(--pc-line,var(--line))}
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .modal-foot .review-actions{flex-wrap:wrap;gap:4px}
}
@media(max-width:700px){
 :where(body).c-production-auth #modal-root .ai-transfer-proposals tbody{display:block}
 :where(body).c-production-auth #modal-root .ai-transfer-proposals tr{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:1px 4px;padding:5px 6px;border:0;border-bottom:1px solid var(--pc-line,var(--line));background:transparent}
 :where(body).c-production-auth #modal-root .ai-transfer-proposals td{border:0!important;background:transparent!important;height:auto!important;min-height:0!important;text-align:left!important;line-height:18px;padding:1px 0!important}
 :where(body).c-production-auth #modal-root .ai-transfer-proposals td:first-child{display:none}
 :where(body).c-production-auth #modal-root .ai-transfer-proposals td:nth-child(2){grid-column:1;grid-row:1;white-space:normal;overflow-wrap:anywhere}
 :where(body).c-production-auth #modal-root .ai-transfer-proposals td:nth-child(3){grid-column:1;grid-row:2;font-size:11px;color:var(--pc-muted,var(--muted))}
 :where(body).c-production-auth #modal-root .ai-transfer-proposals td:last-child{grid-column:2;grid-row:1 / span 2;display:flex;align-items:center;justify-content:center}
}
@media(max-width:700px){:where(body).c-production-auth #modal-root .ai-transfer-proposals td:nth-child(2){white-space:normal!important;overflow:visible!important;text-overflow:clip!important}}

/* Confirm the detected source and the proposed result; details stay on demand. */
:where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-sourcebar{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 8px;font-size:12px;line-height:20px}
:where(body).c-production-auth #modal-root .ai-transfer-source-label{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(body).c-production-auth #modal-root .ai-transfer-sourcebar>button,:where(body).c-production-auth #modal-root .ai-transfer-sourcebar>.ai-transfer-remember{flex:none;margin:0;white-space:nowrap}
:where(body).c-production-auth #modal-root .ai-transfer-sourcebar>.ai-transfer-remember{display:inline-flex;align-items:center;flex-direction:row}
:where(body).c-production-auth #modal-root .ai-transfer-sample{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth #modal-root .ai-transfer-fields .ai-transfer-mapping{align-items:end;margin-block:4px 8px;grid-template-columns:minmax(100px,1fr) 70px repeat(4,minmax(100px,1fr)) auto}
:where(body).c-production-auth #modal-root .ai-transfer-mapping label{white-space:nowrap}
:where(body).c-production-auth #modal-root .ai-transfer-plan-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:4px 0 8px;padding:8px 10px;background:var(--pc-soft,var(--surface,#f4f7f8));font-size:13px;line-height:20px}
:where(body).c-production-auth #modal-root .ai-transfer-plan-summary :is(strong,span,small){white-space:nowrap}
:where(body).c-production-auth #modal-root .ai-transfer-plan-summary small{margin-left:auto;color:var(--pc-muted,var(--muted));font-size:12px}
:where(body).c-production-auth #modal-root .ai-transfer-plan th:first-child{width:26%}
:where(body).c-production-auth #modal-root .ai-transfer-plan th:nth-child(2){width:35%}
:where(body).c-production-auth #modal-root .ai-transfer-plan th:nth-child(3){width:25%}
:where(body).c-production-auth #modal-root .ai-transfer-plan th:last-child{width:120px}
:where(body).c-production-auth #modal-root .ai-transfer-plan :is(td,th){text-align:left!important}
:where(body).c-production-auth #modal-root .ai-transfer-plan td{height:40px}
:where(body).c-production-auth #modal-root .ai-transfer-plan-identity,:where(body).c-production-auth #modal-root .ai-transfer-plan-reason{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;font-weight:400}
:where(body).c-production-auth #modal-root .ai-transfer-source-row{float:left;margin-right:8px;color:var(--pc-muted,var(--muted));font-size:12px;white-space:nowrap}
:where(body).c-production-auth #modal-root .ai-transfer-plan-reason{font-size:12px;color:var(--pc-muted,var(--muted))}
:where(body).c-production-auth #modal-root .ai-transfer-plan td:last-child select{width:100%;min-width:0}
:where(body).c-production-auth #modal-root .ai-transfer-plan .ai-transfer-original[open]{white-space:normal;overflow-wrap:anywhere}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .modal-head>div>p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
:where(body).c-production-auth #modal-root .ai-transfer-dialog .modal-head>div{min-width:0}
@media(max-width:1000px){:where(body).c-production-auth #modal-root .ai-transfer-fields .ai-transfer-mapping{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 :where(body).c-production-auth #modal-root .ai-transfer-dialog .ai-transfer-sourcebar{flex-wrap:wrap;gap:4px 8px}
 :where(body).c-production-auth #modal-root .ai-transfer-source-label{max-width:calc(100% - 80px);flex:1}
 :where(body).c-production-auth #modal-root .ai-transfer-sample{flex-basis:100%}
 :where(body).c-production-auth #modal-root .ai-transfer-fields .ai-transfer-mapping{grid-template-columns:repeat(2,minmax(0,1fr))}
 :where(body).c-production-auth #modal-root .ai-transfer-plan-summary{gap:4px 10px;padding:6px 8px}
 :where(body).c-production-auth #modal-root .ai-transfer-plan-summary small{display:none}
 :where(body).c-production-auth #modal-root .ai-transfer-plan tr{grid-template-columns:minmax(0,1fr) 112px}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td:first-child{grid-column:1/-1}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td:nth-child(2){grid-column:1/-1}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td:nth-child(3){grid-column:1!important;grid-row:auto}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td:last-child{grid-column:2!important;grid-row:auto!important;display:block!important}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td{height:auto!important}
 :where(body).c-production-auth #modal-root .ai-transfer-plan .ai-transfer-plan-identity{white-space:normal!important;overflow-wrap:anywhere}
 :where(body).c-production-auth #modal-root .ai-transfer-plan .ai-transfer-plan-reason{display:none}
 :where(body).c-production-auth #modal-root .ai-transfer-plan .ai-transfer-original summary{min-height:28px;display:inline-flex;align-items:center}
}
/* Keep the proposed decision, its detail affordance and controls on one row. */
:where(body).c-production-auth #modal-root .ai-transfer-dialog[data-configured="false"] .modal-body{min-height:0!important}
:where(body).c-production-auth #modal-root .ai-transfer-toolbar .ai-transfer-plan-summary{padding:0;margin:0;background:none;gap:6px 14px}
:where(body).c-production-auth #modal-root .ai-transfer-plan th:first-child{width:49%}
:where(body).c-production-auth #modal-root .ai-transfer-plan th:nth-child(2){width:34%}
:where(body).c-production-auth #modal-root .ai-transfer-plan th:last-child{width:150px}
:where(body).c-production-auth #modal-root .ai-transfer-plan td{height:40px}
:where(body).c-production-auth #modal-root .ai-transfer-plan td:nth-child(2)>strong{display:inline-block;white-space:nowrap;font-weight:500}
:where(body).c-production-auth #modal-root .ai-transfer-plan .ai-transfer-original{margin-left:10px}
@media(max-width:700px){
 :where(body).c-production-auth #modal-root .ai-transfer-plan tr{grid-template-columns:minmax(0,1fr) 112px}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td:first-child{grid-column:1/-1}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td:nth-child(2){grid-column:1!important;grid-row:2!important}
 :where(body).c-production-auth #modal-root .ai-transfer-plan td:last-child{grid-column:2!important;grid-row:2!important}
 :where(body).c-production-auth #modal-root .ai-transfer-plan .ai-transfer-original[open]{grid-column:1/-1;overflow-wrap:anywhere}
}
@media(max-width:700px){:where(body).c-production-auth #modal-root .ai-transfer-sourcebar .ai-transfer-source-label{flex-basis:100%;max-width:100%;white-space:normal}}

/* Shared keyword completion; dimensions are identical in every theme. */
:where(body).c-production-auth .search-suggestion-popover{position:fixed;z-index:2100;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:4px;border:1px solid var(--pc-line,var(--line,#cbd8d5));border-radius:8px;background:var(--pc-surface,#fff);color:var(--pc-text,var(--text,#173b36));box-shadow:0 8px 28px #173b3626;font-size:13px;line-height:1.4}
:where(body).c-production-auth .search-suggestion-popover[hidden]{display:none!important}
:where(body).c-production-auth .search-suggestion-popover>button[role=option]{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;margin:0;padding:7px 9px;text-align:left;white-space:normal;border:0;border-radius:4px;background:transparent;color:inherit;box-shadow:none}
:where(body).c-production-auth .search-suggestion-popover>button[aria-selected=true],:where(body).c-production-auth .search-suggestion-popover>button[role=option]:hover{background:var(--pc-soft,#e8f4f2);color:var(--pc-accent,#087a75)}
:where(body).c-production-auth .search-suggestion-value{min-width:0;overflow-wrap:anywhere}
:where(body).c-production-auth .search-suggestion-type{flex:none;color:var(--pc-muted,var(--muted,#64736e));font-size:12px}
:where(body).c-production-auth .search-suggestion-popover mark{padding:0;background:transparent;color:var(--pc-accent,#087a75);font-weight:700}
:where(body).c-production-auth .search-suggestion-popover>p{margin:0;padding:8px 9px;font-size:12px;color:var(--pc-muted,var(--muted,#64736e));overflow-wrap:anywhere}
:where(body).c-production-auth .search-suggestion-popover>[data-suggestion-retry]{display:block;width:100%;margin:0;min-height:36px}
@media(max-width:700px){:where(body).c-production-auth .search-suggestion-popover>button[role=option]{min-height:44px}}

/* Center only grid-table data; keep surrounding titles, forms and controls in place.
   All themes retain their palette, type, control dimensions and saved column widths. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table {
  table-layout: auto;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table.has-custom-widths {
  table-layout: fixed;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table :is(th, td) {
  text-align: center !important;
  vertical-align: middle;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table :is(th, td) > :is(strong, small):not(.dashboard-mobile-meta):not([hidden]) {
  display: inline;
  white-space: nowrap;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table :is(th, td) > :is(strong, small):not(.dashboard-mobile-meta):not([hidden]):not(:first-child) {
  margin-inline-start: 6px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table td > small:not(.dashboard-mobile-meta):not([hidden]) {
  margin-inline: 6px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table td > time:not(:only-child) {
  margin-inline-start: 6px;
}
/* A manually narrowed column may wrap so its complete value remains available. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table.has-custom-widths :is(th, td) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table.has-custom-widths td :is(strong, small, .file-link, .pt-link, .model-summary, .vendor-brand-name) {
  white-space: normal;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table :is(
  .actions, .team-row-actions, .bom-version-actions, .raw-model-cell,
  .vendor-brand-list, .dashboard-project-line
) {
  justify-content: center;
  flex-wrap: nowrap;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table :is(
  input, select, textarea, label, button, .button, .num, .numeric, .file-link,
  .pt-link, .model-summary, .vendor-brand-name, .pt-tag, .badge, .foundation-status
) {
  text-align: center !important;
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) table :is(
  textarea, pre, .pt-preline, .import-review-details, .material-params,
  .pfa-preview-errors, .pt-issues, .duplicate-warning
) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Only table scroll surfaces are affected; ordinary cards retain their layout. */
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app #content, #modal-root) :is(
  .table-wrap, .catalog-table-wrap, .dashboard-scroll, .pfa-scroll, .pt-scroll,
  .sp-table-wrap, .qc-picker-table-wrap, .import-review-table-wrap,
  .quote-supplier-table-wrap, .team-table-wrap
):has(> table) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

/* Keep a grid line inside sticky action cells, independent of collapsed borders. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content .table-wrap > table :is(th,td)[data-column="actions"]::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 1px;
  background: var(--theme-card-grid,var(--pc-line,#dce6e1));
  pointer-events: none;
  z-index: 1;
}
:where(body).c-production-auth #app #content table[data-table-key="bom-import-drafts"] { min-width: 680px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #content table[data-table-key="bom-import-drafts"] [data-column="filename"] {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  min-width: 180px;
}

:where(body).c-production-auth #app #content .bom-import-draft-heading h1 { white-space: normal; overflow-wrap: anywhere; }

/* Shared date annotation: inherit the existing cell's typography and geometry. */
html:has(:where(body).c-production-auth) body time.date-time {
  display:inline;
  position:relative;
  color:inherit;
  font:inherit;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
html:has(:where(body).c-production-auth) body time.date-time-comment {cursor:help}
html:has(:where(body).c-production-auth) body time.date-time-comment::after {
  content:"";
  position:absolute;
  top:0;
  right:-5px;
  width:0;
  height:0;
  border-top:4px solid var(--danger,#bd344b);
  border-left:4px solid transparent;
  pointer-events:none;
}
html:has(:where(body).c-production-auth) body time.date-time-comment:focus-visible {outline:2px solid var(--pc-accent,#087a75);outline-offset:2px;border-radius:2px}
html:has(:where(body).c-production-auth) body .time-comment-popup {
  position:fixed;
  inset:auto;
  z-index:2147483647;
  margin:0;
  width:max-content;
  max-width:calc(100vw - 16px);
  padding:6px 10px;
  border:1px solid var(--pc-line,#c8d5d0);
  border-radius:4px;
  background:var(--pc-surface,#fffef4);
  color:var(--pc-ink,#243b34);
  box-shadow:0 3px 10px #1a30201f;
  font:12px/1.5 system-ui,sans-serif;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
html:has(:where(body).c-production-auth) body .time-comment-popup[hidden] {display:none}
@media print {html:has(:where(body).c-production-auth) body .time-comment-popup,html:has(:where(body).c-production-auth) body time.date-time-comment::after {display:none!important}}

/* 2026-10-26: Match the approved Figma ice/smoke material, not a flat recolor.
   Shared files retain layout, glyph coordinates, typography and control sizes.
   Radii are paint-only. No ancestor blur/transform or new containing blocks. */
html:has(:where(body).c-production-auth)[data-bq-theme="glass-sky"] {
  color-scheme: light;
  --pc-accent: #1878e8;
  --pc-deep: #175374;
  --pc-soft: #DDF3FF;
  --pc-ink: #242b32;
  --pc-muted: #68737d;
  --gl-menu-ink: #5c7182;
  --gl-menu-hover-ink: #42677e;
  --gl-menu-selected-ink: #335f7a;
  --gl-menu-pressed-ink: #2e5a75;
  --pc-line: rgba(72, 92, 112, .30);
  --pc-canvas: #d9e0e5;
  --pc-side: rgba(240, 248, 255, .82);
  --pc-surface: rgba(255, 255, 255, .48);
  --pc-top: rgba(244, 251, 255, .98);
  --pc-head: rgba(211, 239, 255, .72);
  --pc-shadow: rgba(72, 86, 98, .16);
  --pc-sidebar-art: none;
  --pc-wallpaper: none;
  --gl-canvas: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .86), transparent 31%), radial-gradient(circle at 88% 15%, rgba(188, 213, 225, .25), transparent 30%), radial-gradient(circle at 70% 92%, rgba(215, 225, 232, .52), transparent 29%), linear-gradient(145deg, #d9e0e5 0%, #eef2f4 48%, #c9d1d7 100%);
  --gl-shell: linear-gradient(145deg, rgba(255, 255, 255, .48), rgba(244, 248, 250, .24));
  --gl-strip: rgba(255, 255, 255, .28);
  --gl-nav: rgba(226, 244, 255, .34);
  --gl-idle: rgba(255, 255, 255, .64);
  --gl-control: rgba(255, 255, 255, .48);
  --gl-input: rgba(226, 235, 243, .45);
  --gl-readonly: rgba(226, 235, 243, .65);
  --gl-hover: #DDF3FF;
  --gl-selected: #C7EBFF;
  --gl-pressed: #B3E3FF;
  --gl-action: #ADE3FF;
  --gl-action-hover: #C7EBFF;
  --gl-action-pressed: #B3E3FF;
  --gl-action-ink: #175374;
  --gl-edge: rgba(33, 101, 197, .84);
  --gl-menu-line: rgba(77, 104, 138, .32);
  --gl-menu-edge: rgba(68, 97, 136, .40);
  --gl-control-edge: rgba(255, 255, 255, .80);
  --gl-input-edge: rgba(73, 96, 118, .28);
  --gl-highlight: rgba(255, 255, 255, .96);
  --gl-rim: rgba(255, 255, 255, .90);
  --gl-row: rgba(255, 255, 255, .25);
  --gl-even: rgba(224, 243, 255, .32);
  --gl-row-hover: rgba(221, 243, 255, .65);
  --gl-row-selected: rgba(199, 235, 255, .60);
  --gl-frozen-base: #f5f8fa;
  --gl-grid: rgba(71, 96, 128, .38);
  --gl-grid-vertical: rgba(71, 96, 128, .28);
  --gl-grid-head: rgba(58, 88, 126, .50);
  --gl-danger: #a42e48;
  --gl-danger-bg: #fff0f3;
  --gl-warning: #805518;
  --gl-warning-bg: #fff2d9;
  --gl-success: #216346;
  --gl-success-bg: #e4f3ec;
  --gl-overlay: rgba(38, 61, 88, .30);
}
html:has(:where(body).c-production-auth)[data-bq-theme="glass-smoke"] {
  color-scheme: dark;
  --pc-accent: #80bdf6;
  --pc-deep: #e7f2ff;
  --pc-soft: rgba(141, 186, 245, .25);
  --pc-ink: #f4f1ed;
  --pc-muted: #c1c4ca;
  --pc-line: rgba(218, 229, 243, .32);
  --pc-canvas: #20232a;
  --pc-side: rgba(43, 53, 68, .76);
  --pc-surface: rgba(255, 255, 255, .075);
  --pc-top: rgba(54, 60, 69, .98);
  --pc-head: rgba(13, 27, 47, .53);
  --pc-shadow: rgba(13, 15, 19, .34);
  --pc-sidebar-art: none;
  --pc-wallpaper: none;
  --gl-canvas: radial-gradient(ellipse at 15% 18%, rgba(111, 128, 150, .24), transparent 40%), radial-gradient(ellipse at 85% 88%, rgba(40, 145, 185, .13), transparent 44%), linear-gradient(145deg, #191b22 0%, #2d323b 50%, #161b21 100%);
  --gl-shell: linear-gradient(145deg, rgba(43, 47, 53, .22), rgba(53, 56, 65, .12));
  --gl-strip: rgba(255, 255, 255, .025);
  --gl-nav: rgba(11, 22, 39, .24);
  --gl-idle: rgba(211, 229, 252, .10);
  --gl-control: rgba(255, 255, 255, .075);
  --gl-input: rgba(9, 17, 28, .18);
  --gl-readonly: rgba(9, 17, 28, .28);
  --gl-hover: rgba(141, 186, 245, .25);
  --gl-selected: rgba(106, 166, 244, .35);
  --gl-pressed: rgba(120, 181, 255, .48);
  --gl-action: #80bdf6;
  --gl-action-hover: #c3dfff;
  --gl-action-pressed: #8cbaff;
  --gl-action-ink: #172533;
  --gl-edge: rgba(170, 211, 255, .88);
  --gl-menu-line: rgba(207, 225, 249, .32);
  --gl-menu-edge: rgba(220, 235, 255, .44);
  --gl-control-edge: rgba(255, 255, 255, .17);
  --gl-input-edge: rgba(218, 229, 243, .30);
  --gl-highlight: rgba(255, 255, 255, .18);
  --gl-rim: rgba(231, 243, 255, .44);
  --gl-row: rgba(7, 17, 31, .10);
  --gl-even: rgba(192, 216, 247, .075);
  --gl-row-hover: rgba(135, 185, 248, .20);
  --gl-row-selected: rgba(130, 183, 251, .27);
  --gl-frozen-base: #343a44;
  --gl-grid: rgba(215, 230, 249, .35);
  --gl-grid-vertical: rgba(215, 230, 249, .27);
  --gl-grid-head: rgba(222, 237, 255, .48);
  --gl-danger: #ffb0be;
  --gl-danger-bg: #543346;
  --gl-warning: #f4d49c;
  --gl-warning-bg: #504330;
  --gl-success: #b0e6cc;
  --gl-success-bg: #294b43;
  --gl-overlay: rgba(6, 13, 25, .60);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) {
  background: var(--pc-canvas);
  --pc-text: var(--pc-ink);
  --text: var(--pc-ink);
  --card: var(--pc-surface);
  --surface: var(--pc-top);
  --accent: var(--pc-accent);
  --accent-soft: var(--gl-hover);
  --theme-card-grid: var(--gl-grid);
  --theme-card-hover: var(--gl-row-hover);
  --theme-card-shadow: inset 0 1px var(--gl-highlight), inset 0 -1px rgba(255, 255, 255, .08);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) {
  --card-canvas: var(--pc-canvas);
  --foundation-ink: var(--pc-ink);
  --foundation-muted: var(--pc-muted);
  --foundation-grid: var(--gl-grid);
  --foundation-border: var(--pc-line);
  --glass-surface: var(--pc-surface);
  --glass-strong: var(--pc-top);
  --glass-line: var(--pc-line);
  accent-color: var(--pc-accent);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .layout { background: var(--gl-canvas); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .main { background: var(--gl-shell); box-shadow: inset 1px 0 var(--gl-highlight); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(.content, #content, .sidebar-art) { background: transparent; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .sidebar { background: var(--pc-side); border-color: var(--gl-menu-edge); box-shadow: inset 0 1px var(--gl-highlight), 4px 0 24px var(--pc-shadow); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .sidebar nav { background: var(--gl-nav); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(.brand-label, .nav-button) { color: var(--pc-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .nav-button { background: var(--gl-idle); border-left-color: transparent; border-radius: 12px; box-shadow: inset 0 1px var(--gl-rim); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(.nav-button:hover, .sidebar-flyout-item:hover) { background: var(--gl-hover); color: var(--pc-deep); border-color: var(--gl-edge); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(.nav-button.active, .nav-button[aria-expanded="true"], .sidebar-flyout-item.active) { background: var(--gl-selected); color: var(--pc-deep); box-shadow: inset 3px 0 var(--pc-accent), inset 0 0 0 1px var(--gl-edge), inset 0 1px var(--gl-rim); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(.sidebar-module-flyout, .sidebar-flyout-heading, .profile-trigger, .workspace-strip) { background: var(--pc-top); border-color: var(--pc-line); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .workspace-strip { background: var(--gl-strip); box-shadow: inset 0 1px var(--gl-highlight); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(.sidebar-flyout-item, .workspace-tab) { background: var(--gl-idle); color: var(--pc-muted); border-color: var(--gl-menu-line); box-shadow: inset 0 1px var(--gl-highlight); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .workspace-tab { border-radius: 12px; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .workspace-tab.active { background: var(--gl-selected); color: var(--pc-deep); border-color: var(--gl-edge); box-shadow: inset 0 1px var(--gl-rim), 0 2px 6px var(--pc-shadow); }
/* Paint existing controls, keeping transparent text actions transparent. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(button, .button) { color: var(--pc-ink); border-color: var(--gl-control-edge); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(button, .button):not(.file-link, .catalog-sort, .bom-sort, .quote-sort, .sidebar-order-handle, .pt-link, .model-summary, .query-submit, .primary, .auth-submit) { background-color: var(--gl-control); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(button, .button):not(:disabled):hover { background-color: var(--gl-hover); border-color: var(--gl-edge); color: var(--pc-deep); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(button, .button):not(:disabled):active { background-color: var(--gl-pressed); color: var(--pc-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.primary, .query-submit, .auth-submit) { background: var(--gl-action); border-color: var(--gl-edge); color: var(--gl-action-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.primary, .query-submit, .auth-submit):not(:disabled):hover { background: var(--gl-action-hover); color: var(--gl-action-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.primary, .query-submit, .auth-submit):not(:disabled):active { background: var(--gl-action-pressed); color: var(--gl-action-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"]) { background: var(--gl-input) !important; color: var(--pc-ink) !important; border-color: var(--gl-input-edge) !important; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(input, select, textarea):is([readonly], :disabled):not([type="checkbox"], [type="radio"], [type="hidden"]) { background: var(--gl-readonly) !important; color: var(--pc-muted) !important; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(input, textarea)::placeholder { color: var(--pc-muted); opacity: 1; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(input, select, textarea):focus { border-color: var(--pc-accent) !important; outline-color: var(--pc-accent); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) option { color: var(--pc-ink); background: var(--pc-top); }
/* Existing card containers and hard-coded legacy module surfaces. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.foundation-heading, .foundation-table-wrap, .list-toolbar, .catalog-footer, .catalog-column, .settings, .sp-card, .sp-query-card, .sp-selection, .sp-table-wrap, .sp-entry-wrap, .sp-preview, .sp-purchase-wrap, .catalog-filters, .bom-meta, .bom-detail-toolbar, .dashboard-tasks, .dashboard-recent, .pfa-panel, .pt-panel, .qc-picker, .markup-name-rule, .import-review-panel, .ai-transfer-panel) { background-color: var(--pc-surface); border-color: var(--pc-line); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.modal, .pfa-modal, [role="dialog"], .modal-head, .modal-body, .modal-foot, .pfa-modal-head, .pfa-modal-body, .pfa-modal-foot) { background: var(--pc-top); border-color: var(--pc-line); color: var(--pc-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.overlay, .pfa-overlay) { background: var(--gl-overlay); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(label, h1, h2, h3, .module-heading, .foundation-heading h1, .foundation-label, .markup-name-heading, .stat strong) { color: var(--pc-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.muted, .foundation-muted, .source, .inline-info, .empty, .pager, .toolbar-note, .profile-center-details dt) { color: var(--pc-muted); }
/* Translucent row tints match Figma; frozen cells receive an opaque backing below. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table :is(th, td) { color: var(--pc-ink); border-block-color: var(--gl-grid); border-inline-color: var(--gl-grid-vertical); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table thead th { background: var(--pc-head); border-bottom-color: var(--gl-grid-head); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr > td:not(.missing, .diff, .quote-sale-cell-manual, .sp-price-missing) { background-color: var(--gl-row); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr:nth-child(even) > td:not(.missing, .diff, .quote-sale-cell-manual, .sp-price-missing) { background-color: var(--gl-even); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr:hover > td:not(.missing, .diff, .quote-sale-cell-manual, .sp-price-missing) { background-color: var(--gl-row-hover); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr:is(.selected, [aria-selected="true"], :has(input[type="checkbox"]:checked)) > td:not(.missing, .diff, .quote-sale-cell-manual, .sp-price-missing) { background-color: var(--gl-row-selected); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.file-link, .catalog-sort, .bom-sort, .quote-sort, .pt-link, .foundation-sort, .vendor-brand-name, .model-summary, .quote-sale-restore) { color: var(--pc-deep); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.danger, .error, .bq-required-mark) { color: var(--gl-danger) !important; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.notice, .badge.missing, .quote-sale-cell-manual, .quote-sale-manual) { background-color: var(--gl-warning-bg); color: var(--gl-warning); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.badge:not(.missing, .existing, .manual), .foundation-status, .markup-applied) { background-color: var(--gl-success-bg); color: var(--gl-success); border-color: var(--pc-line); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.badge.existing, .foundation-status[data-active="0"]) { background: var(--gl-readonly); color: var(--pc-muted); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app #profile-center-panel .profile-theme-option { background: var(--gl-control); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app #profile-center-panel .profile-theme-option:is(:hover, [aria-checked="true"]) { background: var(--gl-selected); border-color: var(--gl-edge); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app #profile-center-panel .profile-center-action.logout { color: var(--gl-danger); background: var(--gl-danger-bg); border-color: var(--pc-line); }
/* Preview swatches exist under all six themes; only these two classes are new. */
:where(body).c-production-auth .profile-theme-preview.glass-sky { background: linear-gradient(125deg, #f5f8fa, #c7ebff); box-shadow: inset 0 1px #fff, inset 0 0 0 4px #ffffff55; }
:where(body).c-production-auth .profile-theme-preview.glass-smoke { background: linear-gradient(125deg, #383c42, #535760); box-shadow: inset 0 1px #dceaff66, inset 0 0 0 4px #dceaff22; }

/* A light monochrome wordmark remains legible on the smoke sidebar. */
html:has(:where(body).c-production-auth)[data-bq-theme="glass-smoke"] #app .sidebar .brand-logo { filter: brightness(0) invert(1); }

/* Preserve the pre-existing reserved left border without painting it twice. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .nav-button:not(.active):not([aria-expanded="true"]) { border-color: transparent; box-shadow: inset 0 0 0 1px var(--gl-menu-line), inset 0 1px var(--gl-rim); }

/* Legacy process/price panels use local palettes as well as shared tokens. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.process-trial, .pfa, .qc-page, #customer-sales-prices) {
  --pt-green: var(--pc-accent);
  --pt-line: var(--pc-line);
  --pt-muted: var(--pc-muted);
  color: var(--pc-ink);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.raw-transfer-options, .master-transfer-menu, .sp-transfer-menu, .qc-nav, .qc-scroll, .qc-review, .qc-main > .pager, .pt-empty, .pt-editor, .pt-scroll, .pt-overview > div, .pt-flow span, .pw-diagram, .pw-detail, .pfa-scroll, .pfa-section, .pfa-fitting-card, .pfa-staged-grid > section, .pfa-housing-options, .pfa-search-block, .pfa-file-menu > summary, .bulk-price-scope, .bulk-price-group, .price-history-batches > details, .foundation-footer, .master-vendor-options, .duplicate-group, .bom-editor .bom-derived-field) {
  background-color: var(--pc-surface);
  border-color: var(--pc-line);
  color: var(--pc-ink);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(.material-picker-popover, .search-suggestion-popover) { background: var(--pc-top); border-color: var(--pc-line); color: var(--pc-ink); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.pfa p, .pfa summary, .pfa-muted, .pfa-count, .pfa-pager, .pfa-rule-help, .pt-flow, .pt-panel summary, .team-notice) { color: var(--pc-muted); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.pfa-badge, .pt-tag, .pt-banner:not(.warn, .error), .pfa-notice:not(.warn, .error)) { background: var(--gl-success-bg); color: var(--gl-success); border-color: var(--pc-line); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.pt-tag.warn, .pfa-badge.warn, .pt-banner.warn, .pfa-notice.warn, .duplicate-group.blocked) { background: var(--gl-warning-bg); color: var(--gl-warning); border-color: var(--pc-line); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.pt-banner.error, .pfa-notice.error, .page-error) { background: var(--gl-danger-bg); color: var(--gl-danger); border-color: var(--pc-line); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) .pw-pin { background: var(--gl-control) !important; color: var(--pc-ink); border-color: var(--pc-line) !important; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) .pw-pin.occupied { background: var(--gl-success-bg) !important; color: var(--gl-success); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) .pw-pin:is(.empty, .closed) { background: var(--gl-readonly) !important; color: var(--pc-muted); }

/* Match the legacy modal !important selector's specificity. In particular,
   the personal-center role select must never become white text on white. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.modal, .pfa-modal, [role="dialog"]) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([readonly]):not(:disabled) {
  background: var(--gl-input) !important;
  border-color: var(--gl-input-edge) !important;
  color: var(--pc-ink) !important;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.modal, .pfa-modal, [role="dialog"]) :is(input, select, textarea):is([readonly], :disabled):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  background: var(--gl-readonly) !important;
  border-color: var(--pc-line) !important;
  color: var(--pc-muted) !important;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app #profile-center-panel { background: var(--pc-top); }

/* Restore the reference's rounded glass silhouettes inside existing bounds.
   No margin, padding, border width, font, position or hit-target changes. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) {
  --theme-card-radius: 22px;
  --theme-dialog-radius: 24px;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(button, .button):not(.file-link, .catalog-sort, .bom-sort, .quote-sort, .foundation-sort, .pt-link, .model-summary, .query-submit, .table-resizer) {
  border-radius: 999px;
  box-shadow: inset 0 1px var(--gl-highlight);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.query-input, .query-submit, .query-shell, .search-suggestion-input, input[type="search"]) { border-radius: 999px; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) .query-searchbar > .query-keyword { border-radius: 999px 0 0 999px; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.primary, .query-submit) { border-color: var(--gl-control-edge); box-shadow: inset 0 1px var(--gl-highlight); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.file-link, .catalog-sort, .bom-sort, .quote-sort, .foundation-sort, .pt-link, .model-summary, .vendor-brand-name) { background: transparent; box-shadow: none; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(.sidebar-module-flyout, .profile-center-panel) { border-color: var(--gl-menu-edge); box-shadow: inset 0 1px var(--gl-rim), 0 12px 34px var(--pc-shadow); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .sidebar nav { border-color: var(--gl-menu-line); box-shadow: inset 0 1px var(--gl-highlight); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .profile-trigger { background: var(--gl-idle); box-shadow: inset 0 1px var(--gl-highlight); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app .sidebar-mobile-toggle { background: var(--gl-idle); color: var(--pc-ink); border-color: var(--gl-menu-line); box-shadow: inset 0 1px var(--gl-rim); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(.foundation-heading, .foundation-table-wrap, .list-toolbar, .catalog-footer, .catalog-column, .sp-card, .sp-query-card, .sp-selection, .sp-table-wrap, .dashboard-tasks, .dashboard-recent) { border-radius: 22px; box-shadow: var(--theme-card-shadow); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.raw-transfer-options, .master-transfer-menu, .sp-transfer-menu, .material-picker-popover, .search-suggestion-popover) { background: var(--pc-top); border-color: var(--pc-line); box-shadow: inset 0 1px var(--gl-highlight), 0 12px 30px var(--pc-shadow); }

/* A table has one glass plane, not a second opaque slab inside the card. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) :is(table, table tbody tr, .table-wrap > table, .catalog-table) { background: transparent; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr { --gl-current-row: var(--gl-row); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr:nth-child(even) { --gl-current-row: var(--gl-even); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr:hover { --gl-current-row: var(--gl-row-hover); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr:is(.selected, [aria-selected="true"], :has(input[type="checkbox"]:checked)) { --gl-current-row: var(--gl-row-selected); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table tbody tr > td:not(.missing, .diff, .quote-sale-cell-manual, .sp-price-missing) { background: var(--gl-current-row); }
/* Match the legacy frozen-column specificity. Every state ends in a solid base,
   so scrolling labels cannot bleed through the glass tint of the pinned cell. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app #content .table-wrap > table tbody tr > td[data-column="actions"] { background: linear-gradient(var(--gl-current-row), var(--gl-current-row)), var(--gl-frozen-base); box-shadow: -1px 0 var(--gl-grid-vertical); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app #content .table-wrap > table thead > tr > th[data-column="actions"] { background: linear-gradient(var(--pc-head), var(--pc-head)), var(--gl-frozen-base); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app #content > .foundation-table-wrap .catalog-table tbody tr > td { background: var(--gl-current-row); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app #content, #modal-root) table th :is(.catalog-sort, .bom-sort, .quote-sort, .foundation-sort) { color: var(--pc-ink); }
/* File popovers are portalled beside #content. Match them explicitly rather
   than relying on content-only control rules or translucent card tokens. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(#raw-transfer-options, .master-transfer-menu, .sp-transfer-menu) { background: var(--pc-top); border-color: var(--pc-line); box-shadow: inset 0 1px var(--gl-highlight), 0 12px 30px var(--pc-shadow); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(#raw-transfer-options, .master-transfer-menu, .sp-transfer-menu) button { background: transparent; color: var(--pc-ink); border-color: var(--gl-control-edge); border-radius: 9px; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(#raw-transfer-options, .master-transfer-menu, .sp-transfer-menu) button:not(:disabled):hover { background: var(--gl-hover); color: var(--pc-deep); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) #app :is(#raw-transfer-options, .master-transfer-menu, .sp-transfer-menu) button:not(:disabled):active { background: var(--gl-pressed); }
/* Material editors have a legacy two-class white background selector. Keep
   every dialog's glass backing opaque enough for the original form labels. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"], [data-bq-theme="glass-smoke"]) :is(#app, #modal-root) :is(.modal.material-dialog, .modal, .pfa-modal, [role="dialog"]) { background: var(--pc-top); box-shadow: inset 0 1px var(--gl-highlight), 0 30px 70px var(--pc-shadow); }

/* 2026-10-26: Softer blue-grey ink only on the sky primary menu.
   Preserve typography, spacing, hit areas and every other theme/surface. */
html:has(:where(body).c-production-auth)[data-bq-theme="glass-sky"] #app #workspace-navigation .sidebar-menu-row .nav-button { color: var(--gl-menu-ink); }
html:has(:where(body).c-production-auth)[data-bq-theme="glass-sky"] #app #workspace-navigation .sidebar-menu-row .nav-button:is(:hover, :focus-visible) { color: var(--gl-menu-hover-ink); }
html:has(:where(body).c-production-auth)[data-bq-theme="glass-sky"] #app #workspace-navigation .sidebar-menu-row .nav-button:is(.active, [aria-expanded="true"]) { color: var(--gl-menu-selected-ink); }
html:has(:where(body).c-production-auth)[data-bq-theme="glass-sky"] #app #workspace-navigation .sidebar-menu-row .nav-button:not(:disabled):active { color: var(--gl-menu-pressed-ink); }

/* 2026-10-26: YICHA reference material. Optical depth is paint-only; the moving
   glass is an aria-hidden leaf. No business ancestor receives a filter/transform. */
html:has(:where(body).c-production-auth)[data-bq-theme="glass-sky"] {
  --gl-optic-top: rgba(255,255,255,.94);
  --gl-optic-edge: rgba(255,255,255,.82);
  --gl-optic-inner: rgba(69,96,121,.15);
  --gl-optic-tint: rgba(83,194,247,.15);
  --gl-optic-glow: rgba(54,177,235,.24);
  --gl-optic-shadow: rgba(50,72,93,.15);
  --gl-optic-wash: rgba(255,255,255,.38);
  --gl-optic-pane: rgba(244,251,255,.64);
}
html:has(:where(body).c-production-auth)[data-bq-theme="glass-smoke"] {
  --gl-optic-top: rgba(255,255,255,.37);
  --gl-optic-edge: rgba(225,239,255,.26);
  --gl-optic-inner: rgba(2,8,15,.40);
  --gl-optic-tint: rgba(50,184,237,.16);
  --gl-optic-glow: rgba(46,181,239,.32);
  --gl-optic-shadow: rgba(4,8,16,.34);
  --gl-optic-wash: rgba(255,255,255,.105);
  --gl-optic-pane: rgba(43,50,62,.62);
}
/* A soft top bevel and a transparent illuminated foot, as in the video. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) {
  --gl-optic-surface: radial-gradient(ellipse 380px 92px at var(--gl-spot-x,50%) 115%, var(--gl-optic-tint), transparent 75%), linear-gradient(180deg,var(--gl-optic-wash),transparent 22px), var(--pc-surface);
  --gl-optic-inset: inset 0 1px 1px var(--gl-optic-top), inset 1px 0 1px var(--gl-optic-edge), inset -1px 0 1px var(--gl-optic-edge), inset 0 -1px 1px var(--gl-optic-inner), inset 0 7px 10px -8px var(--gl-optic-top);
  --theme-card-shadow: var(--gl-optic-inset),0 3px 9px var(--gl-optic-shadow);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(.heading,.list-toolbar,.table-wrap,.foundation-table-wrap,.foundation-heading,.stats,.catalog-footer,.dashboard-tasks,.dashboard-recent,.dashboard-quick,.dashboard-card,.pfa-panel,.pt-panel,.sp-card,.sp-query-card,.sp-selection) {
  background: var(--gl-optic-surface);
  box-shadow: var(--theme-card-shadow);
  border-color: var(--gl-optic-edge);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app #content > .heading.module-toolbar:has(> .catalog-query) { background: transparent; box-shadow: none; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(.nav-button,.workspace-tab,.profile-trigger) {
  background: linear-gradient(180deg,var(--gl-optic-wash),transparent 60%),var(--gl-idle);
  border-color: var(--gl-optic-edge);
  box-shadow: var(--gl-optic-inset),0 2px 5px var(--gl-optic-shadow);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app .nav-button:not(.active):not([aria-expanded="true"]) { box-shadow: var(--gl-optic-inset),inset 0 0 0 1px var(--gl-menu-line); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(.nav-button.active,.nav-button[aria-expanded="true"],.workspace-tab.active) {
  background: linear-gradient(180deg,var(--gl-optic-wash),transparent 65%),var(--gl-selected);
  box-shadow: var(--gl-optic-inset),inset 0 0 0 1px var(--gl-edge),0 3px 10px var(--gl-optic-shadow);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) :is(button,.button):not(.file-link,.catalog-sort,.bom-sort,.quote-sort,.foundation-sort,.pt-link,.model-summary,.vendor-brand-name,.table-resizer) {
  background: linear-gradient(180deg,var(--gl-optic-wash),transparent 62%),var(--gl-control);
  box-shadow: inset 0 1px 1px var(--gl-optic-top),inset 0 -1px var(--gl-optic-inner),0 1px 3px var(--gl-optic-shadow);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) :is(.primary.primary,.query-submit.query-submit) {
  background: linear-gradient(180deg,var(--gl-optic-wash),transparent 65%),var(--gl-action);
  color: var(--gl-action-ink);
  box-shadow: var(--gl-optic-inset),0 2px 5px var(--gl-optic-shadow);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) :is(button,.button):not(.file-link,.catalog-sort,.bom-sort,.quote-sort,.foundation-sort,.pt-link,.model-summary,.vendor-brand-name,.table-resizer):not(:disabled):hover { background: linear-gradient(180deg,var(--gl-optic-wash),transparent 62%),var(--gl-hover); box-shadow: var(--gl-optic-inset),0 3px 12px var(--gl-optic-glow); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) :is(.primary.primary,.query-submit.query-submit):not(:disabled):hover { background: linear-gradient(180deg,var(--gl-optic-wash),transparent 65%),var(--gl-action-hover); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) :is(button,.button):not(.file-link,.catalog-sort,.bom-sort,.quote-sort,.foundation-sort,.pt-link,.model-summary,.vendor-brand-name,.table-resizer):not(:disabled):active { background: linear-gradient(180deg,var(--gl-optic-wash),transparent 62%),var(--gl-pressed); }
/* Floating menus keep their current positions and a readable backing. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(#raw-transfer-options,.master-transfer-menu,.sp-transfer-menu,.sidebar-module-flyout,#profile-center-panel),html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app,#modal-root) :is(.modal.material-dialog,.modal,.pfa-modal) {
  background: radial-gradient(ellipse 95% 110px at var(--gl-spot-x,50%) 108%,var(--gl-optic-glow),transparent 83%),linear-gradient(180deg,var(--gl-optic-wash),transparent 30px),var(--pc-top);
  border-color: var(--gl-optic-edge);
  box-shadow: var(--gl-optic-inset),0 18px 42px var(--gl-optic-shadow),0 8px 20px -12px var(--gl-optic-glow);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(#raw-transfer-options,.master-transfer-menu,.sp-transfer-menu) { border-radius: 14px; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app .sidebar-flyout-heading { background: transparent; }
/* Depth belongs to the outer glass. Inner lists retain crisp quiet dividers. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app .nav-button:not(.active):not([aria-expanded="true"]):not([data-glass-lit]) { box-shadow: inset 0 0 0 1px var(--gl-menu-line),inset 0 1px var(--gl-highlight); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) .catalog-column { background: transparent; border-color: transparent; border-bottom-color: var(--pc-line); border-radius: 0; box-shadow: none; }
/* A background leaf supplies real frost without filtering any control ancestor.
   Static dialogs gain only a local absolute-position anchor; fixed descendants
   keep the viewport as their containing block. The negative layer is isolated. */
:where(body).c-production-auth [data-glass-background] { display: none; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app,#modal-root) [data-glass-background-host] { background: transparent !important; isolation: isolate; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app,#modal-root) [data-glass-background-relative] { position: relative; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) [data-glass-background] {
  display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 95% 110px at var(--gl-spot-x,50%) 108%,var(--gl-optic-glow),transparent 83%),linear-gradient(180deg,var(--gl-optic-wash),transparent 30px),var(--gl-optic-pane);
  box-shadow: var(--gl-optic-inset);
  backdrop-filter: blur(24px) saturate(1.35); -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
/* Only the decoration glides. Text, icons, click targets and panel anchors do not. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(#workspace-navigation,.sidebar-flyout-items)[data-glass-track] { position: relative; isolation: isolate; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app [data-glass-track] > :not([data-glass-plate]) { z-index: 1; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app .sidebar-flyout-items > .sidebar-menu-child { position: relative; }
:where(body).c-production-auth [data-glass-plate] { display: none; }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) [data-glass-plate]:not([hidden]) {
  display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: var(--gl-plate-w,0px); height: var(--gl-plate-h,0px); border-radius: var(--gl-plate-radius,12px);
  transform: translate3d(var(--gl-plate-x,0px),var(--gl-plate-y,0px),0);
  background: radial-gradient(ellipse at 50% 120%,var(--gl-optic-glow),transparent 76%),linear-gradient(180deg,var(--gl-optic-wash),transparent 60%),var(--gl-plate-fill,var(--gl-selected));
  box-shadow: var(--gl-optic-inset),0 3px 10px var(--gl-optic-glow);
  backdrop-filter: blur(12px) saturate(1.35); -webkit-backdrop-filter: blur(12px) saturate(1.35);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) [data-glass-plate][data-glass-ready] { transition: transform 280ms cubic-bezier(.22,.82,.25,1),width 240ms cubic-bezier(.22,.82,.25,1),height 240ms cubic-bezier(.22,.82,.25,1); }
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app [data-glass-track] :is(.nav-button,.sidebar-flyout-item)[data-glass-lit] {
  background: linear-gradient(180deg,var(--gl-optic-wash),transparent 60%);
  box-shadow: inset 0 0 0 1px var(--gl-edge),inset 0 1px var(--gl-optic-top);
}
@media (prefers-reduced-motion: reduce) {
  html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) [data-glass-plate][data-glass-ready] { transition: none; }
}

/* 2026-10-26: paint-only clarity corrections. Geometry, palette and semantic
   table/focus/selection dividers continue to come from the existing system. */
html:has(:where(body).c-production-auth)[data-bq-theme="glass-sky"] {
  --theme-card-shadow: 0 2px 8px rgba(29,29,31,.045);
  --clarity-float-shadow: 0 6px 18px rgba(29,29,31,.10);
}
html:has(:where(body).c-production-auth)[data-bq-theme="glass-smoke"] {
  --theme-card-shadow: 0 2px 8px rgba(0,0,0,.18);
  --clarity-float-shadow: 0 6px 18px rgba(0,0,0,.28);
}
/* Existing card borders own their outline; no inner bevel is added. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(.heading,.list-toolbar,.table-wrap,.foundation-table-wrap,.foundation-heading,.stats,.catalog-footer,.dashboard-tasks,.dashboard-recent,.dashboard-quick,.dashboard-card,.pfa-panel,.pt-panel,.sp-card,.sp-query-card,.sp-selection) {
  border-color: var(--pc-line);
}
/* 2026-10-27: Give all six primary menus one quiet, uniform outline.
   Derive only the line color from each palette; keep fills, focus outlines,
   typography, density and the legacy 3px left-border reservation unchanged. */
html:has(:where(body).c-production-auth)[data-bq-theme] {
  --sidebar-menu-line: color-mix(in srgb, var(--pc-muted) 24%, transparent);
  --sidebar-menu-line-active: color-mix(in srgb, var(--pc-muted) 36%, transparent);
}
html:has(:where(body).c-production-auth)[data-bq-theme="glass-smoke"] {
  --sidebar-menu-line: color-mix(in srgb, var(--pc-muted) 22%, transparent);
  --sidebar-menu-line-active: color-mix(in srgb, var(--pc-muted) 34%, transparent);
}
/* Limit the ring to direct primary buttons and their group headings.
   Transparent physical borders retain glyph positions without a thick edge. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .nav-button,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button {
  border-color: transparent !important;
  box-shadow: 0 0 0 1px var(--sidebar-menu-line) !important;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .nav-button:is(:hover,:active,:focus-visible,.active,[aria-expanded="true"]),html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button:is(:hover,:active,:focus-visible,.active,[aria-expanded="true"]) {
  box-shadow: 0 0 0 1px var(--sidebar-menu-line-active) !important;
}
/* The shell, tabs and profile already have physical borders. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app :is(.main,.sidebar,.sidebar nav,.workspace-strip,.workspace-tab,.profile-trigger,.sidebar-mobile-toggle,.sidebar-flyout-item) {
  box-shadow: none !important;
}
/* Remove optical bevels from controls, not their borders or focus outlines.
   Do not target cells: frozen-column separator shadows are meaningful. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) :is(button,.button,input:not([type="checkbox"],[type="radio"]),select,textarea) {
  box-shadow: none !important;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app #content,#modal-root) :is(button,.button):not(.file-link,.catalog-sort,.bom-sort,.quote-sort,.foundation-sort,.pt-link,.model-summary,.vendor-brand-name,.table-resizer,.danger) {
  border-color: var(--pc-line);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) #app .pfa .pfa-flow button[aria-current] {
  box-shadow: inset 0 -2px var(--pc-accent) !important;
}
/* Only the outer floating panel casts a shadow. Frost and movement stay on
   their existing non-interactive background leaves. */
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app,#modal-root) :is(.modal,.pfa-modal,#raw-transfer-options,.master-transfer-menu,.sp-transfer-menu,.sidebar-module-flyout,#profile-center-panel,.material-picker-popover,.search-suggestion-popover,.pfa-file-actions,.pfa-housing-options) {
  border-color: var(--pc-line) !important;
  box-shadow: var(--clarity-float-shadow) !important;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is([data-glass-background],[data-glass-plate]) {
  box-shadow: none !important;
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) :is(#app,#modal-root) :is(.modal,.pfa-modal) :is(.heading,.list-toolbar,.table-wrap,.foundation-heading,.stats,.catalog-footer,.sp-card,.sp-query-card,.sp-selection,.sp-table-wrap,.pfa-section,.pfa-fitting-card,.pfa-scroll) {
  box-shadow: none !important;
}
/* The four original themes retain already-clear surfaces. These shared
   process controls alone have a confirmed inner rim plus outer shadow. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app .pfa .pfa-file-menu > .pfa-file-actions {
  box-shadow: 0 10px 28px rgba(15,39,71,.18);
}
html:has(:where(body).c-production-auth)[data-bq-theme] :is(#app,#modal-root) :is(.pfa-file-actions button,.pfa-modal input:not([type="checkbox"],[type="radio"]),.pfa-modal select,.pfa-modal textarea) {
  box-shadow: none !important;
}
/* Retain each preview's existing frame, remove its extra bright top edge. */
:where(body).c-production-auth .profile-theme-preview.glass-sky { box-shadow: inset 0 0 0 4px #ffffff55; }
:where(body).c-production-auth .profile-theme-preview.glass-smoke { box-shadow: inset 0 0 0 4px #dceaff22; }

/* 2026-10-27: App V2 navigation reference from shuobing-wms.
   Keep the existing shell column widths and business canvas unchanged. The seven
   primary rows, work tabs and floating menus share geometry across six themes.
   Existing permissions, sorting, focus handling and theme tokens remain owners. */
html:has(:where(body).c-production-auth)[data-bq-theme] {
  --wms-nav-fill: var(--pc-soft);
  --wms-nav-ink: var(--pc-deep);
}
html:has(:where(body).c-production-auth):is([data-bq-theme="glass-sky"],[data-bq-theme="glass-smoke"]) {
  --wms-nav-fill: var(--gl-selected);
  --wms-nav-ink: var(--gl-menu-selected-ink, var(--pc-deep));
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar #workspace-navigation {
  margin: 8px 10px 0;
  padding: 8px;
  gap: 4px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--pc-top) 92%, transparent);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .nav-button,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0 30px 0 12px;
  gap: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gl-menu-ink, var(--pc-muted));
  text-align: left;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .nav-button > svg,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button > svg {
  position: static;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .nav-button > span,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button > span {
  width: auto;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  text-align: left;
  text-align-last: auto;
  letter-spacing: normal;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row .nav-button:is(:hover,:focus-visible,.active,[aria-expanded="true"]) {
  color: var(--wms-nav-ink);
  background: var(--wms-nav-fill);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row .nav-button:is(.active,[aria-expanded="true"]) {
  font-weight: 700;
}
/* Tabs meet the workspace edge like WMS document tabs, rather than pills.
   The strip remains 40px tall so the business page keeps its current origin. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip {
  align-items: flex-end;
  height: 40px;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid var(--pc-line);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip > .workspace-tab {
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--pc-line);
  border-bottom-color: transparent;
  border-radius: 9px 9px 0 0;
  background: color-mix(in srgb, var(--pc-top) 82%, transparent);
  color: var(--pc-muted);
  box-shadow: none !important;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip > .workspace-tab.active {
  background: var(--wms-nav-fill);
  color: var(--wms-nav-ink);
  font-weight: 600;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab > .workspace-tab-main {
  gap: 6px;
  padding: 0 10px;
  font-size: 13px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab > .workspace-tab-close {
  width: 28px;
  min-width: 28px;
  padding: 0;
  color: var(--pc-muted);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab > button {
  min-height: 0;
  height: 100%;
  border-radius: 7px 7px 0 0;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab > button > svg { width: 14px; height: 14px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab > button:focus-visible { outline-offset: -3px; }
/* Use WMS's title rule and two-column text lists, with the original DOM/order.
   No duplicate category icons, framed tiles or heavy selected left edge. */
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout {
  padding: 0 16px 16px;
  border-radius: 0 13px 13px 0;
  background: var(--pc-top);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-heading {
  min-height: 44px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--pc-line);
  background: var(--pc-top);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-heading h2 { font-size: 15px; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-heading h2 > svg,
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-icon { display: none; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-item {
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--pc-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none !important;
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-item:is(:hover,:focus-visible,.active) {
  background: var(--wms-nav-fill);
  color: var(--wms-nav-ink);
}
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-item.active { font-weight: 600; }
html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout.sidebar-flyout-editable .sidebar-menu-child .sidebar-flyout-item { padding-right: 34px; }
@media (min-width: 701px) and (max-width: 1000px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar #workspace-navigation { margin-inline: 7px; padding: 6px; }
}
@media (max-width: 700px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .sidebar #workspace-navigation { margin: 0; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .nav-button,
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #workspace-navigation > .sidebar-menu-row > .sidebar-group-heading > .nav-button { min-height: 44px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip { height: 44px; min-height: 44px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-strip > .workspace-tab { height: 44px; min-height: 44px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app .workspace-tab > .workspace-tab-close { width: 32px; min-width: 32px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout { padding: 0 12px 12px; border-radius: 12px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-heading { min-height: 48px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-items { column-gap: 12px; }
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-item { min-height: 44px; }
}
@media (max-width: 359px) {
  html:has(:where(body).c-production-auth)[data-bq-theme] #app #sidebar-module-flyout .sidebar-flyout-items { grid-template-columns: minmax(0, 1fr); }
}

/* 2026-10-29: Selected scheme 5, moon-white harness cover; real CRM forms are retained. */
html:has(:where(body).c-production-auth).bq-login-dialog-open{overflow:hidden!important}
html:has(:where(body).c-production-auth):has(#app .bq-moon-login):not(.bq-login-dialog-open){overflow-y:auto!important}
html:has(:where(body).c-production-auth):has(#app .bq-moon-login) body{overflow:visible!important;height:auto!important}
html:has(:where(body).c-production-auth) #app .crm-auth.bq-moon-login{display:block!important;align-content:normal!important;justify-content:normal!important;overflow:visible!important;position:relative;min-height:200svh;height:200svh;padding:0!important;background:#efebe4!important;color:#292a29!important;font-family:'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0;isolation:auto}
html:has(:where(body).c-production-auth) #app .crm-auth.bq-moon-login::before,html:has(:where(body).c-production-auth) #app .crm-auth.bq-moon-login::after{content:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-stage{position:sticky;top:0;width:100%;height:100svh;min-height:0;overflow:clip;isolation:isolate}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-scene,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-scene img,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;border:0;border-radius:0}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-scene img{object-fit:cover;object-position:56% 53%;will-change:transform,opacity}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-deep{opacity:0}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-canvas{opacity:0}
html:has(:where(body).c-production-auth) #app .bq-moon-login[data-renderer=webgl] .auth-moon-canvas{opacity:1}
html:has(:where(body).c-production-auth) #app .bq-moon-login[data-renderer=webgl] .auth-moon-scene img{visibility:hidden}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-header{position:absolute;left:4%;right:3.4%;top:4.1%;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;z-index:2;color:#292a29}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-brand{font-size:clamp(19px,1.7vw,29px);font-weight:700;letter-spacing:-.04em;line-height:1.2}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-entry{min-height:44px;padding:8px 28px;background:transparent!important;border:1px solid #51564e!important;border-radius:8px;color:#292a29!important;font-size:clamp(12px,1.05vw,18px);font-weight:400;box-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-copy{position:absolute;right:7.4%;top:37%;max-width:35%;text-align:center;transform:translateY(var(--moon-title-y,0px));opacity:var(--moon-title-opacity,1)}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-title{margin:0;font-family:'Songti SC','STSong',serif;font-size:clamp(36px,4.9vw,82px);font-weight:500;line-height:1.25;letter-spacing:.06em;color:#292a29;text-shadow:none}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-system{margin:18px 0 0;font-family:'Songti SC','STSong',serif;font-size:clamp(14px,1.57vw,27px);line-height:1.6;letter-spacing:.08em;white-space:nowrap;color:#292a29}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-ending{position:absolute;top:30%;right:5.2%;max-width:39%;text-align:center;opacity:var(--moon-ending-opacity,0);transform:translateY(var(--moon-ending-y,24px));pointer-events:none}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-ending p{margin:0 0 12px;font-family:'Songti SC','STSong',serif;font-size:clamp(25px,2.65vw,45px);font-weight:500;line-height:1.5;color:#292a29}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-ending span{font-size:clamp(12px,1.1vw,18px);color:#4d554d;letter-spacing:.08em}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-footer{position:absolute;bottom:4%;left:4%;right:4%;display:flex;justify-content:center;align-items:center;gap:20px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-footer button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 12px;border:0;background:transparent!important;color:#424c43!important;font-size:12px;font-weight:400;box-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-footer svg{width:15px;height:15px}
html:has(:where(body).c-production-auth) #app .bq-moon-login [data-moon-pause]{position:absolute;right:0;font-size:11px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-backdrop{position:fixed;inset:0;z-index:30;background:#17201935;backdrop-filter:blur(3px)}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel{position:fixed!important;inset:24px 3.4vw auto auto!important;z-index:40;display:block;width:448px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100svh - 48px)!important;min-width:0;margin:0!important;padding:0 26px 22px!important;overflow:auto;overscroll-behavior:contain;border:1px solid #d4d6cc!important;border-radius:0!important;background:#f9f8f4!important;color:#2d302e!important;box-shadow:0 20px 60px #252b222b!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;align-self:auto;justify-self:auto;animation:moon-window-in .22s ease-out both;scrollbar-width:thin;scrollbar-color:#bfc5bb #f9f8f4}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel::before,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel::after{content:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel.register{width:620px!important;max-width:calc(100vw - 32px)!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;margin:0 0 24px;padding:10px 0;border-bottom:1px solid #d8dbd2}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-panel-brand{display:block;margin:0;font-size:18px;line-height:1.3;letter-spacing:-.04em;font-weight:650;color:#2d302e!important;text-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-close{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:58px;margin-right:-8px;padding:8px;border:0;border-radius:3px;background:transparent!important;color:#626962!important;font-size:12px;font-weight:400;box-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-close svg{width:16px;height:16px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel h1{margin:0 0 8px!important;color:#2d302e!important;font-family:'Songti SC','STSong',serif;font-size:30px!important;font-weight:500;line-height:1.25;letter-spacing:.02em;text-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-note{margin:8px 0 22px!important;color:#626962!important;font-size:12px;line-height:1.6}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field{display:flex;flex-direction:column;gap:7px;margin:0 0 16px!important;color:#2d302e!important;font-size:12px;line-height:1.5}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-is-login .auth-field{display:grid;grid-template-columns:106px minmax(0,1fr);align-items:center;column-gap:8px;row-gap:4px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-is-login .auth-field-error{grid-column:2}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel label{color:#2d302e!important;font-size:12px;font-weight:400;text-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field input,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field select{width:100%;min-width:0;min-height:44px;height:44px;margin:0;padding:10px 12px;border:1px solid #bfc5bb!important;border-radius:0!important;background:#fffefa!important;color:#2d302e!important;font-size:14px;line-height:1.5;box-shadow:none!important;appearance:auto}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field input::placeholder{color:#737c71;opacity:1}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-input-wrap{min-width:0;position:relative}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-input-wrap:has(.auth-password-toggle) input{padding-right:48px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-password-toggle{position:absolute;inset:0 0 auto auto;transform:none!important;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:0!important;background:transparent!important;color:#626962!important;box-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-password-toggle svg{width:18px;height:18px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field-error{margin:0;color:#a43128!important;font-size:11px;line-height:1.5}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field input[aria-invalid=true]{border-color:#a43128!important;outline-color:#a43128!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-remember{display:flex;align-items:center;gap:8px;min-height:44px;margin:4px 0 10px;color:#626962!important;font-size:12px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-remember input{width:16px;height:16px;min-height:16px;flex:0 0 16px;accent-color:#36483e}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-submit{width:100%;min-height:46px;margin:8px 0 0;padding:10px 16px;border:1px solid #303735!important;border-radius:0!important;background:#303735!important;color:#fffdf5!important;font-size:14px;font-weight:500;letter-spacing:.04em;box-shadow:none!important;text-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-submit svg{display:none}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-secondary{width:100%;min-height:44px;margin:4px 0 0;padding:8px;border:0!important;border-radius:0;background:transparent!important;color:#626962!important;font-size:12px;font-weight:400;box-shadow:none!important;text-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-message{min-height:0;margin:10px 0 0!important;color:#a43128!important;font-size:12px;line-height:1.6}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-message:empty{display:none}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-grid .auth-sms{grid-column:1/-1}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-required-mark{color:#a43128!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-optional-mark{color:#626962!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-sms-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:8px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-sms-row button,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-choices button{border:1px solid #bfc5bb!important;border-radius:0!important;background:#fffefa!important;color:#2d302e!important;box-shadow:none!important;min-height:44px}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-consent,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-consent label{color:#626962!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-consent button{color:#355745!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-list legend,html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-name{color:#2d302e!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-option{border:1px solid #bfc5bb!important;border-radius:0!important;background:#fffefa!important;color:#2d302e!important;box-shadow:none!important;backdrop-filter:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-option:has(input:checked){border-color:#36483e!important;background:#e8eee3!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-option input{appearance:auto!important;accent-color:#36483e;background:#fffefa!important;box-shadow:none!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-indicator{background:#dce6d6!important;color:#355745!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-hint{color:#626962!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login .company-choice-error{color:#a43128!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login button:focus-visible,html:has(:where(body).c-production-auth) #app .bq-moon-login input:focus-visible,html:has(:where(body).c-production-auth) #app .bq-moon-login select:focus-visible{outline:2px solid #36483e!important;outline-offset:3px;border-color:#36483e!important}
html:has(:where(body).c-production-auth) #app .bq-moon-login button:disabled{opacity:.55;cursor:default}
html:has(:where(body).c-production-auth) #app .bq-moon-login [hidden]{display:none!important}
/* Keep both screens reachable when motion is reduced. */
html:has(:where(body).c-production-auth) #app .bq-moon-login[data-reduced=true] [data-moon-pause]{display:none}
@keyframes moon-window-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-copy{max-width:42%;right:4%}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-title{font-size:4.6vw}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-system{font-size:1.45vw}}
@media(max-width:760px){html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-header{left:20px;right:20px;top:24px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-brand{font-size:19px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-entry{min-height:44px;font-size:12px;padding:6px 16px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-copy{left:22px;right:22px;top:35%;max-width:none;text-align:right}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-title{font-size:38px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-system{font-size:13px;white-space:normal}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-ending{left:24px;right:24px;top:29%;max-width:none;text-align:left}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-ending p{font-size:28px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-cover-footer{left:16px;right:16px;bottom:24px;justify-content:flex-start}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel.register{inset:16px 16px auto 16px!important;width:auto!important;max-width:none!important;max-height:calc(100svh - 32px)!important;padding:0 22px 18px!important}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-panel-head{margin-bottom:22px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-is-login .auth-field{grid-template-columns:1fr;gap:7px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-is-login .auth-field-error{grid-column:1}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field input,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field select{font-size:16px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-grid{grid-template-columns:1fr;gap:0}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel h1{font-size:28px!important}}
@media(max-height:760px){html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-panel-head{margin-bottom:18px;min-height:56px}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel .auth-note{margin-bottom:16px!important}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-field{margin-bottom:12px!important}}
@media(max-width:340px){html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel,html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel.register{inset-inline:10px!important;padding-inline:18px!important}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-sms-row{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-panel{animation:none}html:has(:where(body).c-production-auth) #app .bq-moon-login .auth-moon-backdrop{backdrop-filter:none}}
html:has(:where(body).c-production-auth) #app .bq-moon-login[data-reduced=true] .auth-panel{animation:none}

/* Keep the selected paper surface independent of the workspace's glass input colors. */
html:has(:where(body).c-production-auth) #runtime #app .crm-auth.bq-moon-login .auth-panel .auth-field input,html:has(:where(body).c-production-auth) #runtime #app .crm-auth.bq-moon-login .auth-panel .auth-field select,html:has(:where(body).c-production-auth) #app .crm-auth.bq-moon-login .auth-panel .auth-field input,html:has(:where(body).c-production-auth) #app .crm-auth.bq-moon-login .auth-panel .auth-field select{background:#fffefa!important;color:#2d302e!important;border-color:#bfc5bb!important}
html:has(:where(body).c-production-auth) #runtime #app .crm-auth.bq-moon-login .auth-panel .auth-field input[aria-invalid=true],html:has(:where(body).c-production-auth) #app .crm-auth.bq-moon-login .auth-panel .auth-field input[aria-invalid=true]{border-color:#a43128!important}

/* Cost sheet: the existing blue-grey workbench frame, one compact working sheet.
   Metadata: 5 columns, 4 x 12px gaps; detail: 2 equal columns, 16px gap.
   Signature: per-set manufacture cost stays beside batch quantity and NRE treatment. */
:where(body).c-production-auth .mc-workspace{min-width:0;--mc-rule:var(--line,#dce3e8);--mc-muted:var(--muted,#607181);--mc-panel:var(--card-bg,var(--surface,#fff));font-variant-numeric:tabular-nums}
:where(body).c-production-auth .mc-workspace .heading{align-items:center}:where(body).c-production-auth .mc-status{font-size:12px;color:var(--mc-muted);margin:0 0 12px}:where(body).c-production-auth .mc-meta{display:grid;grid-template-columns:2fr 1.3fr 1.4fr 1fr 1fr;gap:12px;margin-bottom:16px}:where(body).c-production-auth .mc-meta label{min-width:0}:where(body).c-production-auth .mc-meta input{width:100%}:where(body).c-production-auth .mc-summary{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;border:1px solid var(--mc-rule);border-radius:8px;padding:16px 0;margin-bottom:16px}:where(body).c-production-auth .mc-summary>div{padding:0 20px;border-right:1px solid var(--mc-rule);min-width:0}:where(body).c-production-auth .mc-summary>div:last-child{border:0}:where(body).c-production-auth .mc-summary span,:where(body).c-production-auth .mc-summary small{display:block;color:var(--mc-muted);font-size:12px}:where(body).c-production-auth .mc-summary span small{display:inline}:where(body).c-production-auth .mc-summary strong{font-size:20px;font-weight:600;display:block;line-height:1.5;margin:6px 0}:where(body).c-production-auth .mc-summary .mc-summary-main strong{font-size:28px}:where(body).c-production-auth .mc-tabs{display:flex;gap:12px;border-bottom:1px solid var(--mc-rule);margin-bottom:16px;overflow-x:auto}:where(body).c-production-auth .mc-tabs button{border:0;border-radius:0;background:transparent;box-shadow:none;min-height:40px;padding:8px 4px;color:inherit}:where(body).c-production-auth .mc-tabs button[aria-selected=true]{border-bottom:2px solid currentColor;font-weight:600}:where(body).c-production-auth .mc-section-head,:where(body).c-production-auth .mc-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}:where(body).c-production-auth .mc-workspace h2{font-size:15px;font-weight:600}:where(body).c-production-auth .mc-table{width:100%;overflow:auto}:where(body).c-production-auth .mc-table table{min-width:760px}:where(body).c-production-auth .mc-table td,:where(body).c-production-auth .mc-table th{font-size:13px}:where(body).c-production-auth .mc-table td small{display:block;font-size:12px;color:var(--mc-muted)}:where(body).c-production-auth .mc-table .mc-num{font-variant-numeric:tabular-nums;text-align:right!important;white-space:nowrap}:where(body).c-production-auth .mc-table td:last-child{white-space:nowrap}:where(body).c-production-auth .mc-table td:last-child button+button{margin-left:4px}:where(body).c-production-auth .mc-empty{padding:32px 16px;text-align:center;color:var(--mc-muted);white-space:normal}:where(body).c-production-auth .mc-note{font-size:12px;color:var(--mc-muted);line-height:1.6;margin-top:12px}:where(body).c-production-auth .mc-footer{font-size:12px}:where(body).c-production-auth .mc-query{display:flex;gap:12px;align-items:end;margin-bottom:16px}:where(body).c-production-auth .mc-query label:first-child{flex:1}:where(body).c-production-auth .mc-query label{min-width:140px}:where(body).c-production-auth .mc-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:24px}:where(body).c-production-auth .mc-breakdown{margin:12px 0}:where(body).c-production-auth .mc-breakdown>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--mc-rule);padding:8px 0}:where(body).c-production-auth .mc-breakdown dd{margin:0;text-align:right}:where(body).c-production-auth .mc-coverage{margin-top:12px;display:grid;gap:8px}:where(body).c-production-auth .mc-coverage>div{display:grid;grid-template-columns:100px minmax(100px,1fr) minmax(140px,1.5fr);gap:8px;align-items:center;font-size:12px}:where(body).c-production-auth .mc-coverage input,:where(body).c-production-auth .mc-coverage select{width:100%;min-width:0}:where(body).c-production-auth .mc-findings,:where(body).c-production-auth .mc-sources{margin-top:24px}:where(body).c-production-auth .mc-findings ul{padding-left:20px;margin:12px 0;line-height:1.9}:where(body).c-production-auth .mc-sources p{margin-top:8px}:where(body).c-production-auth .mc-sources small{display:block;font-size:12px;color:var(--mc-muted)}:where(body).c-production-auth .mc-sources label{margin-top:12px}:where(body).c-production-auth .mc-modal{width:min(880px,calc(100vw - 32px));max-height:90vh}:where(body).c-production-auth .mc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 0 16px}:where(body).c-production-auth .mc-fields>p,:where(body).c-production-auth .mc-fields>.mc-price-results{grid-column:1/-1}:where(body).c-production-auth .mc-fields input,:where(body).c-production-auth .mc-fields select,:where(body).c-production-auth .mc-fields textarea{width:100%;min-width:0}:where(body).c-production-auth .mc-fields textarea{font:inherit;padding:8px;border:1px solid var(--mc-rule,#dce3e8);border-radius:6px;color:inherit;background:transparent}:where(body).c-production-auth .mc-form{overflow:auto;min-height:0}:where(body).c-production-auth .mc-form .modal-foot{padding-top:12px}:where(body).c-production-auth .mc-price-results{overflow:auto}:where(body).c-production-auth .mc-price-results table{min-width:560px}:where(body).c-production-auth .mc-workspace input:read-only{cursor:default}:where(body).c-production-auth .mc-workspace .mc-tabs .business-button{min-height:40px}
@media(max-width:1100px){:where(body).c-production-auth .mc-meta{grid-template-columns:repeat(3,minmax(0,1fr))}:where(body).c-production-auth .mc-summary-grid{grid-template-columns:1fr}:where(body).c-production-auth .mc-summary>div{padding:0 12px}}
@media(max-width:640px){:where(body).c-production-auth .mc-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}:where(body).c-production-auth .mc-meta>label:first-child{grid-column:1/-1}:where(body).c-production-auth .mc-summary{grid-template-columns:1fr 1fr;gap:16px 0}:where(body).c-production-auth .mc-summary>div:nth-child(2){border-right:0}:where(body).c-production-auth .mc-summary strong{font-size:18px}:where(body).c-production-auth .mc-summary .mc-summary-main strong{font-size:24px}:where(body).c-production-auth .mc-fields{grid-template-columns:1fr}:where(body).c-production-auth .mc-coverage>div{grid-template-columns:90px minmax(0,1fr)}:where(body).c-production-auth .mc-coverage input{grid-column:1/-1}:where(body).c-production-auth .mc-query{flex-wrap:wrap}:where(body).c-production-auth .mc-query label:first-child{flex-basis:100%}:where(body).c-production-auth .mc-section-head{align-items:start;flex-wrap:wrap}:where(body).c-production-auth .mc-workspace .heading{align-items:start;gap:12px}:where(body).c-production-auth .mc-workspace .heading .actions{justify-content:flex-start}:where(body).c-production-auth .mc-modal{width:calc(100vw - 24px)}:where(body).c-production-auth .mc-workspace button{min-height:40px}}
/* Native labels become Form.Item and controls receive a host in the working UI. */
:where(body).c-production-auth .mc-meta>.business-field,:where(body).c-production-auth .mc-fields>.business-field,:where(body).c-production-auth .mc-query>.business-field{margin-bottom:0;min-width:0}:where(body).c-production-auth .mc-meta .ant-form-item-label,:where(body).c-production-auth .mc-fields .ant-form-item-label{padding-bottom:6px}:where(body).c-production-auth .mc-meta .ant-input-affix-wrapper,:where(body).c-production-auth .mc-meta .ant-input-number{min-height:32px}:where(body).c-production-auth .mc-meta .ant-input-affix-wrapper input{min-height:0}:where(body).c-production-auth .mc-query>.business-field:first-child{flex:1}:where(body).c-production-auth .mc-table td.mc-num .cell-content{display:block;text-align:right}:where(body).c-production-auth .mc-table th.mc-num .column-title{display:block;text-align:right}
@media(max-width:640px){:where(body).c-production-auth .mc-meta>:first-child{grid-column:1/-1}:where(body).c-production-auth .mc-meta .ant-input-affix-wrapper,:where(body).c-production-auth .mc-meta .ant-input-number{min-height:40px}:where(body).c-production-auth .mc-coverage>div>.control-host:last-child{grid-column:1/-1}:where(body).c-production-auth .mc-query>.business-field:first-child{flex-basis:100%}:where(body).c-production-auth .mc-meta{row-gap:12px}:where(body).c-production-auth .mc-fields{gap:12px}}
/* Theme tokens stay shared with the existing workbench, including dark surfaces. */
:where(body).c-production-auth .mc-workspace{--mc-rule:var(--r-border,var(--line,#dce3e8));--mc-muted:var(--r-muted,var(--muted,#607181));color:var(--r-text,var(--text,inherit))}html:has(:where(body).c-production-auth)[data-review-theme] .mc-workspace strong{color:var(--r-text)}html:has(:where(body).c-production-auth)[data-review-theme] .mc-workspace .mc-summary strong,html:has(:where(body).c-production-auth)[data-review-theme] .mc-workspace .mc-breakdown strong{color:var(--r-text)!important}:where(body).c-production-auth .mc-tabs button[aria-selected=true]{border-bottom:2px solid var(--r-primary,currentColor)!important}
:where(body).c-production-auth #modal-root>.auth-captcha-overlay{position:fixed;inset:0;z-index:50;background:#17394c88;display:flex;align-items:center;justify-content:center;padding:16px}
:where(body).c-production-auth #modal-root>.auth-captcha-overlay iframe{border:1px solid #c5dde9;border-radius:8px;background:white;width:500px;max-width:100%;height:650px;max-height:90dvh}
:where(body).c-production-auth #modal-root>.auth-captcha-overlay>button{position:absolute;right:20px;top:20px;z-index:1}
