.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(215,222,232,.95); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.topbar-inner { display: flex; width: min(1120px, calc(100% - 32px)); min-height: 76px; margin: 0 auto; padding: 10px 0; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.brand:hover:not(:disabled) { transform: none; }
.brand-mark-stack { position: relative; width: 54px; flex: 0 0 54px; }
.brand-logo-slot img { width: 54px; height: 54px; border: 1px solid #d8c6a7; border-radius: 8px; object-fit: cover; }
.brand-beta-label { position: absolute; right: -.1rem; bottom: -.38rem; color: #a64b18; font-size: .55rem; font-weight: 900; letter-spacing: .08em; }
.topbar-title-stack { display: grid; padding-left: .65rem; text-align: left; }
.topbar-screen-title { color: var(--brand-strong); font-size: 1.06rem; font-weight: 850; }
.toolbar { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.connection-pill { display: inline-flex; min-height: 36px; align-items: center; padding: .42rem .7rem; border-radius: 8px; color: var(--muted); background: var(--surface-soft); font-size: .76rem; font-weight: 800; }
.connection-pill.connected { color: var(--green); background: var(--green-soft); }
.connection-pill.disconnected { color: var(--amber); background: var(--amber-soft); }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.language-switch button { min-width: 30px; height: 30px; padding: 0 5px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: .69rem; font-weight: 850; }
.language-switch button.active { color: #fff; background: var(--brand); }
.app-menu-link { flex: 0 0 42px; }

.module-navigation { display: grid; width: min(1088px, calc(100% - 32px)); grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 12px auto 0; padding: 5px; border: 1px solid #cbd8e8; border-radius: 10px; background: #eaf0f7; }
.module-navigation a { display: flex; min-height: 46px; align-items: center; justify-content: center; padding: .5rem; border-radius: 8px; color: #52657d; font-weight: 850; text-align: center; text-decoration: none; }
.module-navigation a.active { color: var(--brand-strong); background: #fff; box-shadow: 0 3px 10px rgba(21,39,67,.09); }

.page { padding-top: 14px; padding-bottom: 52px; }
.page-heading { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(250px,.72fr); align-items: center; gap: 1rem; margin-bottom: .65rem; padding: 1rem 1.1rem; }
.page-heading h1 { margin-bottom: .3rem; font-size: clamp(1.42rem,2.4vw,1.85rem); }
.page-heading .eyebrow { margin-bottom: .25rem; }
.page-heading-copy p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.workspace-note { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .75rem; border: 1px solid #d6e2ef; border-radius: 10px; background: var(--blue-soft); }
.workspace-note-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 900; }
.workspace-note strong, .workspace-note small { display: block; }
.workspace-note small { margin-top: .18rem; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.warehouse-cadence-note { margin: 0 0 .65rem; padding: .55rem .75rem; border-left: 3px solid var(--blue); border-radius: 0 9px 9px 0; color: var(--muted); background: rgba(237,244,252,.72); font-size: .76rem; line-height: 1.4; }
.warehouse-reconnect-notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
#screenStatus { margin-bottom: .65rem; padding: .65rem .8rem; font-size: .8rem; }
.warehouse-overview { margin-bottom: .65rem; overflow: hidden; }
.warehouse-overview-summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: .65rem;
  padding: .62rem .78rem;
  color: var(--brand-strong);
  background: linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  cursor: pointer;
  list-style: none;
}
.warehouse-overview-summary::-webkit-details-marker { display: none; }
.warehouse-overview-summary::before {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid #c6d5e4;
  border-radius: 7px;
  color: var(--blue);
  background: #fff;
  content: '\203A';
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}
.warehouse-overview[open] > .warehouse-overview-summary::before { transform: rotate(90deg); }
.warehouse-overview-summary:focus-visible { outline: 3px solid rgba(47,125,209,.25); outline-offset: -3px; }
.warehouse-overview-summary-copy { display: flex; min-width: 0; flex: 1 1 auto; align-items: baseline; gap: .55rem; }
.warehouse-overview-summary-copy strong { font-size: .86rem; }
.warehouse-overview-summary-copy > span { overflow: hidden; color: var(--muted); font-size: .7rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.warehouse-overview-summary > .status-badge { flex: 0 0 auto; }
.warehouse-overview-content { padding: 0 .65rem .01rem; border-top: 1px solid #e4eaf1; background: rgba(247,250,252,.68); }
.sync-panel { display: grid; grid-template-columns: minmax(175px,.48fr) minmax(280px,1.4fr) auto; grid-template-rows: auto auto; align-items: center; gap: .35rem 1rem; margin-bottom: .65rem; padding: .72rem .85rem; }
.sync-heading { display: flex; grid-column: 1; grid-row: 1 / span 2; align-items: center; justify-content: space-between; gap: .55rem; }
.sync-heading .eyebrow { display: none; }
.sync-heading h2 { font-size: .96rem; white-space: nowrap; }
.sync-panel > p { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; overflow: hidden; color: var(--muted); font-size: .76rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sync-panel > .progress-track { grid-column: 2; grid-row: 2; }
.sync-panel > .progress-copy { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.sync-panel > .sync-error { grid-column: 1 / -1; grid-row: 3; white-space: normal; }
.status-badge { display: inline-flex; min-height: 28px; align-items: center; padding: .3rem .56rem; border-radius: 999px; font-size: .7rem; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.status-active,.status-sold { color: var(--green); background: var(--green-soft); }
.status-unlisted,.status-ended,.status-out_of_stock { color: var(--amber); background: var(--amber-soft); }
.status-scheduled { color: var(--blue); background: var(--blue-soft); }
.status-error { color: var(--red); background: var(--red-soft); }
.status-neutral { color: #53647a; background: #edf1f6; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e6edf5; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),#4f91be); transition: width 180ms ease; }
.progress-copy { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.sync-error { color: var(--red)!important; }

.summary-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .42rem; margin: .65rem 0; }
.summary-card { min-width: 0; padding: .62rem .68rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(21,39,67,.035); }
.summary-card > span { display: block; min-height: 2.25em; color: #52657d; font-size: .63rem; font-weight: 850; line-height: 1.15; text-transform: uppercase; letter-spacing: .025em; }
.summary-card strong { display: block; margin: .16rem 0 0; font-size: clamp(1.15rem,2vw,1.45rem); line-height: 1; }
.summary-card small { display: none; color: var(--muted); line-height: 1.35; }
.summary-card-operational { border-left: 3px solid #8a9fb5; }
.controls { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)) auto; gap: .55rem; align-items: end; margin-bottom: .35rem; padding: .72rem .8rem; border-radius: var(--radius-md); }
.controls label { display: grid; gap: .38rem; color: var(--brand); font-size: .77rem; font-weight: 800; }
.controls input,.controls select { width: 100%; min-height: 40px; padding: 0 .7rem; border: 1px solid #cdd8e5; border-radius: 8px; color: var(--ink); background: #fff; }
.filter-reset { min-height: 40px; white-space: nowrap; }
.warehouse-search-panel { margin: .35rem 0; padding: .58rem .7rem; border-color: #cbd8e8; box-shadow: 0 3px 12px rgba(21,39,67,.045); }
.warehouse-search-row { width: 100%; }
.warehouse-search-row .search-field { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .65rem; color: var(--brand); font-size: .77rem; font-weight: 850; }
.warehouse-search-row .search-field > span { padding-left: .08rem; white-space: nowrap; }
.warehouse-search-row input { width: 100%; min-height: 42px; padding: 0 .8rem; border: 1px solid #9ebbd8; border-radius: 9px; color: var(--ink); background: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.warehouse-search-row input::placeholder { color: #77879a; opacity: 1; }
.warehouse-view-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: .7rem; padding: .58rem .7rem; border-radius: var(--radius-md); }
.view-switch { display: inline-grid; flex: 0 0 auto; grid-template-columns: repeat(2,minmax(86px,1fr)); padding: 4px; border: 1px solid #cbd8e8; border-radius: 9px; background: #eaf0f7; }
.view-switch-button { min-height: 38px; padding: .45rem .75rem; border: 0; border-radius: 7px; color: #52657d; background: transparent; cursor: pointer; font-size: .8rem; font-weight: 850; }
.view-switch-button.active { color: var(--brand-strong); background: #fff; box-shadow: 0 2px 8px rgba(21,39,67,.1); }
.page-size-control { display: flex; flex: 0 0 auto; align-items: center; gap: .45rem; color: var(--muted); font-size: .76rem; font-weight: 800; }
.page-size-control select { min-height: 38px; padding: 0 .55rem; border: 1px solid #cdd8e5; border-radius: 7px; background: #fff; }
.view-actions { display: flex; min-width: 0; flex: 1 1 520px; align-items: center; flex-wrap: wrap; gap: .45rem; }
.view-actions .button { max-width: 100%; min-height: 38px; padding: .5rem .68rem; overflow-wrap: anywhere; white-space: normal; font-size: .74rem; }
.result-count { min-width: 110px; flex: 0 1 auto; margin-left: auto; color: var(--muted); font-size: .82rem; font-weight: 750; text-align: right; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0 .55rem; }
.section-heading .eyebrow { margin-bottom: .22rem; }
.section-heading h2 { font-size: 1.32rem; }
.warehouse-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.load-more-row { display: flex; justify-content: center; padding: 24px 0 8px; }

.warehouse-table-scroll { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 8px 22px rgba(21,39,67,.05); scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.warehouse-table-scroll:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 2px; }
.warehouse-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: var(--ink); font-size: .78rem; }
.warehouse-table th,.warehouse-table td { min-width: 0; padding: .68rem .72rem; overflow: hidden; border-right: 1px solid #edf1f5; border-bottom: 1px solid #e4eaf1; text-align: left; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.warehouse-table th { position: sticky; z-index: 3; top: 0; overflow: visible; color: #51647b; background: #edf2f8; font-size: .68rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.warehouse-table tbody tr:nth-child(even) { background: #f8fafc; }
.warehouse-table tbody tr:hover { background: #eef5fc; }
.warehouse-table th:last-child,.warehouse-table td:last-child { right: auto; border-right: 0; box-shadow: none; }
.warehouse-table th:last-child { z-index: 3; background: #edf2f8; }
.warehouse-table td:last-child { background: #fff; }
.warehouse-table tbody tr:nth-child(even) td:last-child { background: #f8fafc; }
.warehouse-table tbody tr:hover td:last-child { background: #eef5fc; }
.warehouse-table-title { font-weight: 750; white-space: normal!important; }
.warehouse-table-status { overflow: hidden!important; }
.warehouse-table-status .status-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warehouse-table-photo { padding: .38rem!important; }
.table-image,.table-image-placeholder { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 7px; object-fit: cover; background: var(--surface-soft); }
.table-image-placeholder { padding: .25rem; color: #8290a0; font-size: .58rem; font-weight: 750; text-align: center; white-space: normal; }
.table-sort-button { display: flex; width: 100%; min-height: 26px; align-items: center; justify-content: space-between; gap: .35rem; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; }
.table-sort-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sort-indicator { color: var(--blue); font-size: .9rem; }
.column-resize-handle { position: absolute; z-index: 5; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; touch-action: none; }
.column-resize-handle::after { position: absolute; top: 20%; right: 4px; width: 1px; height: 60%; background: #bbc8d7; content: ''; }
.column-resize-handle:focus-visible { outline: 3px solid #1d5fa8; outline-offset: 1px; }
.warehouse-table-actions { white-space: normal!important; }
.table-actions { display: flex; width: 100%; min-width: 0; align-items: stretch; flex-wrap: wrap; gap: .35rem; }
.button-compact { min-height: 32px!important; padding: .38rem .55rem!important; font-size: .68rem!important; white-space: nowrap; }
.warehouse-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .15rem 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
.warehouse-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; }
.pagination-button { min-width: 34px; height: 34px; padding: 0 .45rem; border: 1px solid #cfdae7; border-radius: 7px; color: var(--brand); background: #fff; cursor: pointer; font-size: .76rem; font-weight: 800; }
.pagination-button.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.pagination-button:disabled { opacity: .45; cursor: not-allowed; }
.pagination-ellipsis { min-width: 24px; text-align: center; }

.warehouse-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; overflow: hidden; border: 1px solid #d8e2ed; border-radius: 16px; color: inherit; background: linear-gradient(180deg,#fff 0%,#fbfdff 100%); box-shadow: 0 10px 28px rgba(21,39,67,.075); transition: border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease; }
.warehouse-card:hover { border-color: #bdcee0; box-shadow: 0 15px 34px rgba(21,39,67,.11); transform: translateY(-2px); }
.card-top { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: .9rem; padding: 1rem 1rem .15rem; }
.card-media { position: relative; width: 104px; }
.item-image,.item-image-placeholder { width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; background: var(--surface-soft); }
.item-image-placeholder { display: grid; place-items: center; padding: .45rem; color: #8290a0; font-size: .7rem; font-weight: 750; text-align: center; }
.card-heading { min-width: 0; }
.card-statuses { display: flex; flex-wrap: wrap; gap: .3rem; }
.card-statuses .status-badge,.inventory-badge { min-height: 24px; padding: .24rem .48rem; font-size: .61rem; }
.inventory-badge { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 850; letter-spacing: .015em; }
.physical-in-stock,.count-verified { color: #08705a; background: #e1f5ee; }
.physical-sold-out,.count-discrepancy { color: var(--red); background: var(--red-soft); }
.physical-ebay-only { color: var(--blue); background: var(--blue-soft); }
.physical-unknown,.count-not-recorded,.status-unknown { color: #53647a; background: #edf1f6; }
.card-heading h3 { display: -webkit-box; overflow: hidden; margin: .48rem 0 .42rem; font-size: 1rem; line-height: 1.32; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-identifiers { display: flex; min-width: 0; flex-wrap: wrap; gap: .28rem; }
.card-identifiers .meta-chip { max-width: 100%; color: #52657d; background: #f7f9fc; font-size: .62rem; }
.card-body { padding: .85rem 1rem 1rem; }
.shelf-control { display: grid; width: 100%; min-height: 50px; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: .55rem; margin-bottom: .7rem; padding: .52rem .65rem; border: 1px solid #cbdbea; border-radius: 10px; color: var(--brand-strong); background: #edf5fd; cursor: pointer; text-align: left; }
button.shelf-control:hover:not(:disabled) { border-color: #91b6d8; background: #e5f1fc; }
.shelf-control:focus-visible { outline: 3px solid rgba(37,99,235,.28); outline-offset: 2px; }
.shelf-control:disabled { cursor: not-allowed; opacity: .6; }
.shelf-control.shelf-missing { border-color: #e1ca86; color: #704f08; background: var(--amber-soft); }
.shelf-control-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #fff; background: var(--blue); font-size: 1rem; }
.shelf-missing .shelf-control-icon { background: #9a6c0c; }
.shelf-control-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-control-action { color: inherit; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.quantity-grid,.money-grid { display: grid; gap: .45rem; }
.quantity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.money-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.money-grid { margin-top: .45rem; }
.metric { min-width: 0; padding: .62rem .55rem; border: 1px solid #edf1f5; border-radius: 9px; background: var(--surface-soft); }
.metric-local { border-color: #cce9df; background: #effaf6; }
.metric-counted { border-color: #ddd6f3; background: #f6f3fd; }
.metric-ebay { border-color: #d4e4f4; background: #f1f7fd; }
.metric span { display: block; min-height: 2.1em; margin-bottom: .17rem; color: var(--muted); font-size: .63rem; font-weight: 750; line-height: 1.05; }
.metric strong { display: block; overflow: hidden; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .7rem; }
.meta-chip { display: inline-flex; max-width: 100%; overflow: hidden; padding: .28rem .46rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.card-timestamps { display: grid; gap: .14rem; margin-top: .6rem; color: var(--muted); font-size: .67rem; line-height: 1.35; }
.card-attention { margin: .65rem 0 0; padding: .6rem .68rem; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; color: #8d2c27; background: var(--red-soft); font-size: .72rem; font-weight: 750; line-height: 1.4; }
.card-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding: .8rem 1rem 1rem; border-top: 1px solid #edf1f5; }
.card-actions .button { min-height: 44px; padding: .58rem .72rem; font-size: .72rem; }
.card-more-actions { width: 100%; color: var(--muted); font-size: .72rem; }
.card-more-actions summary { display: inline-flex; min-height: 44px; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); background: #fff; cursor: pointer; font-weight: 800; }
.card-more-actions summary:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 2px; }
.card-marketplace-links { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .45rem; }
.card-marketplace-links .button { min-height: 38px; }
.empty-state { display: grid; justify-items: center; gap: .35rem; padding: 3rem 1rem; color: var(--muted); text-align: center; }

.detail-dialog { width: min(720px,calc(100% - 24px)); max-height: min(88vh,900px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 80px rgba(8,25,46,.3); }
.detail-dialog::backdrop { background: rgba(8,25,46,.55); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.detail-body { max-height: calc(88vh - 86px); overflow: auto; padding: 1.2rem; }
.detail-section + .detail-section { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.detail-section h3 { margin-bottom: .75rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.detail-field { min-width: 0; }
.detail-field span { display: block; margin-bottom: .18rem; color: var(--muted); font-size: .72rem; font-weight: 750; }
.detail-field strong,.detail-field p { overflow-wrap: anywhere; }
.detail-field p { margin-bottom: 0; white-space: pre-wrap; }
.listing-entry { padding: .85rem; border: 1px solid var(--line); border-radius: 10px; }
.listing-entry + .listing-entry { margin-top: .6rem; }
.listing-entry .detail-grid { margin-bottom: .7rem; }
.photo-link-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.photo-link-list .button { min-height: 34px; padding: .45rem .6rem; font-size: .72rem; }
.structured-facts { display: grid; grid-template-columns: minmax(120px,.65fr) minmax(0,1.35fr); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.structured-facts dt,.structured-facts dd { min-width: 0; margin: 0; padding: .5rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.structured-facts dt { color: var(--muted); background: var(--surface-soft); font-size: .72rem; font-weight: 800; }
.structured-facts dd { font-size: .78rem; }
.structured-facts dt:last-of-type,.structured-facts dd:last-of-type { border-bottom: 0; }
.dialog-intro { color: var(--muted); line-height: 1.5; }
.column-settings-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin: 1rem 0; }
.column-choice { display: flex; min-height: 42px; align-items: center; gap: .6rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); font-size: .82rem; font-weight: 750; cursor: pointer; }
.column-choice:has(input:checked) { border-color: #9dbddd; background: var(--blue-soft); }
.column-choice input,
.warehouse-table-selection .warehouse-selection-checkbox {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  place-content: center;
  border: 2px solid #8da2b8;
  border-radius: 6px;
  color: #fff;
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.column-choice input::before,
.warehouse-table-selection .warehouse-selection-checkbox::before {
  width: 10px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  content: '';
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 100ms ease;
}
.column-choice input:checked,
.warehouse-table-selection .warehouse-selection-checkbox:checked,
.warehouse-table-selection .warehouse-selection-checkbox:indeterminate {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 2px 7px rgba(51,102,168,.22);
}
.column-choice input:checked::before,
.warehouse-table-selection .warehouse-selection-checkbox:checked::before { transform: rotate(-45deg) scale(1); }
.warehouse-table-selection .warehouse-selection-checkbox:indeterminate::before {
  width: 10px;
  height: 0;
  border-width: 0 0 2px;
  transform: none;
}
.column-choice input:focus-visible,
.warehouse-table-selection .warehouse-selection-checkbox:focus-visible { outline: 3px solid rgba(47,125,209,.24); outline-offset: 3px; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.function-guide-dialog { width: min(820px,calc(100% - 24px)); }
.function-guide-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.function-guide-list article { padding: .85rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.function-guide-list h3 { margin-bottom: .35rem; font-size: .95rem; }
.function-guide-list p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.function-guide-list .guide-safety { grid-column: 1/-1; border-color: #d7c789; background: var(--amber-soft); }
.operation-dialog { width: min(620px,calc(100% - 24px)); }
.operation-form { display: grid; gap: .85rem; }
.operation-item-title { margin: 0; color: var(--brand-strong); font-size: 1rem; font-weight: 850; line-height: 1.4; }
.operation-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.operation-summary { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.operation-summary span { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .72rem; font-weight: 750; }
.operation-summary strong,.operation-summary output { display: block; overflow-wrap: anywhere; color: var(--brand-strong); font-size: 1.05rem; font-weight: 850; }
.operation-field { display: grid; gap: .38rem; color: var(--brand); font-size: .77rem; font-weight: 800; }
.operation-field input,.operation-field textarea,.operation-field select { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid #cdd8e5; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-weight: 500; }
.operation-field textarea { resize: vertical; }
.operation-field input:focus,.operation-field textarea:focus,.operation-field select:focus { border-color: var(--blue); outline: 3px solid #1d5fa8; outline-offset: 2px; }
.dialog-operation-status { min-height: 1.4em; margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
.dialog-operation-status.status-error { color: var(--red); }
.dialog-operation-status.status-success { color: var(--green); }
.operation-dialog-actions { gap: .55rem; }
.operation-dialog-actions .button { min-height: 44px; }
.history-dialog { width: min(700px,calc(100% - 24px)); }
.warehouse-history-list { display: grid; gap: .65rem; margin-top: 1rem; }
.warehouse-history-entry { position: relative; padding: .82rem .9rem .82rem 1rem; border: 1px solid var(--line); border-left: 4px solid #91a5ba; border-radius: 10px; background: #fff; }
.warehouse-history-entry.history-count { border-left-color: var(--blue); }
.warehouse-history-entry.history-shelf { border-left-color: #7964c7; }
.warehouse-history-entry.history-adjustment { border-left-color: var(--amber); }
.history-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.history-entry-head time { flex: 0 0 auto; color: var(--muted); font-size: .7rem; }
.history-change { margin: .45rem 0 0; color: var(--brand-strong); font-weight: 800; overflow-wrap: anywhere; }
.history-meta { margin: .28rem 0 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.history-undo { min-height: 40px; margin-top: .65rem; }
.empty-history { margin: 0; padding: 1.4rem; border: 1px dashed #cbd8e5; border-radius: 9px; color: var(--muted); background: var(--surface-soft); text-align: center; }

/* Warehouse workflow UI contract. app.js owns state and events; these classes only
   define the shared, responsive shell for scanning, recounting and shelf moves. */
.workflow-actions { display: inline-flex; min-width: 0; flex-wrap: wrap; gap: .45rem; }
.workflow-actions .button { min-height: 42px; }
.button-danger-text { color: var(--red); }
.recount-session-panel { display: grid; gap: 1rem; margin-bottom: 1rem; padding: 1.1rem; border-left: 4px solid var(--blue); }
.recount-session-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.recount-session-heading h2 { margin: 0; font-size: 1.2rem; }
.recount-session-progress { display: grid; gap: .45rem; }
.recount-session-progress .progress-copy { margin: 0; }
.recount-session-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.recount-session-actions .button { min-height: 44px; }
.warehouse-selection-bar { position: sticky; z-index: 8; bottom: .75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -1rem 0 1.5rem; padding: .8rem 1rem; border-color: #b8cbe0; background: rgba(255,255,255,.97); box-shadow: 0 12px 30px rgba(21,39,67,.16); backdrop-filter: blur(12px); }
.warehouse-selection-summary { display: grid; min-width: 0; gap: .18rem; }
.warehouse-selection-summary strong { color: var(--brand-strong); }
.warehouse-selection-summary span { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.warehouse-selection-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.warehouse-selection-actions .button { min-height: 42px; }
.warehouse-card-selection { position: absolute; z-index: 4; top: .7rem; right: .7rem; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #c6d4e3; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 4px 12px rgba(21,39,67,.11); cursor: pointer; }
.warehouse-card-selection .warehouse-selection-checkbox { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.warehouse-selection-mark { display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #8da2b8; border-radius: 6px; background: #fff; transition: border-color 120ms ease,background-color 120ms ease,box-shadow 120ms ease; }
.warehouse-card-selection .warehouse-selection-checkbox:checked + .warehouse-selection-mark { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 2px 7px rgba(51,102,168,.22); }
.warehouse-card-selection .warehouse-selection-checkbox:checked + .warehouse-selection-mark::after { content: '\2713'; font-size: .9rem; font-weight: 900; line-height: 1; }
.warehouse-card-selection .warehouse-selection-checkbox:focus-visible + .warehouse-selection-mark { outline: 3px solid rgba(37,99,235,.25); outline-offset: 3px; }
.warehouse-card-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14),0 14px 32px rgba(21,39,67,.12); }
.warehouse-table-selection-column { min-width: 46px; }
.warehouse-table th.warehouse-table-selection,.warehouse-table td.warehouse-table-selection { position: sticky; z-index: 4; left: 0; width: 46px; min-width: 46px; padding: 0 .25rem; overflow: visible; text-align: center; background: inherit; box-shadow: 7px 0 12px rgba(21,39,67,.04); }
.warehouse-table th.warehouse-table-selection { z-index: 6; background: #edf2f8; }
.warehouse-table td.warehouse-table-selection { background: #fff; }
.warehouse-table tbody tr:nth-child(even) td.warehouse-table-selection { background: #f8fafc; }
.warehouse-table tbody tr:hover td.warehouse-table-selection { background: #eef5fc; }
.warehouse-table-selection .warehouse-selection-checkbox { margin: 0 auto; }
.warehouse-table-row-selected,.warehouse-table-row-selected:hover { background: #e7f1fc!important; }
.warehouse-table-row-selected td.warehouse-table-selection { background: #e7f1fc; }
.warehouse-table-row-selected td:last-child,.warehouse-table-row-selected:hover td:last-child { background: #e7f1fc; }
.workflow-dialog { width: min(760px,calc(100% - 24px)); }
.workflow-dialog-body { display: grid; gap: 1rem; }
.workflow-dialog-body > .dialog-intro,.workflow-dialog-body > .dialog-operation-status { margin: 0; }
.workflow-section { padding: 1rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.workflow-section h3 { margin: 0 0 .8rem; font-size: 1rem; }
.workflow-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
.workflow-form-wide { grid-column: 1/-1; }
.workflow-form-submit { min-height: 46px; justify-self: start; }
.workflow-inline-field { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .65rem; }
.workflow-inline-field .button { min-height: 46px; }
.workflow-safety-note { margin: 0; padding: .7rem .8rem; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; color: var(--muted); background: var(--blue-soft); font-size: .76rem; line-height: 1.5; }
.scanner-dialog { width: min(680px,calc(100% - 24px)); }
.scanner-camera { position: relative; display: grid; min-height: 270px; overflow: hidden; place-items: center; border: 1px solid #bdcadd; border-radius: 12px; background: #101c2d; }
.scanner-camera video { position: absolute; width: 100%; height: 100%; opacity: 0; inset: 0; object-fit: cover; }
.scanner-camera video.scanner-video-active { opacity: 1; }
.scanner-camera video.scanner-video-active ~ .scanner-camera-placeholder { display: none; }
.scanner-frame { position: absolute; z-index: 2; width: min(72%,360px); aspect-ratio: 1.75; border: 3px solid rgba(255,255,255,.92); border-radius: 12px; box-shadow: 0 0 0 999px rgba(8,25,46,.3); pointer-events: none; }
.scanner-camera-placeholder { z-index: 1; max-width: 240px; margin: 0; color: #dce7f4; font-size: .82rem; font-weight: 750; text-align: center; }
.scanner-manual-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .65rem; }
.scanner-manual-form .button { min-height: 46px; }
.scanner-results { display: grid; gap: .55rem; }
.scanner-results:empty { display: none; }
.scanner-result { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.scanner-result-copy { min-width: 0; }
.scanner-result-copy strong,.scanner-result-copy span { display: block; overflow-wrap: anywhere; }
.scanner-result-copy span { margin-top: .14rem; color: var(--muted); font-size: .72rem; }
.scanner-result .button { min-height: 44px; }
.scanner-match-button { display: grid; width: 100%; min-height: 56px; gap: .16rem; padding: .7rem .8rem; border: 1px solid #c9d6e5; border-radius: 9px; color: var(--brand-strong); background: #fff; cursor: pointer; text-align: left; }
.scanner-match-button:hover { border-color: #8eb4da; background: var(--blue-soft); }
.scanner-match-button:focus-visible { border-color: var(--blue); outline: 3px solid rgba(37,99,235,.2); outline-offset: 2px; }
.scanner-match-button strong,.scanner-match-button span { overflow-wrap: anywhere; }
.scanner-match-button span { color: var(--muted); font-size: .72rem; }
.shelf-label-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.75fr); gap: 1rem; align-items: center; }
.shelf-label-controls { display: grid; gap: .75rem; }
.shelf-label-controls h3 { margin: 0; }
.shelf-label-controls .button { justify-self: start; }
.shelf-qr-card { display: grid; min-height: 250px; margin: 0; padding: 1rem; place-items: center; border: 2px solid var(--brand); border-radius: 12px; background: #fff; text-align: center; }
.shelf-qr-image { width: min(100%,210px); aspect-ratio: 1; object-fit: contain; image-rendering: crisp-edges; }
.shelf-qr-placeholder { max-width: 220px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.shelf-qr-card figcaption { max-width: 100%; margin-top: .5rem; overflow-wrap: anywhere; color: var(--brand-strong); font-size: 1.1rem; font-weight: 900; letter-spacing: .04em; }
.warehouse-shelf-print-root { display: none; }
.warehouse-shelf-print-label { box-sizing: border-box; }
.batch-selected-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--brand); font-size: .78rem; font-weight: 800; }
.batch-selected-heading strong { display: grid; min-width: 32px; min-height: 32px; place-items: center; border-radius: 999px; color: #fff; background: var(--brand); }
.batch-selected-list { display: grid; max-height: 210px; margin: 0; padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 9px; list-style: none; }
.batch-selected-list:empty::before { content: '\2014'; padding: 1rem; color: var(--muted); text-align: center; }
.batch-selected-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem; padding: .62rem .75rem; border-bottom: 1px solid var(--line); font-size: .78rem; }
.batch-selected-list li:last-child { border-bottom: 0; }
.batch-selected-list small { color: var(--muted); }

@media (max-width: 1080px) {
  .warehouse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .controls { grid-template-columns: repeat(3,minmax(160px,1fr)); }
  .filter-reset { align-self: end; }
  .warehouse-view-toolbar { align-items: stretch; flex-wrap: wrap; }
  .view-actions { flex-basis: 100%; }
  .workflow-actions { width: 100%; }
  .result-count { align-self: center; margin-left: 0; }
  .header-sync { display: none; }
}
@media (max-width: 780px) {
  .topbar-inner { width: min(100% - 20px,1120px); min-height: 72px; }
  .topbar-title-stack,.connection-pill { display: none; }
  .brand-mark-stack { width: 52px; flex-basis: 52px; }
  .brand-logo-slot img { width: 52px; height: 52px; }
  .module-navigation { width: min(100% - 20px,1088px); margin-top: 8px; }
  .module-navigation a { min-height: 46px; padding: .45rem .2rem; font-size: .76rem; }
  .page-heading { grid-template-columns: 1fr; gap: .7rem; }
  .warehouse-overview-summary { min-height: 46px; padding: .58rem .68rem; }
  .warehouse-overview-summary-copy { display: grid; gap: .1rem; }
  .warehouse-overview-summary-copy > span { font-size: .65rem; }
  .warehouse-overview-content { padding: 0 .5rem .01rem; }
  .sync-panel { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto auto; gap: .45rem .75rem; }
  .sync-heading { grid-column: 1 / -1; grid-row: 1; }
  .sync-panel > p { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .sync-panel > .progress-track { grid-column: 1; grid-row: 3; }
  .sync-panel > .progress-copy { grid-column: 2; grid-row: 3; }
  .sync-panel > .sync-error { grid-column: 1 / -1; grid-row: 4; }
  .warehouse-grid,.controls { grid-template-columns: 1fr; }
  .warehouse-search-row .search-field { grid-template-columns: 1fr; gap: .3rem; }
  .warehouse-view-toolbar { display: grid; grid-template-columns: 1fr; }
  .view-switch { width: 100%; }
  .page-size-control { justify-content: space-between; }
  .view-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-actions .workflow-actions { display: grid; grid-column: 1/-1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-actions .button { width: 100%; }
  .result-count { margin-left: 0; text-align: left; }
  .warehouse-table-footer { align-items: flex-start; flex-direction: column; }
  .warehouse-pagination { max-width: 100%; overflow-x: auto; justify-content: flex-start; }
  .function-guide-list { grid-template-columns: 1fr; }
  .function-guide-list .guide-safety { grid-column: auto; }
  .button-compact { min-height: 44px!important; }
  .operation-dialog .icon-button { min-width: 44px; min-height: 44px; }
  .workflow-dialog .icon-button { min-width: 44px; min-height: 44px; }
  .warehouse-selection-bar { align-items: stretch; flex-direction: column; }
  .warehouse-selection-actions { justify-content: flex-start; }
  .shelf-label-preview { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .language-switch button { min-width: 27px; padding: 0 3px; }
  .app-menu-link { display: none; }
  .module-navigation { overflow-x: auto; grid-template-columns: repeat(4,minmax(90px,1fr)); }
  .page { padding-top: 9px; }
  .summary-grid { display: grid; grid-auto-columns: minmax(132px,44vw); grid-auto-flow: column; grid-template-columns: none; gap: .45rem; margin: .55rem calc(50% - 50vw); padding: 0 max(10px,calc((100vw - 1120px)/2)); overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: 10px; scroll-snap-type: inline proximity; scrollbar-width: thin; }
  .summary-card { min-height: 70px; padding: .58rem .62rem; scroll-snap-align: start; }
  .summary-card > span { min-height: 2.2em; font-size: .59rem; }
  .summary-card strong { font-size: 1.18rem; }
  .page-heading { padding: .78rem; }
  .page-heading-copy p:last-child { font-size: .8rem; line-height: 1.4; }
  .workspace-note { display: none; }
  .warehouse-cadence-note { font-size: .7rem; }
  .card-top { grid-template-columns: 88px minmax(0,1fr); gap: .7rem; padding: .85rem .85rem .1rem; }
  .card-media,.item-image,.item-image-placeholder { width: 88px; height: 88px; }
  .card-heading h3 { font-size: .94rem; }
  .card-body { padding: .75rem .85rem .85rem; }
  .shelf-control { min-height: 52px; }
  .quantity-grid,.money-grid { gap: .32rem; }
  .metric { padding: .55rem .38rem; }
  .metric span { min-height: 2.25em; font-size: .58rem; }
  .metric strong { font-size: .82rem; }
  .card-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: .75rem .85rem .85rem; }
  .card-actions .button { width: 100%; }
  .card-more-actions { grid-column: 1/-1; }
  .operation-summary-grid { grid-template-columns: 1fr; }
  .operation-dialog-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scanner-dialog .operation-dialog-actions { grid-template-columns: 1fr; }
  .recount-session-heading { align-items: flex-start; flex-direction: column; }
  .recount-session-actions,.warehouse-selection-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .recount-session-actions .button:first-child,.warehouse-selection-actions .button:first-child { grid-column: 1/-1; }
  .view-actions,.view-actions .workflow-actions { grid-template-columns: 1fr; }
  .scanner-camera { min-height: 220px; }
  .scanner-manual-form { grid-template-columns: 1fr; }
  .scanner-result { grid-template-columns: 1fr; }
  .workflow-form-grid { grid-template-columns: 1fr; }
  .workflow-form-wide { grid-column: auto; }
  .workflow-form-submit { width: 100%; }
  .workflow-inline-field { grid-template-columns: 1fr; }
  .workflow-inline-field .button { width: 100%; }
  .history-entry-head { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .structured-facts { grid-template-columns: 1fr; }
  .structured-facts dt { border-bottom: 0; }
  .column-settings-list { grid-template-columns: 1fr; }
  .warehouse-reconnect-notice { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .warehouse-card { transition: none; }
  .warehouse-card:hover { transform: none; }
}

@media print {
  @page { margin: .35in; }
  html,body { min-width: 0; background: #fff!important; }
  body.shelf-label-printing > * { display: none!important; }
  body.shelf-label-printing { min-height: 0; margin: 0; color: #000; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.shelf-label-printing #warehouseShelfLabelsDialog { position: static; inset: auto; display: block!important; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .dialog-head { display: none!important; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .workflow-dialog-body { display: block!important; max-height: none; margin: 0; padding: 0; overflow: visible; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .workflow-dialog-body > :not(.shelf-label-preview) { display: none!important; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .shelf-label-preview { display: block!important; padding: 0; border: 0; background: #fff; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .shelf-label-controls { display: none!important; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .shelf-qr-card { display: grid!important; width: 3.5in; height: 3.5in; min-height: 0; margin: 0 auto; padding: .18in; place-content: center; border: 1.5pt solid #000; border-radius: .08in; box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .shelf-qr-image { width: 2.65in; height: 2.65in; margin: 0 auto; }
  body.shelf-label-printing #warehouseShelfLabelsDialog .shelf-qr-card figcaption { margin-top: .1in; color: #000; font-size: 15pt; line-height: 1.1; }
  body.shelf-label-printing > *:not(#warehouseShelfPrintRoot) { display: none!important; }
  body.shelf-label-printing #warehouseShelfPrintRoot {
    position: static;
    display: block!important;
    width: auto;
    margin: 0;
    padding: 0;
    background: #fff;
  }
  body.shelf-label-printing .warehouse-shelf-print-label {
    display: grid;
    width: 3.5in;
    height: 3.5in;
    margin: 0 auto;
    padding: .18in;
    grid-template-rows: 2.55in auto auto;
    align-content: center;
    justify-items: center;
    overflow: hidden;
    border: 1.5pt solid #000;
    border-radius: .08in;
    color: #000;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
    text-align: center;
  }
  body.shelf-label-printing .warehouse-shelf-print-qr { width: 2.55in; height: 2.55in; object-fit: contain; image-rendering: crisp-edges; }
  body.shelf-label-printing .warehouse-shelf-print-zone { margin: .04in 0 0; font-size: 10pt; font-weight: 750; line-height: 1.1; }
  body.shelf-label-printing .warehouse-shelf-print-name { max-width: 100%; margin: .02in 0 0; overflow: hidden; font-size: 8.5pt; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  body.shelf-label-printing .warehouse-shelf-print-code { max-width: 100%; overflow-wrap: anywhere; font-size: 15pt; line-height: 1.05; }
}
