@charset "UTF-8";
/* Testing feedback: a clear wordmark, readable controls, and unified surfaces. */
:root[data-theme="blue"] {
  --logo-start:#E4C579;
  --logo-end:#B99750;
  --logo-facet:#F7E3A8;
  --logo-letter:#1B1812;
}

/* Keep the Chinese name and the separate English line within the sidebar. */
.sidebar .brand {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  min-width:0;min-height:66px;gap:0;padding:0 7px;
}
.sidebar .brand>.brand-logo,.sidebar .brand .brand-logo {
  display:block;width:100%;max-width:184px;height:auto;min-height:0;
  margin:0;overflow:visible;flex:0 0 auto;
}
.sidebar .brand-company-caption {display:none!important;}
.sidebar .workspace-label {margin-top:22px;font-size:11px;line-height:1.6;}
.sidebar .nav-item,.sidebar #nav-returns {font-size:14px;}
.sidebar .lan-card strong {font-size:13px;}
.sidebar .lan-card p,.sidebar .lan-status {font-size:11px;line-height:1.8;}
.sidebar .sidebar-footer small {font-size:10px;line-height:1.7;}

/* Text and chevrons share one baseline and one target size in home headers. */
.workspace-home .ws-section-heading>.ws-text-link,
.workspace-home .ws-section-heading>.ws-section-link,
.workspace-home .ws-stat-link {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-width:0;min-height:32px;padding:5px 0;line-height:1.5;font-size:12px;
  vertical-align:middle;white-space:nowrap;
}
.workspace-home .ws-section-heading>.ws-text-link>.icon,
.workspace-home .ws-section-heading>.ws-section-link>.icon,
.workspace-home .ws-stat-link>.icon {
  display:block;width:14px;height:14px;flex:0 0 14px;margin:0;vertical-align:middle;
}
.workspace-home .ws-stat-link {min-height:24px;padding-top:2px;padding-bottom:2px;}
.workspace-home .ws-todo-panel>.ws-section-heading {align-items:center;gap:12px;}
.workspace-home .ws-todo-panel>.ws-section-heading h2 {min-width:0;font-size:15px;}
.workspace-home .ws-shortcut strong,.workspace-home .ws-help-card strong,
.workspace-home .ws-todo-item strong,.workspace-home .ws-todo-item .ws-todo-name {font-size:14px;}
.workspace-home .ws-shortcut small,.workspace-home .ws-help-card small,
.workspace-home .ws-todo-item small,.workspace-home .ws-todo-item .ws-todo-caption,
.workspace-home .ws-section-heading>span,.workspace-home .ws-overview-note,
.workspace-home .ws-stat-secondary,.workspace-home .ws-stat-caption,
.workspace-home .ws-stat-group .metric-caption,.workspace-home .ws-overview-top>span {font-size:12px;line-height:1.75;}
.workspace-home .ws-stat-group .metric-label {font-size:14px;}
.workspace-home .ws-stat-secondary strong,.workspace-home .ws-stat-secondary b {font-size:13px;}
.workspace-home .ws-shortcuts {align-items:stretch;}
.workspace-home .ws-shortcut {min-height:106px;}

/* A photo keeps its own pixels; the empty upload surface follows the palette. */
#product-dialog .upload-zone {
  min-height:110px;height:110px;padding:12px;box-sizing:border-box;
  background-image:none;background-color:var(--theme-ui-raised);
  border-color:var(--theme-ui-border);color:var(--theme-dense-text);
}
#product-dialog .upload-zone:hover,#product-dialog .upload-zone.dragover,
#product-dialog .upload-zone:focus-visible {
  background-image:none;background-color:var(--theme-ui-raised);
  border-color:var(--theme-ui-accent);
}
#product-dialog .upload-zone .icon,
#product-dialog .upload-zone strong,#product-dialog .upload-zone small {
  color:var(--theme-dense-text);
}
#product-dialog .upload-zone .icon {width:27px;height:27px;}
#product-dialog .upload-zone strong {font-size:14px;line-height:1.7;font-weight:550;}
#product-dialog .upload-zone small {font-size:12px;line-height:1.7;}
#product-dialog .upload-zone img {
  background-image:none;background-color:transparent;object-fit:contain!important;filter:none!important;
}
#product-dialog .field,#product-dialog .field-label {font-size:13px;line-height:1.6;}
#product-dialog .field input,#product-dialog .field select,#product-dialog .field textarea {
  min-height:40px;font-size:14px;line-height:1.6;
}
#product-dialog .field input::placeholder,#product-dialog .field textarea::placeholder {font-size:13px;}
#product-dialog .field small,#product-dialog .field .optional,
#product-dialog .initial-stock-grid>.field>.optional,#product-dialog .initial-stock-grid>.field>.required,
.initial-stock-heading p,.initial-stock-note,.initial-stock-edit-note p {font-size:11px;line-height:1.8;}
.product-basics-heading h3,.initial-stock-heading h3 {font-size:14px;}

