/* Common typography for all panel views, including operational lists. */
body{font-weight:500;font-size:14px;line-height:1.5;color:var(--heading)}

h1,h2,h3,th,.field>label{font-weight:600}
.sidebar .side-link,.sidebar .internet-side-link{color:var(--sidebar-text);font-weight:500;font-size:14px}
.sidebar .side-link.active{color:var(--sidebar-active)}
.side-sub,.sidebar-hover .side-sub{font-size:13px;font-weight:500;color:var(--sidebar-text)}
.status-name{font-size:14px;font-weight:500;color:var(--heading)}
.status-group,.status-all .status-name{font-weight:650}
.orders-table,.orders-table td{font-size:14px;line-height:1.5}
.orders-table .line-item>div:last-child{font-weight:500}
.orders-table .line-item strong,.order-link{font-weight:650}
.orders-table .table-sub,.orders-table .muted{font-size:12px;color:var(--muted);font-weight:500}
.orders-table .line-item img,.orders-table .line-item .empty-photo{flex-shrink:0}
.btn,.order-status-pill{font-weight:600}
.order-note-compact #order-note{font-weight:500}
.order-summary-grid,.detail-list,.order-information{font-weight:500}
@media(max-width:760px){body{font-size:14px}.status-name{font-size:14px}}

/* Shared operational controls: order card, packing and shipment preparation. */

.order-replace-line,.picking-replace{color:var(--operation-success);font-weight:600;text-decoration:none;border:1px solid currentColor;border-radius:4px;padding:6px 10px;min-height:36px;display:inline-flex;align-items:center;background:var(--surface)}
.order-replace-line:hover,.picking-replace:hover{background:var(--operation-success-bg)}
.order-info-section>summary,.editor-section>summary{font-size:14px;font-weight:600;min-height:44px;gap:12px}
.order-info-section>summary>.address-expand-label,.editor-section>summary>.address-expand-label{font-size:14px;font-weight:600}
#packing-modal .dialog-heading h2{font-size:16px;font-weight:600;margin:0}
#packing-modal-progress{margin:4px 0 0;color:var(--muted);font-size:13px}
.packing-modal-line{padding:16px 10px;gap:16px;border-color:var(--border)}
.packing-modal-copy strong{font-size:14px;font-weight:600;line-height:1.5}
.packing-modal-copy small{font-size:12px;color:var(--muted);margin-top:6px}
.packing-modal-line .product-photo{object-fit:contain;background:var(--surface);border:1px solid var(--border);border-radius:4px}
.packing-modal-controls button,.packing-modal-controls strong{width:44px;height:44px;min-height:44px;font-family:inherit;font-size:14px;font-weight:600;color:var(--text);background:var(--surface);border-color:var(--border)}
.packing-modal-controls strong{min-width:56px;width:auto;padding:0 8px}
.packing-modal-controls button:disabled{opacity:1;color:var(--muted);background:var(--surface)}
.packing-modal-line.done{background:var(--operation-success-bg)}
.packing-modal-line.done .packing-modal-controls>*{background:var(--operation-success);color:#fff;border-color:#ffffff70}
.packing-modal-line.done .packing-modal-controls button:disabled{background:var(--operation-success-bg);color:var(--operation-success);border-color:var(--operation-success)}
#packing-modal-feedback{font-size:14px;font-weight:600;line-height:1.5;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text)}
#packing-modal-feedback.success{background:var(--operation-success-bg);color:var(--operation-success);border-color:var(--operation-success)}
#packing-modal-feedback.error{background:var(--operation-error-bg);color:var(--operation-error);border-color:var(--operation-error)}
.packing-modal-controls button:focus-visible,.order-replace-line:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:760px){.order-replace-line,.picking-replace{min-height:44px}.packing-modal-line{padding:14px 4px}.packing-modal-copy strong{font-size:14px}}

