/* Goods workspace: scoped layout, consistent controls and category measurements. */
body .modal-backdrop.online-modal-backdrop{padding:18px!important;place-items:center!important}
body .online-add-modal.goods-form-compact{width:min(1280px,100%)!important;max-width:1280px!important;height:calc(100dvh - 36px)!important;max-height:calc(100dvh - 36px)!important;margin:0!important;padding:0!important;overflow:auto!important;border-radius:16px!important;background:#f6f8fb!important;scroll-padding-top:92px;scroll-padding-bottom:100px}
body .online-add-modal.goods-form-compact>.modal-header{position:sticky!important;top:0;z-index:20;background:#fff!important;border:0!important;border-bottom:1px solid #dbe2ec!important;border-radius:0!important;margin:0!important;padding:18px 24px!important}
body .online-add-modal.goods-form-compact>.online-form-layout{padding:20px 24px!important;display:grid!important;grid-template-columns:minmax(230px,300px) minmax(0,1fr)!important;gap:20px!important;align-items:start!important;overflow:visible!important}
body .online-add-modal.goods-form-compact .online-form-main{min-width:0;display:grid;gap:18px}
body .online-add-modal.goods-form-compact .form-section{background:#fff!important;border:1px solid #dbe2ec!important;box-shadow:none!important;border-radius:12px!important;padding:18px!important;margin:0!important;min-width:0}
body .online-add-modal.goods-form-compact legend{font-size:15px!important;font-weight:700!important;color:#172b4d!important;padding:0 6px!important}
body .online-add-modal.goods-form-compact .online-basic-grid,body .online-add-modal.goods-form-compact .online-details-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
body .online-add-modal.goods-form-compact .wide-field{grid-column:1/-1!important;min-width:0}
body .online-add-modal.goods-form-compact label,body .online-add-modal.goods-form-compact .dictionary-combo-label{font-size:13px!important;font-weight:600!important;color:#344054!important;line-height:1.45!important;min-width:0}
body .online-add-modal.goods-form-compact input:not([type=checkbox]):not([type=file]),body .online-add-modal.goods-form-compact select,body .online-add-modal.goods-form-compact textarea{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:40px!important;font-size:14px!important;font-weight:400!important;background:#fff!important;color:#172b4d!important;border:1px solid #b8c5d5!important;border-radius:7px!important;padding:9px 11px!important}
body .online-add-modal.goods-form-compact input:focus,body .online-add-modal.goods-form-compact select:focus,body .online-add-modal.goods-form-compact textarea:focus{outline:2px solid #91baff!important;outline-offset:1px;border-color:#2563eb!important}
body .online-add-modal.goods-form-compact .goods-dimension-fields{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;display:grid!important;gap:12px!important}
body .online-add-modal.goods-form-compact .goods-dimension-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body .online-add-modal.goods-form-compact .goods-dimension-fields label{display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:6px!important}
body .online-add-modal.goods-form-compact .online-photo-section{position:sticky;top:94px}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body .online-add-modal.goods-form-compact .photo-empty{min-height:110px!important;font-size:13px!important;font-weight:400!important}
body .online-add-modal.goods-form-compact .online-photo-header{display:flex;flex-wrap:wrap;gap:10px}
body .online-add-modal.goods-form-compact .online-photo-header button{min-width:0!important;padding:9px 14px!important;font-size:13px!important}
body .online-add-modal.goods-form-compact .brand-quick-settings{margin-top:5px!important}
body .online-add-modal.goods-form-compact .brand-quick-settings>button{min-height:28px!important;padding:4px 8px!important;background:transparent!important;box-shadow:none!important;color:#52627a!important;font-size:12px!important}
body .online-add-modal.goods-form-compact .status-channel-inline{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;padding:12px 0 0!important;border-top:1px solid #e6ebf1}
body .online-add-modal.goods-form-compact .status-channel-inline>label{flex:0 1 auto!important}
body .online-add-modal.goods-form-compact .online-purchase-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
body .online-add-modal.goods-form-compact .pricing-cost-summary{display:flex!important;flex-wrap:wrap!important;gap:10px 18px!important;padding:12px!important;background:#f3f6fb!important;border-radius:8px!important;font-size:12px!important}
body .online-add-modal.goods-form-compact .pricing-editor-table-wrap{overflow-x:auto;max-width:100%}
body .online-add-modal.goods-form-compact .pricing-editor-table-wrap .data-table{min-width:560px!important;width:100%!important}
body .online-add-modal.goods-form-compact .pricing-editor-table-wrap .pagination-bar,body .online-add-modal.goods-form-compact .pricing-editor-table-wrap .mobile-table-controls{display:none!important}
body .online-add-modal.goods-form-compact>.modal-actions{position:sticky!important;bottom:0;z-index:20;width:auto!important;margin:0!important;padding:12px 24px!important;border-top:1px solid #dbe2ec!important;background:#fff!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;box-shadow:0 -4px 14px #172b4d08}
body .online-add-modal.goods-form-compact>.modal-actions>button{min-height:42px!important;min-width:96px!important;font-size:14px!important}
.items-core-page .module-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:12px!important;padding:16px!important}
.items-core-page .module-toolbar>label{flex:1 1 145px!important;min-width:130px!important;max-width:230px!important;font-size:12px!important;color:#344054!important}
.items-core-page .module-toolbar>label:first-child{flex:2 1 230px!important;max-width:380px!important}
.items-core-page .module-toolbar input,.items-core-page .module-toolbar select{min-height:40px!important;font-size:13px!important;min-width:0!important;width:100%!important}
.items-core-page .toolbar-actions{margin-left:auto;display:flex!important;align-items:center;gap:10px!important}
.goods-maintenance-tools{position:relative}.goods-maintenance-tools>summary{list-style:none;cursor:pointer;border:1px solid #ccd5e1;border-radius:8px;padding:10px 14px;background:#fff;font-size:13px;font-weight:600}
.goods-maintenance-tools>div{position:absolute;right:0;top:100%;z-index:50;min-width:180px;padding:8px;display:grid;gap:6px;background:white;border:1px solid #dbe2ec;box-shadow:0 8px 24px #172b4d20;border-radius:8px}
.items-core-page .online-table-title-row{gap:8px}.items-core-page .two-line-cell>small{color:#52627a!important;font-size:12px!important}
.items-core-page .table-listing-checkbox{width:18px!important;height:18px!important;accent-color:#2563eb}
.measurement-profile-editor{border:1px solid #dbe2ec;padding:16px;border-radius:10px;background:#fff}.measurement-profile-editor select{width:100%;margin-bottom:16px}.measurement-template-editor{margin-top:16px}
@media(max-width:1050px){body .online-add-modal.goods-form-compact>.online-form-layout{grid-template-columns:minmax(0,1fr)!important}body .online-add-modal.goods-form-compact .online-photo-section{position:static}body .online-add-modal.goods-form-compact .online-image-grid.main-gallery{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:620px){body .modal-backdrop.online-modal-backdrop{padding:0!important}body .online-add-modal.goods-form-compact{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}body .online-add-modal.goods-form-compact>.online-form-layout{padding:14px!important}body .online-add-modal.goods-form-compact .online-basic-grid,body .online-add-modal.goods-form-compact .online-details-grid,body .online-add-modal.goods-form-compact .online-purchase-grid{grid-template-columns:minmax(0,1fr)!important}body .online-add-modal.goods-form-compact .goods-dimension-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .online-add-modal.goods-form-compact .online-image-grid.main-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .online-add-modal.goods-form-compact>.modal-header,body .online-add-modal.goods-form-compact>.modal-actions{padding:12px 14px!important}.measurement-profile-editor>div{grid-template-columns:1fr!important}}

body .online-add-modal.goods-form-compact .goods-measurement-guide[open]{display:block;border-top:1px solid #e0e6ef;padding-top:12px}
body .online-add-modal.goods-form-compact .goods-measurement-guide>summary{grid-column:1/-1;color:#24416b;padding:4px 0}
body .online-add-modal.goods-form-compact .goods-measurement-content>dl{margin:0;align-self:center;font-size:13px;line-height:1.5}
body .online-add-modal.goods-form-compact .goods-measurement-guide dt{font-weight:600;margin-top:12px;color:#243b57}
body .online-add-modal.goods-form-compact .goods-measurement-guide dd{margin:3px 0;color:#52627a}
body .online-add-modal.goods-form-compact .goods-measurement-content>img{max-height:350px!important}
@media(max-width:620px){body .online-add-modal.goods-form-compact .goods-measurement-content{grid-template-columns:1fr}}
/* Photos are a sibling of the form layout, so the fields use the full content width. */
body .online-add-modal.goods-form-compact>.online-form-layout{grid-template-columns:minmax(0,1fr)!important}
body .online-add-modal.goods-form-compact>.online-photo-section{position:static!important;margin:18px 24px 0!important;width:auto!important;flex:0 0 auto!important}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;max-height:none!important;overflow:visible!important;grid-auto-rows:auto!important}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery{grid-template-columns:repeat(6,minmax(0,1fr))!important}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery .online-image-tile{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;position:relative!important;overflow:hidden!important}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery .image-frame{height:145px!important;min-height:145px!important;max-height:145px!important;aspect-ratio:auto!important}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery .image-frame img{height:100%!important;width:100%!important;object-fit:contain!important}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery .photo-actions{display:flex!important;flex-wrap:wrap!important;gap:4px!important;padding:6px!important}
body .online-add-modal.goods-form-compact .online-image-grid.main-gallery .photo-actions button{min-width:28px!important;width:auto!important;min-height:28px!important;padding:4px 6px!important;font-size:12px!important}
body .online-add-modal.goods-form-compact .online-basic-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body .online-add-modal.goods-form-compact .goods-dimension-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:1050px){body .online-add-modal.goods-form-compact .online-image-grid.main-gallery{grid-template-columns:repeat(4,minmax(0,1fr))!important}body .online-add-modal.goods-form-compact .online-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body .online-add-modal.goods-form-compact>.online-photo-section{margin:14px 14px 0!important}body .online-add-modal.goods-form-compact .online-image-grid.main-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .online-add-modal.goods-form-compact .online-basic-grid{grid-template-columns:minmax(0,1fr)!important}body .online-add-modal.goods-form-compact .goods-dimension-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

body .online-add-modal.goods-form-compact .goods-measurement-content{display:grid;grid-template-columns:minmax(140px,240px) minmax(0,1fr);gap:20px;align-items:center;margin-top:10px}
@media(max-width:620px){body .online-add-modal.goods-form-compact .goods-measurement-content{grid-template-columns:1fr}}
