/* Shared visual baseline approved from the workbench preview. */
:root {
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  color: #0f1111;
  --ink: #0f1111;
  --muted: #565959;
  --line: #d5d9d9;
  --shadow: none;
}
body { background: #f7f8f8; }
.page-heading h1 { font-size: 28px; font-weight: 700; letter-spacing: 0; color: #0f1111; }
.page-heading p { font-size: 14px; color: #565959; line-height: 1.6; }
.heading-actions { flex-wrap: wrap; }
.page-heading { align-items: flex-start; }
.eyebrow { font-size: 12px; color: #565959; letter-spacing: .3px; }
.card { border: 1px solid #d5d9d9; border-radius: 18px; box-shadow: none; }
.card-head { padding: 22px 24px 0; align-items: flex-start; flex-wrap: wrap; }
.card-body { padding: 20px 24px 24px; }
.card-title { color: #0f1111; font-size: 20px; line-height: 1.4; font-weight: 700; }
.card-subtitle { font-size: 13px; color: #565959; line-height: 1.6; margin-top: 6px; }
.muted, .footer-disclaimer { color: #565959; }
.tiny, .footer-disclaimer { font-size: 12px; line-height: 1.6; }
.section-title { font-size: 18px; color: #0f1111; }
.btn { min-height: 36px; padding: 7px 14px; border: 1px solid #adb1b8; border-radius: 8px; font-size: 14px; color: #0f1111; background: #fff; justify-content: center; }
.btn:hover { background: #f7fafa; border-color: #888c8c; }
.btn-primary { background: #0073bb; color: #fff; border-color: #0073bb; }
.btn-primary:hover { background: #005e99; border-color: #005e99; }
.btn-small { font-size: 13px; min-height: 32px; padding: 5px 10px; }
.btn-quiet { border-color: transparent; background: transparent; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #80c7ed; outline-offset: 2px; }
.select, .search-input, .field input, .field select, .field textarea, .audit-filters input {
  border: 1px solid #adb8c5; border-radius: 8px; background-color: #fff;
  color: #0f1111; font-size: 14px; padding: 9px 12px; min-height: 40px;
}
.field input, .field select, .field textarea { min-width: 0; }
.field label { font-size: 14px; color: #0f1111; line-height: 1.5; margin-bottom: 7px; }
.field textarea { min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #0073bb; }
.form-grid { gap: 18px; }
.table-link { font-size: 14px; color: #0073bb; line-height: 1.5; }
.table-link:hover { color: #005e99; text-decoration: underline; }
.data-table th { font-size: 13px; color: #565959; background: #f7f8f8; border-color: #d5d9d9; padding: 12px 16px; }
.data-table td { font-size: 14px; color: #0f1111; border-color: #e3e6e6; padding: 14px 16px; }
.data-table .primary-cell { color: #0f1111; }
.data-table tbody tr:hover { background: #f7fafa; }
.table-foot { font-size: 12px; color: #565959; padding: 12px 16px; border-color: #d5d9d9; gap: 12px; flex-wrap: wrap; }
.data-table-wrap { border-radius: 0 0 18px 18px; }
.filters-row { padding: 16px 20px; border-color: #d5d9d9; }
.tabs { padding: 0 24px; gap: 24px; border-color: #d5d9d9; flex-wrap: wrap; }
.tab-button { font-size: 15px; color: #565959; padding: 16px 0 12px; }
.tab-button.active { color: #0073bb; border-color: #0073bb; }
.segmented button { font-size: 13px; padding: 7px 12px; }
.status { font-size: 12px; }
.metric-card { padding: 22px 24px; min-height: 155px; }
.metric-top { color: #0f1111; font-size: 15px; font-weight: 700; }
.metric-icon { background: transparent; color: #565959; font-size: 18px; }
.metric-value { font-size: 30px; font-weight: 500; color: #0f1111; margin: 18px 0 12px; font-variant-numeric: tabular-nums; }
.metric-bottom { font-size: 12px; color: #565959; flex-wrap: wrap; line-height: 1.6; }
.stage-card { padding: 18px; }
.stage-name, .stage-caption { font-size: 12px; color: #565959; line-height: 1.5; }
.stage-value { font-size: 28px; color: #0f1111; }
.page-note { font-size: 14px; line-height: 1.6; padding: 14px 18px; border-color: #c8dce9; background: #f0f8ff; color: #364c59; }
.note-icon { flex-shrink: 0; }
.detail-grid { gap: 14px; }
.detail-cell { padding: 15px; border-color: #e3e6e6; background: #f7f8f8; }
.detail-cell span { font-size: 12px; color: #565959; line-height: 1.5; }
.detail-cell strong { font-size: 15px; color: #0f1111; line-height: 1.5; overflow-wrap: anywhere; }
.product-info h3 { font-size: 16px; color: #0f1111; }
.product-info p, .variant-line { font-size: 13px; color: #565959; line-height: 1.6; }
.product-card { padding: 20px; }
.product-card-integrated { align-items: flex-start; }
.product-card-integrated .product-info h3 { margin: 1px 0 4px; }
.product-card-integrated .product-info > p { margin: 0 0 12px; }
.product-variant-list { display: grid; gap: 10px; }
.product-variant-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.product-variant-fields { display: grid; gap: 4px; min-width: 0; color: #565959; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.product-variant-fields strong { color: #354151; font-weight: 600; }
.product-variant-summary .table-link { flex: none; }
.product-row strong { font-size: 14px; color: #0f1111; }
.product-row span { font-size: 12px; color: #565959; }
.tag { font-size: 12px; padding: 4px 8px; }
.timeline-item strong { font-size: 14px; color: #0f1111; }
.timeline-item p, .timeline-item time { font-size: 12px; color: #565959; }
.empty-state, .empty-card { font-size: 14px; color: #565959; line-height: 1.7; }
.modal { border: 1px solid #d5d9d9; border-radius: 16px; }
.modal-head { padding: 20px 24px; border-color: #d5d9d9; }
.modal-head h2 { font-size: 21px; color: #0f1111; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px 22px; }
.toggle-row { font-size: 14px; color: #0f1111; line-height: 1.6; gap: 12px; }
.toast { font-size: 14px; padding: 12px 18px; }
.brand strong { font-size: 17px; }
.brand span { font-size: 9px; }
.store-copy strong { font-size: 13px; }
.store-copy span { font-size: 11px; }
.side-label { font-size: 11px; color: #565959; }
.nav-item { font-size: 14px; color: #404747; height: 44px; }
.nav-item.active { color: #006cae; background: #eaf4fb; }
.count-pill { font-size: 11px; }
.connection, .user-copy span { font-size: 11px; }
.user-copy strong { font-size: 13px; }
.breadcrumbs { font-size: 13px; color: #565959; }
.breadcrumbs strong { color: #0f1111; }
.timezone-clocks { font-size: 11px; color: #565959; }
.dual-time small { font-size: 11px; color: #565959; }
.audit-filters label { font-size: 13px; color: #565959; }
.alert-text strong { font-size: 14px; color: #0f1111; }
.alert-text span, .alert-age { font-size: 12px; color: #565959; }
.alert-popover-head strong { font-size: 16px; }
.alert-popover-head button, .alert-filter { font-size: 12px; }
.chart-legend, .bar-row { font-size: 12px; color: #565959; }
.axis-labels { font-size: 11px; color: #565959; }
@media(max-width:1100px) {
  .top-actions { gap: 10px; }
  .supply-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:720px) {
  .page-heading h1 { font-size: 24px; }
  .card-head { padding: 18px 16px 0; }
  .card-body { padding: 16px; }
  .card-title { font-size: 18px; }
  .metric-card { padding: 18px; min-height: 145px; }
  .detail-grid { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 12px; }
  .modal-head, .modal-body { padding: 18px 16px; }
  .modal-foot { padding: 12px 16px 18px; }
  .timezone-clocks { font-size: 9px; gap: 6px; }
  .audit-filters input { width: 100%; min-width: 0; }
  .audit-filters label { width: 100%; flex-wrap: wrap; }
  .filters-row { padding: 14px; }
}

/* One warehouse per row; keep the grid scrollable on smaller screens. */
.modal:has(.shipment-entry-table) { width: min(1280px, 96vw); }
.shipment-grid-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #d5d9d9; border-radius: 6px; }
.field:has(.shipment-entry-table) { min-width: 0; }
.shipment-entry-table { width: 100%; min-width: 1060px; border-collapse: collapse; table-layout: fixed; }
.shipment-entry-table th, .shipment-entry-table td { padding: 9px 8px; text-align: left; border-right: 1px solid #d5d9d9; border-bottom: 1px solid #d5d9d9; }
.shipment-entry-table th { background: #f3f4f4; color: #0f1111; font-weight: 600; white-space: nowrap; }
.shipment-entry-table tr:last-child td { border-bottom: 0; }
.shipment-entry-table th:last-child, .shipment-entry-table td:last-child { border-right: 0; }
.shipment-entry-table th:nth-child(1) { width: 54px; }
.shipment-entry-table th:nth-child(2) { width: 190px; }
.shipment-entry-table th:nth-child(3) { width: 110px; }
.shipment-entry-table th:nth-child(4), .shipment-entry-table th:nth-child(5) { width: 100px; }
.shipment-entry-table th:nth-child(6) { width: 190px; }
.shipment-entry-table th:nth-child(7) { width: 180px; }
.shipment-entry-table th:nth-child(8) { width: 65px; }
.shipment-entry-table td input { min-width: 0; width: 100%; box-sizing: border-box; }
.shipment-entry-table td input[readonly] { background: #f3f4f4; }

.lot-allocation-table { width:100%; min-width:560px; border-collapse:collapse; }
.lot-allocation-table th, .lot-allocation-table td { padding:10px; text-align:left; border-bottom:1px solid #d5d9d9; }
.lot-allocation-table th { background:#f3f4f4; }
.lot-allocation-table input[type="checkbox"] { width:18px; height:18px; }
.lot-allocation-table input[type="number"] { width:110px; }

/* Larger entry dialogs, with actions visible while long forms scroll. */
.modal-backdrop { padding: 20px; }
.modal { width: min(720px, calc(100vw - 40px)); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; font-size: 16px; line-height: 1.6; }
.modal:has(form) { width: min(960px, calc(100vw - 40px)); }
.modal:has(.shipment-entry-table) { width: min(1280px, calc(100vw - 40px)); }
.modal-head, .modal-foot { flex-shrink: 0; background: #fff; }
.modal-head { padding: 20px 28px; }
.modal-head h2 { font-size: 24px; line-height: 1.4; }
.modal-head .icon-button { width: 44px; height: 44px; font-size: 28px; }
.modal-body { padding: 24px 28px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.modal-foot { padding: 16px 28px; border-top: 1px solid #d5d9d9; gap: 12px; flex-wrap: wrap; }
.modal .form-grid { gap: 20px 24px; }
.modal .field { min-width: 0; }
.modal .field label { font-size: 16px; margin-bottom: 8px; }
.modal .field input, .modal .field select, .modal .field textarea { font-size: 16px; min-height: 46px; padding: 11px 12px; }
.modal .field textarea { min-height: 100px; }
.modal .field input[type="checkbox"], .modal .field input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; vertical-align: middle; }
.modal .btn { font-size: 16px; min-height: 44px; padding: 9px 18px; }
.modal .footer-disclaimer, .modal .tiny { font-size: 14px; line-height: 1.7; }
.modal .shipment-entry-table th, .modal .shipment-entry-table td,
.modal .lot-allocation-table th, .modal .lot-allocation-table td { font-size: 15px; }
.modal pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .modal-backdrop { padding: 10px; }
  .modal, .modal:has(form), .modal:has(.shipment-entry-table) { width: calc(100vw - 20px); max-height: 94vh; max-height: 94dvh; }
  .modal-head { padding: 14px 16px; }
  .modal-head h2 { font-size: 21px; }
  .modal-body { padding: 18px 16px; }
  .modal-foot { padding: 12px 16px; }
  .modal .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
/* Preserve the browser's hidden attribute even when component styles set display. */
[hidden] { display: none !important; }

/* Amazon finance transactions open in a landscape dialog with an always-reachable scroll viewport. */
.amazon-finance-overview { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:14px 16px 16px; padding:16px 18px; border:1px solid #d5d9d9; border-radius:10px; background:#fafafa; }
.amazon-finance-overview strong { display:block; color:#0f1111; font-size:16px; }
.amazon-finance-overview .muted { margin-top:4px; }
.amazon-finance-dialog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.amazon-finance-table-scroll { height:min(56vh, 620px); min-height:280px; overflow:auto !important; overscroll-behavior:contain; }
.modal .amazon-finance-table { width:1585px; min-width:1585px; table-layout:fixed; }
.modal .amazon-finance-table th { position:sticky; top:0; z-index:1; background:#f3f4f4; }
.modal .amazon-finance-table th:nth-child(1), .modal .amazon-finance-table td:nth-child(1) { width:185px; }
.modal .amazon-finance-table th:nth-child(2), .modal .amazon-finance-table td:nth-child(2) { width:145px; }
.modal .amazon-finance-table th:nth-child(3), .modal .amazon-finance-table td:nth-child(3) { width:270px; }
.modal .amazon-finance-table th:nth-child(4), .modal .amazon-finance-table td:nth-child(4) { width:135px; }
.modal .amazon-finance-table th:nth-child(5), .modal .amazon-finance-table td:nth-child(5) { width:200px; }
.modal .amazon-finance-table th:nth-child(6), .modal .amazon-finance-table td:nth-child(6) { width:500px; white-space:normal; overflow-wrap:anywhere; }
.modal .amazon-finance-table th:nth-child(7), .modal .amazon-finance-table td:nth-child(7) { width:150px; white-space:nowrap; }
.amazon-finance-detail-line { margin:2px 0; white-space:normal; overflow-wrap:anywhere; }
@media (max-width:700px) {
  .amazon-finance-overview { align-items:flex-start; flex-direction:column; }
  .amazon-finance-dialog-toolbar { align-items:flex-start; flex-direction:column; }
  .amazon-finance-table-scroll { height:52vh; min-height:220px; }
}