.shipment-compact{max-width:960px;margin:0 auto;padding:20px}
.shipment-compact .shipment-primary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.shipment-compact .shipment-primary .field{margin:0}
.shipment-compact .shipment-preparation-top{display:block;padding:0;margin:0}
.shipment-compact .shipment-packages{width:100%;min-width:0}
.shipment-compact .parcel-card{margin:0 0 14px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:4px}
.shipment-compact .parcel-title{margin:0 0 10px}.shipment-compact .parcel-title h4{margin:0;font-size:14px;font-weight:600}
.shipment-compact .shipment-parcel-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(240px,2fr);gap:14px;align-items:start}
.shipment-compact .shipment-dimensions{grid-column:1/-1}
.shipment-compact .shipment-size-choice{min-height:64px;padding:8px 14px}
.shipment-compact .shipment-size-choice strong{font-size:20px}
.shipment-compact .shipment-details-columns{display:block;margin:0;padding:0}
.shipment-compact .shipment-section{border:1px solid var(--border);border-radius:4px;margin-top:12px;background:var(--surface)}
.shipment-compact .shipment-section>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;min-height:44px;cursor:pointer;list-style:none;font-size:14px}
.shipment-compact .shipment-section>summary::-webkit-details-marker{display:none}
.shipment-compact .shipment-section>summary:after{content:"⌄";color:var(--primary)}
.shipment-compact .shipment-section[open]>summary:after{content:"⌃"}
.shipment-compact .shipment-section>summary strong{font-weight:600}
.shipment-compact .shipment-section>summary span{color:var(--muted);font-size:13px;margin-left:auto;text-align:right}
.shipment-compact .shipment-section-body{padding:14px;border-top:1px solid var(--border)}
.shipment-compact .shipment-settings,.shipment-compact .shipment-address{padding:0;border:0;background:transparent}
.shipment-compact .shipment-footer{position:static;padding:16px 0 0;margin-top:16px;background:var(--surface);display:flex;gap:10px;align-items:center;border-top:1px solid var(--border)}
.shipment-compact .shipment-footer span{margin-left:auto;font-size:12px}
.shipment-compact .shipment-footer .btn{min-height:44px}
.shipment-compact .shipment-invalid{border:2px solid var(--operation-error)!important}
.shipment-inline-error{margin:6px 0 0;font-size:13px;color:var(--operation-error);font-weight:600}
.shipment-error-link{display:block;text-align:left;color:var(--operation-error);background:none;border:0;font:inherit;margin-top:6px;padding:0}
button.shipment-error-link{text-decoration:underline;cursor:pointer}
.shipment-compact>.field-error:not(:empty){padding:14px;border:1px solid var(--operation-error);background:var(--operation-error-bg);margin-bottom:16px}
.shipment-section summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:650px){.shipment-compact{padding:14px}.shipment-compact .shipment-primary,.shipment-compact .shipment-parcel-fields{grid-template-columns:minmax(0,1fr)}.shipment-compact .shipment-section>summary{flex-wrap:wrap;gap:6px}.shipment-compact .shipment-section>summary span{max-width:70%}.shipment-compact .shipment-footer{flex-wrap:wrap}.shipment-compact .shipment-footer #send-shipment{width:100%}.shipment-compact .shipment-footer span{width:100%;margin-left:0}.shipment-compact input,.shipment-compact select{font-size:16px;min-height:44px}}


.picking-shortages{margin:14px;padding:14px 18px;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--operation-error);border-radius:4px;font-size:14px}
.picking-shortages>strong{font-weight:600}.picking-shortages ul{margin:6px 0 0;padding-left:20px}
.picking-shortages li{line-height:1.5;overflow-wrap:anywhere}.picking-result .picking-shortages{box-sizing:border-box;width:100%;margin:0;text-align:left;max-height:min(36vh,320px);overflow:auto}
.manual-product-create{margin-top:14px}.manual-product-fields{padding:16px 0}.manual-product-fields>.field:first-child,.manual-product-codes{grid-column:1/-1}.manual-product-codes>summary{min-height:44px;cursor:pointer;color:var(--primary);font-weight:600}

