/* Existing compact mist-blue visual system, scoped to category guides. */
body .asset-tag-guide{display:grid;gap:12px;padding:16px;margin:12px 0;border:1px solid var(--mist-border,#d3e5f0);border-radius:10px;background:#f7fbff;min-width:0}
body .asset-tag-guide header{display:flex;gap:12px;align-items:center;justify-content:space-between}
body .asset-tag-guide h4,body .asset-tag-guide p{margin:0}
body .tag-guide-images{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
body .tag-guide-image{width:160px;max-width:100%;padding:0;border:1px solid #c6d9e8;border-radius:8px;background:#fff;overflow:hidden;cursor:zoom-in}
body .tag-guide-image img{display:block;max-width:100%;width:100%;aspect-ratio:1;object-fit:contain}
body .tag-guide-current{padding:12px;border:1px solid #d5e4ef;border-radius:8px;background:#fff;min-width:0}
body .tag-guide-source{display:flex;flex-wrap:wrap;gap:8px}
body .tag-guide-source label{flex:1 1 160px}
body .tag-guide-source input,body .tag-guide-confirm input{flex:0 0 20px;width:20px;height:20px;min-height:20px!important;margin:0}
body .tag-guide-source label,body .tag-guide-confirm{display:flex;align-items:center;gap:8px;margin:0;min-height:36px}
body .tag-guide-file,body .tag-guide-instructions{display:grid;gap:4px;margin:8px 0;min-width:0}
body .tag-guide-instructions textarea{width:100%;min-width:0;box-sizing:border-box}
body .tag-guide-qr{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
body .tag-guide-qr>img{width:156px;height:156px;max-width:100%}
body .tag-guide-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
body .tag-guide-notice{color:#315d80}
body #tgError{color:#ac303e;overflow-wrap:anywhere}
body .tag-guide-history>section{padding:12px;border-bottom:1px solid #d5e4ef}
body .lifecycle-item.approval{border:1px solid #cbdfee;border-radius:9px;padding:12px;margin-bottom:12px;background:#f2f8ff}
body .lifecycle-item.approval .lifecycle-dot{background:#3479bd}
body .lifecycle-item.approval .btn{margin-top:8px}
@media(max-width:760px),(pointer:coarse){body .tag-guide-source label,body .tag-guide-confirm,body .tag-guide-actions .btn{min-height:44px}body .tag-guide-file input,body .tag-guide-instructions textarea{font-size:16px}
 body .tag-guide-source{display:grid;grid-template-columns:1fr}
 body .tag-guide-source input,body .tag-guide-confirm input{flex:0 0 20px;width:20px;height:20px;min-height:20px!important;margin:0}
}
@media(max-width:920px){body .procurement-page-head .procurement-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px;overflow:visible!important}body .procurement-page-head .procurement-tabs button{white-space:normal;overflow-wrap:anywhere;min-height:44px!important}}

/* Two purposeful tabs: shared definitions first, one full-width category editor second. */
body .category-parameter-layout{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.7fr);gap:20px;align-items:start}
body .asset-primary-settings{min-width:0;padding:16px;border:1px solid #d3e5f0;border-radius:10px;background:#f6fafc}
body .asset-primary-settings h4{margin:0;font-size:15px}
body .asset-primary-settings>label{display:block;margin-top:16px;font-weight:650}
body .asset-primary-settings .parameter-add{display:flex;align-items:center;gap:8px;margin-top:6px}
body .asset-primary-settings .parameter-add input{min-width:0;flex:1;width:0}
body .asset-primary-settings .parameter-add button{flex:none;white-space:nowrap}
body .asset-primary-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
body .asset-primary-list span{border:1px solid #d3e5f0;border-radius:6px;padding:4px 8px;background:#fff;color:#365572;overflow-wrap:anywhere}
body .category-parameter-layout .asset-parameter-catalog{margin:0;min-width:0;padding:16px;border-radius:10px}
body .category-parameter-layout .asset-parameter-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body .category-parameter-layout .asset-parameter-row{padding:10px;background:#f6fafc}
body .category-parameter-layout .asset-parameter-row b{font-size:13px}
body .category-parameter-layout .asset-parameter-head{align-items:flex-start;gap:12px;margin-bottom:12px}
body #assetCategorySettings .category-secondary-editor{padding:16px;border:1px solid #d3e5f0;border-radius:10px;background:#fff;min-width:0}
body .category-editor-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:16px}
body .category-editor-heading h4{margin:0;font-size:15px;overflow-wrap:anywhere}
body .category-editor-heading>span{font-size:12px;color:#526b82;overflow-wrap:anywhere}
body .category-secondary-editor .category-map-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
body .category-secondary-editor .category-map-form>label{gap:6px;margin:0}
body .category-secondary-editor .category-combobox>label{margin:0 0 6px;color:#506a83;font-size:13px;font-weight:650}
body .category-map-form label small{font-size:12px;font-weight:400;color:#60768a}
body .category-secondary-editor .category-map-form select,body .category-secondary-editor .category-combobox-input{height:36px;min-height:36px;border-radius:8px}
body .category-secondary-editor .category-map-form select{padding:6px 10px}
body .category-secondary-editor .category-combobox-input input{height:34px;min-height:34px;padding:6px 10px}
body .category-secondary-editor .category-combobox-input button{min-height:34px;height:34px;flex-basis:36px;padding:0;align-self:stretch}
body .category-combobox-input:has(input:disabled){background:#f0f4f7;color:#62768a}
body .category-combobox-input button:disabled{cursor:not-allowed;color:#768594}
body #acmCategoryOptions{position:absolute;z-index:20;top:62px;left:0;right:0;margin:0;max-height:240px;box-shadow:0 6px 18px #263b501a;overscroll-behavior:contain}
body #acmCategoryOptions [role=option]{min-height:36px;overflow-wrap:anywhere}
body .category-secondary-editor .field-help{margin:6px 0 0;font-size:12px;line-height:1.6;color:#60768a}
body .category-selection-hint{margin:20px 0 4px;color:#60768a}
body #acmEditorFields{margin-top:20px}
body #acmTagRequirementChoices{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body #acmTagRequirements{margin:0 0 16px}
body #acmTagRequirementChoices label{min-height:36px;font-size:13px;padding:8px;margin:0;gap:8px}
body .category-required-picker{margin-top:16px}
body .category-required-picker .asset-parameter-checks{grid-template-columns:repeat(4,minmax(0,1fr))}
body .category-editor-actions{align-items:center;justify-content:space-between;gap:12px;padding-top:16px;margin-top:16px;border-top:1px solid #d3e5f0}
body .category-editor-actions small{color:#60768a;font-size:12px}
body .category-editor-actions .btn{min-height:32px;flex:none;white-space:nowrap}
body #assetCategorySettings .asset-category-tree{margin-top:16px;grid-template-columns:minmax(0,1fr)}
body .tag-guide-upload-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
body .tag-guide-upload-tools .tag-guide-file{flex:1;min-width:160px;margin:0}
body .tag-guide-file input{width:100%;max-width:100%;min-width:0;height:auto;font-size:13px}
body .tag-guide-upload-tools .btn{align-self:flex-end}
body .tag-guide-image{width:128px}
body .tag-guide-image img{aspect-ratio:4/3}
body .tag-guide-instructions{grid-template-columns:minmax(0,1fr) auto}
body .tag-guide-instructions{max-width:300px;grid-template-columns:minmax(0,1fr) auto}
body .tag-guide-instructions input{grid-column:1/-1;width:100%;height:36px;box-sizing:border-box}
@media(max-width:760px),(pointer:coarse){body .tag-guide-instructions input{height:44px;font-size:16px}}
body .tag-guide-actions{align-items:center}
body .tag-guide-actions>small{margin-right:auto;font-size:12px;color:#60768a}
body .tag-guide-local{font-size:12px;overflow-wrap:anywhere;margin-top:6px}
body .asset-setting-tabs button{font-size:13px}
body #acmEditorFields[hidden],body #acmSelectionHint[hidden],body .asset-category-group[hidden],body .asset-tag-guide[hidden],body #tgUpload[hidden],body #tgQr[hidden]{display:none!important}
@media(max-width:1100px){body .category-parameter-layout{grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr)}body .category-required-picker .asset-parameter-checks,body #acmTagRequirementChoices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px),(pointer:coarse){
 body .category-parameter-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 body .category-secondary-editor .category-map-form{grid-template-columns:minmax(0,1fr)}
 body .category-secondary-editor .category-map-form select,body .category-secondary-editor .category-combobox-input{height:44px;min-height:44px}
 body .category-secondary-editor .category-combobox-input input,body .category-secondary-editor .category-combobox-input button{height:42px;min-height:42px}
 body #acmCategoryOptions{top:70px}body #acmCategoryOptions [role=option]{min-height:44px}
 body #acmTagRequirementChoices label,body .category-editor-actions .btn,body .asset-primary-settings .btn{min-height:44px}
 body .category-editor-actions{flex-wrap:wrap}body .category-editor-actions .btn{width:100%}
 body .category-editor-heading{flex-wrap:wrap;gap:4px}
 body .asset-setting-tabs button{padding:8px 12px;flex:1;white-space:normal}
 body .asset-primary-settings input,body .category-map-form input,body .category-map-form select{font-size:16px}
 body .category-parameter-layout .asset-parameter-list{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:420px){body #acmTagRequirementChoices,body .category-required-picker .asset-parameter-checks{grid-template-columns:minmax(0,1fr)}body .tag-guide-actions>small{width:100%}body .tag-guide-actions .btn{flex:1}}



/* V18.1.7 direct filing: compact fields, required parameters above the guide. */
body #assetCreateForm .form-section-title{margin:16px 0 10px;padding-bottom:8px;font-size:15px;gap:8px}
body #assetCreateForm .form-grid{gap:12px;align-items:start}
body #assetCreateForm :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=file]),select){height:36px;min-height:36px;padding:6px 10px;box-sizing:border-box}
body #assetCreateForm .filing-label-text{min-height:32px;align-content:end;line-height:1.4;gap:4px}
body #assetCreateForm .filing-field-badge{font-size:10px;line-height:1.4;white-space:nowrap;padding:1px 4px}
body #assetCreateForm .procurement-core-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
body #assetCreateForm .procurement-core-grid>label{grid-column:span 2;min-width:0;order:0}
body #assetCreateForm .procurement-core-grid>label:has(#acName){grid-column:span 4}
body #assetCreateForm .procurement-core-grid>label:has(#acModel),body #assetCreateForm .procurement-core-grid>label:has(#acSpec),body #assetCreateForm .procurement-core-grid>label:has(#acSerial){grid-column:span 3}
body #assetCreateForm .procurement-core-grid>.filing-tag-requirement{grid-column:span 3;order:1}
body #assetCreateForm .filing-tag-requirement{display:flex;flex-direction:column;gap:4px;justify-content:end;min-height:72px}
body #assetCreateForm .filing-tag-requirement .filing-label-text{font-size:12px;color:#536d87;min-height:0}
body #acTagRequirement{display:block;align-self:flex-start;font-size:15px;font-weight:700;line-height:36px;color:#245f86;border:0;background:transparent;padding:0 0 0 10px;border-left:3px solid #4b75a2;white-space:normal}
body #acTagRequirement[data-rule=none]{color:#536d87;border-left-color:#96a9b8}
body #acTagRequirement[data-rule=both]{color:#245f69;border-left-color:#387c89}
body #assetCreateForm #acAssetParameters{grid-column:1/-1;order:2;margin:0;padding:12px 0;border-top:1px solid #d3e5f0}
body #assetCreateForm #acAssetParameters .form-grid{grid-template-columns:repeat(auto-fill,minmax(150px,180px))}
body #assetCreateForm #acCategoryInfo{grid-column:1/-1;order:3;padding:12px;margin:0}
body #assetCreateForm .filing-category-layout{grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
body #assetCreateForm .filing-category-head{margin-bottom:4px}
body #assetCreateForm .filing-category-info>.filing-hint{margin:0 0 6px}
body #assetCreateForm .filing-category-status,body #assetCreateForm #acCategoryRetry{grid-column:1/-1;order:4;margin:0}
body #acCategoryStatus:empty{display:none}
body #assetCreateForm .filing-ownership-grid{display:flex;flex-wrap:wrap;align-items:start}
body #assetCreateForm .filing-ownership-grid>:is(label,fieldset){flex:0 1 180px;min-width:0}
body #assetCreateForm .filing-ownership-grid>.ownership-choice{flex-basis:210px}
body #assetCreateForm .filing-ownership-grid>.transfer-choice-field{flex-basis:330px}
body #assetCreateForm .choice-segment{min-height:36px}
body #assetCreateForm .choice-segment label{min-height:34px;padding:6px 8px}
body #assetCreateForm .filing-purchase-grid{grid-template-columns:repeat(auto-fit,minmax(150px,180px))}
body #assetCreateForm .filing-purchase-choice{grid-column:span 2}
body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap){grid-column:span 2;min-width:0}
body #assetCreateForm .filing-quantity-layout{display:flex;align-items:center;gap:16px}
body #assetCreateForm .procurement-quantity-field{flex:0 0 110px;min-width:0;margin:0}
body #assetCreateForm .filing-quantity-layout>p{max-width:860px;margin:0;line-height:1.7;font-size:13px;color:#56718e}
body #assetCreateForm .filing-nameplate-step{padding:12px}
body #assetCreateForm .filing-nameplate-step>.form-section-title{margin-top:0}
body #assetCreateForm .upload-box-preview{min-height:120px}
body #assetCreateForm :is(#acCategoryInfo,#acTagRequirementWrap)[hidden]{display:none!important}
@media(max-width:1100px){body #assetCreateForm .procurement-core-grid{grid-template-columns:repeat(6,minmax(0,1fr))}body #assetCreateForm .procurement-core-grid>label:has(#acName){grid-column:span 2}}
@media(max-width:920px),(pointer:coarse){
 body #assetCreateForm .procurement-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #assetCreateForm .procurement-core-grid>label{grid-column:span 1!important}
 body #assetCreateForm .procurement-core-grid>label:has(#acName),body #assetCreateForm .procurement-core-grid>.filing-tag-requirement{grid-column:1/-1!important}
 body #assetCreateForm :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=file]),select){height:44px;min-height:44px;font-size:16px}
 body #assetCreateForm .filing-purchase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #assetCreateForm .filing-ownership-grid>:is(label,fieldset){flex:1 1 160px}
 body #assetCreateForm .filing-label-text{min-height:42px}
 body #assetCreateForm .filing-category-layout{grid-template-columns:minmax(0,1fr)}
 body #assetCreateForm .filing-quantity-layout{align-items:start;flex-wrap:wrap;gap:8px}
 body #assetCreateForm .filing-quantity-layout>p{font-size:14px}
 body #assetCreateForm .choice-segment label{min-height:42px}
}

/* Uniform label/control rows for plain, badged and conditional inputs. */
body #assetCreateForm :is(.procurement-core-grid,.filing-purchase-grid)>label,
body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap){display:grid;grid-template-rows:32px 36px auto;gap:4px;align-items:end}
body #assetCreateForm :is(.procurement-core-grid,.filing-purchase-grid)>label>:is(input:not([type=hidden]),select),
body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap)>:is(select,.purchase-channel-picker){grid-row:2;margin:0;align-self:start}
body #assetCreateForm :is(.procurement-core-grid,.filing-purchase-grid)>label>.filing-label-text,
body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap)>label{min-height:0;height:32px;margin:0;align-self:end}
body #assetCreateForm :is(.procurement-core-grid,.filing-purchase-grid)>label>.field-help,
body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap)>.field-help{grid-row:3;margin:0}
body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap)>label .filing-label-text{height:32px;min-height:0;align-content:end}
@media(max-width:920px),(pointer:coarse){
 body #assetCreateForm :is(.procurement-core-grid,.filing-purchase-grid)>label,
 body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap){grid-template-rows:42px 44px auto}
 body #assetCreateForm :is(.procurement-core-grid,.filing-purchase-grid)>label>.filing-label-text,
 body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap)>label,
 body #assetCreateForm :is(#acSupplierWrap,#acPlatformWrap)>label .filing-label-text{height:42px}
}
