.template-editor{min-width:0}.template-editor-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.template-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.template-preview{min-width:0}.template-grid-scroll{max-width:100%;max-height:55vh;overflow:auto;border:1px solid var(--border,#e2e8f0);border-radius:12px}.template-grid{width:max-content;min-width:100%;border-collapse:collapse}.template-grid th{position:sticky;top:0;background:#f3f7fc;z-index:1}.template-grid td,.template-grid th{border:1px solid #e2e8f0;padding:10px;max-width:300px;overflow-wrap:anywhere;white-space:pre-wrap}.template-column-head{display:block;width:100%;min-height:80px;text-align:left;padding:8px;border:0;background:transparent;cursor:pointer}.template-column-head span{display:block;font-size:16px;font-weight:600}.template-column-head small{display:block;margin-top:8px;color:#526175;overflow-wrap:anywhere}.template-column-head:focus-visible{outline:0;background:#edf4fc;box-shadow:inset 0 -4px #267ef0}.template-column-head:focus-visible span{text-decoration:underline;text-underline-offset:4px}.template-row-number{min-width:52px!important}.template-column-config{padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;display:grid;gap:14px;min-width:0}.template-secondary{margin:16px 0}.template-display-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:24px}.template-display-field{display:grid;grid-template-columns:minmax(170px,1fr) minmax(120px,1fr) auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e2e8f0}.template-display-field input{min-width:0}.template-customer-preview{position:sticky;top:0;align-self:start;background:#f8fafc;padding:20px;border-radius:12px;min-width:0}.template-values{display:grid;gap:12px}.template-values>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:14px}.template-values dt{color:#526175}.template-values dd{margin:0;overflow-wrap:anywhere}.template-editor .btn,.template-display-layout .btn{min-height:44px}.template-display-layout .checkbox{min-height:44px}.template-grid-scroll:focus-within{outline-offset:2px}@media(max-width:1000px){.template-editor-layout,.template-display-layout{grid-template-columns:minmax(0,1fr)}.template-editor-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.template-column-config{position:static}.template-display-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.template-customer-preview{position:static}}@media(max-width:520px){.template-editor-toolbar{grid-template-columns:1fr}.template-values>div{grid-template-columns:1fr;gap:4px}.template-editor-layout{gap:12px}}

.template-column-head.invalid{background:#fff4f4;border-bottom:2px solid #b42318}.template-column-error{color:#b42318;font-weight:500}

.template-grid{table-layout:fixed}.template-grid td,.template-grid th{max-width:none}.template-column-head.selected{background:#edf4fc;box-shadow:inset 0 -2px #267ef0;border-radius:6px 6px 0 0}.template-column-head.selected:focus-visible{box-shadow:inset 0 -4px #267ef0}.template-column-head.dragging{opacity:.5}.template-column-head.drop-target{box-shadow:inset 4px 0 #267ef0}.template-column-resize{position:absolute;right:-1px;top:0;bottom:0;width:16px;cursor:col-resize;touch-action:none;z-index:2}.template-column-resize{outline:0;background:transparent}.template-column-resize::after{content:"";position:absolute;top:25%;bottom:25%;left:7px;width:2px;border-radius:2px;background:#267ef0;opacity:0}.template-column-resize:hover::after,.template-column-resize:active::after{opacity:1}.template-column-resize:focus-visible::after{opacity:1;top:15%;bottom:15%;width:3px;box-shadow:0 0 0 2px #fff}.template-column-label-editor{width:100%;min-width:0;min-height:44px;box-sizing:border-box}.template-column-config .actions{flex-wrap:wrap}

.template-column-head[hidden]{display:none}

/* Explicitly ignored columns stay visible for checking the source file. */
.template-grid th.template-column-ignored,.template-grid td.template-column-ignored{background:#f1f3f5;color:#66717f}
.template-column-ignored .template-column-head,.template-column-ignored .template-column-head small{color:#66717f}
.template-column-ignored .template-column-head.selected,.template-column-ignored .template-column-head:focus-visible{background:#e7ebef}
.template-ignore-tag{display:inline-block;margin-top:6px;padding:2px 8px;border:1px solid #cbd2da;border-radius:4px;background:#e4e8ed;color:#526175;font-size:12px;font-style:normal;font-weight:500}
.template-inline-field{padding:16px;margin:0 0 16px;border:1px solid #bfd2ed;border-radius:10px;background:#f5f8fc}
.template-inline-field[hidden]{display:none}
.template-inline-field h3{margin:0 0 12px}
.template-inline-field .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.template-inline-field .actions{margin-top:12px}
.template-inline-field-error{color:#b42318;white-space:pre-wrap}
.template-action-error{color:#b42318;border-color:#edbbb6;background:#fff4f4}
#template-action-feedback[hidden]{display:none}
@media(min-width:1001px){
 .template-editor-layout{height:auto;align-items:stretch}
 .template-preview{position:relative;min-height:0}
 .template-preview #template-table{position:absolute;inset:0;min-height:0}
 .template-preview .template-grid-scroll{height:100%;max-height:none;box-sizing:border-box}
 .template-column-config{height:auto;min-height:0;box-sizing:border-box;overflow:visible;align-content:start}
}
@media(max-width:700px){.template-inline-field .form-grid{grid-template-columns:minmax(0,1fr)}}

#template-table{position:relative}.template-column-head{position:relative}.template-column-head.dragging{background:#edf4fc;opacity:.6;cursor:grabbing}.template-column-head.drop-before{box-shadow:inset 3px 0 #267ef0}.template-column-head.drop-after{box-shadow:inset -3px 0 #267ef0}.template-drag-feedback{position:absolute;bottom:12px;left:12px;right:12px;width:fit-content;max-width:calc(100% - 24px);padding:8px 12px;background:#fff;border:1px solid #bfcee0;border-radius:8px;box-shadow:0 3px 12px #22354b20;color:#243b53;font-size:13px;line-height:1.5;z-index:5;pointer-events:none;overflow-wrap:anywhere}.template-drag-feedback[hidden]{display:none}.template-column-resize.resizing::after{opacity:1;top:0;bottom:0;width:3px}

.order-layout-fieldset{border:0;margin:0;padding:0;min-width:0}.order-layout-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin:16px 0}.order-layout-list{max-height:400px;overflow:auto}.order-layout-row{display:grid;grid-template-columns:44px minmax(100px,1fr) minmax(100px,1fr) auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e2e8f0}.order-layout-row input{min-width:0}.order-layout-handle{cursor:grab;min-height:44px;padding:4px;font-size:20px}.order-layout-row.layout-dragging{opacity:.5;background:#edf4fc}.order-layout-row.layout-drop-before{box-shadow:inset 0 3px #267ef0}.order-layout-row.layout-drop-after{box-shadow:inset 0 -3px #267ef0}.order-layout-preview{min-width:0;max-height:75vh;overflow:auto;background:#f8fafc;padding:12px;border-radius:12px}.order-detail-custom-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.order-detail-custom-values .kv{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:10px}.order-detail-custom-values dd{margin:0;overflow-wrap:anywhere}.order-layout-row .actions{flex-wrap:wrap}.order-layout-row .btn,.order-layout-row .checkbox{min-height:44px}@media(max-width:1100px){.order-layout-editor{grid-template-columns:minmax(0,1fr)}}@media(max-width:520px){.order-layout-row{grid-template-columns:44px minmax(0,1fr)}.order-layout-row>input,.order-layout-row>.actions{grid-column:2}.order-detail-custom-values{grid-template-columns:1fr}}

.order-layout-row .checkbox{min-width:0}.order-layout-row .checkbox span{overflow-wrap:anywhere}

/* Configurable detail columns must not inherit the legacy fixed eight-column widths. */
.order-detail-custom-grid{grid-template-columns:minmax(0,1fr)}
.order-detail-custom-grid>*,[data-detail-section],.order-detail-product-table{min-width:0;max-width:100%}
.order-detail-product-table .table-wrap{max-width:100%;overflow:auto}
.order-detail-product-table table{table-layout:auto;width:max-content;min-width:100%;white-space:normal}
.order-detail-product-table th,.order-detail-product-table td{min-width:144px;max-width:260px;padding:12px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.order-detail-product-table .table-cell-value{min-width:0;max-width:260px;white-space:pre-wrap;overflow-wrap:anywhere}
.order-detail-product-table .order-product-meter{min-width:120px}
/* Narrow configuration column, one scroll area per pane, fixed preview heading/footer. */
.modal-body.order-layout-body{display:flex;flex-direction:column;min-height:0;max-height:none;overflow:hidden}
.order-layout-body>.notice{flex:none;margin-bottom:0}
.order-layout-body>.error{flex:none;max-height:120px;overflow:auto}
.order-layout-fieldset{display:flex;flex-direction:column;flex:1;min-height:0}
.order-layout-editor{grid-template-columns:minmax(360px,440px) minmax(0,1fr);flex:1;min-height:0;gap:16px;margin:16px 0}
.order-layout-config{display:flex;flex-direction:column;gap:16px;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:4px}
.order-layout-config>.panel{flex:none}
.order-layout-config .panel-head{padding:14px 16px}
.order-layout-list{max-height:none;overflow:visible;padding:8px 16px}
.order-layout-row{grid-template-columns:44px minmax(0,1fr) auto;gap:6px 10px;padding:10px 0}
.order-layout-row>.order-layout-handle{grid-column:1;grid-row:1/3;align-self:center;width:44px}
.order-layout-row>.checkbox{grid-column:2;grid-row:1;min-height:24px}
.order-layout-row>[data-layout-label]{grid-column:2;grid-row:2;min-height:36px}
.order-layout-row>.actions{grid-column:3;grid-row:1/3;display:flex;flex-direction:row;gap:6px;align-self:center}
.order-layout-row>.actions .btn{padding:6px 10px;min-width:44px}
.order-layout-preview{display:flex;flex-direction:column;min-height:0;max-height:none;overflow:hidden;padding:12px}
.order-layout-preview-heading{flex:none;padding:4px 4px 12px}
.order-layout-preview-heading h3{margin-bottom:6px}
.order-layout-preview-heading p{margin-bottom:0}
#order-layout-preview{display:block;min-height:0;overflow:auto;overscroll-behavior:contain;flex:1;padding:4px}
#order-layout-preview>[data-detail-section]{margin-bottom:16px}
.order-layout-fieldset>.actions{flex:none}
@media(max-width:1150px){.order-detail-custom-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1000px){
 .modal-body.order-layout-body{overflow:auto;display:block}
 .order-layout-editor{grid-template-columns:minmax(0,1fr);display:grid;min-height:auto}
 .order-layout-config{overflow:visible;padding:0}
 .order-layout-preview{max-height:70dvh;min-height:320px}
}
@media(max-width:768px){
 .order-detail-product-table table{display:block;width:100%;min-width:0}
 .order-detail-product-table th,.order-detail-product-table td{min-width:0;max-width:none}
 .order-detail-product-table .table-cell-value{max-width:none}
}
@media(max-width:520px){
 .order-layout-row{grid-template-columns:44px minmax(0,1fr)}
 .order-layout-row>.actions{grid-column:2;grid-row:3;flex-direction:row;justify-content:flex-start}
 .order-layout-row>[data-layout-label]{min-height:44px}
}

[data-detail-section] .panel-head h3,.order-detail-custom-values dt{min-width:0;overflow-wrap:anywhere}

/* The editor previews the same card, typography and spacing as the live detail page. */
.order-detail-canvas{min-width:0;max-width:100%;container-type:inline-size}
.order-import-fields-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-bottom:16px;border:1px solid var(--border);border-radius:10px;background:var(--white);font-size:14px}
.order-import-fields-hint p{margin:0;line-height:1.6}
.order-import-fields-hint .btn{flex:none;min-height:44px}
.page-import-fields[hidden]{display:none}
.page-import-fields .panel-body{padding:12px 16px}
.page-import-fields .panel-body>p{margin:0 0 10px;line-height:1.6}
.page-import-field-options{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.page-import-field-choice{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0;cursor:pointer}
.page-import-field-choice input{flex:none}
.page-import-field-choice span{min-width:0;overflow-wrap:anywhere}
.page-import-field-choice strong{display:block;font-size:14px;font-weight:500;line-height:1.5}
.page-import-field-choice small{display:block;font-size:12px;line-height:1.5}
.page-import-fields #page-import-append{min-height:44px;width:100%}
@media(max-width:600px){.order-import-fields-hint{align-items:stretch;flex-direction:column}.order-import-fields-hint .btn{align-self:flex-start}}
.order-detail-custom-grid{align-items:start}
.order-detail-main-panel [data-detail-section]>.panel{border:0;border-radius:0;box-shadow:none}
.order-detail-sections>[data-detail-section]+[data-detail-section]{border-top:1px solid var(--border)}
.order-detail-code-heading{overflow-wrap:anywhere}
[data-detail-section] .panel-head :is(h2,h3){min-width:0;overflow-wrap:anywhere}
.order-layout-preview{background:transparent;padding:0;border-radius:0}
.order-layout-preview-heading{padding:4px 0 12px}
#order-layout-preview{padding:2px 4px 8px 0}
#order-layout-preview [data-preview-blocked]{opacity:1;cursor:default}
@container(max-width:900px){.order-detail-custom-grid{grid-template-columns:minmax(0,1fr)}}
@container(max-width:660px){.order-detail-progress-summary,.order-detail-custom-values{grid-template-columns:minmax(0,1fr)}}

/* Direct editing uses the detail page itself; business and display changes save separately. */
.order-inline-edit-bar{position:sticky;top:12px;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--white);border:1px solid var(--border);border-radius:8px;padding:16px 20px;margin-bottom:16px}
.order-inline-edit-bar p{margin:6px 0 0}
.order-inline-edit-bar .actions{flex:none}
html.mobile-visual-viewport .order-inline-edit-bar{position:static}
.order-inline-fields{border:0;padding:0;margin:0;min-width:0}
.order-inline-add-items{padding:12px 16px;margin-bottom:16px;border:1px solid var(--border);border-radius:8px;background:var(--white)}
.order-inline-add-items summary{cursor:pointer;padding:4px 0}
.order-inline-add-items .actions{margin-top:12px}
.order-inline-layout-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.order-inline-layout-tools .btn{min-height:44px;font-size:14px;padding:10px 12px}
.order-inline-handle{cursor:grab;min-width:36px}
.order-inline-name{max-width:280px;font:inherit;font-weight:inherit;min-width:0}
.order-inline-fields:has([data-inline-name]) .order-detail-custom-values .kv{grid-template-columns:minmax(0,1fr);gap:8px}
.order-inline-fields [data-inline-layout-kind=product_fields]{min-width:230px}
.order-inline-fields [data-inline-layout-key].inline-dragging{opacity:.5;background:var(--green-pale)}
.order-inline-fields [data-inline-layout-key].inline-drop-before{box-shadow:inset 0 3px var(--green)}
.order-inline-fields [data-inline-layout-key].inline-drop-after{box-shadow:inset 0 -3px var(--green)}
.order-inline-fields [data-inline-layout-kind=product_fields].inline-drop-before{box-shadow:inset 3px 0 var(--green)}
.order-inline-fields [data-inline-layout-kind=product_fields].inline-drop-after{box-shadow:inset -3px 0 var(--green)}
.order-inline-fields [data-preview-blocked]{opacity:1;cursor:default}
.order-inline-fields input,.order-inline-fields select,.order-inline-fields textarea{max-width:100%}
#order-inline-error{margin-bottom:16px}
#order-inline-error[hidden]{display:none}
@media(max-width:780px){.order-inline-edit-bar{position:static;align-items:flex-start;flex-direction:column;padding:14px}.order-inline-layout-tools .btn{min-height:44px}.order-inline-name{font-size:16px}}

/* Keep product-column controls reachable in the mobile layout editor. */
@media(max-width:768px){
 [data-inline-mode=layout] .order-detail-product-table table{display:table;width:max-content;min-width:100%}
 [data-inline-mode=layout] .order-detail-product-table thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}
 [data-inline-mode=layout] .order-detail-product-table tbody{display:table-row-group}
 [data-inline-mode=layout] .order-detail-product-table tr{display:table-row;padding:0;border:0}
 [data-inline-mode=layout] .order-detail-product-table th,[data-inline-mode=layout] .order-detail-product-table tbody>tr>td{display:table-cell;width:auto;min-width:144px;max-width:260px;padding:12px;border-bottom:1px solid var(--border)}
 [data-inline-mode=layout] .order-detail-product-table td::before{display:none}
 [data-inline-mode=layout] .order-detail-product-table .table-cell-value{display:block;width:auto;max-width:260px}
}

.production-records-pages{justify-content:flex-end;padding:16px 0;flex-wrap:wrap}.production-records-pages .btn{min-height:44px}

.template-display-layout{grid-template-columns:minmax(300px,440px) minmax(0,1fr);align-items:start}.template-display-layout>div:first-child{min-width:0;max-height:72vh;overflow:auto;padding-right:8px}.template-customer-preview{max-height:72vh;overflow:auto;background:transparent;padding:0}.template-display-field{grid-template-columns:minmax(100px,1fr) minmax(90px,1fr) auto auto}.template-display-field .checkbox{overflow-wrap:anywhere}.template-customer-preview .order-detail-custom-values{grid-template-columns:minmax(0,1fr)}
@media(max-width:1000px){.template-display-layout{grid-template-columns:minmax(0,1fr)}.template-display-layout>div:first-child,.template-customer-preview{max-height:none;overflow:visible;position:static}}
@media(max-width:520px){.template-display-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

.customer-order-detail{display:grid;gap:20px;min-width:0;background:#f6f8fc;padding:20px;border-radius:16px}.customer-order-section{min-width:0}.customer-order-detail .panel{border-radius:14px;overflow:hidden}.customer-order-detail .panel-head{border-bottom:1px solid #e6ecf5;background:#fff}.customer-order-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px;margin:0}.customer-order-values .kv{display:grid;grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:12px;min-width:0}.customer-order-values dt{color:var(--muted);overflow-wrap:anywhere}.customer-order-values dd{margin:0;min-width:0;overflow-wrap:anywhere}.customer-preview-readonly{grid-template-columns:minmax(0,1fr)}
@media(max-width:700px){.customer-order-detail{padding:12px;gap:12px}.customer-order-values{grid-template-columns:minmax(0,1fr)}}

/* Customer details retain the original blue identity and green delivery cards. */
.customer-order-detail.public-order-overview{padding:0;background:transparent;gap:20px}
.customer-order-detail .customer-order-values{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:12px}
.customer-order-values.public-order-heading .kv{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;text-align:left}
.customer-order-values.public-order-heading dd{font-size:18px;color:var(--public-ink,#18324f)}
.customer-order-values.public-order-heading .order-product-meter{font-size:14px;min-width:0}
.customer-order-detail .public-products-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.customer-order-detail .customer-product-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #d5e1ef;border-radius:12px;box-shadow:0 4px 14px #18324f08}
.customer-product-group{min-width:0;display:grid;align-content:start;gap:10px;margin:0;padding:12px;border-radius:10px}
.customer-product-group dt{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.customer-product-group dd{margin:4px 0 0;min-width:0;overflow-wrap:anywhere;font-size:15px}
.customer-product-identity{background:var(--public-blue-soft,#f0f6ff);border-left:4px solid var(--public-blue,#245fad)}
.customer-product-identity [data-product-field="product.name"] dd{font-size:20px;font-weight:700;color:var(--public-ink,#18324f)}
.customer-product-ordered dd{font-size:22px;font-weight:650}
.customer-product-production{background:var(--public-blue-soft,#f0f6ff)}
.customer-product-delivery,.customer-product-quantities{background:var(--public-teal-soft,#f0f8f5)}
.customer-product-quantities dd{font-size:18px;font-weight:650;color:var(--public-teal,#146b60)}
.customer-product-group .order-product-meter{min-width:0;margin:4px 0 0}
.customer-product-delivery progress{accent-color:var(--public-teal,#146b60)}
.customer-order-detail .customer-product-followup{position:static;grid-column:1/-1;grid-row:auto;border-top:1px solid #e3eaf2;padding:0 12px}
.customer-order-detail .customer-product-followup>summary{position:static;width:auto}
.customer-order-detail .customer-product-followup>summary>span:first-child{flex-basis:auto}
.customer-product-columns{display:none}
.order-layout-binding{display:block;font-size:12px;font-weight:400;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;white-space:normal;margin-top:6px}
.order-layout-binding code{font-size:11px;color:#53667a}
.order-layout-row>.order-layout-binding{grid-column:2/-1;margin:0}
.customer-preview-devices{margin-top:12px;gap:8px;flex-wrap:wrap}
.customer-preview-devices .btn{min-height:44px}
.template-editor-actions{position:sticky;top:0;z-index:4;padding:10px 0;margin:12px 0;background:#fff;border-bottom:1px solid var(--border);gap:8px}
.template-editor-dock{flex:none;position:relative;z-index:4;background:#fff;border-bottom:1px solid var(--border);padding:8px 24px;margin:0;max-height:35vh;max-height:35dvh;overflow:auto}
.template-editor-dock .template-editor-actions{position:static;margin:0;border:0;padding:2px 0;flex-wrap:wrap}
.template-horizontal-controls{position:sticky;top:0;z-index:4;display:grid;gap:4px;width:100%;min-width:0;box-sizing:border-box;padding:6px 0 8px;background:#fff;border-bottom:1px solid var(--border)}
.template-scroll-track{display:flex;align-items:center;gap:8px;min-width:0}
.template-scroll-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;font-size:12px;line-height:1.5;color:#526175}
.template-scroll-caption [data-template-visible-columns]{flex:none;color:#243b53}
.template-horizontal-controls[hidden]{display:none}
input[type=range].template-horizontal-scroll{flex:1;min-width:0;width:0;height:44px;min-height:44px;appearance:none;-webkit-appearance:none;padding:0;border:0;box-shadow:none;background:transparent;cursor:ew-resize;touch-action:pan-y}
input[type=range].template-horizontal-scroll::-webkit-slider-runnable-track{height:10px;border:1px solid #b4c4d8;border-radius:6px;background:#dce6f2}
input[type=range].template-horizontal-scroll::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:36px;height:24px;margin-top:-8px;border:1px solid #1f5da5;border-radius:6px;background:#287cf1}
input[type=range].template-horizontal-scroll::-moz-range-track{height:8px;border:1px solid #b4c4d8;border-radius:6px;background:#dce6f2}
input[type=range].template-horizontal-scroll::-moz-range-thumb{width:34px;height:22px;border:1px solid #1f5da5;border-radius:6px;background:#287cf1}
.template-horizontal-controls [data-template-scroll="-1"] svg{transform:rotate(180deg)}
.template-scroll-track>input[type=range].template-horizontal-scroll{height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.template-horizontal-scroll:focus-visible{outline:2px solid #267ef0;outline-offset:2px;border-radius:4px}
.template-editor .template-grid th{top:var(--template-header-offset,0px)}
.template-editor .template-grid tfoot td{padding:0;border:0;line-height:0;font-size:0}
.modal-body:has(.template-editor-dock){scroll-padding-top:calc(var(--template-dock-height,120px) + 12px)}
.modal-body.template-editor-body{min-height:0;scroll-padding-top:12px}
.template-editor-body :is(.template-grid-scroll,[data-column-resize],[data-template-column],.template-inline-field){scroll-margin-top:12px}
@media(max-width:1000px){.template-horizontal-controls{width:100%}}
@media(max-width:600px){.template-editor-dock{padding:8px 14px}}
.template-column-head .template-column-title{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.template-column-title>span:last-child{flex:1;min-width:36px}
.template-column-head .template-column-drag{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;height:44px;font-size:20px;font-weight:400;color:#60738b;border-radius:4px;cursor:grab;user-select:none;touch-action:none}
.template-column-drag:hover{background:#dce9fa;color:#1f5da5}
.template-column-head.dragging .template-column-drag{cursor:grabbing}
.template-grid th.template-drop-before::before,.template-grid th.template-drop-after::after{content:"";position:absolute;top:0;bottom:0;width:4px;background:#267ef0;z-index:3;pointer-events:none}
.template-grid th.template-drop-before::before{left:0}.template-grid th.template-drop-after::after{right:0}
.template-editor .template-preview{position:sticky;top:var(--template-preview-top,0px);align-self:start;display:flex;flex-direction:column;height:var(--template-preview-height,65vh);min-height:0;background:#fff}
.template-editor .template-preview .template-horizontal-controls{position:relative;top:auto;flex:none}
.template-editor .template-preview #template-table{position:relative;inset:auto;flex:1;min-height:0;overflow:hidden}
.template-editor .template-preview .template-grid-scroll{height:100%;max-height:none;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;clip-path:none;scrollbar-width:auto;touch-action:pan-y}
.template-editor .template-grid-scroll::-webkit-scrollbar{width:10px}
.template-editor .template-grid-scroll::-webkit-scrollbar-thumb{background:#8e9aa8;border-radius:6px}
.template-editor .template-grid-scroll::-webkit-scrollbar-track{background:#f3f6fa}
@media(max-width:1000px){.template-editor .template-preview{position:relative;top:auto}.template-scroll-caption>span:last-child{display:none}}

.template-choice-actions{margin-top:8px}.import-commit-actions{margin:16px 0;padding:12px 0;justify-content:flex-start}
.customer-order-preview-frame{display:block;box-sizing:content-box;width:390px;height:680px;max-width:none;flex:none;border:1px solid #cbd9ea;border-radius:12px;background:#f5f8fc;margin:0 auto}
.customer-order-preview-frame[data-device=pc]{width:1280px;border-radius:8px}
.order-backend-preview{box-sizing:border-box;min-width:0;width:100%;padding:16px}
#order-layout-preview:has(.customer-order-preview-frame){padding:8px;overflow:auto;min-height:240px}
@media(min-width:1024px){
 .customer-order-detail .customer-product-columns{display:grid;grid-template-columns:repeat(var(--customer-product-columns),minmax(120px,1fr));gap:12px;padding:14px 16px}
 .customer-product-grid{overflow:auto}
 .customer-order-detail .customer-product-grid>.public-products-list{gap:0;border:1px solid #d5e1ef;border-radius:0 0 10px 10px;width:max-content;min-width:100%}
 .customer-order-detail .customer-product-card{grid-template-columns:repeat(var(--customer-product-columns),minmax(120px,1fr));width:100%;gap:12px;padding:16px;box-shadow:none;border:0;border-bottom:1px solid #e3eaf2;border-radius:0}
 .customer-order-detail .customer-product-followup{grid-column:auto;grid-row:auto;border-top:0;padding:0}
 .customer-order-detail .customer-product-followup[open]{grid-column:1/-1}
 .customer-order-detail .customer-product-followup[open]>summary{position:static;width:auto}
}
@media(max-width:600px){
 .customer-order-detail .customer-order-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .customer-order-detail .customer-order-values>.kv:first-child{grid-column:1/-1}
 .customer-order-values.public-order-heading dd{font-size:17px}
 .customer-order-detail .customer-product-card{grid-template-columns:minmax(0,1fr);padding:12px}
 .customer-product-group{padding:12px}
 .customer-product-identity [data-product-field="product.name"] dd{font-size:18px}
}
.page-view-tabs{margin:8px 0}.page-view-tabs .btn{min-height:44px}.order-fullscreen .modal-actions:has(#page-undo){position:sticky;bottom:0;background:#fff;z-index:5;flex-wrap:wrap}
.modal-body:has(.template-editor):not(.template-editor-body):not(:has(.template-editor-dock)){scroll-padding-top:96px}.template-grid-scroll,[data-column-resize],[data-template-column]{scroll-margin-top:96px}
.modal-body:has(.template-editor-dock) :is(.template-grid-scroll,[data-column-resize],[data-template-column],.template-inline-field){scroll-margin-top:12px}


/* Keep import controls consistent with the existing backend form styles. */
#visual-import .field{gap:8px}
#visual-import .actions{gap:8px}
#visual-import .notice{align-self:start;margin:0;line-height:1.6}

/* Shared order controls: one size across pages, editor panels and modal actions. */
.order-control-surface,.public-order-page{
 --order-control-height:44px;--order-control-font-size:14px;--order-control-radius:4px;
 --order-control-border:var(--control-border,#dce1e7);--order-control-focus:var(--green,#267ef0);
}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) select{
 height:var(--order-control-height);min-height:var(--order-control-height);min-width:0;
 font-family:inherit;font-size:var(--order-control-font-size);font-weight:400;line-height:20px;
 padding:10px 12px;border:1px solid var(--order-control-border);border-radius:var(--order-control-radius);color:var(--ink);background:#fff;
}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) select{padding-right:32px}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) textarea{
 min-height:100px;font-family:inherit;font-size:var(--order-control-font-size);line-height:20px;
 padding:10px 12px;border-color:var(--order-control-border);border-radius:var(--order-control-radius);
}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) .btn{
 min-height:var(--order-control-height);height:auto;max-width:100%;padding:10px 14px;
 font-family:inherit;font-size:var(--order-control-font-size);font-weight:400;line-height:20px;border-radius:var(--order-control-radius);
 white-space:normal;text-align:center;overflow-wrap:anywhere;
}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) .btn:not(.primary):not(.danger):not(.ghost){border-color:var(--order-control-border)}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) .btn.icon{width:44px;min-width:44px;padding:10px;flex:none}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface) .order-layout-handle{width:44px;min-width:44px;padding:4px;font-size:20px}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) label.field{gap:8px;font-size:14px;line-height:20px}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea):disabled{background:#f5f7fa;color:#7b8491;cursor:not-allowed}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) :is(.btn,input,select,textarea):focus-visible{outline:2px solid var(--order-control-focus);outline-offset:2px}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) input[type=file]{
 width:100%;min-width:0;height:44px;min-height:44px;padding:0;font-weight:400;
 font-family:inherit;font-size:var(--order-control-font-size);line-height:42px;border:1px solid var(--order-control-border);border-radius:var(--order-control-radius);background:#fff;color:var(--ink);
}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) input[type=file]::file-selector-button{
 height:42px;margin:0 12px 0 0;padding:0 14px;font:inherit;line-height:20px;color:var(--ink);
 border:0;border-right:1px solid var(--order-control-border);background:#f3f7fd;cursor:pointer;
}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) input[type=file]::file-selector-button:hover{background:#eaf2fd}
.public-order-page .public-product-search{align-items:flex-end}
.public-order-page .public-product-search .field :is(input,select){margin-top:0}
.public-order-page [data-customer-product-clear]{align-self:flex-end}
@media(max-width:780px),(pointer:coarse) and (max-width:1024px){
 .order-control-surface,.public-order-page{--order-control-font-size:16px}
 :is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) .actions{flex-wrap:wrap}
}

/* Compound picker controls keep a single outer border and square inner seams. */
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) .public-product-picker-input{margin-top:0}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) .public-product-picker-input input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]){border-top-right-radius:0;border-bottom-right-radius:0}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) .public-product-picker-input .btn{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) input[type=file]:disabled{background:#f5f7fa;color:#7b8491;cursor:not-allowed}
:is(#content.order-control-surface,#modal.order-control-surface,.order-control-surface,.public-order-page) input[type=file]:disabled::file-selector-button{color:#7b8491;background:#f5f7fa;cursor:not-allowed}
@media(min-width:1000px){
 #modal.order-control-surface.order-fullscreen .order-editor .item-row textarea[data-item]{height:44px;min-height:44px;resize:none;overflow:auto}
}
@media(max-width:520px){
 #content.order-control-surface.orders-list-content #order-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
 #content.order-control-surface.orders-list-content #order-filter>.btn{grid-column:1/-1}
}
@media(max-width:360px){
 #content.order-control-surface.orders-list-content #order-filter{grid-template-columns:minmax(0,1fr)}
}

/* One field list and product DOM: desktop table, mobile cards, including previews. */
.customer-order-detail .customer-products-container{max-width:100%;min-width:0;overflow-x:auto;border:1px solid #d5e1ef;border-radius:8px}
.customer-order-detail .customer-products-table{width:100%;min-width:720px;border-collapse:collapse;table-layout:auto;font-size:14px;line-height:1.5}
.customer-products-table caption.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.customer-order-detail .customer-products-table th{background:#f0f5fc;color:#445b74;font-weight:600;text-align:left;padding:12px;border-bottom:1px solid #d5e1ef;overflow-wrap:anywhere}
.customer-order-detail .customer-products-table td{vertical-align:top;padding:12px;min-width:96px;max-width:280px;border-bottom:1px solid #e3eaf2;overflow-wrap:anywhere}
.customer-order-detail .customer-products-table .customer-product-card{display:table-row;border:0;border-radius:0;padding:0;box-shadow:none;background:#fff}
.customer-products-table tr:last-child td{border-bottom:0}
.customer-products-table .customer-product-index{min-width:60px!important;width:64px;color:var(--muted);font-size:12px}
.customer-products-table .customer-product-cell-label{display:none}
.customer-products-table .customer-product-cell-value{min-width:0;overflow-wrap:anywhere}
.customer-products-table .customer-product-cell-value:empty::after{content:'—';color:var(--muted)}
.customer-products-table .customer-product-empty .customer-product-cell-value:empty::after{content:none}
.customer-order-detail .customer-products-table .customer-product-followup{position:static;margin:0;padding:0;border:0;min-width:160px}
.customer-order-detail .customer-products-table .customer-product-followup>summary{position:static;min-height:44px;gap:6px;flex-wrap:wrap;font-size:14px}
.customer-products-table .customer-product-followup-cell{width:230px}
.customer-products-table .order-product-meter{min-width:100px;font-size:14px}
.customer-products-table .public-product-actions{padding:12px 0;margin:0}
@media(max-width:780px){
 .customer-order-detail .customer-products-container{overflow:visible;border:0;background:transparent}
 .customer-order-detail .customer-products-table,.customer-products-table tbody{display:block;min-width:0;width:100%}
 .customer-products-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 .customer-order-detail .customer-products-table .customer-product-card{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0 0 16px;border:1px solid #cbd9ea;border-left:3px solid var(--public-blue,#245fad);border-radius:8px;overflow:hidden}
 .customer-order-detail .customer-products-table td{display:grid;grid-template-columns:minmax(72px,34%) minmax(0,1fr);gap:12px;width:auto;max-width:none;min-width:0;padding:10px 12px;font-size:16px;border-bottom:1px solid #e3eaf2}
 .customer-order-detail .customer-products-table td.customer-product-empty{display:none}
 .customer-products-table .customer-product-cell-label{display:block;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
 .customer-order-detail .customer-products-table .customer-product-index{display:block;width:auto;min-width:0!important;background:#f0f5fc;padding:12px;font-size:14px;font-weight:600;color:var(--public-ink,#18324f)}
 .customer-order-detail .customer-products-table .customer-product-followup-cell{display:block;width:auto;border-bottom:0;padding:8px 12px}
 .customer-order-detail .customer-products-table .customer-product-followup{min-width:0}
 .customer-order-detail .customer-products-table .customer-product-followup>summary{font-size:16px}
 .customer-products-table .order-product-meter{min-width:0;font-size:16px}
 .customer-products-table tr:last-child td:not(:last-child){border-bottom:1px solid #e3eaf2}
 .customer-order-detail .customer-order-values{grid-template-columns:minmax(0,1fr)}
 .customer-order-detail .customer-order-values>.kv:first-child{grid-column:auto}
}

.customer-products-table .customer-product-followup-cell>.public-product-actions{padding:4px 0 0;margin:0}
.customer-products-table .public-product-actions .btn{min-height:44px}
@media(max-width:780px){.customer-products-table .public-product-actions .btn{width:100%}}

/* Customer links and both preview paths use the server's two public totals. */
.customer-total-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.customer-total-progress-item{min-width:0}
.customer-total-progress-item h3{font-size:16px;color:var(--muted);font-weight:500;margin:0 0 16px}
.customer-total-progress-value{display:flex;align-items:center;gap:12px;min-width:0}
.customer-total-progress-value .order-product-meter{display:flex;align-items:center;gap:20px;min-width:0;flex:1;margin:0}
.customer-total-progress-value .order-product-meter progress{width:auto;flex:1;min-width:0;height:12px}
.customer-total-progress-value .order-product-meter span{font-size:20px;min-width:76px;white-space:nowrap;text-align:right}
.customer-total-progress-status{margin-top:12px;min-height:28px}
.customer-total-progress-status .badge{font-size:14px}
@media(max-width:780px){
 .customer-total-progress-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .customer-total-progress-item+.customer-total-progress-item{border-top:1px solid var(--border);padding-top:18px}
 .customer-total-progress-item h3{font-size:16px;margin-bottom:12px}
 .customer-total-progress-value .order-product-meter span{font-size:20px}
}

/* Short windows must retain readable data space instead of stacking sticky layers. */
.template-editor-flow .template-grid th{position:relative;top:auto}

/* Required shared production settings live inside the scheme wizard. */
.scheme-progress-settings{margin:20px 0}.scheme-progress-settings fieldset{border:0;margin:0 0 16px;padding:0;min-width:0}.scheme-progress-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:12px 0}.scheme-progress-row .field{position:relative;min-width:0}.scheme-progress-row .required-mark{color:#a73535;font-size:12px}.scheme-progress-row input{min-width:0}.scheme-progress-example{margin-top:20px}.scheme-progress-example h3{font-size:15px}.scheme-progress-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}@media(max-width:600px){.scheme-progress-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.scheme-progress-row>button{grid-column:1/-1;justify-self:end}.scheme-progress-settings .panel-body{padding:16px}}

/* Range controls keep their native track, without the shared text-input box. */
#modal.order-control-surface .template-horizontal-controls .template-scroll-track>input[type=range].template-horizontal-scroll{height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}

@media(max-height:640px){.template-editor .template-scroll-caption{display:none}}

.template-editor-dock>#template-feedback{margin:0;padding:0 24px 8px}.template-editor-dock>#template-feedback:empty{display:none}
@media(max-width:780px){.template-editor-dock>#template-feedback{padding:0 14px 8px}}

/* Shared section appearance: builder preview, staff detail and customer detail. */
.order-page-section-style{min-width:0;overflow-wrap:anywhere}
.order-page-section-style.align-left{text-align:left}.order-page-section-style.align-center{text-align:center}.order-page-section-style.align-right{text-align:right}
.order-page-section-style.align-center :is(th,td,dt,dd){text-align:center}.order-page-section-style.align-right :is(th,td,dt,dd){text-align:right}
.order-page-section-style.align-center .panel-head{justify-content:center}.order-page-section-style.align-right .panel-head{justify-content:flex-end}
.order-page-section-style[data-page-section="status"] .panel-body.row{flex-wrap:wrap}
.order-page-section-style.align-center[data-page-section="status"] .panel-body.row{justify-content:center}
.order-page-section-style.align-right[data-page-section="status"] .panel-body.row{justify-content:flex-end}
.order-page-section-style.appearance-compact :is(.panel-head,.panel-body){padding:12px}.order-page-section-style.appearance-compact :is(th,td){padding:8px}
.order-page-section-style.appearance-card{margin:12px 0;padding:8px;background:#f4f7fc;border:1px solid #dbe3ed;border-radius:12px}
.order-page-section-style.appearance-card>.panel{background:#fff;border-radius:8px}

/* Reusable order components share the same layout in editor and live pages. */
.order-component-tone-info{background:#eff6ff;color:#244d80;border-left:4px solid #2878d4}
.order-component-tone-warning{background:#fff8e6;color:#785100;border-left:4px solid #bd8500}
.order-component-fields{margin:0;min-width:0}.order-component-fields dd,.order-file-record{overflow-wrap:anywhere;min-width:0}
.order-files-list,.order-files-cards{display:grid;gap:12px;min-width:0}.order-files-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.order-file-record{padding:14px;border:1px solid var(--border,#dce3ec);border-radius:8px}.order-file-record p{margin:10px 0}.order-file-record .attachments{max-width:100%;display:flex;flex-wrap:wrap;gap:8px}.order-file-record .attachment{max-width:100%;flex-wrap:wrap}.order-file-record button{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.order-date-nodes{list-style:none;padding:0;margin:0;display:grid;gap:12px}.order-date-nodes li{border-left:3px solid #2d78ce;padding:8px 12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;min-width:0;overflow-wrap:anywhere}.order-date-nodes li span{color:var(--muted,#68798a)}
.order-contact-phone{color:#195fa9;text-decoration:underline;overflow-wrap:anywhere}
@media(max-width:780px){.order-files-cards{grid-template-columns:minmax(0,1fr)}.order-component-fields .kv{grid-template-columns:minmax(0,1fr)}.order-file-record .row{flex-wrap:wrap}}

/* Custom components use the selected alignment for flex content as well as text. */
.order-page-section-style.align-center :is(.order-date-nodes li,.order-file-record>.row,.order-file-record>.attachments){justify-content:center}
.order-page-section-style.align-right :is(.order-date-nodes li,.order-file-record>.row,.order-file-record>.attachments){justify-content:flex-end}
.order-file-record>.row{flex-wrap:wrap}

/* Data editing keeps the displayed canvas and adds controls at the original values. */
[data-inline-mode="data"] .order-inline-value-host{min-width:0;white-space:normal}
[data-inline-mode="data"] .order-inline-value{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:32px;margin:0;padding:3px 6px;border:1px solid #dbe3ee;border-radius:4px;background:#fff;font:inherit;line-height:inherit;color:inherit;text-align:inherit}
[data-inline-mode="data"] .order-inline-value:focus{outline:2px solid #267ef0;outline-offset:1px;border-color:#267ef0}
[data-inline-mode="data"] textarea.order-inline-value{min-height:64px;resize:vertical;white-space:pre-wrap}
[data-inline-mode="data"] .order-inline-customer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 10px}
[data-inline-mode="data"] .order-inline-customer-choose{min-height:32px;padding:3px 0;white-space:nowrap;font:inherit}
[data-inline-mode="data"] .order-inline-customer>select,[data-inline-mode="data"] .order-inline-customer-hint{grid-column:1/-1;margin:0}
[data-inline-mode="data"] .order-inline-customer [hidden]{display:none}
@media(max-width:780px){[data-inline-mode="data"] .order-inline-value,[data-inline-mode="data"] .order-inline-customer-choose{min-height:44px;font-size:16px}[data-inline-mode="data"] .order-inline-customer{grid-template-columns:minmax(0,1fr)}[data-inline-mode="data"] .order-inline-customer-choose{justify-self:start}}

/* Keep backend detail, its preview and inline editing equally compact. */
.order-detail-canvas .panel-head{padding:12px 20px}
.order-detail-canvas .panel-body{padding:16px 20px}
.order-detail-canvas .panel-head :is(h2,h3){margin:0}
.order-detail-canvas .stack{gap:12px}
.order-detail-canvas .order-detail-custom-values{margin:0;row-gap:12px}
.order-detail-canvas .order-detail-custom-values .kv{margin:0;align-items:start}
.order-detail-canvas .order-detail-custom-values+p{margin-top:12px}
.order-detail-canvas .panel-body>p:last-child{margin-bottom:0}
.order-detail-canvas .timeline{padding-top:0}
.order-detail-canvas .timeline-entry{padding-bottom:16px}
.order-detail-canvas .timeline-entry:last-child{padding-bottom:0}
.order-detail-canvas .timeline-entry h3{margin:0}
.order-detail-canvas .timeline-entry p{margin:6px 0}
.order-detail-canvas .attachments{margin:8px 0}
.order-detail-canvas .attachments:empty{display:none}
.order-detail-canvas .record-actions{margin-top:6px;gap:8px}
.order-detail-canvas .order-page-section-style.appearance-compact :is(.panel-head,.panel-body){padding:10px 12px}
.order-detail-canvas .order-page-section-style.appearance-compact .order-detail-custom-values{row-gap:8px}
@media(max-width:780px){
 .order-detail-canvas :is(.panel-head,.panel-body){padding:12px 14px}
 .order-detail-canvas .record-actions button{min-height:44px;min-width:44px}
}

.order-inline-note-visibility{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.order-inline-note-visibility select{width:auto;min-height:32px}
@media(max-width:780px){.order-inline-note-visibility select{min-height:44px}}
