.shipping-intro{min-width:0;max-width:440px;padding-right:16px}
.shipping-control-panel{box-sizing:border-box;width:100%;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;margin-left:0}
.shipping-page .shipping-templates{box-sizing:border-box;width:100%;min-width:0;margin-left:0;padding:8px 10px;border:1px solid #46566a;border-radius:8px;min-height:92px;background:#fff;display:flex;flex-direction:column}
.shipping-intro p{margin:8px 0 0;font-size:12px}
.shipping-period{position:relative;min-width:175px;padding:12px;border:1px solid var(--anchor-color);border-radius:8px;background:#fffafa;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.shipping-period strong{color:#ca4848;font-size:13px}
.shipping-period.comparison{background:#fffdf5}
.shipping-period.comparison strong{color:#b47d0a}
.shipping-period button{font-size:12px;display:flex;gap:9px;flex-wrap:wrap;text-align:left}
.shipping-period small{color:#6f7f92}
.shipping-page .shipping-help{font-size:11px;margin:6px 0 0;line-height:1.55;overflow-wrap:anywhere}
.shipping-table-scroll{overflow:auto}
.shipping-table{min-width:1250px;margin-top:0;table-layout:fixed}
.shipping-table .shipping-controls>td{vertical-align:top;padding:0 0 24px;border-bottom:0;background:#fff}
.shipping-controls-grid{display:grid;grid-template-columns:25% 14% 27% 16% 18%;align-items:stretch;min-width:0}
.shipping-controls-grid>.shipping-intro{grid-column:1;padding:0 14px 0 0}
.shipping-controls-grid>.shipping-anchor{position:relative;min-width:0;padding:0 10px 24px;--anchor-color:#dc9292}
.shipping-controls-grid>.shipping-anchor.comparison{--anchor-color:#ddb95d}
.shipping-controls-grid>.shipping-control-panel{grid-column:5}
/* The top controls keep the same horizontal landmarks as the table columns without forcing column widths. */
.shipping-anchor::before{content:"";position:absolute;top:12px;bottom:-23px;left:50%;width:1px;background:var(--anchor-color)}
.shipping-anchor::after{content:"";position:absolute;bottom:-27px;left:calc(50% - 4px);width:7px;height:7px;border:1px solid var(--anchor-color);border-radius:50%;background:#fff;z-index:1}
.shipping-table th.shipping-col-revenue{background:#fff1f1;border-top:2px solid #dc9292}
.shipping-table th.shipping-col-comparison{background:#fff7e4;border-top:2px solid #ddb95d}
.shipping-table th,.shipping-table td{padding:12px 10px}
.shipping-table th{white-space:nowrap}
.shipping-table th span{white-space:normal;overflow-wrap:anywhere}
.shipping-table tbody td.shipping-col-date{white-space:nowrap}
.shipping-table th.shipping-col-revenue,.shipping-revenue{color:#ca4848}
.shipping-table th.shipping-col-comparison{color:#b47d0a}
.shipping-comparisons{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.shipping-comparisons.has-more{flex-direction:row;align-items:center;flex-wrap:wrap;gap:2px}
.shipping-amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.shipping-amount small{font-size:12px;font-weight:400;color:inherit}
.shipping-amount.higher{color:#20804e}
.shipping-amount.lower{color:#b8860b}
.shipping-amount.equal,.shipping-empty{color:#7c8b9d}
.shipping-expand{font-size:12px;padding:0;color:#397bbb}
.shipping-actions{white-space:nowrap;min-width:0}.shipping-actions button{padding:6px 9px;white-space:nowrap}.shipping-action-row{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.dashboard-report-scroll{overflow:auto;max-height:clamp(320px,55vh,650px);margin-bottom:20px}.dashboard-report-table{min-width:1250px;margin-top:0}.dashboard-report-table thead{position:sticky;top:0;z-index:2;background:#fff}.dashboard-report-table .shipping-intro{padding:12px 14px}.dashboard-report-table .shipping-intro>strong{font-size:17px;color:#253b55}.dashboard-report-table .shipping-intro p{color:#8190a4;font-size:11px;line-height:1.5}
.shipping-revenue{white-space:nowrap;font-variant-numeric:tabular-nums}
.shipping-title{display:flex;align-items:center;gap:18px}
.shipping-title h2{white-space:nowrap;margin:0}
.shipping-scan-entry{padding:12px 18px;font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px;white-space:nowrap}.shipping-manual-entry{padding:12px 16px;font-size:15px;font-weight:600;white-space:nowrap}
.shipment-kind{display:block;font-size:11px;color:#8593a4;margin-top:5px}
.shipment-kind button{font-size:11px;padding:0;color:#4382bc}
.shipping-scan-drop{border:1px dashed #75b5ee;background:#e6f3ff;border-radius:9px;padding:23px;width:100%;text-align:left;display:flex;align-items:center;gap:12px;color:#176299}
.shipping-scan-drop strong{font-size:18px}.shipping-scan-drop small{color:#7790a5}
#shipping-scan-status{margin:16px 0;color:#507692}
#shipping-scan-text{min-height:90px;margin-bottom:12px}
.shipment-meta{display:flex;gap:20px}.shipment-meta label{display:grid;gap:5px;flex:1}.shipment-meta .shipment-store-suggested{border-color:#d8a528;outline:3px solid #e4b63f;outline-offset:3px;box-shadow:0 0 0 6px #fff3c4}.shipment-store-field small{color:#9a6a08;font-size:12px;font-weight:600}
.shipment-lines{overflow:auto}.shipment-lines table{min-width:750px}
.shipment-lines input[type=number]{width:90px}.shipment-lines input[data-field=unit]{width:65px}
.shipment-lines select{max-width:185px}.shipment-lines .shipment-product-picker{display:block;min-width:220px}.shipment-lines .shipment-product-picker .store-combobox{width:100%}.shipment-lines .shipment-product-picker input{width:100%}.shipment-lines .confidence-field{display:flex;flex-direction:column;gap:2px;border-radius:4px}.shipment-lines .confidence-field.low-confidence{outline:2px solid #e5ad32;outline-offset:1px}.shipment-lines .confidence-field.very-low-confidence{outline:2px solid #d34a4a;outline-offset:1px}.shipment-lines .field-review-note{color:#a96b0b;font-size:10px;line-height:1.3}.shipment-lines .field-review-note.very-low-confidence,.shipment-lines .match-hint.very-low-confidence{color:#b43232}.shipment-lines .match-hint{display:block;color:#a96b0b;font-size:10px;line-height:1.3}.shipment-review{display:flex;gap:4px;align-items:center;font-size:12px;white-space:nowrap}
.shipment-total{text-align:right}.shipment-source{color:#347bc5;padding:0}
.shipping-template-settings{font-size:13px;font-weight:700;padding:7px 10px}
.shipping-template-entry{display:flex;align-items:flex-start}
.shipping-template-entry .shipping-template-settings{white-space:nowrap;line-height:1.25;text-align:left}
.shipping-template-filter-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.shipping-control-actions{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}
.shipping-header-settings{font-size:12px;padding:5px 8px;white-space:nowrap}
.shipping-control-actions>[data-action="shipping-export"]{font-size:12px;padding:5px 9px;white-space:nowrap}
.shipping-template-tags{display:flex;flex:1;flex-wrap:wrap;gap:6px;margin-top:9px;max-height:90px;min-width:0;overflow:auto}
.shipping-template-tags button{padding:4px 8px;font-size:12px;white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:left}
.shipping-template-tags button.active{background:#e8f2ff;color:#166bc2;border-color:#8cbae9}
.shipping-page .shipping-filter-summary{display:block;flex:none;max-width:135px;margin:9px 0 0;padding:0;color:#7b8b9e;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;align-self:center}
.shipping-template-existing{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.shipping-template-existing select{flex:1}
.shipping-template-grid{padding:16px;border:1px solid #e4d8f3;border-radius:8px;background:#f8f4fd;gap:14px}
.shipping-template-grid>label{display:flex;flex-direction:column;align-items:stretch;gap:5px}
.shipping-template-grid .store-filter-row{padding-bottom:4px}
.dashboard-settings-top-row{grid-column:1/-1;display:flex;align-items:center;gap:18px;min-width:0}.shipping-template-grid .dashboard-settings-top-row #dashboard-filter-stores{display:flex;grid-template-columns:minmax(0,1fr) auto;flex:1;gap:12px;align-items:center;min-width:0;padding-bottom:0}.dashboard-settings-top-row #dashboard-filter-stores .store-picker-field{flex:1;min-width:0}.dashboard-settings-top-row #dashboard-filter-stores .store-picker-selection{flex:0 0 auto}.shipping-template-grid .dashboard-save-shortcut{display:flex;flex-direction:row;align-items:center;gap:7px;flex:none;white-space:nowrap}.dashboard-save-shortcut input{width:15px;height:15px;min-height:0;margin:0;padding:0;accent-color:#1677ff}
.shipping-template-note{font-size:12px;color:#78869b}
#shipping-template-count{font-size:13px;color:#4a749c}
@media(min-width:1800px){.shipping-table{min-width:0}.shipping-controls-grid{grid-template-columns:25% 14% 27% 16% 18%}}
@media(max-width:1500px){.shipping-controls-grid{grid-template-columns:minmax(270px,25%) minmax(180px,14%) minmax(260px,27%) minmax(190px,16%) minmax(240px,18%)}}
@media(max-width:760px){.dashboard-settings-top-row{align-items:flex-start;flex-direction:column;gap:6px}.shipping-template-grid .dashboard-settings-top-row #dashboard-filter-stores{width:100%;flex-wrap:wrap}.shipping-template-grid .dashboard-save-shortcut{margin-left:46px}}

/* Shipping queries live above the list and stay within the page width. */
.shell:has(.shipping-page){min-width:0}
.shipping-filter-module{margin-bottom:18px}
.shipping-filter-module .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.shipping-filter-layout{display:grid;grid-template-columns:minmax(0,1120px) minmax(230px,1fr);gap:12px;align-items:start}
.shipping-filter-module .filter-body{max-width:none;min-width:0}
.shipping-template-box{min-width:0;margin:12px 10px 12px 0;padding:12px;border:1px solid #d9c5ee;border-radius:8px;background:#fff}
.shipping-template-box h3{margin:0 0 10px;color:#7242b7;font-size:13px}
.shipping-template-box .shipping-template-tags{margin:0;padding:3px;align-content:flex-start;max-height:190px;overflow:auto}
.shipping-filter-layout:has(>.filter-body[hidden]){grid-template-columns:minmax(0,1fr)}
.shipping-filter-layout:has(>.filter-body[hidden])>.shipping-template-box{display:flex;align-items:flex-start;gap:12px;margin-left:10px}
.shipping-filter-layout:has(>.filter-body[hidden])>.shipping-template-box h3{flex:none;margin:7px 0 0}
.shipping-filter-module .filter-grid label,.shipping-filter-module .date-range-filter{display:flex;align-items:center;gap:8px;min-width:0}
.shipping-filter-module .filter-grid label>span:first-child{min-width:60px}
.shipping-filter-module .date-range select{min-width:130px}
.shipping-filter-module .date-range input{min-width:130px}
.shipping-filter-module #shipping-query-product{flex:1;min-width:0}
.shipping-filter-module #shipping-query-product .store-combobox,
.shipping-template-grid #shipping-template-product .store-combobox{width:100%}
.shipping-filter-module #shipping-query-product input,
.shipping-template-grid #shipping-template-product input{width:100%}
.shipping-filter-module [hidden]{display:none!important}
.shipping-filter-module .form-actions{flex-shrink:0}
.shipping-list-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.shipping-list-heading .shipping-control-actions{width:auto}
.shipping-query-count{flex-shrink:0;color:#7b8b9e;font-size:11px;white-space:nowrap}
.shipping-list-heading{margin-bottom:12px}
.shipping-page .shipping-table{min-width:950px}
.shipping-page .shipping-table td{overflow-wrap:anywhere}
@media(max-width:1050px){.shipping-filter-module .date-range{flex-wrap:wrap}.shipping-filter-module .date-range input{flex:1;min-width:100px}.shipping-filter-module .date-range select{flex:1}.shipping-filter-module .filter-actions{align-items:flex-end}.shipping-filter-module .filter-actions small{max-width:55%}}
@media(max-width:1100px){.shipping-filter-layout{grid-template-columns:minmax(0,1fr);gap:0}.shipping-template-box{margin:0 10px 12px}.shipping-filter-layout:has(>.filter-body[hidden])>.shipping-template-box{margin-top:10px}.shipping-template-box .shipping-template-tags{max-height:120px}}
@media(max-width:760px){.shipping-filter-module .filter-grid{grid-template-columns:1fr}.shipping-list-heading{align-items:flex-start;flex-direction:column}.shipping-filter-module .filter-actions{align-items:flex-start;flex-direction:column}.shipping-filter-module .filter-actions small{max-width:none}}

.shipping-table th .shipping-sort,.catalog-page th .catalog-sort{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;text-align:left}
.shipping-table th .shipping-sort span,.catalog-page th .catalog-sort span{color:#8493a5;font-size:12px}
.shipping-table th .shipping-sort.active,.shipping-table th .shipping-sort.active span,.catalog-page th .catalog-sort.active,.catalog-page th .catalog-sort.active span{color:#7242b7}
.shipping-table th .shipping-sort:hover,.catalog-page th .catalog-sort:hover{color:#7242b7}
.shipping-table th .shipping-sort:focus-visible,.catalog-page th .catalog-sort:focus-visible{outline:2px solid #7242b7;outline-offset:4px}

.shipping-sort.sorting{pointer-events:none}.shipping-sort-progress{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.shipping-sort-progress::before{content:"";width:10px;height:10px;border:2px solid #d9c5ee;border-top-color:#7242b7;border-radius:50%;animation:shipping-sort-spin .7s linear infinite}@keyframes shipping-sort-spin{to{transform:rotate(360deg)}}
.shipping-view-tab{padding:12px 14px;font-size:15px;white-space:nowrap}
.shipping-view-tab.active{background:#e5efff;border-color:#9abaf1;color:#1677ff;font-weight:700}
.shipping-product-table{min-width:1280px}
.store-transfer-form{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin-bottom:14px}
.store-transfer-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#5b708b}
.store-transfer-form input,.store-transfer-form select{padding:8px 9px}
.store-transfer-lines{max-height:320px;overflow:auto;border:1px solid #e8eef5;border-radius:8px}
.store-transfer-lines table{margin:0;min-width:760px}
.store-transfer-lines input{width:100%;padding:7px 8px}
.store-transfer-lines small{display:block;color:#8a9ab0;margin-top:3px}
.store-transfer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 4px;flex-wrap:wrap}
.store-transfer-history-title{margin:18px 0 8px;font-size:16px}
.store-transfer-history{max-height:300px;overflow:auto;border:1px solid #e8eef5;border-radius:8px}
.store-transfer-history table{margin:0;min-width:820px}
@media(max-width:900px){.store-transfer-form{grid-template-columns:1fr 1fr}}