:root {
  color-scheme: light;
  --ink: #172337; --muted: #64748b; --line: #dce5ee; --paper: #fff;
  --bg: #f4f7fa; --brand: #123b66; --brand2: #1c6d75; --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.portal-loading { padding: 3rem; text-align: center; color: var(--muted); }
.loading-bar { position: relative; height: 4px; overflow: hidden; margin: 0 0 .8rem; border-radius: 999px; background: #dce5ee; }
.loading-bar span:first-child { display: block; width: 35%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand2)); animation: portal-loading 2.2s ease-in-out infinite; }
@keyframes portal-loading { 0% { transform: translateX(-120%); } 100% { transform: translateX(310%); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(145deg, #0c2f52, #17656d); }
.auth-card { width: min(440px, 100%); background: var(--paper); border-radius: 16px; padding: 2rem; box-shadow: 0 24px 60px #001d2f55; }
.brand { color: var(--brand); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
h1 { margin: .65rem 0 .35rem; font-size: 1.7rem; }
h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.muted { color: var(--muted); }
.field { display: grid; gap: .4rem; margin: 1rem 0; }
.field input, .field select { width: 100%; border: 1px solid #bac8d5; border-radius: 8px; padding: .72rem .8rem; background: white; }
.field input:focus { outline: 3px solid #1c6d7533; border-color: var(--brand2); }
.btn { border: 0; border-radius: 8px; padding: .7rem 1rem; font-weight: 700; background: var(--brand); color: white; }
.btn.secondary { background: #e8eef4; color: var(--ink); }
.btn.link { padding: .5rem 0; background: transparent; color: var(--brand); }
.btn:disabled { opacity: .55; cursor: default; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.alert { border-radius: 8px; padding: .75rem; margin: .8rem 0; background: #fff1f0; color: var(--danger); }
.success { background: #ecfdf3; color: #027a48; }
.portal { min-height: 100vh; }
.topbar { background: var(--brand); color: white; padding: .85rem max(1rem, calc((100vw - 1440px)/2)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar .brand { color: white; }
.topbar small { opacity: .8; }
.topbar button { color: white; border: 1px solid #ffffff66; background: transparent; border-radius: 7px; padding: .5rem .75rem; }
.portal-grid { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 1.2rem; padding: 1.2rem; }
.nav { display: flex; flex-direction: column; gap: .25rem; }
.nav a { display: block; border: 0; background: transparent; color: var(--ink); padding: .7rem .8rem; text-align: left; text-decoration: none; border-radius: 8px; }
.nav a.active { background: #dfeaf2; color: var(--brand); font-weight: 750; }
.content { min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.page-head-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.period { display: flex; gap: .5rem; align-items: end; }
.period .field { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap: .8rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.metric { font-size: 1.65rem; font-weight: 800; margin-top: .3rem; }
.dashboard-cost-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; border-top: 3px solid var(--brand2); }
.dashboard-cost-total p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }
.dashboard-cost-total > strong { color: var(--brand); font-size: 1.35rem; white-space: nowrap; }
.dashboard-cost-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .8rem; }
.dashboard-cost-post { min-width: 0; align-self: start; }
.dashboard-cost-post-head { display: flex; align-items: center; gap: .8rem; cursor: pointer; list-style: none; }
.dashboard-cost-post-head::-webkit-details-marker { display: none; }
.dashboard-cost-post-head:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; border-radius: 2px; }
.dashboard-cost-post[open] > .dashboard-cost-post-head { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.dashboard-cost-chevron { color: var(--brand); line-height: 1; }
.dashboard-cost-post[open] .dashboard-cost-chevron { transform: rotate(180deg); }
.dashboard-cost-post-head h2 { margin: 0; font-size: 1.05rem; }
.dashboard-cost-formula { margin: .7rem 0 0; color: var(--muted); font-size: .78rem; }
.dashboard-cost-post-head > strong { margin-left: auto; color: var(--brand); font-size: 1.1rem; white-space: nowrap; }
.dashboard-storage-locations { margin: .7rem 0; color: var(--muted); font-size: .82rem; }
.dashboard-cost-subtitle { margin: .85rem 0 -.25rem; font-size: .9rem; }
.dashboard-cost-pending { margin: .7rem 0 0; color: #8a5a00; font-size: .78rem; }
.dashboard-cost-lines, .dashboard-storage-lines { display: grid; gap: .45rem; margin-top: .75rem; }
.dashboard-cost-line { display: flex; justify-content: space-between; align-items: start; gap: .75rem; padding-top: .45rem; border-top: 1px solid #edf1f4; font-size: .82rem; }
.dashboard-cost-line > div { display: grid; gap: .18rem; min-width: 0; }
.dashboard-cost-line > strong { white-space: nowrap; }
.dashboard-cost-line .muted { font-size: .75rem; }
.dashboard-storage-week { padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.dashboard-cost-line-head { display: flex; justify-content: space-between; gap: .75rem; font-size: .8rem; }
.dashboard-cost-line-head .muted { font-size: .74rem; }
.dashboard-storage-component { display: grid; gap: .15rem; margin-top: .5rem; font-size: .78rem; }
.dashboard-storage-component > span { color: var(--muted); }
.dashboard-cost-line-total { display: flex; justify-content: space-between; gap: .75rem; margin-top: .55rem; padding-top: .5rem; border-top: 2px solid var(--brand2); color: var(--brand); font-size: .8rem; }
.dashboard-storage-lines > .muted, .dashboard-cost-post > .muted { margin: .75rem 0 0; font-size: .8rem; }
.table-wrap { overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
.returns-table { min-width: 0; table-layout: fixed; }
.returns-table th, .returns-table td { overflow-wrap: anywhere; }
.returns-table td.num, .returns-table th.num { overflow-wrap: normal; }
.returns-table th:nth-child(1) { width: 16%; }
.returns-table th:nth-child(2), .returns-table th:nth-child(3) { width: 11%; }
.returns-table th:nth-child(4) { width: 10%; }
.returns-table th:nth-child(5) { width: 16%; }
.returns-table th:nth-child(6) { width: 17%; }
.returns-table th:nth-child(7) { width: 11%; }
.returns-table th:nth-child(8) { width: 8%; }
th, td { border-bottom: 1px solid var(--line); padding: .72rem .8rem; text-align: left; vertical-align: top; }
.table-row-clickable { cursor: pointer; }
.table-row-clickable:hover td { background: #f8fafc; }
.table-row-clickable:focus-visible td { outline: 2px solid var(--brand2); outline-offset: -2px; }
.table-expanded-row > td { padding: 0; background: #f8fafc; }
.order-detail { padding: 1rem; border-top: 1px solid var(--line); background: #f8fafc; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; }
.order-detail h3 { margin: 0 0 .65rem; font-size: 1rem; }
.order-detail-count { margin: -.35rem 0 .65rem; font-size: .82rem; }
.order-detail-subtitle { margin: 1rem 0 .65rem; font-size: .9rem; }
.order-detail-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
.order-detail-table { min-width: 0; width: 100%; background: white; }
.order-detail-table th { font-size: .72rem; }
.order-detail-table th, .order-detail-table td { padding: .55rem .65rem; }
.order-detail-product { display: grid; gap: .2rem; }
.order-detail-meta { color: var(--muted); font-size: .78rem; }
.order-detail-total { margin: .75rem 0 0; text-align: right; }
.order-detail-formula { margin: .55rem 0 0; text-align: right; font-size: .78rem; }
.order-detail-grand-total { margin-top: .6rem; padding-top: .6rem; border-top: 2px solid var(--brand2); color: var(--brand); font-size: 1.02rem; }
.order-detail-loading { min-height: 5rem; }
.inventory-detail { padding: 1rem; border-top: 1px solid var(--line); background: #f8fafc; }
.inventory-detail h3, .inventory-detail h4 { margin: 0 0 .35rem; }
.inventory-detail h4 { font-size: .95rem; }
.inventory-detail-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .9rem; }
.inventory-detail-head p { margin: 0; }
.inventory-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.inventory-detail-card { display: grid; gap: .25rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: white; }
.inventory-detail-card strong { font-size: .92rem; }
.inventory-detail-card small { font-size: .78rem; }
.inventory-calculation { padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.inventory-selected-calculation { padding-bottom: .85rem; border-bottom: 2px solid var(--brand2); }
.inventory-co-located { margin-top: .85rem; padding-top: .85rem; }
.inventory-co-located h4 { margin-bottom: .25rem; }
.inventory-co-located p { margin: 0 0 .65rem; font-size: .78rem; }
.inventory-calculation-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .7rem; }
.inventory-calculation-head p { margin: 0; font-size: .82rem; }
.inventory-calculation-head > strong { color: var(--brand); font-size: 1.1rem; white-space: nowrap; }
.inventory-formula { display: block; margin-top: .2rem; color: var(--muted); font-size: .76rem; }
.inventory-detail-total { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding-top: .7rem; border-top: 2px solid var(--brand2); color: var(--brand); font-size: 1rem; }
.inventory-detail-loading { min-height: 5rem; }
.date-time { display: inline-grid; gap: .12rem; }
.date-time .muted { font-size: .78rem; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .035em; background: #f8fafc; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-sort { display: inline-flex; align-items: center; gap: .25rem; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }
.table-sort-label { min-width: 0; }
.table-sort:hover, .table-sort:focus-visible { color: var(--brand); text-decoration: underline; }
.table-sort > span[aria-hidden="true"] { color: var(--brand2); font-size: .95rem; }
.returns-table .table-sort { display: flex; width: 100%; max-width: 100%; min-width: 0; align-items: flex-start; white-space: normal; line-height: 1.2; }
.returns-table .table-sort-label { overflow-wrap: anywhere; }
.badge { display: inline-block; border-radius: 99px; padding: .2rem .48rem; font-size: .76rem; background: #e8eef4; }
.badge.order-item-picked { background: #dcfae6; color: #05603a; }
.badge.order-item-external { background: #fff3cd; color: #7a5500; }
.badge.order-item-packaging { background: #e3f2fd; color: #075985; }
.badge.order-item-not-picked { background: #e8eef4; color: var(--muted); }
.badge.fulfilment-merchant { background: #e3f2fd; color: #075985; }
.badge.fulfilment-lvb, .badge.fulfilment-fba, .badge.fulfilment-fbk { background: #fff3cd; color: #7a5500; }
.badge.status-canceled { background: #fff1f0; color: var(--danger); }
.badge.status-complete { background: #dcfae6; color: #05603a; }
.badge.return-reported { background: #fff3cd; color: #7a5500; }
.badge.return-processed { background: #dcfae6; color: #05603a; }
.badge.draft { background: #fff3cd; color: #7a5500; }
.badge.finalized, .badge.paid { background: #dcfae6; color: #05603a; }
.badge.shipping-loose { background: #e3f2fd; color: #075985; }
.badge.shipping-set { background: #dcfae6; color: #05603a; }
.badge.shipping-set-other { background: #e8e0ff; color: #5b21b6; }
.badge.shipping-other { background: #fff3cd; color: #7a5500; }
.badge.shipping-followup { background: #e8e0ff; color: #5b21b6; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.toolbar input { border: 1px solid #bac8d5; border-radius: 8px; padding: .6rem .7rem; }
.table-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; margin: 0 0 .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.table-filter { display: grid; gap: .3rem; min-width: min(210px, 100%); color: var(--muted); font-size: .78rem; font-weight: 700; }
.table-filter input, .table-filter select { min-width: 0; border: 1px solid #bac8d5; border-radius: 8px; padding: .58rem .65rem; background: white; color: var(--ink); font: inherit; font-weight: 400; }
.table-filter select[multiple] { min-height: 7rem; padding: .25rem; }
.table-filter input:focus, .table-filter select:focus { outline: 3px solid #1c6d7533; border-color: var(--brand2); }
.table-range-filter { min-width: min(260px, 100%); }
.table-range-inputs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) auto minmax(0, .8fr); align-items: center; gap: .35rem; }
.table-range-inputs span { color: var(--muted); font-size: .75rem; font-weight: 400; }
.multi-select { position: relative; min-width: 0; font-weight: 400; }
.multi-select summary { display: flex; justify-content: space-between; gap: .75rem; min-width: 0; border: 1px solid #bac8d5; border-radius: 8px; padding: .58rem .65rem; background: white; color: var(--ink); cursor: pointer; list-style: none; }
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary span { color: var(--brand2); }
.multi-select[open] summary { outline: 3px solid #1c6d7533; border-color: var(--brand2); }
.multi-select-menu { position: absolute; z-index: 10; top: calc(100% + .3rem); left: 0; min-width: 100%; padding: .45rem; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 24px #17233722; }
.multi-select-option { display: flex; align-items: center; gap: .45rem; padding: .45rem .35rem; color: var(--ink); font-weight: 400; white-space: nowrap; cursor: pointer; }
.multi-select-option:hover { background: #f4f7fa; }
.multi-select-option input { width: auto; margin: 0; }
.multi-select-clear { display: block; margin: .2rem .35rem 0; }
.filter-clear { align-self: end; }
.empty { background: white; border: 1px dashed #bac8d5; border-radius: 12px; color: var(--muted); padding: 2rem; text-align: center; }
.section-title { margin-top: 1.5rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1rem 0; }
.detail { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.account-field-full { grid-column: 1 / -1; }
.account-fields .field { margin-bottom: .7rem; }
.product-shipping { margin: 1.25rem 0; }
.product-summary { margin-bottom: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.product-toggle { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 0 1rem 0 0; color: var(--ink); background: var(--paper); text-align: left; }
.product-toggle-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 1rem; border: 0; padding: 1rem 0 1rem 1rem; color: var(--ink); background: transparent; text-align: left; }
.product-toggle-main:hover { background: #f8fafc; }
.ean-copy { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 7px; padding: .42rem .58rem; color: var(--brand2); background: white; font: inherit; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.ean-copy:hover { border-color: var(--brand2); background: #f3f8f9; }
.ean-copy-inline { margin-right: .65rem; padding: .12rem .35rem; font-size: .8rem; }
.product-ean-line { display: flex; align-items: center; }
.product-heading { flex: 1; min-width: 0; }
.product-heading h2 { margin-bottom: .35rem; }
.product-heading p { margin: .2rem 0 0; }
.expand-label { color: var(--brand); font-size: .85rem; font-weight: 750; white-space: nowrap; }
.product-thumb { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 10px; object-fit: cover; background: #eef3f7; }
.product-thumb.placeholder { display: grid; place-items: center; padding: .4rem; color: var(--muted); font-size: .72rem; text-align: center; }
.related-products { margin: .75rem 0 1rem 1.5rem; padding: .9rem 1rem; border-left: 3px solid var(--brand2); border-radius: 0 10px 10px 0; background: #f8fafc; }
.related-products h3, .shipping-costs h3 { margin: 0 0 .7rem; font-size: 1rem; }
.related-product { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.related-product:first-of-type { border-top: 0; }
.related-thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; object-fit: cover; background: #eef3f7; }
.related-thumb.placeholder { display: grid; place-items: center; padding: .25rem; color: var(--muted); font-size: .62rem; text-align: center; }
.related-details { min-width: 0; }
.related-details strong { display: block; }
.related-details p { margin: .15rem 0 0; }
.related-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.relation-label { display: block; margin-bottom: .15rem; color: var(--brand2); font-size: .75rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.shipping-costs { margin: 1rem 0 0; }
.shipping-all-orders { margin-top: 1.25rem; }
.shipping-all-orders h3 { margin-bottom: .7rem; }
.shipping-variant { display: grid; gap: .2rem; min-width: 260px; }
.shipping-variant strong { font-weight: 700; }
.shipping-variant .muted { font-size: .85rem; }
.shipping-detail-loading { padding: 1rem; }
.shipping-detail-loading .loading-bar { margin-bottom: .55rem; }
.shipping-order-details { padding: 1rem; }
.shipping-order-detail { margin-bottom: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.shipping-order-detail:last-child { margin-bottom: 0; }
.shipping-order-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .7rem; }
.shipping-order-head div { display: grid; gap: .2rem; }
.shipping-order-head .shipping-order-ref { display: flex; }
.shipping-order-head .muted { font-size: .85rem; }
.shipping-order-ref { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.copy-inline { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 7px; padding: .12rem .35rem; color: var(--brand2); background: white; font: inherit; font-size: .75rem; cursor: pointer; white-space: nowrap; }
.copy-inline:hover { border-color: var(--brand2); background: #f3f8f9; }
.shipping-cost-detail { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #f8fafc; }
.shipping-cost-detail-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .9rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.shipping-cost-detail-head h3 { margin: 0 0 .25rem; font-size: 1rem; }
.shipping-cost-detail-head .order-detail-count { margin: 0; }
.shipping-cost-detail-total { display: flex; flex-direction: column; align-items: flex-end; gap: .12rem; color: var(--brand); font-size: 1.05rem; white-space: nowrap; }
.shipping-cost-detail-total span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.shipping-cost-table { min-width: 0; }
.shipping-cost-table th, .shipping-cost-table td { padding: .65rem .75rem; }
.shipping-cost-table th.num, .shipping-cost-table td.num { width: 9rem; }
.product-hint { margin: .35rem 0 0 1.5rem; }
.recovery { background: #f1f5f9; padding: 1rem; border-radius: 8px; columns: 2; font-family: ui-monospace, monospace; }
@media (max-width: 780px) {
  .portal-grid { grid-template-columns: 1fr; padding: .8rem; }
  .nav { overflow-x: auto; flex-direction: row; }
  .nav a { white-space: nowrap; }
  .topbar { align-items: flex-start; }
  .product-toggle { align-items: flex-start; padding-right: 1rem; flex-wrap: wrap; }
  .product-toggle-main { align-items: flex-start; padding-right: 0; }
  .expand-label { font-size: .76rem; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .inventory-detail-grid { grid-template-columns: 1fr; }
  .inventory-detail-head, .inventory-calculation-head { flex-direction: column; }
  .dashboard-cost-posts { grid-template-columns: 1fr; }
  .dashboard-cost-total { align-items: flex-start; flex-direction: column; }
  .account-fields { grid-template-columns: 1fr; }
  .account-field-full { grid-column: auto; }
}

/* Keep expanded storage tables readable without stretching the page. */
.inventory-table { table-layout: fixed; min-width: 900px; }
.inventory-table > thead > tr > th:first-child { width: 76px; }
.inventory-table > thead > tr > th:nth-child(2) { width: 180px; }
.inventory-table > thead > tr > th:nth-child(4) { width: 110px; }
.inventory-table > thead > tr > th:nth-child(5) { width: 210px; }
.inventory-table > thead > tr > th:nth-child(6) { width: 160px; }
.inventory-table > tbody > tr:not(.table-expanded-row) > td:nth-child(3) { overflow-wrap: anywhere; }
.inventory-locations-table { min-width: 1120px; }
.inventory-locations-table > thead > tr > th,
.inventory-locations-table > tbody > tr:not(.table-expanded-row) > td { padding: .8rem 1rem; white-space: nowrap; }
.inventory-table .inventory-detail .order-detail-table { min-width: 1000px; }
.inventory-table .order-detail-table th,
.inventory-table .order-detail-table td { padding: .75rem 1rem; }
.inventory-table .inventory-detail .table-wrap,
.inventory-table .order-detail-table-wrap { max-width: 100%; overflow-x: auto; }

.inventory-product-title { display: block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.shipping-products-table { table-layout: fixed; min-width: 900px; }
.shipping-products-table > thead > tr > th:first-child { width: 76px; }
.shipping-products-table > thead > tr > th:nth-child(2) { width: 180px; }
.shipping-products-table > thead > tr > th:nth-child(4),
.shipping-products-table > thead > tr > th:nth-child(5) { width: 100px; }
.shipping-products-table > thead > tr > th:nth-child(6) { width: 180px; }
.shipping-product-detail { padding: 1rem; }
.shipping-product-detail .related-products { margin-top: 0; }
.shipping-product-detail .table-wrap { max-width: 100%; overflow-x: auto; }
.shipping-product-detail .table-wrap > table { min-width: 1000px; }
.shipping-product-detail .order-detail-table { min-width: 700px; }