/* Main business actions should remain legible even inside a compact table. */
#inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button {
  min-height:36px;padding:7px 6px;font-size:13px;line-height:1.55;
  white-space:normal;overflow-wrap:anywhere;
}
#inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions) {gap:7px;}
#inventory-view .inventory-table .product-edit-actions>.icon-button {
  width:32px;height:32px;min-width:32px;min-height:32px;
}
#inventory-view .inventory-table .product-edit-actions>.icon-button>.icon {width:17px;height:17px;}
#inventory-view .inventory-table .product-name {font-size:14px;line-height:1.7;}
#inventory-view .inventory-table .product-text .sku,
#inventory-view .inventory-table .product-notes {font-size:12px;line-height:1.75;}
#inventory-view .inventory-table th {font-size:12px;line-height:1.7;}
#inventory-view .inventory-table .inventory-unit-label,
#inventory-view .inventory-table .minimum-label,
#inventory-view .inventory-table .warning-badge,
#inventory-view .inventory-table .stock-healthy,
#inventory-view .inventory-table .warning-disabled {font-size:12px;line-height:1.8;}
#inventory-view .inventory-table .inventory-unit-label b,
#inventory-view .inventory-table .minimum-label b {font-size:13px;}
.inventory-stock-distribution .inventory-stock-total>span,
.inventory-stock-distribution .warehouse-stock-secondary>span,
.inventory-stock-distribution .inventory-stock-split>span {font-size:11px;line-height:1.5;}
.inventory-stock-distribution .inventory-stock-total>small {font-size:10px;line-height:1.6;}
.inventory-filter-summary-heading>span,.inventory-filter-summary-heading>small,
.inventory-filter-summary-stat>span {font-size:12px;line-height:1.6;}
.inventory-filter-summary-stat small,.inventory-filter-summary-heading>.inventory-filter-summary-note {font-size:11px;}
.inventory-panel>.panel-heading p,.table-footer,.table-footer .pagination {font-size:12px;line-height:1.7;}
.inventory-panel .tab,.inventory-panel .density-toggle button,
.inventory-panel .filter-controls select,.inventory-panel .search-box input {font-size:12px;line-height:1.6;}
.inventory-panel .search-box input {min-height:36px;}
.inventory-panel .search-box input::placeholder {font-size:12px;}
.workspace .button.button-small,.modal .button.button-small,
.wh-record-actions>button,.wh-pending-actions>.button,.ret-row-actions>.button {
  min-height:34px;font-size:12px;line-height:1.6;
}
.modal .modal-footer>.button {min-height:38px;font-size:13px;line-height:1.6;}
.company-context .company-context-actions .button {font-size:12px;min-height:32px;}
.company-context .company-context-account,.company-context .company-context-kicker,
.topbar .live-status,.topbar .breadcrumb {font-size:11px;}
.topbar .theme-trigger,.topbar .lan-trigger,.topbar .contacts-trigger {font-size:12px;min-height:32px;}
.wh-action-modal .field,.wh-action-modal .field-label {font-size:13px;line-height:1.7;}
.wh-action-modal .field input,.wh-action-modal .field select,.wh-action-modal .field textarea {font-size:14px;min-height:40px;}
.wh-action-modal .field small,.wh-mode-note,.wh-action-modal .receipt-preview {font-size:12px;line-height:1.85;}
.wh-records-workspace .wh-ledger-table th,.wh-records-workspace .wh-ledger-table td small,
.wh-records-workspace .wh-ledger-table td time {font-size:12px;line-height:1.7;}
.wh-records-workspace .wh-ledger-table td {font-size:13px;}
.wh-pending-tracking,.wh-pending-order>header>span,.wh-pending-quantities small,
.ret-table td small,.ret-table td time {font-size:12px;line-height:1.8;}
.wh-pending-order>header>strong {font-size:14px;}

