/* Dense desktop workspace: keep related fields and actions in one sight line. */
.page-heading{padding-top:22px;padding-bottom:18px}
.page-heading h1{font-size:28px}
.page-heading .page-description{margin-top:8px}
.topbar{min-height:46px;height:46px}
.has-form-page .page-heading{padding-top:17px;padding-bottom:12px}
.has-form-page .page-description{margin-bottom:0}
.form-section-nav{display:flex;align-items:center;gap:5px;flex:none;padding:0 26px 10px;border-bottom:1px solid var(--line);background:#fff}
.form-section-nav button{border:0;background:#fff;color:var(--muted);font:inherit;font-size:12px;padding:7px 12px;cursor:pointer;border-bottom:2px solid transparent}
.form-section-nav button:hover,.form-section-nav button:focus-visible{background:#f7eef1;color:var(--accent)}
.form-section-nav button:active{background:#ead4dc}
.form-section-nav button.active{color:var(--accent);border-bottom-color:var(--accent)}
.form-page-scroll{padding:15px 26px 22px;flex:1}
.form-page-scroll>.product-form{max-width:none}
.form-page-scroll .product-section,.product-detail .product-section{margin-bottom:16px;padding-top:0;margin-top:0}
.form-page-scroll .product-section-heading{padding-bottom:7px;margin-bottom:10px;min-height:23px}
.form-page-scroll .product-section-hint{margin-bottom:8px;line-height:1.55}
.form-page-scroll .form-grid{gap:10px 14px}
.form-page-scroll .field{gap:5px;min-width:0}
.form-page-scroll .field-label{font-size:13px;line-height:1.4}
.form-page-scroll .field-hint{font-size:12px;line-height:1.45}
.form-page-scroll .field input,.form-page-scroll .field select{min-height:34px;padding:6px 8px;font-size:14px}
.form-page-scroll .field input:not([type=checkbox]):not([type=radio]),.form-page-scroll .field select,.form-page-scroll .field textarea{font-size:14px}
.form-page-scroll .field textarea{min-height:62px;padding:8px;font-size:14px;line-height:1.6}
.form-page-scroll .product-readonly{min-height:32px;padding:6px 0}
.form-page-scroll .product-cascade{display:contents}
.form-page-scroll .product-form-context{padding-bottom:9px;margin-bottom:12px;line-height:1.5;gap:12px}
.form-page-scroll .product-numbering-preview{padding:9px 12px}
.form-page-scroll .product-section .notice{margin-top:10px}
.form-page-footer{padding:10px 26px}
.form-page-scroll .introduction-editor-body{min-height:340px}
.form-page-scroll .content-full-preview{min-height:400px}
.form-page-scroll .product-media-sections{display:grid;grid-template-columns:minmax(0,1fr);gap:0 22px;align-items:start}
.form-page-scroll .product-media-section{min-width:0}
.form-page-scroll .product-media-section:first-child{padding-top:0}
.form-page-scroll .product-media-gallery{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;max-width:none}
.form-page-scroll .product-media-gallery.product-media-models{grid-template-columns:minmax(180px,230px)}
#batch-edit-form [data-batch-media-draft]>.product-media-sections{grid-template-columns:minmax(180px,1fr) minmax(0,4fr)}
.form-page-scroll .product-media-preview{max-height:140px}
.form-page-scroll .product-media-empty{padding:13px 10px;min-height:42px}
.form-page-scroll .product-media-upload{gap:7px;margin-top:7px;padding-top:7px;flex-wrap:wrap}
#product-edit-form{display:grid;grid-template-columns:160px minmax(0,1fr);column-gap:22px;align-items:start}
#product-edit-form>*{grid-column:1/-1;min-width:0}
#product-edit-form>.product-section:first-child{grid-column:1;grid-row:1}
#product-edit-form>.product-section:nth-child(2){grid-column:2;grid-row:1}
#product-edit-form>.product-section:nth-child(2)>.form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#product-edit-form .product-photo-editor{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
#product-edit-form .product-photo-preview{width:144px;height:144px;flex:none}
#product-edit-form .product-photo-controls>strong{font-size:12px;line-height:1.5}
#product-edit-form .product-photo-controls p{font-size:12px;margin:7px 0;line-height:1.5}
#batch-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;align-items:start}
#batch-edit-form>.product-section:first-child,#batch-edit-form>.product-form-context,#batch-edit-form>[data-batch-media-draft]{grid-column:1/-1}
#batch-edit-form>.product-section:has([name=notes]){grid-column:1/-1}
.drawer-body .record-row{padding-top:8px;padding-bottom:8px;min-height:0}
.drawer-body .detail-item{padding-top:7px;padding-bottom:7px}
.drawer-body .detail-grid{row-gap:0}
.drawer-body .product-hero{margin-bottom:15px}
.drawer-body .product-metrics{padding-top:12px;padding-bottom:12px;margin-top:13px;margin-bottom:16px}
.drawer-body .product-tabs{margin-bottom:18px}
.drawer-body .bundle-section{margin-bottom:17px}
.drawer-body .bundle-section-heading{padding-bottom:8px;margin-bottom:11px}
.drawer-body .bundle-metrics{padding:12px 0;margin-bottom:16px}
.drawer-body .bundle-record{padding:8px 0}
.drawer-body .bundle-component{padding:11px;margin-bottom:10px}
.drawer-body .bundle-component-heading{margin-bottom:10px}
.drawer-body .form-grid{gap:12px 18px}
.data-table .batch-expansion-cell{padding:0 8px 6px 46px!important}
.batch-expansion-heading{gap:12px;padding:5px 0;margin-top:3px;border-top-width:1px;height:32px;min-height:32px}
.batch-expansion-heading>div{gap:12px;white-space:nowrap;overflow:hidden}
.batch-expansion-heading strong{font-size:11px;max-width:440px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.batch-expansion-heading span{font-size:10px}
.batch-expansion-heading .btn{min-height:24px;padding:3px 8px;font-size:10px;flex:none}
.data-table .batch-expansion-table th,.data-table .batch-expansion-table td{height:31px;padding:4px 9px!important;line-height:1.5;font-size:13px}
.data-table .batch-expansion-table th{height:30px;font-size:12px}
.batch-expansion .table-column-tools{display:inline-flex;margin:0 0 0 5px;min-height:0;padding:0;vertical-align:middle}
.batch-expansion .table-column-tools button{padding:0;min-height:22px;font-size:12px}
.data-table{font-size:13px}
.data-table>thead>tr>th,.data-table .sort-header{font-size:12px}
.data-table>tbody>tr:not(.batch-expansion)>td{font-size:13px}
.data-table .product-name,.data-table .name-text,.data-table .row-actions .text-button,.data-table .batch-toggle{font-size:13px}
.data-table .cost-value{font-size:13px}
.form-page-scroll .product-section-heading .section-title,.product-detail .product-section-heading .section-title{font-size:14px}
.form-page-scroll .product-section-hint{font-size:12px}
@media(max-width:1279px){
 #product-edit-form{grid-template-columns:132px minmax(0,1fr);column-gap:16px}
 #product-edit-form>.product-section:nth-child(2)>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #product-edit-form .product-photo-preview{width:120px;height:120px}
 .form-page-scroll{padding-inline:20px}.form-section-nav{padding-inline:20px;gap:0}.form-section-nav button{padding-inline:9px}
}
@media(min-width:1800px){
 #product-edit-form{grid-template-columns:190px minmax(0,1fr)}
 #product-edit-form .product-photo-preview{width:172px;height:172px}
 #batch-edit-form .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Compact spacing must retain readable field labels and supporting copy. */
.product-detail .product-label,.product-detail .product-section-hint,.product-detail .product-section-total,.product-detail .product-batch-meta>span,.product-detail .product-batch-head>span,.product-detail .product-calendar,.product-detail .product-row-note,.product-detail .product-footer-note{font-size:12px;color:#706577}
.product-detail .product-hero-meta,.product-detail .product-unfilled,.product-detail .product-back-link,.product-detail .product-text-button,.product-detail .product-table,.product-detail .product-attachment-list a,.product-detail .product-tabs .tab{font-size:13px}
.product-detail .product-table th,.product-detail .product-metrics>div>span,.product-detail .product-metrics small{font-size:12px}
.product-media-count,.product-media-caption strong,.product-media-caption .text-button,.product-media-filename,.product-media-download,.product-media-empty,.product-media-upload>label>span,.product-media-upload input,.product-media-upload .btn{font-size:12px}
.product-form .product-readonly,.product-form-context .mono,.product-numbering-preview small,.product-numbering-preview .btn{font-size:12px}