.order-return-status{margin:12px 24px;padding:10px 14px;border:1px solid var(--border,var(--border));border-radius:6px;font-size:14px;line-height:1.45;background:var(--card-bg,#fff);}
.order-return-status p{margin:6px 0 0}.order-return-status small{display:block;margin-top:5px;color:var(--muted,var(--muted))}
.order-return-status.has-return,.badge.order-return-badge{background:var(--return-soft);color:var(--return-text);border-color:var(--return-border);font-weight:600}
.order-return-status.no-return{color:var(--success-text);background:var(--success-soft)}.order-return-status.unknown{color:var(--muted,var(--muted))}
@media(max-width:600px){.order-return-status{margin:10px 12px}}

.shipment-form.shipment-compact .shipment-footer{margin:16px 0 0;padding:16px 0 0;position:static;box-shadow:none}
.shipment-form.shipment-compact #send-shipment{width:auto;min-width:190px;background:var(--operation-success);border-color:var(--operation-success);font-weight:600}
.shipment-form.shipment-compact .shipment-packages,.shipment-form.shipment-compact .shipment-sizes{text-align:left}
@media(max-width:650px){.shipment-form.shipment-compact #send-shipment{width:100%}}

/* Every expandable section uses the same readable heading and toggle. */
:is(.address-card,.order-info-section,.editor-section,.pickup-address)>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;list-style:none;color:var(--heading);font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;cursor:pointer}
:is(.address-card,.order-info-section,.editor-section,.pickup-address)>summary::-webkit-details-marker{display:none}
:is(.address-card,.order-info-section,.editor-section)>summary h2{margin:0;font-family:inherit;font-size:16px;font-weight:600;line-height:1.5;color:var(--heading)}
:is(.address-card,.order-info-section,.editor-section,.pickup-address)>summary>.address-expand-label{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:90px;min-height:36px;padding:6px 12px;border:1px solid var(--primary);border-radius:4px;background:var(--surface);color:var(--primary);font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;white-space:nowrap}
:is(.address-card,.order-info-section,.editor-section,.pickup-address)>summary:hover>.address-expand-label{background:var(--soft)}
:is(.address-card,.order-info-section,.editor-section,.pickup-address)>summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
:is(.address-card,.order-info-section,.editor-section,.pickup-address)[open]>summary>.address-expand-label{background:var(--soft)}
.order-info-grid>.card,.order-address-grid>.card{border-color:var(--border)}
.order-address-grid>.address-card{align-self:start}
@media(max-width:760px){:is(.address-card,.order-info-section,.editor-section,.pickup-address)>summary>.address-expand-label{min-height:44px}:is(.address-card,.order-info-section,.editor-section,.pickup-address)>summary{gap:8px}}

/* Shared controls and text: identical roles keep identical typography and states. */
button,input,select,textarea{font-family:var(--font-family)}
textarea{line-height:1.5;color:var(--text)}
.btn{min-height:40px;border-radius:4px;font-size:14px;line-height:20px}
.btn.small{min-height:36px;font-size:12px}
.btn.square{width:36px;min-height:36px;height:36px;border-radius:4px}
.btn.green:hover{background:var(--success-hover)}
.btn.danger:hover{background:var(--error-soft);color:var(--error-hover);border-color:var(--error-border)}
.btn.outline,.btn.light{border-color:var(--control-border);color:var(--muted)}
button:disabled{opacity:1;cursor:not-allowed}
.btn:disabled,.btn.green:disabled,.btn.danger:disabled{background:var(--disabled-bg);color:var(--disabled-text);border-color:var(--border)}
.spinner{border-color:currentColor;border-right-color:transparent}
.field input,.field select,.field textarea,.search input{font-size:14px;font-weight:500;border-color:var(--control-border);color:var(--text)}
.field input:focus,.field select:focus,.field textarea:focus,.search input:focus{border-color:var(--primary)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input[type=checkbox],input[type=radio]{accent-color:var(--primary)}
.field>label,.dialog-body>label{font-size:14px;font-weight:600;color:var(--heading)}
.field small,.form-footer .hint,.table-sub,.last-date,.record-count,.page-footer,.language{font-size:12px;font-weight:500;color:var(--muted)}
.card-head h2,.dialog-heading h2{font-size:16px;font-weight:600;line-height:1.4}
.badge{font-size:12px;font-weight:600;line-height:1.4}
.notice,.field-error{font-size:14px;line-height:1.5}
.tabs .tab,.admin-subnav a,.subnav a{color:var(--muted)}
.tabs .tab.active,.admin-subnav a.active,.subnav a.active{color:var(--primary)}
.picking-order.active{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.orders-table .empty-photo small{font-size:10px;color:var(--muted)}
@media(max-width:760px){.field input,.field select,.field textarea,.search input{font-size:16px;min-height:44px}.btn{min-height:44px}.btn.small,.btn.square{min-height:44px}.btn.square{width:44px;height:44px}}

/* Selected outline actions must keep a light label on the active background. */
.btn.outline.selected,.btn.outline[aria-pressed=true],.control-filters .btn.selected{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.shipment-sizes>legend{color:var(--muted);font-weight:600;font-size:14px}

/* Table editors use the same controls as ordinary forms. */
.admin-table select,.admin-table input:not([type=checkbox]):not([type=radio]):not([type=hidden]){
 min-height:40px;max-width:100%;padding:8px 10px;border:1px solid var(--control-border);border-radius:4px;background:var(--surface);color:var(--text);font:500 14px/1.5 var(--font-family)
}
.admin-table select{min-width:140px}.admin-table input[type=number]{width:76px}
.admin-table select:focus-visible,.admin-table input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.print-section-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 12px;border:1px solid var(--primary);border-radius:4px;color:var(--primary);font:600 13px/1.4 var(--font-family)}
@media(max-width:760px){.admin-table select,.admin-table input:not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:44px;font-size:16px}.print-section-toggle{min-height:44px}}

/* A grid child must be allowed to shrink inside mobile dialogs. */
.form-grid>*,.dialog-body fieldset{min-width:0}
.metric-strip span,.admin-feature span,.admin-feature em{font-size:12px}
.tag-color-choice:focus-within span{outline-color:var(--primary)}
@media(max-width:760px){.tag-color-palette{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tag-color-choice{min-height:44px}}

/* Destructive actions keep a readable label in footer and bulk hover states. */
.form-footer .btn.danger:hover,.bulk-buttons .btn.danger:hover{color:var(--on-primary)}
.btn:disabled:is(.green,.danger,.outline,.light,.selected),.form-footer .btn:disabled,.bulk-buttons .btn:disabled,
.btn:disabled:is(.green,.danger,.outline,.light,.selected):hover,.form-footer .btn:disabled:hover,.bulk-buttons .btn:disabled:hover{
 background:var(--disabled-bg);color:var(--disabled-text);border-color:var(--border);opacity:1
}


.status-menu-group>summary{cursor:pointer;list-style:none}.status-menu-group>summary::-webkit-details-marker{display:none}.status-menu-group>summary .status-group>span:first-child::before{content:"▸";display:inline-block;margin-right:6px}.status-menu-group[open]>summary .status-group>span:first-child::before{content:"▾"}


/* Orders and shipment batch, 13 October 2026. */
.shipment-form.shipment-apilo .shipment-footer{position:static;box-shadow:none}
.shipment-form.shipment-apilo .shipment-packages{max-width:470px}
#bulk-shipping-progress{position:sticky;top:12px;z-index:8}.bulk-live-progress{position:static}
.orders-table td{font-size:15px;line-height:1.6}.orders-table .col-amount{font-size:16px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}.order-link{font-size:16px}.status-count{min-width:62px;font-size:13px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}.status-name{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4}.status-item{align-items:center;gap:10px}.order-records,.order-pagination{font-size:14px;font-variant-numeric:tabular-nums}.orders-table .table-sub,.orders-table .muted{font-size:13px;color:var(--muted)}
.order-list-note{margin-top:10px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.order-list-note>strong{display:block;color:var(--heading);font-weight:700}.order-list-note>div{white-space:pre-wrap;color:var(--text)}
.date-calendar{display:flex;min-width:0;border:1px solid var(--control-border);border-radius:4px}.date-calendar input{border:0;min-width:0;width:100%;border-radius:4px 0 0 4px}.date-calendar input::-webkit-calendar-picker-indicator{display:none}.date-calendar-open{width:42px;min-width:42px;border:0;border-left:1px solid var(--border);border-radius:0 4px 4px 0;background:var(--soft);color:var(--primary);cursor:pointer}.date-calendar-open svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}.date-calendar:focus-within{outline:2px solid var(--primary);outline-offset:2px}.date-calendar-open:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.order-product-search-row{display:flex;gap:10px;align-items:center}.order-product-search-row input{flex:1;min-width:0}.order-product-search-row .manual-product-create{margin:0;white-space:nowrap;min-height:40px}.manual-product-fields{grid-template-columns:1fr 1fr}.manual-product-fields>.field:first-child{grid-column:1/-1}
.shipment-order-notes{display:flex;gap:20px;margin:20px 0;flex-wrap:wrap}.shipment-order-notes>div{padding:12px 16px;border-left:4px solid var(--warning-action);background:var(--warning-soft);border-radius:4px;min-width:160px;flex:1;overflow-wrap:anywhere}.shipment-order-notes>div:first-child{border-left-color:var(--green);background:var(--success-soft)}.shipment-order-notes p{margin:4px 0;white-space:pre-wrap}.shipment-template-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:20px 0}.shipment-preset-erli{background:#d92973!important;border-color:#d92973!important;color:#fff!important}.shipment-apilo .shipment-footer{background:var(--surface)}.shipment-apilo .shipment-preparation-top{align-items:start}.shipment-apilo:not(.shipment-compact){max-width:none}.shipment-details-columns .field{font-size:14px}.shipment-apilo .shipment-order-summary{font-size:14px}.shipment-form.shipment-apilo #send-shipment{min-width:95px;font-weight:650}
.bulk-products{margin-top:18px}.bulk-products>summary{cursor:pointer;width:max-content;list-style:none}.bulk-products>div{margin-top:12px;min-width:420px;position:relative;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:8px;box-shadow:0 5px 16px #272b3620;z-index:2}.bulk-products table{width:100%}.bulk-products .ship-item-quantity{max-width:64px}.bulk-shipping-table .shipment-order-notes{display:block;margin:12px 0}.bulk-shipping-table .shipment-order-notes>div{min-width:0;margin:8px 0;padding:10px}.bulk-shipping-table .bulk-label{color:var(--heading);font-size:14px;font-weight:600}.bulk-shipping-table td>strong{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.bulk-live-progress{position:sticky;top:12px;z-index:8;padding:22px 24px;margin-bottom:24px;border:2px solid var(--primary);border-radius:8px;background:var(--surface);box-shadow:0 5px 18px #272b3614}.bulk-progress-title{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.bulk-progress-title>strong{font-size:20px}.bulk-progress-title>span{font-size:24px;font-variant-numeric:tabular-nums}.bulk-progress-title small{font-size:15px}.bulk-live-progress progress{display:block;width:100%;height:18px;margin:16px 0;accent-color:var(--primary)}.bulk-progress-counts{display:flex;gap:24px;flex-wrap:wrap;font-size:16px}.bulk-progress-counts .field-error{background:none;margin:0;padding:0}.bulk-progress-counts b{font-size:18px;font-variant-numeric:tabular-nums}
@media(min-width:1101px){.orders-layout{grid-template-columns:280px minmax(0,1fr)}.status-panel{width:280px}.orders-table .col-order{min-width:220px}}
@media(max-width:900px){.bulk-products>div{min-width:0;max-width:100%;overflow:auto}.bulk-products .shipment-items{min-width:0}.bulk-progress-title>strong{font-size:18px}.bulk-progress-title>span{font-size:22px}.bulk-live-progress{padding:16px}.bulk-progress-counts{gap:12px}.order-product-search-row{flex-wrap:wrap}.order-product-search-row input{width:100%;flex-basis:100%}.manual-product-fields{grid-template-columns:1fr}.manual-product-fields>.field{grid-column:1/-1}}
#bulk-shipping-progress{position:sticky;top:80px;scroll-margin-top:90px;z-index:8}.bulk-live-progress{position:static}
.order-secondary-filters{grid-template-columns:1fr 1fr minmax(290px,1.5fr) 1fr 1fr!important}.placed-date-range{border:0;padding:0;margin:0;min-width:0}.placed-date-range legend{font-size:14px;font-weight:500;margin-bottom:5px}.date-range-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.date-range-controls>div>label{font-size:12px;margin-bottom:4px}.date-range-controls .date-calendar-open{min-width:34px;width:34px}.date-range-controls input{padding-left:7px;padding-right:2px}
.carrier-health-caption{margin:0;padding:12px 16px;color:var(--muted);font-size:14px;border-bottom:1px solid var(--border)}.carrier-live-health{min-width:240px;max-width:420px;font-size:14px;line-height:1.5}.carrier-health-details{margin-top:5px;color:var(--text)}.carrier-health-issue{margin-top:7px;padding:7px 9px;background:var(--warning-soft);border-left:3px solid var(--warning-action);color:var(--text);overflow-wrap:anywhere}.carrier-health-time{margin-top:7px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.carrier-health-table th:last-child{width:60px}
@media(max-width:1550px){.order-secondary-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.placed-date-range{grid-column:span 2;order:3}.order-secondary-filters>.field:last-child{order:4}}
@media(max-width:760px){.order-secondary-filters{grid-template-columns:1fr!important}.placed-date-range{grid-column:auto}.date-range-controls .date-calendar-open{min-width:40px;width:40px}.carrier-live-health{min-width:220px}}
