.warehouse-workspace { background: #f5f7fa; color: #273244; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.warehouse-workspace .order-main { flex: 1; min-width: 0; overflow-x: hidden; overflow-y: auto; }
.warehouse-workspace .order-main > .p-5 { padding: 24px; }
.warehouse-page, .warehouse-detail, .warehouse-allocation { --warehouse-blue: #244787; --warehouse-muted: #708096; --warehouse-line: #e4e9f0; }
.warehouse-page *, .warehouse-detail *, .warehouse-allocation * { box-sizing: border-box; }
.warehouse-page h1, .warehouse-page h2, .warehouse-page h3, .warehouse-detail h2, .warehouse-detail h3, .warehouse-detail h4, .warehouse-allocation h3, .warehouse-allocation h4 { margin: 0; font-weight: 600; }
.warehouse-page a, .warehouse-detail a { text-decoration: none; }
.warehouse-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.warehouse-page-heading h1 { font-size: 25px; letter-spacing: .5px; }
.warehouse-page-heading p { margin: 5px 0 0; color: var(--warehouse-muted); font-size: 12px; }
.warehouse-button, .warehouse-filters .warehouse-button, .warehouse-detail .warehouse-button, .warehouse-allocation .warehouse-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; width: auto; margin: 0; padding: 7px 14px; border: 1px solid #d5deea; border-radius: 6px; background: #fff; color: #465774; font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.warehouse-button:hover, .warehouse-filters .warehouse-button:hover, .warehouse-detail .warehouse-button:hover, .warehouse-allocation .warehouse-button:hover { border-color: #8ba4ca; background: #f5f8fc; }
.warehouse-button-primary, .warehouse-filters .warehouse-button-primary, .warehouse-detail .warehouse-button-primary, .warehouse-allocation .warehouse-button-primary { border-color: var(--warehouse-blue); background: var(--warehouse-blue); color: #fff; }
.warehouse-button-primary:hover, .warehouse-filters .warehouse-button-primary:hover, .warehouse-detail .warehouse-button-primary:hover, .warehouse-allocation .warehouse-button-primary:hover { border-color: #19376e; background: #19376e; }
.warehouse-button:disabled, .warehouse-detail .warehouse-button:disabled, .warehouse-allocation .warehouse-button:disabled { border-color: #e0e5ed; background: #edf0f5; color: #94a0b2; cursor: not-allowed; }
.warehouse-page :focus-visible, .warehouse-detail :focus-visible { outline: 2px solid #6b91c9; outline-offset: 3px; }
.warehouse-filters { padding: 18px 20px; margin-bottom: 18px; border: 1px solid var(--warehouse-line); border-radius: 10px; background: #fff; }
.warehouse-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; }
.warehouse-filters label, .warehouse-expenses label { display: block; margin-bottom: 6px; color: #627087; font-size: 12px; }
.warehouse-filters input:not([type=submit]), .warehouse-filters select, .warehouse-expenses input:not([type=submit]) { display: block; width: 100%; min-width: 0; height: 36px; padding: 6px 10px; border: 1px solid #dbe2ec; border-radius: 5px; background: #fff; color: #273244; font: inherit; font-size: 13px; }
.warehouse-filters input::placeholder { color: #a1aabb; font-size: 12px; }
.warehouse-filters select { background: #fff; }
.warehouse-filter-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.warehouse-filter-actions .warehouse-button { flex: 1; }
.warehouse-shipping-filter { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.warehouse-shipping-filter legend { margin-bottom: 2px; color: #627087; font-size: 12px; }
.warehouse-shipping-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--warehouse-line); }
.warehouse-filters .warehouse-shipping-tab { position: relative; display: inline-flex; flex: none; margin: 0; cursor: pointer; }
.warehouse-filters .warehouse-shipping-tab input[type=radio] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.warehouse-shipping-tab span { padding: 9px 2px; border-bottom: 2px solid transparent; color: #768397; }
.warehouse-shipping-tab input:checked + span { border-color: var(--warehouse-blue); color: var(--warehouse-blue); font-weight: 600; }
.warehouse-shipping-tab input:focus-visible + span { outline: 2px solid #6b91c9; outline-offset: -2px; }
.warehouse-list-filters .warehouse-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.warehouse-list-filters .warehouse-filter-actions { grid-column: 1 / -1; }
.warehouse-list-filters .warehouse-filter-actions .warehouse-button { flex: none; min-width: 78px; }
.warehouse-list-page .warehouse-page-heading { gap: 12px; margin: 0; padding: 10px 14px; }
.warehouse-list-page .warehouse-page-heading h1 { display: flex; align-items: center; font-size: 20px; }
.warehouse-list-heading-text { display: flex; align-items: baseline; gap: 12px; flex: none; }
.warehouse-list-search { margin-bottom: 12px; border: 1px solid var(--warehouse-line); border-radius: 8px; background: #fff; }
.warehouse-list-search-context { flex: 1; min-width: 0; overflow: hidden; color: var(--warehouse-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.warehouse-list-heading-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.warehouse-list-heading-actions .warehouse-list-search-toggle { color: var(--warehouse-blue); }
.warehouse-list-search-toggle::after { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); content: ""; }
.warehouse-list-search-toggle[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.warehouse-list-search > .warehouse-list-filters { margin: 0; padding: 0 14px; border: 0; border-radius: 0 0 8px 8px; }
.warehouse-list-search .warehouse-shipping-filter { margin: 0; }
.warehouse-list-search .warehouse-shipping-tabs { border-bottom: 0; }
.warehouse-list-search .warehouse-shipping-tab span { padding: 6px 2px; }
.warehouse-list-search .warehouse-filter-grid { gap: 10px 12px; padding-block: 12px; border-top: 1px solid var(--warehouse-line); }
.warehouse-list-search .warehouse-filters label { margin-bottom: 4px; }
.warehouse-list-search .warehouse-filters .warehouse-shipping-tab { margin: 0; }
.warehouse-list-search .warehouse-filters input:not([type=submit]), .warehouse-list-search .warehouse-filters select { height: 32px; }
.warehouse-list-search .ts-wrapper { min-width: 0; }
.warehouse-list-search .ts-control { min-height: 32px; padding: 6px 10px; border-color: #dbe2ec; border-radius: 5px; background-color: #fff; }
.warehouse-list-search .warehouse-filters .ts-control > input { width: auto; height: auto; padding: 0; border: 0; background: transparent; }
.warehouse-list-search .warehouse-button { min-height: 32px; padding-block: 5px; }
.warehouse-list-search-general .warehouse-filter-actions { grid-column: auto; }
.warehouse-list-search .warehouse-view-links { gap: 22px; padding: 0 14px; overflow-x: auto; }
.warehouse-list-search .warehouse-view-links a { flex: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.warehouse-list-search .warehouse-view-links a[aria-current=page] { border-bottom-color: var(--warehouse-blue); }
@media (min-width: 1024px) {
  .warehouse-list-search-general .warehouse-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .warehouse-list-search .warehouse-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .warehouse-list-search-general .warehouse-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .warehouse-list-page .warehouse-page-heading { flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; }
  .warehouse-list-search-context { order: 3; flex-basis: 100%; }
  .warehouse-list-heading-actions .warehouse-button { padding-inline: 8px; }
}
.warehouse-list-page .warehouse-records > .warehouse-table-scroll:first-child { border-top: 0; }
.warehouse-management-page .warehouse-management-table { min-width: 640px; }
.warehouse-management-table tbody tr:not([data-warehouse-url]) { cursor: default; }
.warehouse-batches-table th:first-child { width: 28%; }
.warehouse-batches-table th:last-child { width: 110px; }
.warehouse-row-actions { display: flex; align-items: center; gap: 12px; font-size: 11px; }
.warehouse-row-actions .button_to { flex: none; margin: 0; }
.warehouse-danger-action { margin: 0; padding: 0; border: 0; background: transparent; color: #b34e4e; font: inherit; font-size: 11px; cursor: pointer; }
.warehouse-records-footer.warehouse-records-footer-end { justify-content: flex-end; }
.warehouse-list-search .warehouse-filter-grid.warehouse-single-filter-grid { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 767px) {
  .warehouse-list-search .warehouse-filter-grid.warehouse-single-filter-grid { grid-template-columns: minmax(0, 1fr); }
}
.warehouse-records { overflow: hidden; border: 1px solid var(--warehouse-line); border-radius: 10px; background: #fff; }
.warehouse-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.warehouse-section-heading h2, .warehouse-section-heading h3 { font-size: 14px; }
.warehouse-section-heading > span { color: var(--warehouse-muted); font-size: 12px; }
.warehouse-records > .warehouse-section-heading { padding: 14px 18px; }
.warehouse-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; margin-left: 7px; padding: 1px 7px; border-radius: 4px; background: #eef2f8; color: #647693; font-size: 11px; font-weight: 500; }
.warehouse-export { display: inline-flex; align-items: center; gap: 6px; color: #627795; font-size: 12px; }
.warehouse-export:hover, .warehouse-text-link:hover { color: var(--warehouse-blue); }
.warehouse-table-scroll { max-height: 280px; overflow: auto; border-top: 1px solid var(--warehouse-line); }
.warehouse-records-table { width: 100%; min-width: 800px; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 12px; }
.warehouse-records-table th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; background: #f6f8fb; color: #69788e; font-size: 11px; font-weight: 500; }
.warehouse-records-table td { height: 38px; padding: 7px 14px; border-bottom: 1px solid #edf0f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warehouse-records-table .warehouse-selection { padding-inline: 12px; text-align: center; }
.warehouse-selection input[type=checkbox] { width: 15px; height: 15px; margin: 0; vertical-align: middle; accent-color: #244787; cursor: pointer; }
.warehouse-selection input:disabled { cursor: default; }
.warehouse-batch-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--warehouse-line); background: #f9fbfd; }
.warehouse-out-page .warehouse-records > form:first-child .warehouse-batch-toolbar { border-top: 0; }
.warehouse-batch-toolbar strong { color: #40536f; font-size: 12px; font-weight: 500; }
.warehouse-batch-toolbar span { margin-left: 12px; color: #8c98a9; font-size: 11px; }
.warehouse-batch-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.warehouse-page .warehouse-batch-buttons .warehouse-button:disabled { border-color: #e0e5ed; background: #edf0f5; color: #94a0b2; cursor: not-allowed; }
.warehouse-batch-results { padding: 14px 18px; border-top: 1px solid var(--warehouse-line); background: #f9fbfd; font-size: 12px; }
.warehouse-batch-results p { margin: 0 0 8px; color: #627087; }
.warehouse-batch-results p strong { margin-right: 10px; color: #40536f; }
.warehouse-batch-results ul { max-height: 180px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.warehouse-batch-results li { display: flex; gap: 12px; padding: 4px 0; }
.warehouse-batch-results li strong { flex: none; font-weight: 500; }
.warehouse-batch-result-success { color: #2e8264; }
.warehouse-batch-result-success.has-shipping-warning { color: #a8751e; }
.warehouse-batch-result-failed, .warehouse-batch-error { color: #b34e4e; }
.warehouse-batch-result-skipped { color: #8992a1; }
.warehouse-batch-result-ready, .warehouse-batch-result-submitted { color: #2e8264; }
.warehouse-batch-result-unknown { color: #a8751e; }
.warehouse-print-results li span { overflow-wrap: anywhere; }
.warehouse-print-results > button { margin-top: 12px; }
.warehouse-print-results .warehouse-help { margin-top: 12px; }
.warehouse-batch-error { margin: 0; padding: 12px 18px; border-top: 1px solid var(--warehouse-line); font-size: 12px; }
.warehouse-records-table tbody tr { cursor: pointer; }
.warehouse-records-table tbody tr:hover { background: #f6f9fe; }
.warehouse-records-table tbody tr.gem-table-selected { background: #ecf2fc; }
.warehouse-records-table tbody tr.gem-table-selected td:first-child { box-shadow: inset 3px 0 var(--warehouse-blue); }
.warehouse-records-table a { color: var(--warehouse-blue); font-weight: 600; }
.warehouse-order-code, .warehouse-date { color: #7a8799; font-size: 11px; font-variant-numeric: tabular-nums; }
.warehouse-number { text-align: right; font-variant-numeric: tabular-nums; }
.warehouse-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; background: #eef1f6; color: #65758c; font-size: 11px; font-weight: 500; white-space: nowrap; }
.warehouse-status::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.warehouse-status-active, .warehouse-execution-started { background: #fff4df; color: #a8751e; }
.warehouse-status-permitted, .warehouse-status-printed { background: #eaf1fc; color: #416aa8; }
.warehouse-status-confirmed, .warehouse-execution-completed { background: #e7f5ee; color: #2e8264; }
.warehouse-status-canceled, .warehouse-execution-canceled { background: #f1f2f5; color: #8992a1; }
.warehouse-records-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; gap: 12px; color: #8c98a9; font-size: 11px; }
.warehouse-records-footer .pagy { margin: 0; font-size: 11px; }
.warehouse-detail { overflow: hidden; margin-top: 18px; border: 1px solid var(--warehouse-line); border-radius: 10px; background: #fff; }
.warehouse-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; }
.warehouse-eyebrow { margin-bottom: 5px; color: #8a97aa; font-size: 10px; }
.warehouse-detail-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 19px; font-variant-numeric: tabular-nums; }
.warehouse-detail-heading p { margin: 6px 0 0; color: #748297; font-size: 12px; }
.warehouse-detail-heading p span { padding-inline: 5px; color: #b4bdcb; }
.warehouse-detail-reference { min-width: 0; max-width: 45%; text-align: right; }
.warehouse-detail-reference span { display: block; margin-bottom: 6px; color: #8a97aa; font-size: 10px; }
.warehouse-detail-reference strong { display: block; color: #65748b; font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }
.warehouse-tabs { display: flex; gap: 22px; padding: 0 22px; overflow-x: auto; border-top: 1px solid #f0f2f6; border-bottom: 1px solid var(--warehouse-line); }
.warehouse-tabs button { flex: none; position: relative; padding: 13px 2px; border: 0; background: transparent; color: #768397; font: inherit; font-size: 12px; cursor: pointer; }
.warehouse-tabs button[aria-selected=true] { color: var(--warehouse-blue); font-weight: 600; }
.warehouse-tabs button[aria-selected=true]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--warehouse-blue); content: ""; }
.warehouse-tab-panel { padding: 20px 22px; }
.warehouse-tab-panel > .warehouse-section-heading { margin-bottom: 18px; }
.warehouse-page [hidden], .warehouse-detail [hidden], .warehouse-allocation [hidden] { display: none !important; }
.warehouse-help { margin: 12px 0 18px; color: #7a889b; font-size: 12px; }
.warehouse-tracking-page { max-width: 860px; margin: 24px auto; padding: 0 20px; }
.warehouse-tracking { max-width: 760px; font-size: 13px; line-height: 1.6; }
.warehouse-tracking-summary { padding-bottom: 16px; border-bottom: 1px solid var(--warehouse-line); }
.warehouse-tracking-summary p { margin: 0; color: var(--warehouse-muted); font-size: 12px; }
.warehouse-tracking-summary h3 { margin: 4px 0; font-size: 16px; }
.warehouse-tracking-number { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.warehouse-tracking-timeline { margin: 24px 0 0; padding: 0 0 0 6px; list-style: none; }
.warehouse-tracking-timeline li { position: relative; padding: 0 0 24px 24px; border-left: 2px solid #e4e9f0; }
.warehouse-tracking-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.warehouse-tracking-timeline li::before { position: absolute; top: 5px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: #c8d2e0; content: ""; }
.warehouse-tracking-timeline li:first-child::before { background: var(--warehouse-blue); box-shadow: 0 0 0 4px #edf2fb; }
.warehouse-tracking-time { color: var(--warehouse-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.warehouse-tracking-timeline p { margin: 4px 0 0; }
.warehouse-tracking-status { font-weight: 600; }
.warehouse-tracking-timeline li:first-child .warehouse-tracking-status { color: var(--warehouse-blue); }
.warehouse-tracking-context { overflow-wrap: anywhere; white-space: pre-line; }
.warehouse-tracking-location { color: var(--warehouse-muted); font-size: 12px; }
.warehouse-tracking-empty { padding: 30px 12px; color: var(--warehouse-muted); text-align: center; }
.warehouse-tracking-empty h4 { margin: 0; color: #465774; font-size: 14px; }
.warehouse-tracking-empty p { margin: 8px 0 0; font-size: 12px; }
.warehouse-tracking-empty[role=alert] h4 { color: #b34e4e; }
.warehouse-tracking-footer { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--warehouse-line); }
.warehouse-steps { display: flex; padding: 0; margin: 16px 0 0; list-style: none; }
.warehouse-steps li { display: flex; align-items: center; gap: 8px; flex: 1; color: #9aa6b7; font-size: 12px; }
.warehouse-steps li:not(:last-child)::after { content: ""; height: 1px; margin: 0 16px 0 8px; flex: 1; background: #e7ecf3; }
.warehouse-steps li > span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #f0f3f8; font-size: 11px; }
.warehouse-steps li.is-current { color: var(--warehouse-blue); font-weight: 600; }
.warehouse-steps li.is-current > span { color: #fff; background: var(--warehouse-blue); }
.warehouse-steps li.is-complete { color: #3d8b70; }
.warehouse-steps li.is-complete > span { color: #3d8b70; background: #e9f5ef; }
.warehouse-pda { display: flex; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--warehouse-line); border-radius: 7px; background: #f9fbfd; }
.warehouse-pda svg { flex: none; }
.warehouse-pda strong { font-size: 13px; }
.warehouse-pda p { margin-top: 5px; color: var(--warehouse-muted); font-size: 12px; }
.warehouse-allocation { margin-top: 16px; }
.warehouse-allocation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.warehouse-allocation-heading h3 { font-size: 14px; }
.warehouse-allocation-heading p { margin: 5px 0 0; color: var(--warehouse-muted); font-size: 11px; }
.warehouse-allocation-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0; padding: 14px 0; border: 1px solid var(--warehouse-line); border-radius: 7px; background: #f8fafc; }
.warehouse-allocation-summary > div { padding: 0 20px; }
.warehouse-allocation-summary > div + div { border-left: 1px solid var(--warehouse-line); }
.warehouse-allocation-summary dt { color: var(--warehouse-muted); font-size: 11px; font-weight: 400; }
.warehouse-allocation-summary dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.warehouse-allocation-summary small { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 400; }
.warehouse-allocation-summary .is-ready dd { color: #298064; }
.warehouse-allocation-summary .has-shortage dd { color: #b77527; }
.warehouse-allocation-line { margin-bottom: 12px; border: 1px solid var(--warehouse-line); border-radius: 7px; overflow: hidden; }
.warehouse-allocation-line header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px 6px; }
.warehouse-allocation-line header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.warehouse-allocation-line h4 { font-size: 13px; }
.warehouse-allocation-line header strong { flex: none; font-size: 12px; }
.warehouse-kind { padding: 2px 6px; border-radius: 3px; background: #eaf0fa; color: #6882aa; font-size: 10px; }
.warehouse-product-code { color: #8d99ac; font-size: 11px; }
.warehouse-batch-rule { margin: 0; padding: 0 16px 12px; color: #8692a5; font-size: 11px; }
.warehouse-allocation-scroll { overflow-x: auto; }
.warehouse-allocation-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12px; }
.warehouse-allocation-table th { padding: 9px 16px; background: #f7f9fc; border-top: 1px solid #edf0f5; color: #7d8b9e; font-size: 11px; font-weight: 400; text-align: left; }
.warehouse-allocation-table td { padding: 10px 16px; border-top: 1px solid #edf0f5; }
.warehouse-allocation-table .warehouse-number { text-align: right; }
.warehouse-allocation-table input[type=number] { width: 100px; height: 34px; padding: 5px 9px; border: 1px solid #c6d4e9; border-radius: 5px; background: #f9fbff; color: var(--warehouse-blue); font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.warehouse-allocation-save { display: flex; justify-content: flex-end; margin-top: 12px; }
.warehouse-allocation-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--warehouse-line); }
.warehouse-allocation-footer p { margin: 0; color: #7d8b9e; font-size: 11px; }
.warehouse-unsaved { display: block; margin-top: 4px; color: #b07a20; font-size: 11px; }
.warehouse-alert, .warehouse-callout { padding: 10px 14px; margin: 10px 0; border: 1px solid #efd8aa; border-radius: 6px; background: #fff8eb; color: #9b742c; font-size: 12px; }
.warehouse-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; margin: 0; }
.warehouse-info-grid dt { margin-bottom: 5px; color: #8a97a9; font-size: 11px; font-weight: 400; }
.warehouse-info-grid dd { margin: 0; color: #40516a; font-size: 13px; overflow-wrap: anywhere; }
.warehouse-info-wide { grid-column: 1 / -1; }
.warehouse-text-link { color: #5071a0; font-size: 12px; }
.warehouse-expenses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.warehouse-expenses form { padding: 18px; border: 1px solid var(--warehouse-line); border-radius: 7px; background: #f9fbfd; }
.warehouse-expense-field { display: flex; gap: 10px; }
.warehouse-items-scroll { overflow-x: auto; }
.warehouse-detail .divTable { width: 100%; min-width: 780px; border: 1px solid #e4e9f0; border-radius: 6px; overflow: hidden; font-size: 12px; }
.warehouse-detail .divTableHeading { background: #f5f8fc; color: #708096; }
.warehouse-detail .divTable .divTableHead { font-size: 11px; font-weight: 400; padding: 11px 12px; }
.warehouse-detail .divTable .divTableCell { padding: 11px 12px; border-color: #e9eef5; }
.warehouse-order-actions { justify-content: flex-start; gap: 10px; }
.warehouse-order-actions > div { margin: 0; }
.warehouse-order-actions:not(:has(a, form)) { display: none; }
.warehouse-order-actions:has(a, form) { margin-top: 18px; }
.warehouse-order-actions .green-button, .warehouse-order-actions .yellow-button, .warehouse-order-actions .danger-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #d5deea; border-radius: 6px; background: #fff; color: #526b90; font-size: 12px; }
.warehouse-order-actions .yellow-button { background: #244787; border-color: #244787; color: #fff; }
.warehouse-order-actions .danger-button { border-color: #f0d6d8; color: #b2636b; }
.warehouse-order-actions input[type=date] { height: 35px; border-color: #dbe2ec; font-size: 12px; }
.warehouse-out-toolbar { padding: 0 22px 16px; }
.warehouse-out-actions { display: flex; flex-wrap: wrap; align-items: baseline; }
.warehouse-out-toolbar .warehouse-out-actions { margin: 0; }
.warehouse-out-actions form { margin: 0; }
.warehouse-out-more { margin-inline-start: auto; }
.warehouse-out-more summary, .warehouse-out-expenses summary { padding: 8px 0; color: #506681; font-size: 12px; cursor: pointer; }
.warehouse-out-more[open] { flex-basis: 100%; }
.warehouse-out-more > div { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 4px; }
.warehouse-out-expenses { margin-top: 16px; border-top: 1px solid var(--warehouse-line); }
.warehouse-out-expenses summary { width: fit-content; }
.warehouse-out-line-count { margin: 0 0 10px; color: #65748b; font-size: 12px; }
.warehouse-empty { padding: 24px 16px; color: #8a97aa; text-align: center; font-size: 12px; }
.warehouse-empty strong { display: block; color: #667991; font-size: 13px; }
.warehouse-empty p { margin: 6px 0 0; }
#detail[busy] .warehouse-detail { opacity: .5; pointer-events: none; }
@media (max-width: 1100px) {
  .warehouse-workspace .order-main > .p-5 { padding: 20px; }
  .warehouse-expenses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .warehouse-filter-grid, .warehouse-list-filters .warehouse-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .warehouse-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .warehouse-detail-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .warehouse-detail-reference { max-width: 100%; text-align: left; }
  .warehouse-allocation-heading { align-items: flex-start; flex-wrap: wrap; }
  .warehouse-steps li:not(:last-child)::after { margin-inline: 6px; }
}
@media (max-width: 767px) {
  .warehouse-workspace .order-main > .p-5 { padding: 16px 12px; }
  .warehouse-page-heading h1 { font-size: 22px; }
  .warehouse-page-heading p { max-width: 170px; font-size: 11px; }
  .warehouse-filters { padding: 14px; }
  .warehouse-filter-grid { gap: 12px; }
  .warehouse-detail-heading, .warehouse-tab-panel { padding: 16px; }
  .warehouse-tabs { padding-inline: 16px; gap: 18px; }
  .warehouse-allocation-summary > div { padding-inline: 12px; }
  .warehouse-allocation-summary dd { font-size: 20px; }
  .warehouse-allocation-summary small { display: block; margin-left: 0; }
  .warehouse-steps li { gap: 5px; font-size: 10px; }
  .warehouse-steps li > span { width: 20px; height: 20px; font-size: 10px; }
  .warehouse-records-footer { padding-inline: 12px; }
  .warehouse-expense-field { flex-wrap: wrap; }
}
.warehouse-deposition-table th:nth-child(1) { width: 115px; }
.warehouse-deposition-table th:nth-child(2) { width: 20%; }
.warehouse-deposition-table th:nth-child(3) { width: 20%; }
.warehouse-deposition-table th:nth-child(4) { width: 65px; }
.warehouse-deposition-table th:nth-child(5) { width: 90px; }
.warehouse-deposition-table th:nth-child(6) { width: 100px; }
.warehouse-deposition-table th:nth-child(7) { width: 132px; }
.warehouse-stock-table, .warehouse-item-table, .warehouse-move-table { min-width: 1100px; }
.warehouse-stock-table th:nth-child(1), .warehouse-item-table th:nth-child(2), .warehouse-move-table th:nth-child(1) { width: 145px; }
.warehouse-stock-table th:nth-child(2), .warehouse-item-table th:nth-child(3), .warehouse-move-table th:nth-child(2) { width: 130px; }
.warehouse-stock-table th:nth-child(3), .warehouse-item-table th:nth-child(4), .warehouse-move-table th:nth-child(3) { width: 135px; }
.warehouse-stock-table th:nth-child(6), .warehouse-item-table th:nth-child(5), .warehouse-move-table th:nth-child(4) { width: 165px; }
.warehouse-stock-table th:nth-child(7), .warehouse-item-table th:nth-child(6), .warehouse-move-table th:nth-child(6), .warehouse-move-table th:nth-child(7) { width: 165px; }
.warehouse-stock-table th:nth-child(4), .warehouse-item-table th:nth-child(7), .warehouse-move-table th:nth-child(5) { width: 75px; }
.warehouse-stock-table th:nth-child(5), .warehouse-item-table th:nth-child(8), .warehouse-item-table th:nth-child(1) { width: 70px; }
.warehouse-stock-table th:nth-child(8), .warehouse-stock-table th:nth-child(9) { width: 108px; }
.warehouse-item-table th:nth-child(9), .warehouse-move-table th:nth-child(8) { width: 132px; }
.warehouse-metrics { display: flex; gap: 32px; padding: 12px 18px; margin: 0; border-top: 1px solid #edf1f6; background: #fbfcfe; }
.warehouse-metrics > div { display: flex; align-items: baseline; gap: 10px; }
.warehouse-metrics dt { color: #8390a3; font-size: 11px; font-weight: 400; }
.warehouse-metrics dd { margin: 0; color: #405b82; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.warehouse-list-page .warehouse-metrics { flex-wrap: wrap; gap: 8px 24px; padding: 8px 14px; border-top: 0; }
.warehouse-list-page .warehouse-metrics dd { font-size: 14px; }
.warehouse-expiring, .warehouse-negative { color: #b77431; }
.warehouse-positive { color: #318066; }
.warehouse-view-links { display: flex; gap: 24px; padding-bottom: 16px; }
.warehouse-view-links a { padding: 4px 0; color: #8090a6; font-size: 12px; }
.warehouse-view-links a[aria-current=page] { color: #244787; font-weight: 600; border-bottom: 2px solid #244787; }
.warehouse-detail .warehouse-detail-quantity { color: #244787; font-size: 25px; font-weight: 600; }
.warehouse-line-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 12px; }
.warehouse-line-table th { padding: 10px 12px; background: #f5f8fc; color: #7f8b9e; font-size: 11px; font-weight: 400; white-space: nowrap; text-align: left; }
.warehouse-line-table td { padding: 12px; border-bottom: 1px solid #e9eef5; }
.warehouse-out-lines { min-width: 0; }
.warehouse-out-lines :is(th, td) { padding: 8px; vertical-align: top; }
.warehouse-out-lines td { overflow-wrap: anywhere; }
.warehouse-out-lines strong { font-weight: 600; }
.warehouse-out-lines small { display: block; margin-top: 3px; color: #63748a; font-size: 11px; }
.warehouse-spot-detail-table, .warehouse-client-item-table { min-width: 0; }
.warehouse-operation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.warehouse-operation-grid > div { padding: 20px; border: 1px solid #e4e9f0; border-radius: 7px; background: #f9fbfd; }
.warehouse-operation-grid h4 { font-size: 13px; }
.warehouse-operation-grid p { margin: 6px 0 16px; color: #7d8b9e; font-size: 12px; }
.warehouse-form-card { padding: 22px; border: 1px solid #e4e9f0; border-radius: 10px; background: #fff; }
.warehouse-form { max-width: 960px; }
.warehouse-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.warehouse-form label { display: block; margin-bottom: 6px; color: #627087; font-size: 12px; }
.warehouse-form input:not([type=submit]):not([type=hidden]), .warehouse-form textarea, .warehouse-form select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #dbe2ec; border-radius: 5px; background: #fff; color: #273244; font: inherit; font-size: 13px; }
.warehouse-form input:not([type=submit]):not([type=hidden]), .warehouse-form select { min-height: 38px; }
.warehouse-form textarea { min-height: 90px; resize: vertical; }
.warehouse-form input:disabled { background: #f5f7fa; color: #8997aa; }
.warehouse-form .field { margin: 0; }
.warehouse-form .ts-wrapper { width: 100%; }
.warehouse-form .ts-control { min-height: 38px; border-color: #dbe2ec; border-radius: 5px; background: #fff; font-size: 13px; }
.warehouse-form .ts-control input { border: 0; min-height: 0; padding: 0; }
.warehouse-form .ts-dropdown { border-color: #dbe2ec; font-size: 13px; }
.warehouse-form-hint { margin: 6px 0 0; color: #8895a8; font-size: 11px; }
.warehouse-form .warehouse-form-section { margin: 0 0 22px; padding: 0 0 22px; border: 0; border-bottom: 1px solid #edf0f5; }
.warehouse-form-section legend { width: 100%; margin-bottom: 16px; color: #40536f; font-size: 14px; font-weight: 600; }
.warehouse-form-wide { grid-column: 1 / -1; }
.warehouse-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.warehouse-form .warehouse-button { min-height: 36px; width: auto; margin: 0; padding: 7px 14px; border: 1px solid #d5deea; border-radius: 6px; background: #fff; color: #465774; font-size: 12px; }
.warehouse-form .warehouse-button-primary { border-color: #244787; background: #244787; color: #fff; }
.warehouse-form .warehouse-button:hover { border-color: #8ba4ca; background: #f5f8fc; }
.warehouse-form .warehouse-button-primary:hover { border-color: #19376e; background: #19376e; }
.warehouse-form .warehouse-button:disabled { border-color: #e0e5ed; background: #edf0f5; color: #94a0b2; cursor: not-allowed; }
.warehouse-inbound-review { width: 100%; padding: 18px; border: 1px solid #e4e9f0; border-radius: 7px; background: #f9fbfd; }
.warehouse-inbound-review > div { margin-bottom: 16px; }
.warehouse-inbound-review input[type=submit] { margin-top: 16px; }
.warehouse-editor { margin-bottom: 20px; }
.warehouse-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.warehouse-editor-heading h2 { font-size: 14px; font-weight: 600; }
.warehouse-editor > turbo-frame { display: block; }
.warehouse-subnav { color: #8997aa; font-size: 12px; }
.warehouse-subnav a { color: #526d96; }
.warehouse-import-panel .warehouse-help { margin-top: 0; }
.warehouse-import-panel .warehouse-form { margin-top: 20px; }
.warehouse-import-panel .warehouse-form input[type=file] { min-height: 48px; background: #f8fafc; }
.warehouse-export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.warehouse-export-grid a { display: block; padding: 20px; border: 1px solid #e4e9f0; border-radius: 7px; background: #f9fbfd; }
.warehouse-export-grid strong { display: block; margin-bottom: 8px; color: #40536f; font-size: 13px; }
.warehouse-export-grid span { display: block; color: #8090a6; font-size: 11px; }
@media (max-width: 800px) {
  .warehouse-form-grid, .warehouse-operation-grid, .warehouse-export-grid { grid-template-columns: minmax(0, 1fr); }
  .warehouse-metrics { gap: 20px; }
  .warehouse-metrics > div { display: block; }
  .warehouse-metrics dd { margin-top: 4px; }
}
@media (max-width: 767px) {
  .warehouse-form-card { padding: 16px; }
  .warehouse-form-grid { gap: 16px; }
  .warehouse-export-grid { gap: 12px; }
}
.warehouse-inbound-review h3 { margin-bottom: 8px; }
.warehouse-detail .divTableCell button { padding: 4px 8px; border: 1px solid #e2e7ef; border-radius: 4px; background: #fff; color: #8b6c72; font-size: 11px; }
.warehouse-filter-actions { grid-column: -2; }
.warehouse-cell-secondary { display: block; margin-top: 3px; color: #a0aabb; font-size: 10px; }
.warehouse-waybill-barcode { width: fit-content; max-width: 100%; margin: 8px 0 12px; background: #fff; }
.warehouse-waybill-barcode svg { display: block; max-width: 100%; height: auto; }
.warehouse-waybill-barcode figcaption { padding: 0 20px 10px; color: #273244; font: 14px/1.5 monospace; letter-spacing: 1px; text-align: center; }
.warehouse-order-workspace { display: flex; margin: 0; }
.warehouse-order-workspace .order-main { min-height: 0; }

.warehouse-out-table { min-width: 420px; }
.warehouse-out-table th, .warehouse-out-table td { padding-inline: 9px; }
.warehouse-out-table th:nth-child(1) { width: 38px; padding-inline: 8px; }
.warehouse-out-table th:nth-child(2) { width: 27%; }
.warehouse-out-table th:nth-child(4) { width: 48px; }
.warehouse-out-table th:nth-child(5) { width: 94px; }
.warehouse-out-table th:nth-child(6) { width: 96px; }
.warehouse-out-table td.warehouse-selection { padding-inline: 8px; }
.warehouse-out-table a:focus-visible { outline-offset: 1px; }
.warehouse-out-table .warehouse-order-code,
.warehouse-out-shipping-type { display: block; margin-top: 2px; }
.warehouse-out-table .warehouse-order-code { overflow: hidden; text-overflow: ellipsis; }
.warehouse-out-shipping-type { color: #687990; font-size: 11px; }
.warehouse-out-table td.warehouse-date { white-space: normal; }
.order-main:has(.warehouse-split) { overflow-x: auto; }
.order-main > .p-5:has(> .warehouse-split) {
  min-width: 482px;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
}
.warehouse-split {
  display: grid;
  grid-template-columns: minmax(450px, 1fr);
  gap: 16px;
  height: 100%;
}
.warehouse-split:has(> .warehouse-detail-pane > .warehouse-detail-frame[busy],
                     > .warehouse-detail-pane > .warehouse-detail-frame > *) {
  grid-template-columns: minmax(450px, 43fr) minmax(450px, 57fr);
}
.warehouse-list-pane, .warehouse-detail-pane { min-width: 0; min-height: 0; }
.warehouse-list-pane { overflow: auto; }
.warehouse-list-pane .warehouse-table-scroll { max-height: none; }
.warehouse-list-pane .warehouse-management-table { min-width: 440px; }
.warehouse-list-pane .warehouse-deposition-table { min-width: 640px; }
.warehouse-list-pane :is(.warehouse-stock-table, .warehouse-item-table, .warehouse-move-table) { min-width: 740px; }
.warehouse-list-pane :is(.warehouse-deposition-table, .warehouse-stock-table, .warehouse-item-table, .warehouse-move-table) th { width: auto; }
.warehouse-list-pane :is(.warehouse-stock-table, .warehouse-item-table, .warehouse-move-table) th.warehouse-number { width: 56px; }
.warehouse-list-pane .warehouse-stock-table th:last-child { width: 84px; }
.warehouse-client-outs .warehouse-records-table { min-width: 600px; }
.warehouse-list-pane .warehouse-records-table :is(th, td) { padding-inline: 10px; }
.warehouse-list-pane .warehouse-page-heading { flex-wrap: wrap; gap: 6px 10px; }
.warehouse-list-pane .warehouse-list-search .warehouse-filter-grid:not(.warehouse-single-filter-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.warehouse-detail-pane { position: relative; }
.warehouse-detail-pane:not(:has(> .warehouse-detail-frame[busy], > .warehouse-detail-frame > *)) { display: none; }
.warehouse-detail-frame { display: block; height: 100%; overflow: auto; }
.warehouse-detail-frame > .warehouse-detail { margin-top: 0; }
.warehouse-detail-frame .warehouse-detail-heading { padding-inline-end: 64px; }
.warehouse-detail-frame .warehouse-order-actions { margin-top: 0; }
.warehouse-detail-frame .warehouse-tab-panel > .warehouse-info-grid + .warehouse-button { margin-top: 18px; }
.warehouse-detail-frame .client-ip-whitelist { margin-top: 18px; }
.warehouse-detail-close {
  position: absolute;
  z-index: 2;
  inset: 14px 16px auto auto;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--warehouse-line);
  border-radius: 6px;
  background: #fff;
  color: #62748a;
  font-size: 16px;
  cursor: pointer;
}
.warehouse-detail-close:hover { background: #edf2f8; color: var(--warehouse-blue); }
.warehouse-detail-frame:focus { outline-offset: -2px; }
.warehouse-detail-frame[busy]:empty::before { display: block; padding: 18px 22px; color: var(--warehouse-muted); content: "正在加载详情…"; }