/* Multiple couriers: one selected list, one total, and an explicit split. */
.shipping-panel h3,.shipping-type-card strong {font-size:14px;}
.shipping-type-card {grid-template-columns:18px minmax(0,1fr);gap:10px;}
.shipping-type-card>input[type="radio"],
.shipping-source-card>input[type="radio"],.shipping-source-card>input[type="checkbox"] {
  appearance:auto;display:block;width:18px;height:18px;min-height:0;flex:0 0 18px;
  margin:3px 0 0;padding:0;accent-color:var(--theme-ui-accent);cursor:inherit;
}
.shipping-source-card {grid-template-columns:18px minmax(0,1fr) auto;}
.shipping-type-card small,.shipping-type-card .shipping-type-quantity,
.shipping-source-meta,.shipping-source-stats small,.shipping-source-state,
.shipping-status,#wh-shipping-status,.shipping-filter-tabs>button,
.shipping-official-summary p,.shipping-official-summary small,
.shipping-missing-note,.shipping-unknown-note,.shipping-empty,.shipping-source-empty,
.shipping-history strong,.shipping-history small {font-size:12px;line-height:1.8;}
.shipping-source-title {font-size:14px;}
.shipping-source-stats b,.shipping-source-stats strong {font-size:17px;}
.shipping-source-state {padding:3px 7px;}
.shipping-history-panel>summary,.shipping-official-summary h4 {font-size:13px;}
.shipping-history>li>b {font-size:14px;}
.shipping-allocation-preview {
  min-width:0;max-width:100%;margin:15px 0 0;padding:14px;
  color:var(--theme-ui-text);background:var(--theme-ui-raised);
  border:1px solid var(--theme-ui-border);border-radius:12px;
}
.shipping-allocation-heading {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  min-width:0;gap:6px 14px;font-size:13px;line-height:1.7;
}
.shipping-allocation-heading>strong {font-weight:600;}
.shipping-allocation-heading>span {color:var(--theme-dense-text);font-variant-numeric:tabular-nums;}
.shipping-allocation-note {margin:5px 0 11px;color:var(--shipping-muted,var(--theme-ui-muted));font-size:12px;line-height:1.85;}
.shipping-allocation-list {display:grid;gap:0;min-width:0;margin:0;padding:0;list-style:none;}
.shipping-allocation-list>li {
  display:flex;align-items:center;justify-content:space-between;gap:9px 15px;
  min-width:0;padding:10px 0;border-top:1px solid var(--theme-ui-border);
}
.shipping-allocation-list>li>span {min-width:0;flex:1;}
.shipping-allocation-list strong {display:block;font-size:13px;font-weight:600;line-height:1.75;overflow-wrap:anywhere;}
.shipping-allocation-list small {display:block;margin-top:2px;color:var(--shipping-muted,var(--theme-ui-muted));font-size:12px;line-height:1.8;overflow-wrap:anywhere;}
.shipping-allocation-list>li>b {
  flex:0 0 auto;max-width:45%;color:var(--theme-ui-accent);font-size:14px;line-height:1.75;
  text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
.shipping-allocation-error {
  margin:10px 0 0;padding:9px 11px;color:var(--theme-ui-error);background:var(--theme-ui-panel);
  border:1px solid var(--theme-ui-error);border-radius:8px;font-size:12px;line-height:1.85;
}
.shipping-allocation-preview[hidden] {display:none!important;}

@media(max-width:1020px) and (min-width:761px) {
  .sidebar .nav-item,.sidebar #nav-returns {font-size:13px;}
  .sidebar .brand {min-height:60px;padding:0 4px;}
  .topbar-right {gap:7px;flex-wrap:wrap;}
  .topbar #today {display:none;}
  #inventory-view .inventory-table td {padding-left:10px;padding-right:10px;}
}
@media(max-width:760px) {
  .workspace-home .ws-shortcut {min-height:96px;}
  .workspace-home .ws-stat-link {min-height:31px;font-size:12px;}
  .workspace-home .ws-todo-panel>.ws-section-heading {padding-left:14px;padding-right:14px;}
  .workspace-home .ws-section-heading>.ws-text-link {font-size:12px;}
  .topbar {height:auto;min-height:54px;padding-top:7px;padding-bottom:7px;gap:8px;flex-wrap:wrap;}
  .topbar-right {gap:6px;flex-wrap:wrap;justify-content:flex-end;}
  .topbar .live-status {font-size:10px;}
  #inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button {font-size:13px;min-height:37px;}
  .inventory-filter-summary-stat {padding-left:6px;padding-right:6px;}
  #product-dialog .modal-header,#product-dialog .modal-body,#product-dialog .modal-footer {padding-left:17px;padding-right:17px;}
}
@media(max-width:600px) {
  .shipping-source-card {grid-template-columns:18px minmax(0,1fr);}
  .shipping-source-stats:has(>span:nth-child(4)) {grid-template-columns:repeat(2,minmax(0,1fr));}
  .shipping-allocation-preview {padding:12px;}
  .shipping-allocation-list>li {flex-wrap:wrap;gap:5px 10px;}
  .shipping-allocation-list>li>b {max-width:100%;margin-left:auto;}
}
